[1] Tests for Univariate Mean#
The univariate mean API contains one-sample and two-sample t tests together
with classical one-way analysis of variance. The functions live in
pysht.mean; this page groups them by the scientific category used in SHT.
Question |
Function |
|---|---|
Is one population mean equal to a reference value? |
|
Are two independent or paired means equal? |
|
Are two or more independent-group means equal? |
|
See the classical-mean validation ledger for formula and oracle details.
Functions#
- pysht.mean.ttest_1samp(x, *, popmean=0.0, alternative='two-sided', confidence_level=0.95)[source]#
Perform a one-sample Student t test.
The observations are assumed independent and normally distributed with an unknown, positive variance.
alternativedescribes the population mean relative topopmean.- Parameters:
x (ArrayLike)
popmean (float)
alternative (str)
confidence_level (float)
- Return type:
- pysht.mean.ttest_2samp(x, y, *, alternative='two-sided', paired=False, equal_var=False, confidence_level=0.95)[source]#
Perform an independent or paired two-sample t test.
Welch’s unequal-variance test is the default for independent samples. Set
equal_var=Truefor the pooled-variance Student test, orpaired=Truefor a test of paired differences.- Parameters:
x (ArrayLike)
y (ArrayLike)
alternative (str)
paired (bool)
equal_var (bool)
confidence_level (float)
- Return type: