Module 3: Statistical Tests for Normality

The Large Sample Paradox

☁️ Working Guidelines

0% Complete

🎯 Learning Objectives

By the end of this module, you will:

  1. Run shapiro.test() in R and read W and p from its output
  2. Explain why one population can pass a normality test at a small n and fail it at a large n
  3. Distinguish W (how far from normal β€” the effect size) from p (the verdict), and state which one answers "does this matter?"
  4. Justify a decision to proceed with a parametric test despite a significant Shapiro-Wilk result
  5. Write a methods statement reporting a normality check in APA style

πŸ” The Paradox

Here'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!

Part 1: Meet the Shapiro-Wilk Test

πŸ“š What is the Shapiro-Wilk Test?

The Shapiro-Wilk test is a statistical test that answers the question:

"Do these data come from a normal distribution?"

How it works:

Part 2: Experiment with Small Samples

Let's start with a small sample and see how the test behaves.

Part 3: Now Try a Large Sample

Now we'll generate data from the SAME distribution, just with more observations.

Part 3b: Now do it in R

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.

set.seed(1) rt_small <- rgamma(30, shape = 25, rate = 0.055) rt_large <- rgamma(5000, shape = 25, rate = 0.055) shapiro.test(rt_small) shapiro.test(rt_large)

Predict before you run it. Both samples come from the same skewed population. Will they give you the same verdict?

Check your output — open this after you have run the code yourself

What R actually returns

Shapiro-Wilk normality test data: rt_small W = 0.96775, p-value = 0.4797 Shapiro-Wilk normality test data: rt_large W = 0.99211, p-value = 4.726e-16

Read those two results side by side before you go on.

SampleWpVerdict at α = .05
n = 300.968.480"Normal enough"
n = 50000.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.

Always look, do not only test

Chapter 11's rule: the test is one input, never the whole decision. Pair it with the plots.

par(mfrow = c(1, 2)) # 1 row x 2 columns hist(rt_large, col = "lightblue", main = "Histogram") qqnorm(rt_large, main = "Q-Q Plot") qqline(rt_large, col = "red") par(mfrow = c(1, 1)) # reset

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?

πŸ“ Observe & Record

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?

πŸ€” Stuck? Click for a hint

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?

Part 4: The Pattern Emerges

Let's test multiple sample sizes to see the pattern clearly.

πŸ“ Discover the Pattern

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):

Part 5: Understanding Why This Happens

πŸ’‘ The Key Insight

Statistical tests detect statistically significant deviations from normality.

Visual inspection shows practically significant deviations.

With large samples:

With small samples:

Part 6: Does It Actually Matter?

Let's test whether these "statistically significant" violations actually affect our t-tests.

πŸ“ Synthesis Questions

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.

Part 7: Real-World Application

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?

🎯 Key Discoveries

What You Should Have Learned:

βœ“ 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.

πŸ“š Decision Framework

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

πŸ“‹ Before You Submit

βœ… Submission Checklist

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.

πŸ“€ How to Submit

  1. Click "Save Progress"
  2. Print: Ctrl+P (Windows) or Cmd+P (Mac)
  3. Choose "Save as PDF"
  4. Save as: module3_lastname1_lastname2.pdf
  5. Upload to your course site

πŸŽ‰ You've mastered the Shapiro-Wilk paradox! πŸŽ‰

Next up: Module 4 will teach you what to DO when data aren't normal (transformations!)