Normality test (Shapiro–Wilk and D’Agostino–Pearson)
Many common tests (t tests, ANOVA, Pearson correlation) assume the data come from a normal distribution. A normality test checks whether that assumption is reasonable. DATAJIN runs two well-established tests on every selected column: Shapiro–Wilk, which is the most powerful general-purpose test for small and medium samples, and D’Agostino–Pearson, which is based on skewness and kurtosis.
No sign-up, nothing to install. Calculations run in your browser; the worksheets, results and charts you create are stored by AI Walay to improve DATAJIN.
When to use it
- Before choosing between a t test and a Mann–Whitney or Wilcoxon test.
- Before running ANOVA, to decide whether Kruskal–Wallis is the safer choice.
- When checking regression residuals or any measurement you will summarise with a mean.
Assumptions
- Observations are independent.
- Each column is tested on its own; test each group separately, not the pooled data.
- With very small samples (fewer than about 8 values) every normality test has little power.
How to run it in DATAJIN
- Put each group or variable in its own column on the Data tab.
- Open Analyze and choose Normality tests.
- Select the columns to test and click Run.
Example: open the Iris flower dataset (sepal and petal measurements of 150 iris flowers) and follow the steps above.
What you get
- Shapiro–Wilk W statistic and p-value
- D'Agostino–Pearson K² statistic and p-value
- Whether Shapiro–Wilk rejects normality at the 0.05 level for each column
How to interpret the result
The null hypothesis is that the data are normally distributed. A p-value above 0.05 means the test found no evidence against normality, not proof of it. A p-value below 0.05 suggests the data are not normal. With large samples tiny, harmless deviations become significant, so also look at a histogram or box plot before switching tests.
Frequently asked questions
What p-value means my data are normal?
A p-value greater than 0.05 means the test did not detect a departure from normality, so a test that assumes normality is usually reasonable. It does not prove the data are exactly normal.
Shapiro–Wilk or D’Agostino–Pearson: which should I report?
Shapiro–Wilk is the usual choice and has the best power for most sample sizes. D’Agostino–Pearson is useful with larger samples and tells you the departure comes from skewness or kurtosis. If they disagree, look at the histogram.
My data are not normal. What now?
Use the nonparametric alternative: Mann–Whitney instead of an unpaired t test, Wilcoxon instead of a paired t test, Kruskal–Wallis instead of one-way ANOVA and Spearman instead of Pearson correlation.