Normality tests: Shapiro-Wilk and friends

Analytika TeamLast reviewed 6 min read

t-tests, ANOVA and linear regression assume normally distributed residuals, so checking normality is routine. But normality tests are widely misused: run on the wrong data, read too literally, or used as the only check.

The common tests

  • Shapiro-Wilk: the most widely recommended, with good power across many kinds of non-normality. It’s the default in SPSS (Explore) and R (shapiro.test).
  • D’Agostino-Pearson (omnibus K²): combines skewness and kurtosis. Works well with moderate to large samples.
  • Kolmogorov-Smirnov / Lilliefors: older and generally less powerful. Reported by SPSS alongside Shapiro-Wilk.

All test H₀: “the data come from a normal distribution”. p < α is evidence against normality. p ≥ α means no evidence against it, which is not proof that the data are normal.

The sample-size problem

  • Small samples (say 10 per group): the test has little power, so it often passes data that are clearly skewed. This is exactly where a skewed distribution would hurt a t-test most.
  • Large samples (hundreds or more): the test detects tiny, harmless departures and flags them as significant, although the t-test would be fine thanks to the central limit theorem.

So a normality test answers “is this exactly normal?”, while what you need to know is “is this normal enough for my test?”. Plots and judgement fill the gap.

Test the right thing

AnalysisCheck normality of
Independent t-test, ANOVAValues within each group (the residuals), not the pooled outcome
Paired t-testThe differences, not each column separately
Linear regressionThe residuals, not the outcome or predictors

A pooled outcome can look non-normal simply because the groups differ, which is the effect you’re testing for, not a violation.

Real examples

  • ToothGrowth (30 guinea pigs per supplement): Shapiro-Wilk on the orange juice group alone gives p = .024, which fails at .05. But the residuals from both groups together (each value minus its group mean, divided by its group SD) give p = .224, and with 30 per group the t-test is robust to mild departures. See the independent t-test lesson.
  • Base-running times (22 players, two methods): the paired differences are strongly skewed (skewness −1.52, Shapiro-Wilk p = .003). That’s a clear failure, and the Wilcoxon signed-rank test is the right choice.

Visual checks

  • Histogram: look for one peak, rough symmetry and no long tail. Unreliable with very small samples.
  • Q-Q plot: plots your data’s quantiles against those expected from a normal distribution. Points on the diagonal line mean normal. A curve means skew, and an S-shape means heavy or light tails. It’s the most informative single check.
  • Skewness: values within about ±1 are rarely a problem for t-tests or ANOVA with moderate samples. See skewness.

How Analytika checks normality

For group comparisons, Analytika runs one test on the pooled, group-standardised residuals (one test, so no multiple-testing inflation, and unequal group spreads can’t masquerade as non-normality). For paired designs it tests the differences. It uses Shapiro-Wilk below 20 observations and D’Agostino-Pearson from 20 up. It applies α = .01 rather than .05, so it switches to a rank-based test on strong evidence of non-normality, not on the borderline results that normality tests produce so often.

Reporting

Shapiro-Wilk tests and Q-Q plots indicated that the paired differences were not normally distributed (W = 0.85, p = .003), so a Wilcoxon signed-rank test was used.

(Report the test you actually ran, with its statistic, and say what you did as a result.)

More in Choosing a test

Try it with the free tools

Run this on your own data

Upload a dataset and ask your question in plain English. Analytika checks the assumptions, picks the test, runs it, and writes the results up in APA format.

Try it free