Jugami › Statistics and Probability › Averages: Mean, Median and Mode
Statistics · Unit 1
Averages: Mean, Median and Mode
“The average” sounds like one number. It is really several different ideas, and picking the wrong one can tell the wrong story.
In this unit you'll learn the mean, median and mode, how to use a weighted mean, how outliers and skew pull averages around, when each average misleads, and why an average alone is never the whole story.
Nightingale's averages: the chart that changed hospitals
In the winter of 1854–55, the British army fighting in the Crimean War was losing men at a terrible rate. Florence Nightingale, who had arrived at the army hospital at Scutari in November 1854 with 38 nurses, wanted to know why. With her colleagues she gathered monthly counts of deaths and sorted them by cause: disease, wounds, or other causes.
Raw counts can fool you, because the army's size changed every month. So Nightingale used averages: the average number of soldiers in the army that month, and a rate, the deaths per 1,000 soldiers per year. A rate is a kind of mean, “deaths per soldier”, scaled up so it's easy to read. The numbers were grim. In January 1855 alone, 2,761 soldiers died of disease, 83 of wounds, and 324 of other causes, out of an army of about 32,393. That disease death rate works out to about 1,023 per 1,000 soldiers per year. In other words, if that month's pace had lasted a whole year, disease alone would have killed more men than the army had.
To make people see the pattern, Nightingale drew a rose diagram, which she called a “coxcomb”. Each month is a wedge. The area of each colored piece, measured from the center, shows the death rate for one cause. The three colored wedges all start at the center and overlap, with the smaller ones drawn on top; they are not stacked end to end, so you don't add their lengths. The blue disease wedges dwarf everything else.
What changed? A government Sanitary Commission reached the war zone in March 1855 and began cleaning up drains, water and ventilation. In her figures, disease deaths in the second year (3,319) were less than a third of the first year's (11,157). Nightingale used charts like this one in reports published in 1858 and 1859 to argue for clean, well-run hospitals.
See Nightingale's monthly numbers as a table
| Month | Average army size | Disease | Wounds | Other | Disease rate per 1,000 per year |
|---|---|---|---|---|---|
| Apr 1854 | 8,571 | 1 | 0 | 5 | 1.4 |
| May 1854 | 23,333 | 12 | 0 | 9 | 6.2 |
| Jun 1854 | 28,333 | 11 | 0 | 6 | 4.7 |
| Jul 1854 | 28,722 | 359 | 0 | 23 | 150.0 |
| Aug 1854 | 30,246 | 828 | 1 | 30 | 328.5 |
| Sep 1854 | 30,290 | 788 | 81 | 70 | 312.2 |
| Oct 1854 | 30,643 | 503 | 132 | 128 | 197.0 |
| Nov 1854 | 29,736 | 844 | 287 | 106 | 340.6 |
| Dec 1854 | 32,779 | 1,725 | 114 | 131 | 631.5 |
| Jan 1855 | 32,393 | 2,761 | 83 | 324 | 1,022.8 |
| Feb 1855 | 30,919 | 2,120 | 42 | 361 | 822.8 |
| Mar 1855 | 30,107 | 1,205 | 32 | 172 | 480.3 |
| Apr 1855 | 32,252 | 477 | 48 | 57 | 177.5 |
| May 1855 | 35,473 | 508 | 49 | 37 | 171.8 |
| Jun 1855 | 38,863 | 802 | 209 | 31 | 247.6 |
| Jul 1855 | 42,647 | 382 | 134 | 33 | 107.5 |
| Aug 1855 | 44,614 | 483 | 164 | 25 | 129.9 |
| Sep 1855 | 47,751 | 189 | 276 | 20 | 47.5 |
| Oct 1855 | 46,852 | 128 | 53 | 18 | 32.8 |
| Nov 1855 | 37,853 | 178 | 33 | 32 | 56.4 |
| Dec 1855 | 43,217 | 91 | 18 | 28 | 25.3 |
| Jan 1856 | 44,212 | 42 | 2 | 48 | 11.4 |
| Feb 1856 | 43,485 | 24 | 0 | 19 | 6.6 |
| Mar 1856 | 46,140 | 15 | 0 | 35 | 3.9 |
| Total | – | 14,476 | 1,758 | 1,748 | – |
Why do the wedges use area? If you doubled a wedge's radius, its area would be four times as big, and your eye would read it as four times as bad. Nightingale's wedges keep area proportional to the rate, so the radius grows with the square root. Try the “radius” button to see the exaggeration.
Mean, median and mode
A measure of center is one number that sums up a “typical” value.
- The mean is the balance point: add the values and divide by how many there are.
- The median is the middle value once the data are in order. With an even number of values, it's the mean of the two middle values.
- The mode is the most common value. A data set can have no mode, or more than one.
Mean as a balance point. Picture the values as equal weights on a ruler. The mean is where the ruler balances. Values far from the mean have more leverage, which is why one far-off value can move it a lot.
Mode for categories. The mode is the only one of the three that works for categorical data. You can say the most common favorite sport is soccer, but there's no “mean sport”.
Worked example: all three at once
Eight students reported how many books they read over the summer: 0, 1, 2, 2, 2, 3, 5, 9. (Made-up data.)
- Mean: 0 + 1 + 2 + 2 + 2 + 3 + 5 + 9 = 24, and 24 ÷ 8 = 3 books.
- Median: n = 8 is even, so average the 4th and 5th values: (2 + 2) ÷ 2 = 2 books.
- Mode: 2 appears three times, more than any other value, so the mode is 2 books.
The mean is higher than the median because of the student who read 9 books, a long tail on the right.
Weighted mean
In an ordinary mean, every value counts the same. In a weighted mean, some values count more than others.
Worked example: a course grade
Homework counts 20%, tests 50% and the final exam 30%. A student averages 90 on homework, 78 on tests and 84 on the final.
- Multiply each score by its weight: 0.20 × 90 = 18, 0.50 × 78 = 39, 0.30 × 84 = 25.2.
- Add: 18 + 39 + 25.2 = 82.2. The weights already add to 1 (100%), so there's nothing more to divide by.
- The grade is 82.2. The plain mean of 90, 78 and 84 would be 84, which is too high, because the weaker test scores count the most.
Worked example: the mean of means trap
Class A has 10 students with a mean score of 90. Class B has 30 students with a mean score of 70. What is the mean for all 40 students?
- It is not (90 + 70) ÷ 2 = 80. That would treat a class of 10 the same as a class of 30.
- Find the totals: 10 × 90 = 900 points and 30 × 70 = 2,100 points.
- All 40 students: (900 + 2,100) ÷ 40 = 3,000 ÷ 40 = 75.
This is a weighted mean of 90 and 70 with weights 10 and 30. Whenever you combine averages from groups of different sizes, weight them by the group sizes. (Made-up data.)
Outliers and skew
An outlier is a value far from the rest. A distribution is skewed when one tail stretches out farther than the other. Both pull the mean toward them, while the median hardly moves.
Worked example: one big salary
Five people at a small shop earn (in thousands of dollars) 40, 45, 50, 55, 60. The mean is 250 ÷ 5 = 50 and the median is 50.
Now the owner, who earns 1,000, joins the list: 40, 45, 50, 55, 60, 1000.
- Mean: (250 + 1000) ÷ 6 = 1250 ÷ 6 ≈ 208.3 thousand.
- Median: the two middle values are 50 and 55, so the median is (50 + 55) ÷ 2 = 52.5 thousand.
One extreme value dragged the mean far up, but the median barely moved. We say the median is resistant to outliers and the mean is not. (These numbers are made up for practice.)
When you describe a distribution, use SOCS: Shape, Outliers, Center, Spread, always in context. For example: “The waiting times are skewed right with one outlier at 45 minutes; the median is 6 minutes and the IQR is 5 minutes.”
Rule of thumb: for skewed data or data with outliers, report the median and IQR. For roughly symmetric data without outliers, the mean and standard deviation work well.
When averages mislead
The mean misleads when the data are skewed or have outliers. A few huge incomes can make the mean income higher than what most people earn. That's why news reports on incomes and house prices usually give the median.
The median misleads when the size of the extremes matters. If you're budgeting for a whole group, the total cost is n × mean, not n × median. The median also ignores everything except the middle: 1, 2, 3, 4, 100 and 1, 2, 3, 4, 5 have the same median, 3.
The mode misleads with numbers that rarely repeat. In 12, 15, 17, 40, 40, the mode is 40, which is not typical at all. With many different values there may be no mode, or several.
Any average misleads without a sense of spread. Two classes can both average 75 on a test, one with every score between 70 and 80 and one with half the class failing. “The river is 3 feet deep on average” doesn't mean you can wade across.
A good habit: when someone says “the average”, ask which average, of whom, and how spread out the values are.
A first look at spread
An average tells you the center. Spread tells you how much the values vary around it. The data 70, 70, 70 and 50, 70, 90 both have mean and median 70, but they are very different.
- Range = maximum − minimum. Easy, but it depends only on the two most extreme values.
- Quartiles cut the ordered data into quarters. Q1 is the median of the lower half and Q3 is the median of the upper half. (We leave the overall median out of both halves when n is odd. Some calculators use slightly different rules, so their answers can differ a little.)
- Interquartile range IQR = Q3 − Q1, the spread of the middle half of the data. It's resistant to outliers.
- Standard deviation measures the typical distance of values from the mean.
Worked example: is it really an outlier? The 1.5 × IQR rule
Data (n = 9): 3, 5, 7, 8, 12, 13, 14, 18, 21.
- The median is the 5th value: 12.
- Lower half 3, 5, 7, 8 → Q1 = (5 + 7) ÷ 2 = 6. Upper half 13, 14, 18, 21 → Q3 = (14 + 18) ÷ 2 = 16.
- IQR = 16 − 6 = 10.
- Outlier fences: Q1 − 1.5 × IQR = 6 − 15 = −9 and Q3 + 1.5 × IQR = 16 + 15 = 31. Nothing is below −9 or above 31, so there are no outliers.
You'll learn to compute a standard deviation by hand in a later unit. For now, think of it as roughly “how far a typical value is from the mean”. The explorer below calculates it for you.
Explorer: dot plot and box plot
Common mistakes
Forgetting to sort before finding the median. The median of 9, 2, 7 is 7 (sorted: 2, 7, 9), not 2.
Expecting the median to be a data value. For 3, 5, 8, 10 the median is (5 + 8) ÷ 2 = 6.5, which isn't in the list.
Averaging averages from different-sized groups. Weight each group's mean by its size, as in the Class A and Class B example.
Dropping zeros. A zero is a real value. The mean of 0, 4, 8 is 12 ÷ 3 = 4, not 12 ÷ 2 = 6.
Practice
People behind the ideas
1820 Florence Nightingale is born in Florence, Italy, on 12 May.
1854 She arrives at Scutari on 4 November with 38 nurses.
1855 The Sanitary Commission arrives in March; disease deaths fall sharply over the following year.
1858 Her “Notes on Matters Affecting the Health, Efficiency and Hospital Administration of the British Army” includes her mortality diagrams.
1858 She becomes the first woman member of the Statistical Society of London (now the Royal Statistical Society).
1859 Her “A Contribution to the Sanitary History of the British Army during the Late War with Russia” is published, also illustrated with tables and diagrams.
1874 She becomes an honorary member of the American Statistical Association.
1907 She becomes the first woman appointed to the Order of Merit.
1910 She dies in London on 13 August.
Quiz
Seven questions. Pick an answer for each, then check.
Talk about it
- A news story says “the average home price rose by $40,000.” Which average would you want it to use, and why?
- Nightingale showed death rates, not just counts. Why would counts have been misleading when the army's size kept changing?
- Your teacher offers to drop everyone's lowest quiz score. Which usually changes more, the mean or the median? Why?
- Think of a time someone used “average” to make a point. Was it the mean, the median or the mode, and did it tell the whole story?
Sources
- MacTutor History of Mathematics, Florence Nightingale biography: dates, Scutari, coxcombs, honors.
- HistData / Rdatasets, Nightingale data documentation: monthly deaths and army size, rate formula, Sanitary Commission in March 1855; data from Pearson and Short (2007), Understanding Uncertainty.
- Wikipedia, Florence Nightingale: background on her life and work.
- Royal Statistical Society, Nightingale 2020: the bicentenary of our first female fellow: joined the Statistical Society of London in 1858.
- Britannica, Order of Merit: first woman to receive the honor, 1907.
- The London Gazette, issue 28084, 29 November 1907, page 8331 (PDF): her appointment to the Order of Merit.
- The Huntington Library, catalog record for A Contribution to the Sanitary History of the British Army (1859): “illustrated with tables and diagrams”.
Credits: all diagrams are original SVG drawn for Jugami. The interactive rose is redrawn from the HistData numbers, not copied from Nightingale's printed plate. Practice data sets and worked-example numbers are made up unless a source is given.