-
Notifications
You must be signed in to change notification settings - Fork 0
Stats ttest
github-actions[bot] edited this page Sep 21, 2026
·
25 revisions
Development build. This page describes
main, not a released package. The latest published Lodestar.Stats is 0.4.0 — read its documentation.
Home › Stats › Hypothesis tests
Student's and Welch's t-tests: independent, paired and one-sample.
Arrays in, a statistic and a p-value out; every entry point is static.
Independent defaults to Variance.Welch, where
scipy.stats.ttest_ind defaults to Student's equal_var=True — pooling is only correct when
the two populations really share a variance, so the safer default costs a word at the call site
rather than a wrong answer.
| Member | What it does |
|---|---|
TTest.Independent |
Compares the means of two independent samples. |
TTest.Paired |
The paired t-test: a one-sample test on the differences. |
TTest.OneSample |
Compares a sample's mean against a stated population mean. |