Shapiro-Wilk Test
The Shapiro-Wilk test is a hypothesis test for normality in Intro to Statistics. It checks whether your sample looks like it came from a normal distribution before you rely on methods like ANOVA.
What is the Shapiro-Wilk Test?
The Shapiro-Wilk test is a normality test you use in Intro to Statistics when you want to check whether a sample is close to a normal distribution. It is a hypothesis test, so it gives you a null hypothesis and a p-value rather than just a visual guess from a graph.
The null hypothesis says the data come from a normal distribution. If the p-value is small, usually below 0.05, you reject that null and treat the sample as not normal enough for methods that depend on normality. If the p-value is not small, you do not have strong evidence against normality, which does not prove the data are perfectly normal, just that the test did not find a problem.
The test statistic is called W. Values of W closer to 1 suggest the sample fits normality better, while smaller values suggest more departure from normal shape. That makes the test useful when you need a quick check on whether the data have the bell-shaped pattern, symmetry, and tail behavior that many procedures assume.
In a one-way ANOVA lab, this check shows up before you compare group means. For example, if you are analyzing test scores from three teaching methods, you may run Shapiro-Wilk on the response data for each group or on model residuals, depending on how your class handles the workflow. If one group is strongly skewed or has outliers, the normality assumption gets shaky.
A common mistake is thinking the test tells you whether the data are exactly normal. It does not. Like most significance tests, it is sensitive to sample size, so with a very small sample you may miss a real departure, and with a large sample you may reject normality for a tiny, harmless deviation. That is why students often pair it with a histogram or Q-Q plot instead of using it alone.
Why the Shapiro-Wilk Test matters in Intro to Statistics
The Shapiro-Wilk test matters in Intro to Statistics because a lot of inference methods rest on distribution assumptions, and ANOVA is one of the biggest examples. If you skip the normality check, you can end up trusting a p-value that is less reliable than it looks.
This comes up when you are comparing three or more group means. ANOVA is built around the idea that the data within each group are roughly normal, or that the residuals are close enough to normal for the model to work well. Shapiro-Wilk gives you a formal way to check that assumption instead of guessing from the shape of the data.
It also helps you decide what to do next. If the test suggests non-normal data, you might look for outliers, consider a transformation, or use a different method such as Kruskal-Wallis if your course has introduced it. That decision-making step is part of statistical thinking, not just calculation.
The test also sharpens your interpretation skills. A p-value below 0.05 means there is evidence against normality, not that the data are unusable. A p-value above 0.05 means you do not have evidence of a problem, not that normality has been proven. That distinction shows up a lot in quizzes and lab writeups, where the real task is explaining what the result does and does not say.
Keep studying Intro to Statistics Unit 13
Official unit cheatsheet
open one-pagerHow the Shapiro-Wilk Test connects across the course
Normal Distribution
Shapiro-Wilk is all about checking how closely a sample matches the normal distribution. In Intro to Statistics, that means looking for the bell-shaped pattern that supports many parametric methods. You are not testing whether the population is magically perfect, just whether the sample gives you reason to trust a normal model.
ANOVA (Analysis of Variance)
ANOVA often needs the normality assumption, so Shapiro-Wilk shows up right before or alongside the ANOVA procedure. If the normality check looks bad, the ANOVA p-value may be less trustworthy. That is why students often use Shapiro-Wilk as part of the setup before interpreting differences among group means.
Assumption of Normality
This is the bigger idea behind the test. Shapiro-Wilk is one way to check whether the assumption of normality seems reasonable for your data. In a stats class, this assumption usually matters most when you are using inference methods that are built around mean-based models and bell-shaped residuals.
Kruskal-Wallis Test
If Shapiro-Wilk suggests the data are not normal and the departure is serious, Kruskal-Wallis may be an alternative for comparing more than two groups. The connection is not that the tests are the same, but that they answer similar research questions under different conditions. One leans on normality, the other is often used when that assumption is doubtful.
Is the Shapiro-Wilk Test on the Intro to Statistics exam?
A quiz question might give you a Shapiro-Wilk output table and ask you to interpret the p-value. Your job is to decide whether there is enough evidence that the data are not normally distributed, then connect that result to whether ANOVA is a reasonable next step. If the p-value is small, you usually say the normality assumption looks violated or questionable. If it is not small, you say there is not enough evidence to reject normality.
On a lab or homework problem, you may also be asked to compare the test result with a histogram or Q-Q plot and explain whether the conclusion matches the visual pattern. The strongest answer names the null hypothesis, uses the p-value correctly, and avoids claiming the data are proven normal just because the test was not significant.
The Shapiro-Wilk Test vs Kolmogorov-Smirnov Test
Both are normality tests, but Shapiro-Wilk is usually the stronger choice for small samples and is often preferred in intro stats settings. Kolmogorov-Smirnov is more general and less sensitive in many normality checks, so students sometimes see both names and assume they work the same way. In practice, Shapiro-Wilk is the one you are more likely to use when checking ANOVA assumptions.
Key things to remember about the Shapiro-Wilk Test
The Shapiro-Wilk test checks whether a sample looks normally distributed in Intro to Statistics.
Its null hypothesis says the data come from a normal distribution, and a small p-value gives evidence against that idea.
The test statistic W ranges from 0 to 1, and values closer to 1 suggest the data fit normality better.
Students often use Shapiro-Wilk before ANOVA to see whether the normality assumption looks reasonable.
A non-significant result does not prove normality, it only means you did not find strong evidence of non-normality.
Frequently asked questions about the Shapiro-Wilk Test
What is Shapiro-Wilk Test in Intro to Statistics?
It is a hypothesis test used to check whether a sample is normally distributed. In Intro to Statistics, you usually see it when you are checking assumptions before using procedures like ANOVA.
How do you interpret the p-value for the Shapiro-Wilk test?
If the p-value is less than your significance level, you reject the null hypothesis of normality and treat the data as evidence against a normal distribution. If the p-value is larger, you do not reject normality, but that is not the same as proving the data are perfectly normal.
How is Shapiro-Wilk related to ANOVA?
ANOVA works best when the data in each group, or the residuals, are roughly normal. Shapiro-Wilk is one way to check that assumption before you trust the ANOVA result.
Is Shapiro-Wilk better than Kolmogorov-Smirnov for normality?
In intro stats settings, Shapiro-Wilk is often preferred because it is usually more powerful for detecting departures from normality, especially with smaller samples. That does not mean Kolmogorov-Smirnov is useless, just that Shapiro-Wilk is often the sharper tool for this job.