The Large Sample Paradox
By the end of this module, you will:
shapiro.test() in R and read W and p from its outputHere's a puzzling situation β one you will reproduce yourself, first in the simulator below and then in R:
Two datasets come from the same population and look much alike in their histograms and Q-Q plots: roughly normal, with a mild right skew.
But when you run a Shapiro-Wilk test:
What's going on? Let's investigate this paradox!
The Shapiro-Wilk test is a statistical test that answers the question:
"Do these data come from a normal distribution?"
How it works:
Let's start with a small sample and see how the test behaves.
Now we'll generate data from the SAME distribution, just with more observations.
The simulation above is a demonstration. This is the tool you will actually use β the same
shapiro.test() from Chapter 11. Run this in Posit Cloud.
One population, two sample sizes. Both samples below are drawn from the same mildly right-skewed distribution β think reaction times, which pile up at the fast end and trail off slowly. Nothing about the population changes between the two lines. Only n changes.
Predict before you run it. Both samples come from the same skewed population. Will they give you the same verdict?
Read those two results side by side before you go on.
| Sample | W | p | Verdict at α = .05 |
|---|---|---|---|
| n = 30 | 0.968 | .480 | "Normal enough" |
| n = 5000 | 0.992 | < .001 | "Significantly non-normal" |
Look at W, not just p. W runs from 0 to 1, and closer to 1 means closer to normal. The large sample has W = 0.992 β it is closer to normal than the small sample's 0.968. Yet its p-value is smaller by roughly fifteen orders of magnitude.
The test did not find a bigger problem in the large sample. It found the same small problem with enough data to be certain about it.
Question R1: Was your prediction right? Which sample is actually further from normal, and which statistic told you β W or p?
Question R2: W is a measure of how far the data sit from normal. p answers a different question. State, in one sentence each, what question each one answers.
Question R3: A classmate reports "Shapiro-Wilk was significant (p < .001), so my data are badly non-normal and I cannot use a t-test." Their n is 4,000 and their W is 0.995. Write your reply.
Chapter 11's rule: the test is one input, never the whole decision. Pair it with the plots.
Question R4: Run those plots on rt_large. The test called it
significantly non-normal. Does the histogram look alarming? What does that tell you about
relying on the test alone?
Question 1: Record the results you observed:
Small Sample (n = 30):
Shapiro-Wilk W = , p =
Large Sample (n = 5,000):
Shapiro-Wilk W = , p =
Question 2: Compare the two histograms. Do they look different?
Question 3: Look at the Q-Q plots. Do both show points following the line?
The distributions should look very similar visually, but the p-values might be quite different. Why would a statistical test reject normality for data that looks normal?
Let's test multiple sample sizes to see the pattern clearly.
Question 4: What pattern do you see as sample size (n) increases?
Question 5: THE BIG QUESTION: Your data with n=150 looks perfectly normal in the Q-Q plot, but Shapiro-Wilk gives p = 0.03. What should you do?
Select one:
Explain your reasoning (3-4 sentences):
Statistical tests detect statistically significant deviations from normality.
Visual inspection shows practically significant deviations.
With large samples:
With small samples:
Let's test whether these "statistically significant" violations actually affect our t-tests.
Question 6: Based on the robustness test, even with n=100 per group and slightly non-normal data, the t-test maintained approximately correct Type I error rates. Why might large samples "protect" us from violations?
Hint: Think about the Central Limit Theorem
Question 7: Create a decision rule: Given a Shapiro-Wilk result and a Q-Q plot, how do you decide whether to proceed with a parametric test? Consider sample size in your answer.
Scenario: You're analyzing survey data from 500 participants. You run diagnostics:
Question 8A: What is your interpretation? Is the deviation from normality a problem?
Question 8B: Would you proceed with a t-test or ANOVA? Why or why not?
Question 8C: How would you report this in a Results section?
β Discovery 1: Statistical Significance β Practical Significance
Large samples can produce "significant" Shapiro-Wilk results for trivial deviations that don't affect your analysis.
β Discovery 2: Sample Size Matters
β Discovery 3: Visual + Statistical Together
Always use BOTH visual inspection AND statistical tests. When they disagree, sample size helps you decide which to trust.
β Discovery 4: Central Limit Theorem Protection
With large samples, the sampling distribution of means becomes normal even if raw data aren'tβthis makes t-tests robust.
| Situation | Decision |
|---|---|
| Visual OK, Shapiro OK (p > .05) |
β Proceed with parametric test |
| Visual OK, Shapiro fails (p < .05, n > 50) |
β Still use parametric (robust with large n) |
| Visual shows problems, Shapiro OK (n < 30) |
β Trust visual; test lacks power |
| Visual shows problems, Shapiro fails (any n) |
β Transform or use non-parametric |
Grading: Credit/no-credit, not scored for correctness — but credit requires a genuine attempt; blank or clearly-unattempted answers earn no credit. Work through it with your partner and say what you actually think; a wrong idea you reasoned your way to is worth more here than a right one you copied.
module3_lastname1_lastname2.pdfπ You've mastered the Shapiro-Wilk paradox! π
Next up: Module 4 will teach you what to DO when data aren't normal (transformations!)