welchTStatistic
welchTStatistic(
a,b):WelchTTestResult
Defined in: welch-t-statistic.ts:28
Welch’s t-statistic for two independent samples, without assuming equal variance.
The statistic alone, with no p-value. That is the whole point of it: a caller
thresholding on |t| — as a dudect-style constant-time check does,
conventionally at 4.5 — would pay for an incomplete beta evaluation per
call and discard it. Callers wanting the p-value, or the one-sample and
paired forms, want tTest, which computes this statistic through here.
Parameters
Section titled “Parameters”readonly number[]
First sample. Not modified.
readonly number[]
Second sample. Not modified.
Returns
Section titled “Returns”The t-statistic and its Welch–Satterthwaite degrees of freedom.
Throws
Section titled “Throws”When either sample has fewer than two values.