pub fn t_test_two_sample(x: &[f64], y: &[f64], equal_var: bool) -> TestResultExpand description
Two-sample t test of H₀: μₓ = μᵧ. equal_var selects the pooled
test; otherwise Welch’s test with Welch-Satterthwaite df.
Analytic cross-check: x = 1..5 vs y = 2,4,…,10 with equal variances gives t = −3/√2.5 = −1.897367 on 8 df (p ≈ 0.094); Welch df is exactly 6.25/1.0625 = 5.882353.
§Panics
Panics unless both samples have at least 2 elements.