Skip to main content

anderson_normal

Function anderson_normal 

Source
pub fn anderson_normal(x: &[f64]) -> Result<AndersonResult, ErrorsJSL>
Expand description

The Anderson-Darling test of normality with estimated mean and standard deviation (SciPy’s anderson(x, 'norm')): A² = −n − Σ (2i − 1)/n [ln Φ(zᵢ) + ln(1 − Φ(z₍ₙ₊₁₋ᵢ₎))], with the Stephens critical values adjusted for n. The null hypothesis is rejected at a level if the statistic exceeds its critical value.