Mathematics · Book 2 · Grades 10–12

High School Mathematics

High School Mathematics · Grades 10–12

8Descriptive Statistics

Statistics summarizes a large collection of numbers — grades, salaries, temperatures — by a few well-chosen indicators. This chapter introduces the two families of indicators: those locating the center of the data (mean, median) and those measuring its spread (range, quartiles). A deeper treatment, including the standard deviation, comes in Chapter 17.

8.1 Data and frequencies

Definition 8.1 (Statistical series)

A statistical series is a list of values x1,x2,,xNx_1, x_2, \dots, x_N observed on a population of size NN. When a value xx appears nn times, nn is its count and the quotient

f=nNf = \frac{n}{N}

is its frequency (often expressed as a percentage). The frequencies of all values add up to 11.

Example 8.2

The grades of 2020 students on a 55-point quiz:

grade xx001122334455
count nn112244665522
frequency ff0.050.050.100.100.200.200.300.300.250.250.100.10

Check: 1+2+4+6+5+2=201 + 2 + 4 + 6 + 5 + 2 = 20 and the frequencies sum to 11.

The bar chart of the quiz grades: one bar per value, with height equal to the count.
The bar chart of the quiz grades: one bar per value, with height equal to the count.

8.2 Measures of center

Definition 8.3 (Mean)

The mean of the series is

xˉ=x1+x2++xNN.\bar x = \frac{x_1 + x_2 + \dots + x_N}{N}.

If the values v1,,vkv_1, \dots, v_k appear with counts n1,,nkn_1, \dots, n_k, the same number is computed as the weighted mean

xˉ=n1v1+n2v2++nkvkn1+n2++nk.\bar x = \frac{n_1 v_1 + n_2 v_2 + \dots + n_k v_k}{n_1 + n_2 + \dots + n_k}.

Example 8.4

For the quiz of Example 8.2:

xˉ=1×0+2×1+4×2+6×3+5×4+2×520=0+2+8+18+20+1020=5820=2.9.\bar x = \frac{1 \times 0 + 2 \times 1 + 4 \times 2 + 6 \times 3 + 5 \times 4 + 2 \times 5}{20} = \frac{0 + 2 + 8 + 18 + 20 + 10}{20} = \frac{58}{20} = 2.9 .

Definition 8.5 (Median)

The median is a value that splits the sorted series in two halves: at least half the values are \leq the median, and at least half are \geq it. In practice, sort the NN values;

  • if NN is odd, the median is the middle value, in position N+12\frac{N+1}{2};
  • if NN is even, take the midpoint of the two middle values, in positions N2\frac N2 and N2+1\frac N2 + 1.

Example 8.6

Sorted series of 77 house prices (in thousands): 120120, 150150, 160160, 180180, 210210, 240240, 900900. The median is the 44th value, 180180. The mean is 19607=280\frac{1960}{7} = 280 — larger than 66 of the 77 prices! One extreme value (900900) pulls the mean far more than the median: the median is robust, the mean is not.

8.3 Measures of spread

Definition 8.7 (Range, quartiles)

For a sorted series:

  • the range is the difference between the largest and smallest values;
  • the first quartile Q1Q_1 is the smallest value such that at least a quarter (25%25\%) of the values are Q1\leq Q_1; the third quartile Q3Q_3 is the smallest value such that at least three quarters (75%75\%) of the values are Q3\leq Q_3;
  • the interquartile range Q3Q1Q_3 - Q_1 measures the spread of the central half of the data.

Method 8.8 (Finding the quartiles)

For a series of NN sorted values:

  1. compute N4\frac N4; if it is not an integer round it up to the next integer; Q1Q_1 is the value in that position;
  2. compute 3N4\frac{3N}{4}; round up if needed; Q3Q_3 is the value in that position.

Example 8.9

Take the 1111 sorted values

2, 3, 5, 5, 6, 7, 8, 9, 9, 10, 12.2,\ 3,\ 5,\ 5,\ 6,\ 7,\ 8,\ 9,\ 9,\ 10,\ 12 .

Median: position 11+12=6\frac{11+1}{2} = 6, so the median is 77. Q1Q_1: 114=2.75\frac{11}{4} = 2.75, round up to 33; the 33rd value is 55. Q3Q_3: 334=8.25\frac{33}{4} = 8.25, round up to 99; the 99th value is 99. Range: 122=1012 - 2 = 10; interquartile range: 95=49 - 5 = 4.

The box plot of : the box spans the interquartile interval [Q_1, Q_3] and contains the central half of the data; the whiskers reach the extreme values.
The box plot of Example 8.9: the box spans the interquartile interval [Q1,Q3]\intcc{Q_1}{Q_3} and contains the central half of the data; the whiskers reach the extreme values.

Example 8.10 (Comparing two groups)

Two classes take the same test (scores out of 2020):

medianQ1Q_1Q3Q_3
class A121210101414
class B1212661717

Same median, very different spreads: class A is homogeneous (half its scores in [10,14]\intcc{10}{14}), class B is heterogeneous (its central half spans [6,17]\intcc{6}{17}). Indicators of center alone never tell the whole story.

Remark 8.11

Neither the mean nor the median is “better”: the mean uses every value (and is needed to compute totals), the median resists extreme values. A serious summary of a series gives at least one indicator of center and one of spread.

8.4 Exercises

Exercise 8.1

Here are the numbers of books read in a year by 1515 students:

0, 1, 1, 2, 2, 2, 3, 3, 4, 4, 5, 6, 7, 8, 12.0,\ 1,\ 1,\ 2,\ 2,\ 2,\ 3,\ 3,\ 4,\ 4,\ 5,\ 6,\ 7,\ 8,\ 12 .

Compute the mean, the median and the range of this series.

Solution

Solution of Exercise 8.1.

Sum: 0+1+1+2+2+2+3+3+4+4+5+6+7+8+12=600+1+1+2+2+2+3+3+4+4+5+6+7+8+12 = 60, so the mean is 6015=4\frac{60}{15} = 4. The series is already sorted and N=15N = 15 is odd: the median is the 88th value, 33. Range: 120=1212 - 0 = 12.

Exercise 8.2

A die was rolled 5050 times:

outcome112233445566
count7799881010661010

Compute the frequency of each outcome and the mean outcome.

Solution

Solution of Exercise 8.2.

Frequencies: 750=0.14\frac{7}{50} = 0.14, 950=0.18\frac{9}{50} = 0.18, 850=0.16\frac{8}{50} = 0.16, 1050=0.20\frac{10}{50} = 0.20, 650=0.12\frac{6}{50} = 0.12, 1050=0.20\frac{10}{50} = 0.20 (sum 11). Mean outcome:

xˉ=7×1+9×2+8×3+10×4+6×5+10×650=7+18+24+40+30+6050=17950=3.58.\bar x = \frac{7 \times 1 + 9 \times 2 + 8 \times 3 + 10 \times 4 + 6 \times 5 + 10 \times 6}{50} = \frac{7 + 18 + 24 + 40 + 30 + 60}{50} = \frac{179}{50} = 3.58 .

Exercise 8.3

Find the median, Q1Q_1 and Q3Q_3 of the sorted series

1, 2, 4, 4, 5, 6, 6, 7, 8, 9, 9, 11(N=12),1,\ 2,\ 4,\ 4,\ 5,\ 6,\ 6,\ 7,\ 8,\ 9,\ 9,\ 11 \qquad (N = 12),

and draw the corresponding box plot.

Solution

Solution of Exercise 8.3.

N=12N = 12 (even): the median is the midpoint of the 66th and 77th values, both equal to 66: median 66.

Q1Q_1: 124=3\frac{12}{4} = 3, so Q1Q_1 is the 33rd value: 44.

Q3Q_3: 3×124=9\frac{3 \times 12}{4} = 9, so Q3Q_3 is the 99th value: 88.

Box plot: box from 44 to 88 with the median bar at 66, whiskers from 11 to 1111.

Exercise 8.4

The mean of 2424 test scores is 11.511.5. A 2525th student takes the test and scores 1919. What is the new mean of the class?

Solution

Solution of Exercise 8.4.

The 2424 scores total 24×11.5=27624 \times 11.5 = 276. With the new score the total is 276+19=295276 + 19 = 295 for 2525 students: new mean 29525=11.8\frac{295}{25} = 11.8.

Exercise 8.5 ★★

A student has a mean of 1212 after 55 tests, all with the same weight. What score on the 66th test would raise the mean to 1313? Is a mean of 1414 reachable (scores are out of 2020)?

Solution

Solution of Exercise 8.5.

Current total: 5×12=605 \times 12 = 60. A mean of 1313 over 66 tests requires a total of 7878, so the 66th score must be 7860=1878 - 60 = 18. A mean of 1414 would require 8460=24>2084 - 60 = 24 > 20: not reachable.

Exercise 8.6 ★★

Invent a series of 77 nonnegative values whose median is 1010 and whose mean is larger than 2020; then one whose median is 1010 and whose mean is smaller than 66. Why can the mean of such a series never be smaller than 407\frac{40}{7}? What do these examples show?

Solution

Solution of Exercise 8.6.

Mean larger than 2020: for instance 1, 2, 3, 10, 40, 50, 601,\ 2,\ 3,\ 10,\ 40,\ 50,\ 60median 1010 (the 44th sorted value), mean 166723.7\frac{166}{7} \approx 23.7.

Mean smaller than 66: for instance 0, 0, 0, 10, 10, 10, 100,\ 0,\ 0,\ 10,\ 10,\ 10,\ 10median 1010, mean 4075.7\frac{40}{7} \approx 5.7.

The mean cannot go below 407\frac{40}{7}: for the median (the 44th sorted value) to be 1010, the values in positions 44 to 77 must all be 10\geq 10, so the total is at least 4040 and the mean at least 407\frac{40}{7} — the second example is extremal.

These examples show that the mean and the median are largely independent: knowing one says little about the other, which is why a good summary reports both.

Exercise 8.7 ★★

In a company, the 99 employees earn 18001800 each per month and the director earns 1200012000.

  1. Compute the mean and the median salary.
  2. Which indicator best describes a “typical” salary here? Why?
Solution

Solution of Exercise 8.7.

1. Mean: 9×1800+1200010=16200+1200010=2820\frac{9 \times 1800 + 12000}{10} = \frac{16200 + 12000}{10} = 2820. Median: sorted, the 1010 salaries are nine values 18001800 then 1200012000; the median is the midpoint of the 55th and 66th values, both 18001800: median 18001800.

2. The median (18001800) describes the typical salary: it is what 99 employees out of 1010 actually earn. The mean (28202820) is pulled up by the single high salary and matches nobody’s payslip.

Exercise 8.8 ★★

A class of 1212 boys has a mean height of 168168 cm; the 1818 girls of the same class have a mean height of 163163 cm. Compute the mean height of the whole class. (Careful: it is not the midpoint of 168168 and 163163 — weight the means by the group sizes.)

Solution

Solution of Exercise 8.8.

Total height: 12×168+18×163=2016+2934=495012 \times 168 + 18 \times 163 = 2016 + 2934 = 4950 cm for 3030 students, so the mean is 495030=165\frac{4950}{30} = 165 cm. It is closer to the girls’ mean because they are more numerous (weighted mean, weights 1212 and 1818).

Exercise 8.9 ★★★

A series of NN values x1,,xNx_1, \dots, x_N has mean xˉ\bar x. Each value is transformed into yi=axi+by_i = a x_i + b for fixed numbers aa and bb.

  1. Show that the mean of the new series is axˉ+ba \bar x + b.
  2. The temperatures of a week, in degrees Celsius, have mean 2020. What is their mean in degrees Fahrenheit (F=1.8C+32F = 1.8\,C + 32)?
Solution

Solution of Exercise 8.9.

1. The new mean is

yˉ=y1++yNN=(ax1+b)++(axN+b)N=a(x1++xN)+NbN=axˉ+b.\bar y = \frac{y_1 + \dots + y_N}{N} = \frac{(a x_1 + b) + \dots + (a x_N + b)}{N} = \frac{a(x_1 + \dots + x_N) + Nb}{N} = a \bar x + b .

2. With a=1.8a = 1.8 and b=32b = 32: mean 1.8×20+32=681.8 \times 20 + 32 = 68 degrees Fahrenheit.

8.5 Problem: The average person does not exist

Problem 8.1

Weekend problem — mean against median: outliers, grading curves, the warehouse on the road, and the cockpit designed for nobody

In 1950 the US Air Force measured 40004\,000 pilots on ten body dimensions and built the cockpit for the average man. It fitted — as one lieutenant discovered by counting — essentially nobody. Statistics summarizes crowds with single numbers, and each summary tells the truth about something and lies about something else. This problem takes the mean and the median (Definition 8.3, Definition 8.5) to court, lets each show what it is best at, and closes the cockpit case.

Part I — Two summaries on trial.

  1. A street sells seven houses, in thousands of euros: 200200, 210210, 220220, 230230, 240240, 250250 — and one mansion at 12001\,200. Compute the mean and the median price. Which number describes “a house in this street”?
  2. Remove the mansion and recompute both. By how much did each summary move? State the moral about outliers.
  3. A census table: out of 100100 families, 2020 have no child, 2525 have one, 3030 have two, 1515 have three, 1010 have four. Compute the mean number of children. No family “has 1.71.7 children” — so what real quantity does the mean encode? (Multiply it by 100100.)
  4. For the fifteen marks 4,6,7,8,9,10,10,11,12,12,13,14,15,17,194, 6, 7, 8, 9, 10, 10, 11, 12, 12, 13, 14, 15, 17, 19: find the median and the quartiles Q1Q_1, Q3Q_3 (Method 8.8).
  5. For the same series, give the range and the interquartile range. What does each measure?

Part II — Grading curves and merged classes.

  1. From Exercise 8.9: shifting every value by +b+b shifts mean, median and quartiles by +b+b; scaling by aa scales them by aa. What happens to the range and the interquartile range under a shift? Under a scaling? Justify.
  2. A test has mean 99 (out of 2020) and the teacher wants mean 1212. Two curves are proposed: add 33 points to everyone, or multiply every mark by 43\frac43. Compute the fate of a student at 66 and one at 1818 under each curve. Which curve favors whom — and which has a ceiling problem?
  3. Class A (2020 students) has mean 1212; class B (3030 students) has mean 1010. Compute the mean of the 5050 students together, and explain why it is not 1111 (the weighted-average lesson of the harmonic-mean weekend problem of the Middle School volume, in the classroom).
  4. Show that medians refuse this game: compute the medians of A={1,2,3}A = \{1, 2, 3\} and B={0,10}B = \{0, 10\}, then the median of the merged list, and compare with the size-weighted average of the two medians.
  5. Figure skating: five judges score 5.25.2, 5.35.3, 5.45.4, 5.55.5, 9.99.9. Compute the mean, the median, and the trimmed mean (drop the lowest and highest, average the rest). Why do most judged sports trim?

Part III — Reading distributions.

  1. Two factories both produce bolts of mean length 5050 mm. Factory A: Q1=49.9Q_1 = 49.9, Q3=50.1Q_3 = 50.1; factory B: Q1=48Q_1 = 48, Q3=52Q_3 = 52. You need interchangeable bolts: which factory, and which statistic decided?
  2. At a clinic, the median wait is 1010 minutes but the mean wait is 2525. What shape of data does this pair betray? Construct a five-value dataset with exactly this median and mean.
  3. “Your baby is at the 75th percentile for height” — what does that sentence mean? And can every child of a town be “above average”? Above the median? Explain the difference.
  4. Class A: min 44, Q18Q_1\,8, median 1111, Q313Q_3\,13, max 1717. Class B: min 22, Q19Q_1\,9, median 1111, Q312Q_3\,12, max 1919. Compare: typical mark, homogeneity of the middle half, wildness of the extremes.
  5. The journalist’s checklist: a headline says “average salary at TechCorp: 50005\,000 euros”. List the three questions this problem has taught you to ask before believing the headline says anything about a typical employee.

Part IV — The cockpit case.

  1. Build your own evidence: construct five house prices with mean 300300 and median 200200 (thousands of euros).
  2. The mean is the balance point: prove from the definition that the deviations from the mean always cancel, (xixˉ)=0\sum (x_i - \bar x) = 0, and verify it on your dataset of question 16.
  3. The median is the errand-minimizer: shops sit at kilometers 11, 33, 44, 99, 1313 of a road, and a warehouse must minimize the total distance to the five shops. Compute that total for a warehouse at the median (44), at the mean (66), and at 55. Who wins? (This is general: the median minimizes total absolute distance — test any other spot.)
  4. The cockpit, resolved: suppose a pilot has a 30%30\,\% chance of being “close to average” on one body dimension, independently across 1010 dimensions. Estimate the chance of being close to average on all ten — and reconcile the result with what the lieutenant found in 40004\,000 pilots. What did the Air Force build instead of the average cockpit?
  5. Finale — the user’s guide, one line each: when totals are what matters (a budget, a harvest), use the …; when the typical individual matters (salaries, waiting times), use the …; when fairness of spread matters, report the …; when contamination threatens, use the …. Close the case with the problem’s title.
Solution

Solution of Problem 8.1.

1. Mean: 25507364\frac{2\,550}{7} \approx 364 thousand euros; median: the fourth of the seven ordered prices, 230230. The median describes the street — six of the seven houses cost nowhere near 364364.

2. Without the mansion: mean 13506=225\frac{1\,350}{6} = 225, median 220+2302=225\frac{220 + 230}{2} = 225. The mean fell by about 139139; the median by 55. One extreme value can drag the mean anywhere; the median barely notices — it is robust.

3. Mean =0×20+1×25+2×30+3×15+4×10100=170100=1.7= \frac{0 \times 20 + 1 \times 25 + 2 \times 30 + 3 \times 15 + 4 \times 10}{100} = \frac{170}{100} = 1.7. No family has 1.71.7 children, but 1.7×100=1701.7 \times 100 = 170 is the exact total number of children: the mean encodes the total, redistributed equally — its true talent.

4. N=15N = 15: median == 8th value =11= 11; Q1=Q_1 = 4th value =8= 8; Q3=Q_3 = 12th value =14= 14.

5. Range 194=1519 - 4 = 15: the full spread, extremes included. Interquartile range 148=614 - 8 = 6: the width of the middle half — spread without the extremes’ noise.

6. A shift +b+b moves every value, so differences of values — range, IQR — are unchanged: (xi+b)(xj+b)=xixj(x_i + b) - (x_j + b) = x_i - x_j. A scaling by aa multiplies all differences by aa: range and IQR are scaled by a\abs a.

7. Additive curve: 696 \to 9 and 182118 \to 21 — the weak student gains 50%50\,\%, the strong one 17%17\,\%, and 2121 bursts the 2020-point scale only mildly. Multiplicative: 686 \to 8 and 182418 \to 24 — ratios preserved, but 2424 is impossible on a 2020-scale: the ceiling problem. Additive curves flatter the bottom; multiplicative ones explode the top.

8. Total marks: 20×12+30×10=54020 \times 12 + 30 \times 10 = 540, so the merged mean is 54050=10.8\frac{540}{50} = 10.8: class B’s thirty students outweigh class A’s twenty — means merge by weighted average, never by simple average.

9. Median of AA: 22; of BB: 55. Merged list {0,1,2,3,10}\{0, 1, 2, 3, 10\}: median 22. The size-weighted average of the medians would be 3×2+2×55=3.22\frac{3 \times 2 + 2 \times 5}{5} = 3.2 \neq 2: medians carry no total, so no merging formula exists — one must re-sort the whole list.

10. Mean: 31.35=6.26\frac{31.3}{5} = 6.26. Median: 5.45.4. Trimmed mean: 5.3+5.4+5.53=5.4\frac{5.3 + 5.4 + 5.5}{3} = 5.4. One enthusiastic (or corrupt) judge moved the mean by almost a point; the median and the trimmed mean shrugged — hence the trimming rules of judged sports.

11. Factory A: middle half within 0.20.2 mm; factory B: within 44 mm. Same mean, opposite reliability: buy from A. The interquartile range decided — means alone compare centers, never consistency.

12. Median far below mean betrays a long right tail: most waits short, a few catastrophic. Example: {5,5,10,10,95}\{5, 5, 10, 10, 95\}median 1010, mean 1255=25\frac{125}{5} = 25.

13. It means 75%75\,\% of babies of that age are shorter (and 25%25\,\% taller): a rank, not a size. “Every child above the mean” is impossible — if all values exceeded the mean, their average would exceed the mean, which is itself: contradiction. But almost all can be: one very short child can hold the mean below everyone else. Above the median: never more than half, by definition. Ranks cannot be flattered; averages can.

14. Typical mark: same, median 1111 for both. Homogeneity of the middle: B tighter (IQR 33 against 55). Extremes: B wilder (range 1717 against 1313). B is a class of similar students plus a few outliers; A is evenly spread.

15. (1) Is 50005\,000 the mean or the median — and may I have the median? (2) What is the spread (quartiles), so I know how typical “typical” is? (3) Who was counted — sample size and selection (the how-data-lies weekend problem of the Middle School volume’s poll lesson)?

16. For instance 100,150,200,250,800100, 150, 200, 250, 800: median 200200, mean 15005=300\frac{1\,500}{5} = 300.

17. (xixˉ)=xiNxˉ=NxˉNxˉ=0\sum (x_i - \bar x) = \sum x_i - N \bar x = N\bar x - N\bar x = 0. Check: 20015010050+500=0-200 - 150 - 100 - 50 + 500 = 0. The mean is the point where the deviations balance — the data’s center of gravity (the centroid weekend problem of the Middle School volume’s GG, in one dimension).

18. At the median 44: 3+1+0+5+9=183 + 1 + 0 + 5 + 9 = 18 km. At the mean 66: 5+3+2+3+7=205 + 3 + 2 + 3 + 7 = 20 km. At 55: 4+2+1+4+8=194 + 2 + 1 + 4 + 8 = 19 km. The median wins — moving away from it always passes more shops than it approaches, so the total can only grow.

19. 0.3106×1060.3^{10} \approx 6 \times 10^{-6}: about six pilots per million. In 40004\,000 pilots the expected count is 0.020.02 — zero, as lieutenant Daniels found. The Air Force stopped designing for the average man and made everything adjustable: seats, pedals, straps — design for the spread, not the center.

20. Totals: the mean. Typical individual: the median. Fairness of spread: the quartiles (and IQR). Contamination: the trimmed mean. And the closing line: the average person does not exist — but the median person almost does.