API reference#
The scientific categories below follow the order used by the
SHT reference. The public
API contains 51 canonical pySHT functions covering 52 of the 54 statistical
routine identities in SHT 0.1.9. Two one-sample mean-and-variance identities
share one algebraically identical implementation; mean2.2014CLX remains a
private validation target after failing its practical-size calibration gate,
and cov1.2012Fisher is withheld because its release audit is not reproducible.
Every public Python function uses lowercase snake_case and lives in its
subject module; test functions are not re-exported by pysht.
[0] Utilities#
SHT’s dynamic usek1d and useknd adapters have no direct pySHT counterpart.
Python functions can be passed and called directly.
[1] Tests for Univariate Mean#
Function |
Purpose |
|---|---|
Test one population mean against a reference value |
|
Compare two independent or paired population means |
|
Compare means across two or more independent groups |
[2] Tests for Multivariate Mean#
Function |
Purpose |
|---|---|
One-sample Hotelling mean-vector test |
|
Independent or paired Hotelling mean-vector test |
|
One-sample Dempster test |
|
One-sample Bai–Saranadasa test |
|
One-sample Srivastava–Du test |
|
Two-sample Dempster test |
|
Yao unequal-covariance test |
|
Johansen unequal-covariance test |
|
Nel–Van der Merwe unequal-covariance test |
|
Two-sample Bai–Saranadasa test |
|
Krishnamoorthy–Yu unequal-covariance test |
|
Two-sample Srivastava–Du test |
|
Lopes–Jacob–Wainwright random-projection test |
|
Thulin random-subspace test |
|
Lee–You–Lin maximum log Bayes-factor test |
|
Schott multi-sample mean test |
|
Zhang–Xu transformed multi-sample test |
|
Cao–Park–He high-dimensional multi-sample test |
[3] Tests for Variance#
Function |
Purpose |
|---|---|
Test one population variance against a reference value |
|
Compare two normal-population variances |
|
Compare variances across normal populations |
|
Compare group spreads around their means |
|
Compare group spreads around their medians |
[4] Tests for Covariance#
Function |
Purpose |
|---|---|
Random-projection one-sample covariance test |
|
Li–Chen two-sample covariance test |
|
Cai–Liu–Xia maximum covariance test |
|
Random-projection two-sample covariance test |
|
Lee–You–Lin known-zero-mean maximum log Bayes-factor test |
|
Schott (2001) multi-sample covariance test |
|
Schott (2007) high-dimensional multi-sample test |
[5] Simultaneous Tests for Mean and Variance#
Function |
Purpose |
|---|---|
Test one normal mean and variance jointly |
|
Pearson–Neyman two-sample joint test |
|
Perng–Littell component-test combination |
|
Muirhead corrected likelihood-ratio approximation |
|
Zhang–Xu–Chen exact likelihood-ratio calibration |
|
Asymptotic two-sample likelihood-ratio test |
[6] Simultaneous Tests for Mean and Covariance#
Function |
Purpose |
|---|---|
Liu–Liu–Zheng–Shi high-dimensional one-sample test |
|
Classical one-sample likelihood-ratio test |
|
Hyodo–Nishiyama high-dimensional two-sample test |
[7] Tests for Equality of Distributions#
Function |
Purpose |
|---|---|
Compare two univariate or multivariate distributions |
[8] Goodness-of-Fit: Normal Distribution#
Function |
Purpose |
|---|---|
Shapiro–Wilk normality test |
|
Shapiro–Francia normality test |
|
Jarque–Bera moment test |
|
Adjusted Jarque–Bera moment test |
|
Robust Jarque–Bera moment test |
[9] Goodness-of-Fit: Uniform Distribution#
Function |
Purpose |
|---|---|
Yang–Modarres interpoint-distance test |
|
Yang–Modarres normal-quantile test |
[10] Tests on Special Domains#
Function |
Purpose |
|---|---|
Likelihood-ratio test of probability-simplex uniformity |
Result objects#
Every public test returns an immutable
StatisticalTestResult subtype. Frequentist tests report an
htest-style statistic and p-value; resampling results add exactness and
Monte Carlo diagnostics. The two Lee–You–Lin functions instead return a
maximum log Bayes factor and have no p-value.
For R names, years, and expanded author acronyms, use the migration crosswalk and searchable method-name glossary.