An investigation into how outliers and skew push a summary number around
Companion to Chapter 3, Describing Data.
Working guidelines
Estimated time: 30–40 minutes
Work with your partner — say your prediction out loud before you move anything.
Your typed answers are saved automatically in this browser.
When finished, use Print (Ctrl+P / Cmd+P) → “Save as PDF” to submit.
No R and no math by hand — the tool computes everything. Your job is to explain why.
0% Complete
Learning objectives
By the end of this module you will be able to:
Predict how the mean, median, standard deviation, and IQR each respond when one value is dragged to an extreme.
Explain why the median and IQR are called resistant (robust) and the mean and SD are not.
Infer the direction of skew from the gap between the mean and the median.
Choose whether to report the mean with SD or the median with IQR for a given distribution, and justify it from the shape.
The setup
Fifteen students each reported how many minutes they spent on last night's assigned reading. Each dot below is one student. The tool shows, live:
the mean (blue line) and median (green dashed line),
the IQR as a shaded green band (the middle 50% of the data),
a panel of summary numbers.
You can drag any dot left or right. The slider moves one highlighted student (the one furthest right to start). The preset buttons load three differently shaped datasets.
Step 1: Predict first
Before you touch the tool, commit to an answer with your partner.
1a. You take a normal-looking dataset and drag one student's reading time from 21 minutes out to 90 minutes. What happens to the mean?
1b. Same move. What happens to the median?
1c. Same move. What happens to the SD and the IQR?
1d. In one sentence: which single number do you expect an outlier to distort the most, and why?
Step 2: Meet the sandbox
Drag any dot. The orange dot is the one the slider controls — click any other dot to hand the slider to it.
21 min
n
15
Mean
––
Median
––
SD
––
IQR
––
Range
––
Q2. With the Symmetric preset loaded and untouched, read off the mean and the median. How close are they? What does that tell you about the shape?
Step 3: Move one student
Load the Symmetric preset. The highlighted (orange) student starts at 21 minutes. Use the slider to set that one student to each value below, and record what the panel shows. Nothing else changes — only that one student moves.
Highlighted student =
Mean
Median
SD
IQR
21 min
40 min
60 min
90 min
Q3a. Two of the four numbers did not change at all across every row. Which two, and why does moving one extreme value leave them untouched?
Q3b. The other two numbers grew steadily. Explain, in terms of how each is calculated, why a single far-away value drags them.
Q3c. A statistician calls the median and the IQR resistant. Based on this table, write your own one-sentence definition of a resistant statistic.
Step 4: The mean–median gap tells you the shape
Load each preset in turn. Record the mean, the median, and the gap the tool reports, then describe the shape of the dot cloud in your own words.
Preset
Mean
Median
Gap (mean − median)
Shape of the dots (your words)
Symmetric
Right-skewed
Left-skewed
Q4a. When the mean is above the median, which way does the long tail point — toward the high values or the low values? When the mean is below the median?
Q4b. A colleague reports that a set of exam scores has a mean of 71 and a median of 78, and no plot. Without seeing the data, what do you already know about its shape, and which few students are responsible?
Q4c. The Right-skewed and Left-skewed presets have the same SD and the same IQR. What does that tell you about what spread alone can and cannot tell you about a distribution?
Step 5: Which summary would you report?
For each situation, choose mean + SD or median + IQR, and give your reason in one sentence. You can rebuild each rough shape in the sandbox if it helps.
5a. Annual household income for the 60 households on one street. A few residents are company executives; most are not.
5b. Resting heart rate (beats per minute) for 200 healthy adults. The histogram is a single symmetric hump.
5c. Scores on a 20-point quiz where most students scored 17–20 and four students scored 3–7.
Step 6: Reveal
What the sandbox was showing you
The mean is a balance point; the median is a position. The mean is the value where the dots would balance on a see-saw, so moving one dot far to the right tips the whole beam — every value enters the calculation, weighted by how far it sits from the center. The median is just “the 8th student when you line all 15 up in order.” Sliding the largest value from 21 to 90 never changes who is 8th in line, so the median does not move. Same logic for spread: the SD is built from every squared distance to the mean, so a far value inflates it fast; the IQR is the gap between the 25th and 75th percentile — two positions in the line — so the extremes never touch it.
Resistant = an extreme value barely moves it. The median and IQR are resistant (some texts say “robust”). The mean and SD are not. This is not a flaw in the mean — when the data really are symmetric and outlier-free, the mean and SD use more of the information and are the better choice. It is a reason to look at the shape first.
Mean vs. median tells you the skew:
mean above median → the long tail points right (a few unusually high values) → right-skewed;
mean below median → the long tail points left (a few unusually low values) → left-skewed;
mean ≈ median → roughly symmetric.
The mean is the one that gets dragged toward the tail, so it ends up on the tail side of the median. A mean of 71 with a median of 78 (Q4b) is left-skewed: a handful of low-scoring students pulled the mean down while the median — the middle student — stayed put.
Spread alone does not pin down a shape. The right- and left-skewed presets are mirror images: identical SD, identical IQR, opposite skew. Two distributions can share every spread number and still look nothing alike. That is why Chapter 3 asks for a histogram and a boxplot and a table, not a table alone.
The one-line takeaway: the median and IQR describe the bulk of the data no matter what the extremes do; the mean and SD describe a balance that every value gets a vote in. Report the pair that matches the shape — and decide which shape you have by looking, not by guessing.
Model answers for Step 5
5a — Median + IQR. Income is almost always right-skewed; the few executive salaries pull the mean well above what a typical household earns. The median is the honest “typical” figure.
5b — Mean + SD. A single symmetric hump with no outliers is exactly the case the mean and SD were built for, and they carry more information than the median and IQR here.
5c — Median + IQR. The four low scores make this left-skewed. The mean would sit below where most students actually scored; the median (somewhere in the high teens) describes the group better. Reporting the mean here without also showing the shape would understate typical performance.
Step 7: Reflection
R1. Which of your Step 1 predictions was wrong or only half-right? What in the sandbox changed your mind?
R2. A news article reports “the average American household has $1.06 million in retirement savings.” Using what you saw here, explain why the median would tell a very different story, and which direction it would move.
R3. Chapter 3 says to put a histogram, a boxplot, and a descriptives table on one page before running any test. After this module, what does the boxplot add that the mean and SD in the table cannot?
Key discoveries
The mean and SD use every value and its distance from center, so one extreme value distorts them; the median and IQR are positions in the sorted data, so extremes barely touch them.
“Resistant” (or “robust”) means an outlier moves the statistic very little.
Mean above median → right skew; mean below median → left skew; mean ≈ median → roughly symmetric.
Two distributions can have identical SD and IQR and still be opposite in shape — spread is not shape.
Report mean + SD for symmetric, outlier-free data; median + IQR for skewed data or data with outliers — and decide by looking at a plot.
Looking ahead
Chapter 4 (Z, t, F) — a z-score is built from the mean and SD, so it inherits their sensitivity to skew and outliers.
Chapters 10–12 (normality, transformations) — when the shape is skewed, one option is to transform the variable so the mean becomes usable again; another is to switch to a test that works on ranks.
Chapter 3's EDA page — the histogram and boxplot you will build in R are how you see the shape that the mean–median gap only hints at.
Before you submit
Both partner names filled in
Step 1 predictions answered before touching the tool
Step 3 and Step 4 tables complete
Step 5 choices made with a reason for each
Reveal opened and Step 7 reflection complete
How to submit
Click Save progress.
Print: Ctrl+P (Windows) or Cmd+P (Mac).
Choose “Save as PDF.”
Save as mean-vs-median_lastname1_lastname2.pdf and upload to the course site.
Nice work. You can now read a distribution's shape off two numbers — and you know why that is never a substitute for the plot.