UNPKG

als-statistics

Version:

Modular JS statistics toolkit for Node.js and the browser: descriptive stats, correlations (Pearson/Spearman/Kendall), t-tests & ANOVA (Student/Welch), reliability (Cronbach’s alpha), regression (linear/logistic), clustering (DBSCAN/HDBSCAN), and table/co

25 lines (17 loc) 695 B
<title>One-Sample T‑Test</title> <description>## Class: `OneSampleTTest` (returned by `CompareMeans.oneSample`)</description> <keywords>one-sample, t, test, class, onesamplettest, returned, comparemeans.onesample, public, fields, js, new, x</keywords> # One-Sample T‑Test ## Class: `OneSampleTTest` (returned by `CompareMeans.oneSample`) **Constructor** ```js new OneSampleTTest({ X: number[] }, mu0=0) ``` - Requires **n ≥ 2**. ### Public fields - `t: number` – t statistic. - `df: number``n - 1`. - `p: number` – two‑sided p‑value. - `sd: number` – sample standard deviation. - `se: number` – standard error `sd / sqrt(n)`. - `mu0: number` – hypothesized mean.