Shapiro-Wilk Test: A Complete Guide for Testing Normality in Research
In research and data analysis, many statistical methods assume that the data follows a normal distribution. Before applying such methods, it is crucial to test whether your data is normally distributed. One of the most powerful and widely recommended tools for this purpose is the Shapiro-Wilk Test.
In this article, we will explain what the Shapiro-Wilk Test is, when to use it, how to interpret its results, and why it is considered one of the best methods for assessing normality.
What Is the Shapiro-Wilk Test?
The Shapiro-Wilk Test is a statistical test used to determine whether a sample comes from a normally distributed population. Introduced by Samuel Shapiro and Martin Wilk in 1965, the test is particularly effective for small to medium-sized datasets.
The Shapiro-Wilk Test evaluates the null hypothesis:
- H₀ (Null Hypothesis): The data are normally distributed.
- H₁ (Alternative Hypothesis): The data are not normally distributed.
A significant result (typically p < 0.05) suggests that the data deviate from normality.

Why Is Testing for Normality Important?
Many statistical techniques, such as t-tests, ANOVA, and regression analysis, assume that the underlying data are normally distributed. Violating this assumption can lead to incorrect conclusions.
Testing for normality helps researchers:
- Choose the correct statistical tests (parametric vs. non-parametric)
- Ensure the validity of inferential statistics
- Make informed decisions during data analysis
By applying the Shapiro-Wilk Test early in the research process, you can safeguard the integrity of your results.
When Should You Use the Shapiro-Wilk Test?
The Shapiro-Wilk Test is ideal in the following situations:
- Sample Size: Suitable for small to moderate samples (n < 2000).
- Data Type: Continuous data (e.g., height, weight, scores).
- Research Stage: Before conducting parametric tests that assume normality.
If you are working with very large samples (n > 2000), other tests like the Kolmogorov-Smirnov Test may be considered, although Shapiro-Wilk remains highly sensitive and preferred in many cases.
How Does the Shapiro-Wilk Test Work?
The Shapiro-Wilk Test measures how well the ordered sample values match the expected values from a normal distribution. It computes a test statistic (W) that indicates the level of normality:
- W ≈ 1: Data are approximately normally distributed.
- W significantly < 1: Data deviate from normality.
The associated p-value determines the significance of the result.
How to Perform the Shapiro-Wilk Test
The Shapiro-Wilk Test can be conducted in various statistical software, including SPSS, R, Python, and Excel.
Here is a basic overview of how to run the Shapiro-Wilk Test:
Steps in SPSS
- Open your dataset in SPSS.
- Click on Analyze > Descriptive Statistics > Explore.
- Move the variable(s) you want to test into the Dependent List box.
- Under Plots, select Normality plots with tests.
- Click OK.
SPSS will output the Shapiro-Wilk Test results, including the W statistic and the p-value.
Interpreting the Results
- If p > 0.05: Fail to reject the null hypothesis. Data are normally distributed.
- If p < 0.05: Reject the null hypothesis. Data are not normally distributed.
It is important not to rely solely on the p-value. Always complement the Shapiro-Wilk Test with visual methods such as:
- Histograms
- Q-Q plots
- Boxplots
Example of Shapiro-Wilk Test Interpretation
Suppose you run the Shapiro-Wilk Test on a sample of exam scores and get the following result:
- W = 0.978
- p = 0.082
Since p > 0.05, you do not reject the null hypothesis. Therefore, you conclude that the exam scores are normally distributed.
On the other hand, if you obtained:
- W = 0.912
- p = 0.004
Since p < 0.05, you would reject the null hypothesis and conclude that the exam scores are not normally distributed.
Advantages of the Shapiro-Wilk Test
The Shapiro-Wilk Test offers several advantages over other normality tests:
- High Power: It is highly sensitive to detecting departures from normality.
- Effective for Small Samples: Performs better with small datasets compared to tests like Kolmogorov-Smirnov.
- Widely Accepted: Recommended in research guidelines for testing normality.
Because of these strengths, the Shapiro-Wilk Test is often considered the gold standard for normality testing.
Limitations of the Shapiro-Wilk Test
Despite its advantages, the Shapiro-Wilk Test has some limitations:
- Sample Size Sensitivity: With large samples, minor deviations from normality may produce significant results even if the deviations are not practically important.
- Influence of Outliers: Extreme values can affect the results, making it important to examine data visually alongside testing.
Researchers should interpret the Shapiro-Wilk Test carefully, considering both the statistical output and the practical significance of deviations from normality.
FAQs About the Shapiro-Wilk Test
What if the Shapiro-Wilk Test indicates non-normality?
If the data are not normally distributed, you can:
- Use non-parametric tests (e.g., Mann-Whitney U Test, Kruskal-Wallis Test)
- Transform the data (e.g., log transformation, square root transformation)
- Use robust statistical methods that do not assume normality
Is the Shapiro-Wilk Test suitable for categorical data?
No. The Shapiro-Wilk Test is intended for continuous data. For categorical data, normality is not a relevant assumption.
How many data points are needed for the Shapiro-Wilk Test?
The test can be applied to samples as small as 3 observations, but it is most reliable with at least 20 to 50 cases.
Does the Shapiro-Wilk Test require any special software?
Most major statistical software packages, such as SPSS, R, Stata, and Python (using scipy.stats.shapiro), provide built-in functions to perform the Shapiro-Wilk Test easily.
Conclusion
- The Shapiro-Wilk Test is a powerful and essential tool for assessing the normality of your data. Understanding when and how to use it can help ensure the validity of your statistical analyses.
- While it is highly sensitive and reliable, researchers should also use graphical methods and practical judgment when evaluating data normality.
- By incorporating both statistical tests and visual inspections, you can make more informed decisions and strengthen the credibility of your research findings.