Skip to content

ADescribe · Guide test 106

D’Agostino–Pearson omnibus test

Combines transformed sample skewness and kurtosis to detect nonnormality.

Runs in CodeSplashPython example validatedR example validated

Do it in CodeSplash

In the app, set it up in Analyze with one of these methods:

In Normality test (one test), choose Test = D'Agostino–Pearson omnibus (K²).

Do it in CodeSplash Run this test on your own data, in Python or R.

Bench

Change the design, drag the data, move α. The statistic, its reference distribution and the verdict follow.

Bench · D’Agostino–Pearson omnibus test

40
0.60

Sinh–arcsinh shape: 0 is symmetric.

1.00

Below 1: heavier tails than normal; 1 with ε = 0 is exactly normal.

0.050

Your data

Drag a point or use ↑/↓ to change it
Sample · n = 40 · mean 0.63

If H₀ were true

K² = 2.61
  1. The reference: how K² varies across samples when H₀ is true.
  2. Your statistic, from the data above.
  3. The p-value: the area at least as extreme as yours (p = .271).
  4. The hatched rejection region at α = .050: statistics landing here reject H₀.

The formula

K2=zskew2+zkurt2∼χ22K^2 = z_{\text{skew}}^2 + z_{\text{kurt}}^2 \sim \chi^2_2

With your numbers

K2=1.332+(−0.92)2=2.61K^2 = 1.33^2 + (-0.92)^2 = 2.61
zskewz_{\text{skew}}
D'Agostino's normalized skewness
zkurtz_{\text{kurt}}
Anscombe–Glynn normalized kurtosis

The verdict

K²(2) = 2.61, p = .271

p > α = .050: compatible with H₀

Tells you not just whether but how the data depart: look at which z is large. Needs n ≥ 8 (≥ 20 for the kurtosis part to behave).

Statistic
2.613
p-value
0.2708
D’Agostino–Pearson omnibus test on Sample: n = 40: K²(2) = 2.61, p = .271. The p-value is above α = .050, so the data are compatible with H0.

D’Agostino–Pearson omnibus test on Sample: n = 40: K²(2) = 2.61, p = .271. The p-value is above α = .050, so the data are compatible with H₀.

Question and hypotheses

H0: normality, assessed jointly through skewness and kurtosis.

Assumptions

Independent identically distributed continuous observations; H0 is a normal distribution with unknown mean and positive variance. Censoring, truncation, clustering and fitted regression residuals require different calibration. The transformations require adequate n; common software requires n≥8 and kurtosis calibration is less reliable in small samples.

Formula

K2=Zskew2+Zkurt2≈χ22K^2=Z_{\mathrm{skew}}^2+Z_{\mathrm{kurt}}^2\approx\chi^2_2

Parameters and notation

Zskew is entry 112’s transformed skewness; Zkurt is entry 113’s transformed kurtosis.

Structure of the method

Compute sample skewness and kurtosis, apply their sample-size-dependent approximately normalizing transformations, and sum the two squared transformed components. The combined K-squared statistic uses an approximate chi-square-two reference; raw skewness and kurtosis cannot simply replace the transformed components.

Estimated and nuisance parameters

Estimate central moments through order four and the associated sample skewness and kurtosis. Mean and variance are nuisance estimates absorbed into standardized moments. The finite-sample transformation constants depend on n and must follow the same conventions as the chosen implementation.

Settings and design choices

Choose the tested sample, missing-value policy, and significance threshold. SciPy requires at least eight observations, while the kurtosis approximation remains questionable for small samples. The R example intentionally extracts each transformed statistic rather than its raw moment estimate or individual p-value.

Fitting and adaptation

Recompute all moments and transformations when data change. A normal parametric calibration check can simulate at the observed n; fitted-model residual checks should regenerate data and refit that model. There is no neural fine-tuning, and selecting a transformation to minimize K-squared requires selection-aware interpretation.

Sensitivity and robustness

Fourth moments are strongly influenced by extreme values, and some nonnormal shapes can evade a moment-based test. Dependence and heteroskedastic mixtures can invalidate the simple iid reference. Report the skewness and kurtosis components separately to explain which departure drives the omnibus result.

How to use and calibrate

Compute both finite sample transformations and use the upper χ²2 tail.

Example application

Screen for asymmetric or tail-shape departures from a normal model.

Interpretation and pitfalls

Watch out

It is not sensitive to every nonnormal distribution equally. The moment transformations distinguish it from Jarque–Bera.

What changed in edition 2

  • New sections: structure of the method, estimated and nuisance parameters, settings and design choices, fitting and adaptation, sensitivity and robustness.

Python and R

Combines transformed skewness and kurtosis Z statistics; needs enough observations for those approximations.

Python · native

Validated — Executed successfully in the validation environment · needs numpy, scipy

import numpy as np
from scipy import stats
rng = np.random.default_rng(2026)
x=rng.normal(size=60)
print(stats.normaltest(x))
Output
NormaltestResult(statistic=np.float64(4.492661001194283), pvalue=np.float64(0.105786697434409))
R

Validated — Executed successfully in the validation environment · needs moments

set.seed(2026)
x <- rnorm(60)
a<-moments::agostino.test(x); b<-moments::anscombe.test(x)
# Second component is the transformed approximately normal statistic.
K2<-unname(a$statistic[2]^2+b$statistic[2]^2)
print(c(K2=K2,p=pchisq(K2,2,lower.tail=FALSE)))
Output
       K2         p 
0.4650964 0.7925116

Sources

Statistics guide v4 (historical):
R: Executed successfully in the validation environment
Reference's record:
Edition 2 review: Python: executed · R: not executed (Rscript unavailable). Python: Ran in the reference's review, on this exact code. R: Reviewed but not run: R wasn't available to the reference's authors.

From the CodeSplash statistics guide (v4), entry 106, updated from the reference's edition 2 (reviewed 14 November 2026) as STAT106.