Skip to main content

dagostino_k2_py

Function dagostino_k2_py 

Source
pub fn dagostino_k2_py(
    py: Python<'_>,
    x: &Bound<'_, PyArray1<f64>>,
) -> PyResult<Py<PyAny>>
Expand description

D’Agostino’s K-squared test for normality.

Tests whether a sample comes from a normal distribution using the D’Agostino-Pearson K² test, which combines tests for skewness and kurtosis.

Parameters: x: Array of sample data (minimum 20 observations)

Returns: Dictionary with ‘statistic’ and ‘pvalue’ keys