ADescribe · Guide test 106
D’Agostino–Pearson omnibus test
Combines transformed sample skewness and kurtosis to detect nonnormality.
Do it in CodeSplash
In the app, set it up in Analyze with one of these methods:
- Normality tests (battery) — Is a numeric variable (or each group of it) plausibly normal — by tests and by shape?
- Normality test (one test) — Is a numeric variable (or each group of it) plausibly normally distributed?
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
Sinh–arcsinh shape: 0 is symmetric.
Below 1: heavier tails than normal; 1 with ε = 0 is exactly normal.
Your data
Drag a point or use ↑/↓ to change itIf H₀ were true
- The reference: how K² varies across samples when H₀ is true.
- Your statistic, from the data above.
- The p-value: the area at least as extreme as yours (p = .271).
- The hatched rejection region at α = .050: statistics landing here reject H₀.
The formula
With your numbers
- D'Agostino's normalized skewness
- 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 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
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.
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))
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
- SciPy D’Agostino–Pearson testdocs.scipy.org
- scipy.stats.normaltestdocs.scipy.org
- agostino.testsearch.r-project.org
- anscombe.testsearch.r-project.org
- 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.