Stats ttest - CyrilB1531/lodestar GitHub Wiki

Development build. This page describes main, not a released package. The latest published Lodestar.Stats is 0.4.0 — read its documentation.

HomeStatsHypothesis tests

TTest

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.

Members

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.