pub fn shapiro(x: &[f64]) -> Result<TestResult, ErrorsJSL>Expand description
The Shapiro-Wilk test (SciPy’s shapiro): W measures how well the ordered sample matches
the expected normal order statistics, W = (Σ aᵢ x₍ᵢ₎)² / Σ (xᵢ − x̄)², with Royston’s
approximations (AS R94) to the coefficients aᵢ and to the null distribution of ln(1 − W).
Valid for 3 ≤ n ≤ 5000.