qualia_core_db/solvers/statistics/hypothesis/mod.rs
1//! Hypothesis tests — real p-values from the [`distributions`](super::distributions)
2//! library, zero ad-hoc thresholds.
3//!
4//! This replaces the prior `one_sample_t`, whose "p-value" was a placeholder
5//! (`|t| > 1.96 ⇒ 0.05 else 0.1`) and whose CI used the fixed 1.96 normal critical
6//! value regardless of sample size. Every test here draws its tail probability from
7//! the exact Student-t / F / χ² CDF, and t-CIs use the t critical value for the
8//! actual degrees of freedom.
9//!
10//! Submodules (PROJECT RULE §11): [`t_tests`] (one-sample / paired / two-sample),
11//! [`anova`] (one-way F-test), [`chi_square`] (goodness-of-fit / independence).
12//! Specialized libraries map these results onto their own domain result types.
13
14pub mod anova;
15pub mod chi_square;
16pub mod nonparametric;
17pub mod t_tests;
18
19pub use anova::{one_way_anova, AnovaResult};
20pub use chi_square::{chi_square_gof, chi_square_independence, ChiSquareResult};
21pub use nonparametric::{
22 friedman, ks_1sample, mann_whitney_u, mcnemar, FriedmanResult, KolmogorovSmirnovResult,
23 MannWhitneyResult, NonparametricResult,
24};
25pub use t_tests::{one_sample_t, paired_t, two_sample_t, TTest, TwoSampleTTest};