Skip to content

ADescribe · Guide test 112

D’Agostino skewness test

Tests whether sample skewness is compatible with a normal population.

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 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

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

Alternative

Your data

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

If H₀ were true

z = 1.33
  1. The reference: how z 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 = .183).
  4. The hatched rejection region at α = .050: statistics landing here reject H₀.

The formula

z=δ ln⁡ ⁣(Yα+Y2α2+1),Y=b1(n+1)(n+3)6(n−2)z = \delta\,\ln\!\left(\dfrac{Y}{\alpha}+\sqrt{\dfrac{Y^2}{\alpha^2}+1}\right),\quad Y = \sqrt{b_1}\sqrt{\dfrac{(n+1)(n+3)}{6(n-2)}}

With your numbers

b1=0.47,z=1.33\sqrt{b_1} = 0.47,\quad z = 1.33
b1\sqrt{b_1}
sample skewness
δ, α\delta,\ \alpha
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: √b1 = 0.47, z = 1.33, p = .183. The p-value is above α = .050, so the data are compatible with H0.

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

Y=g1(n+1)(n+3)6(n−2)Z=δasinh⁡(Y/a)\begin{gathered}Y=g_1\sqrt{\frac{(n+1)(n+3)}{6(n-2)}}\\[5pt] Z=\delta\operatorname{asinh}(Y/a)\end{gathered}

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.

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.skewtest(x))
Output
SkewtestResult(statistic=np.float64(1.8675920470972924), pvalue=np.float64(0.061818955798924685))
R

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

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.