ADescribe · Guide test 112
D’Agostino skewness test
Tests whether sample skewness is compatible with a normal population.
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 skewness.
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 skewness test
Sinh–arcsinh shape: 0 is symmetric.
Below 1: heavier tails than normal; 1 with ε = 0 is exactly normal.
Alternative
Your data
Drag a point or use ↑/↓ to change itIf H₀ were true
- The reference: how z 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 = .183).
- The hatched rejection region at α = .050: statistics landing here reject H₀.
The formula
With your numbers
- sample skewness
- constants that make z close to N(0, 1)
The verdict
√b₁ = 0.47, z = 1.33, p = .183
p > α = .050: compatible with H₀
Directional: a positive z means a right tail. Use it with the kurtosis test to see which way the data are non-normal.
- Statistic
- 1.331
- p-value
- 0.1832
D’Agostino skewness test on Sample: n = 40: √b₁ = 0.47, z = 1.33, p = .183. The p-value is above α = .050, so the data are compatible with H₀.
Question and hypotheses
H0: normal-population skewness; the test targets asymmetry.
Assumptions
Independent observations and the normal null for calibration; n≥8 for the usual transformation.
Formula
Parameters and notation
g1=m3/m2³ᐟ²; β=3(n²+27n−70)(n+1)(n+3)/[(n−2)(n+5)(n+7)(n+9)]; W²=−1+√[2(β−1)]; δ=[½log(W²)]⁻¹ᐟ²; a=√[2/(W²−1)].
Structure of the method
Compute central second and third moments, form standardized sample skewness, and apply a sample-size-dependent normalizing transformation. The resulting Z score is compared with a standard normal reference for the prespecified direction of skewness departure.
Estimated and nuisance parameters
Sample location and central moments are estimated to remove location/scale effects. The transformation constants are deterministic functions of n, not fitted shape parameters or adjustable weights.
Settings and design choices
Choose one-sided versus two-sided alternative before inspecting the sign, and require the documented minimum sample size. Missing-value and moment conventions must match the implementation; multiple features need an explicit multiplicity policy.
Fitting and adaptation
Recompute moments and the transformation for every dataset. For finite-sample verification, generate normal samples of the same size and rerun the complete procedure. Testing a general zero-skewness null outside normality requires a different variance theory or validated resampling; changing calibration is not fine-tuning the original normal-null test.
Sensitivity and robustness
A few extreme values can dominate the third moment. Symmetric heavy-tailed and multimodal distributions can have zero skewness and escape this targeted test. Dependence and selection of variables after viewing skewness invalidate simple nominal interpretation; inspect scale and tail behavior separately.
How to use and calibrate
Use the approximate standard normal distribution; two sided p=2Φ(−|Z|).
Example application
Determine whether observed asymmetry is unusually large under a normal model.
Interpretation and pitfalls
Watch out
A zero skewness distribution need not be normal. Calibrating this as a universal test of zero skewness requires another variance estimator.
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
Normality is assessed for independent observations. For model diagnostics, test residual assumptions in context; do not automatically choose a downstream test based on a preliminary normality p-value.
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.skewtest(x))
Output
SkewtestResult(statistic=np.float64(1.8675920470972924), pvalue=np.float64(0.061818955798924685))
Validated — Executed successfully in the validation environment · needs moments
set.seed(2026)
x <- rnorm(60)
print(moments::agostino.test(x))
Output
D'Agostino skewness test data: x skew = -0.071373, z = -0.247864, p-value = 0.8042 alternative hypothesis: data have a skewness
Sources
- SciPy — SciPy · skewtestdocs.scipy.org
- scipy.stats.skewtestdocs.scipy.org
- agostino.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 112, updated from the reference's edition 2 (reviewed 14 November 2026) as STAT112.