Mathematics · Book 1 · Grades 1–9

Primary & Middle School Mathematics

Primary & Middle School Mathematics · Grades 1–9

71Statistics and Probability

Data and chance are everywhere: sports results, weather forecasts, games. This chapter teaches how to summarize a series of numbers by its mean, median and range, and how to compute the probability of simple random experiments — including two-step experiments, handled with tree diagrams. Both subjects are developed much further in the High School volume of this series.

71.1 Summarizing data

Definition 71.1 (Mean, median, range)

For a series of NN numbers:

  • the mean is the sum of all the values divided by NN;
  • the median is a value splitting the sorted series in two halves of equal size: for NN odd, the middle value; for NN even, the midpoint of the two middle values;
  • the range is the largest value minus the smallest.

Example 71.2

Marks of a student: 8, 12, 9, 15, 118,\ 12,\ 9,\ 15,\ 11.

  1. Mean: 8+12+9+15+115=555=11\dfrac{8 + 12 + 9 + 15 + 11}{5} = \dfrac{55}{5} = 11.
  2. Median: sort the series: 8,9,11,12,158, 9, 11, 12, 15; the middle (3rd) value is 1111.
  3. Range: 158=715 - 8 = 7.

With a sixth mark of 1717: sorted 8,9,11,12,15,178, 9, 11, 12, 15, 17, the median becomes the midpoint of 1111 and 1212, that is 11.511.5, and the mean becomes 726=12\frac{72}{6} = 12.

Example 71.3 (Weighted mean)

The shoe sizes sold in a day:

size38383939404041414242
count3377663311

The mean size is

3×38+7×39+6×40+3×41+1×423+7+6+3+1=114+273+240+123+4220=79220=39.6.\frac{3 \times 38 + 7 \times 39 + 6 \times 40 + 3 \times 41 + 1 \times 42} {3 + 7 + 6 + 3 + 1} = \frac{114 + 273 + 240 + 123 + 42}{20} = \frac{792}{20} = 39.6 .

Remark 71.4

The mean and the median can differ a lot. In the series 10,10,10,10,6010, 10, 10, 10, 60 the mean is 2020 (pulled up by the value 6060) while the median is 1010. Always ask which indicator represents the situation better.

71.2 Probability

Definition 71.5 (Probability)

A random experiment has several possible outcomes; an event is a set of outcomes. Each outcome gets a probability: a number between 00 and 11, with all the probabilities of the outcomes summing to 11; the probability P(A)\P(A) of an event AA is the sum of the probabilities of its outcomes. When all nn outcomes are equally likely,

P(A)=number of favorable outcomesn.\P(A) = \frac{\text{number of favorable outcomes}}{n}.

Example 71.6

A wheel is split into 88 equal sectors: 33 red, 33 blue, 22 green. Each sector has probability 18\frac18, so

P(red)=38,P(green)=28=14,P(not green)=114=34.\P(\text{red}) = \frac38, \qquad \P(\text{green}) = \frac28 = \frac14, \qquad \P(\text{not green}) = 1 - \frac14 = \frac34 .

Proposition 71.7 (Complement)

For every event AA, the contrary event Aˉ\bar A (“AA does not occur”) satisfies

P(Aˉ)=1P(A).\P(\bar A) = 1 - \P(A).

Proof. Every outcome is in exactly one of AA and Aˉ\bar A, so P(A)+P(Aˉ)\P(A) + \P(\bar A) sums the probabilities of all outcomes, which is 11.

71.3 Two-step experiments

Method 71.8 (Tree diagrams)

For an experiment in two steps:

  1. draw one branch per outcome of the first step, then continue each branch with the outcomes of the second step, writing each probability on its branch;
  2. multiply the probabilities along a path to get the probability of that path;
  3. add the probabilities of all the paths forming an event.

Example 71.9

A bag holds 22 red and 33 black tokens. Draw one token, note its color, put it back, draw again. Each draw gives red with probability 25\frac25, black with probability 35\frac35.

The tree of the two draws with replacement: multiply along the branches, and check that the four paths sum to 1.
The tree of the two draws with replacement: multiply along the branches, and check that the four paths sum to 11.

Probability of two tokens of the same color: 425+925=1325\frac{4}{25} + \frac{9}{25} = \frac{13}{25}. Probability of at least one red: 1P(BB)=1925=16251 - \P(\text{BB}) = 1 - \frac{9}{25} = \frac{16}{25}.

Remark 71.10 (Frequencies approach probabilities)

Rolling a fair die 60006000 times gives about 10001000 sixes — not exactly. As the number of repetitions grows, observed frequencies get closer and closer to the probabilities: this is what makes probability the right tool to model repeated experiments (a story developed in the High School volume of this series).

71.4 Exercises

Exercise 71.1

Compute the mean, median and range of the series 14, 9, 17, 9, 12, 11, 1214,\ 9,\ 17,\ 9,\ 12,\ 11,\ 12.

Solution

Solution of Exercise 71.1.

Mean: 14+9+17+9+12+11+127=847=12\dfrac{14 + 9 + 17 + 9 + 12 + 11 + 12}{7} = \dfrac{84}{7} = 12.

Median: sorted, 9,9,11,12,12,14,179, 9, 11, 12, 12, 14, 17; the middle (44th) value is 1212.

Range: 179=817 - 9 = 8.

Exercise 71.2

The temperatures at noon over a week were 19, 21, 24, 18, 22, 25, 1919,\ 21,\ 24,\ 18,\ 22,\ 25,\ 19 (degrees). Compute the mean (to a tenth) and the median.

Solution

Solution of Exercise 71.2.

Mean: 19+21+24+18+22+25+197=148721.1\dfrac{19 + 21 + 24 + 18 + 22 + 25 + 19}{7} = \dfrac{148}{7} \approx 21.1 degrees.

Median: sorted, 18,19,19,21,22,24,2518, 19, 19, 21, 22, 24, 25; the 44th value is 2121 degrees.

Exercise 71.3

The number of goals scored by a team in 1010 matches:

goals00112233
matches22443311

Compute the mean number of goals per match, and the median.

Solution

Solution of Exercise 71.3.

Mean:

2×0+4×1+3×2+1×310=0+4+6+310=1310=1.3 goals per match.\frac{2 \times 0 + 4 \times 1 + 3 \times 2 + 1 \times 3}{10} = \frac{0 + 4 + 6 + 3}{10} = \frac{13}{10} = 1.3 \text{ goals per match.}

Median: the sorted series is 0,0,1,1,1,1,2,2,2,30,0,1,1,1,1,2,2,2,3; the 55th and 66th values are both 11: median 11.

Exercise 71.4

A fair die is rolled once. Compute the probability of: “rolling a 33”; “rolling an even number”; “rolling at least a 33”; “not rolling a 66”.

Solution

Solution of Exercise 71.4.

P(3)=16\P(3) = \frac16. P(even)=36=12\P(\text{even}) = \frac36 = \frac12. P(at least 3)=P({3,4,5,6})=46=23\P(\text{at least } 3) = \P(\{3,4,5,6\}) = \frac46 = \frac23. P(not 6)=116=56\P(\text{not } 6) = 1 - \frac16 = \frac56.

Exercise 71.5

A box contains 1212 balls: 55 white, 44 red and 33 green; one ball is drawn at random. Compute P(white)\P(\text{white}), P(red or green)\P(\text{red or green}), and P(not white)\P(\text{not white}). What do you notice about the last two?

Solution

Solution of Exercise 71.5.

P(white)=512\P(\text{white}) = \frac{5}{12}.

P(red or green)=4+312=712\P(\text{red or green}) = \frac{4 + 3}{12} = \frac{7}{12}.

P(not white)=1512=712\P(\text{not white}) = 1 - \frac{5}{12} = \frac{7}{12}.

The last two are equal: “not white” is the event “red or green”.

Exercise 71.6 ★★

A coin is tossed, then a fair die is rolled. Draw the tree (or count the outcomes) and compute the probability of getting heads and a 66; then of getting heads or a 66 (or both).

Solution

Solution of Exercise 71.6.

The 1212 outcomes (face of the coin, value of the die) are equally likely.

Heads and a 66: one outcome out of 1212: 112\frac{1}{12}.

Heads or a 66: the outcomes with heads (66 of them) plus the outcome (tails, 66): 77 outcomes, so 712\frac{7}{12}. Counting each event and subtracting the overlap gives the same: 612+212112=712\frac{6}{12} + \frac{2}{12} - \frac{1}{12} = \frac{7}{12}.

Exercise 71.7 ★★

In the bag of Example 71.9 (22 red, 33 black), the two draws are now made without replacement. Draw the new tree (careful: the second-level probabilities change) and compute the probability of drawing two black tokens, then two tokens of different colors.

Solution

Solution of Exercise 71.7.

First draw: red 25\frac25, black 35\frac35. Second draw without replacement: after a red, 11 red and 33 black remain among 44; after a black, 22 red and 22 black among 44.

Two black: 35×24=620=310\frac35 \times \frac24 = \frac{6}{20} = \frac{3}{10}.

Different colors (RB or BR): 25×34+35×24=620+620=1220=35\frac25 \times \frac34 + \frac35 \times \frac24 = \frac{6}{20} + \frac{6}{20} = \frac{12}{20} = \frac35.

Exercise 71.8 ★★

After 99 matches, a basketball player averages 1414 points per match.

  1. How many points has she scored in total?
  2. How many points must she score in the 1010th match to average 1515?
Solution

Solution of Exercise 71.8.

1. 9×14=1269 \times 14 = 126 points.

2. An average of 1515 over 1010 matches means 150150 points in total: she must score 150126=24150 - 126 = 24 points.

Exercise 71.9 ★★★

A game: roll two fair dice; you win if the two results are equal (“a double”).

  1. Compute the probability of winning.
  2. You play twice (independent games). Using a tree, compute the probability of winning at least once.
Solution

Solution of Exercise 71.9.

1. Among the 3636 equally likely pairs, the doubles are (1,1),(2,2),,(6,6)(1,1), (2,2), \dots, (6,6): six of them, so P(double)=636=16\P(\text{double}) = \frac{6}{36} = \frac16.

2. Two independent games: tree with win (16\frac16) / lose (56\frac56) at each level. Probability of never winning: 56×56=2536\frac56 \times \frac56 = \frac{25}{36}. So

P(at least one win)=12536=11360.31.\P(\text{at least one win}) = 1 - \frac{25}{36} = \frac{11}{36} \approx 0.31 .

71.5 Problem: The Chevalier’s ruinous bets

Problem 71.1

Weekend problem — the 1654 gambling dispute that created probability theory, and the birthday coincidence that fools every classroom

In 1654 a hard-gambling French nobleman, the Chevalier de Méré, grew rich on one dice bet and began losing on another that he believed equivalent. Baffled, he asked the mathematician Blaise Pascal; Pascal wrote to Pierre de Fermat; and their exchange of letters founded the theory of probability. This problem replays the whole affair with the tools of this chapter — equally likely outcomes, trees and the complement rule (Proposition 71.7) — and ends with the most counterintuitive coincidence of them all.

Part I — Dice, honestly counted.

  1. Roll a fair die twice. Using a tree (or a 6×66 \times 6 table), compute the probability of no six in the two rolls, and deduce the probability of at least one six.
  2. A classmate argues: “one chance in six per roll, twice, so 16+16=13\frac16 + \frac16 = \frac13.” Compare with question 1 and point at the exact outcomes his addition counts twice.
  3. Rolling two dice and adding: compute the probability of a sum of 77 and of a sum of 22. Why is 77 the gamblers’ favorite?
  4. Old dispute: with two dice, is a sum of 99 or a sum of 1010 more likely? Count the outcomes and settle it.
  5. Generalize question 1: explain why the probability of at least one six in nn rolls is

    1(56) ⁣n,1 - \left(\frac56\right)^{\!n} ,

    the no-six branches of the tree multiplying from level to level.

Part II — The two bets of the Chevalier.

  1. First bet, even money: at least one six in four rolls of a die. Compute (56)4\left(\frac56\right)^4 as a fraction and as a decimal, and the Chevalier’s winning probability. Was the bet good?
  2. The Chevalier’s own reasoning was: “four rolls at 16\frac16 each: 46\frac46 of a chance.” It gave nearly the right answer here — but push it to 77 rolls: what absurdity does it produce, and which error of question 2 does it repeat?
  3. Second bet, believed equivalent by proportionality (“2424 rolls at 136\frac1{36} each: again 2436=46\frac{24}{36} = \frac46”): at least one double-six in 2424 rolls of two dice. Compute the true winning probability 1(3536)241 - \left(\frac{35}{36}\right)^{24} (calculator). Why was the Chevalier slowly ruined?
  4. How many rolls of two dice would have restored his advantage? Test n=25n = 25 with the calculator and conclude.
  5. State the moral in two sentences: what is wrong, in general, with multiplying a probability by the number of tries — and which correct tool replaces that temptation?

Part III — Means, medians, birthdays.

  1. A small firm pays nine employees 20002\,000 euros a month and the director 2000020\,000. Compute the mean and the median salary (Definition 71.1). Which number should the job advertisement honestly quote?
  2. Construct a list of five test marks with mean 1212 and median 1515. What does the pair (mean below median) say about the shape of the marks?
  3. The birthday problem: in a class of 2323 students, what is the probability that at least two share a birthday? Set up the complement (all 2323 birthdays different):

    365365×364365×363365××343365.\frac{365}{365} \times \frac{364}{365} \times \frac{363}{365} \times \dots \times \frac{343}{365} .

    Compute the product of the first three factors, describe how the factors evolve, and — given that the full product is about 0.4930.493 — answer the question. Most people expect “very unlikely”: what does the mathematics say?

  4. The intuition repaired: how many pairs of students can share a birthday in a class of 2323 (Problem 37.1’s handshake count)? Explain in one sentence why this number, not 2323 itself, drives the surprise.
  5. Finale: describe an experiment to check either result — de Méré’s bet with a real die, or the birthday problem across several classes — and state carefully what you expect of the observed frequencies as the number of repetitions grows. (That expectation has a name, the law of large numbers; its proof awaits in the High School volume.)
Solution

Solution of Problem 71.1.

1. Each roll has 55 non-six outcomes out of 66; the 6×66 \times 6 table shows 5×5=255 \times 5 = 25 six-free outcomes out of 3636: P(no six)=2536P(\text{no six}) = \frac{25}{36}, so P(at least one)=12536=11360.31P(\text{at least one}) = 1 - \frac{25}{36} = \frac{11}{36} \approx 0.31.

2. 13=12361136\frac13 = \frac{12}{36} \neq \frac{11}{36}. The addition counts the outcome “six then six” once in each 16\frac16: once too often. Probabilities of events that can happen together do not simply add.

3. Sum 77: the six outcomes (1,6),(2,5),(3,4),(4,3),(5,2),(6,1)(1,6), (2,5), (3,4), (4,3), (5,2), (6,1): P=636=16P = \frac{6}{36} = \frac16. Sum 22: only (1,1)(1,1): 136\frac{1}{36}. Seven has the most ways to happen — the fat middle of the sums table.

4. Sum 99: (3,6),(4,5),(5,4),(6,3)(3,6), (4,5), (5,4), (6,3) — four outcomes, 436\frac{4}{36}. Sum 1010: (4,6),(5,5),(6,4)(4,6), (5,5), (6,4) — three, 336\frac{3}{36}. Nine is more likely: the count decides, not the number of “ways to write” the sum with unordered faces.

5. Each level of the tree multiplies the no-six probability by 56\frac56, whatever happened before: after nn rolls, P(no six at all)=(56)nP(\text{no six at all}) = \left(\frac56\right)^n, and the complement rule gives the formula.

6. (56)4=62512960.482\left(\frac56\right)^4 = \frac{625}{1296} \approx 0.482, so the Chevalier won with probability 10.482=0.5181 - 0.482 = 0.518 — a quiet, steady edge of almost 2%2\,\% per game: an excellent bet, and it paid for his carriages.

7. At 77 rolls his rule gives 76\frac76 — a probability greater than 11, nonsense. It is question 2’s double-counting, compounded: the rolls’ successes overlap, and adding their chances counts the overlaps again and again.

8. 1(3536)2410.5086=0.4911 - \left(\frac{35}{36}\right)^{24} \approx 1 - 0.5086 = 0.491: below one half. Betting even money on a 49.1%49.1\,\% event, the Chevalier lost about 22 games in every 100100 on average — slowly, mysteriously (to him), and inevitably.

9. 1(3536)2510.494=0.5061 - \left(\frac{35}{36}\right)^{25} \approx 1 - 0.494 = 0.506: with 2525 rolls the bet turns favorable. One roll separated the Chevalier from profitability.

10. Multiplying a probability by the number of tries counts overlapping successes several times, and eventually produces impossible answers above 11. The correct route is always through the complement: chain the failure probabilities by multiplication, then subtract from 11.

11. Mean: 9×2000+2000010=3800010=3800\frac{9 \times 2\,000 + 20\,000}{10} = \frac{38\,000}{10} = 3\,800 euros. Median: the middle salaries are both 20002\,000: median 20002\,000 euros. The advertisement should quote the median — nine of the ten workers never see anything like 38003\,800; the mean is dragged up by one outlier (Example 71.3 warned of weights).

12. For instance 2,8,15,17,182, 8, 15, 17, 18: median 1515 (middle value), mean 605=12\frac{60}{5} = 12. A mean below the median betrays a tail of low marks pulling the average down while the top half sits high.

13. First three factors: 1×364365×3633650.9921 \times \frac{364}{365} \times \frac{363}{365} \approx 0.992. Each new student must dodge one more taken date, so the factors shrink: 3433650.94\frac{343}{365} \approx 0.94 for the 2323rd. The full product falls to about 0.4930.493 — so

P(at least one shared birthday)0.507:P(\text{at least one shared birthday}) \approx 0.507 :

better than even, in a class of just 2323. Intuition says “2323 people, 365365 days, no chance”; the mathematics says “flip a coin”.

14. 23×222=253\frac{23 \times 22}{2} = 253 pairs. Each pair is a fresh opportunity for a coincidence, and 253253 opportunities at 1365\frac{1}{365} each is no longer a small affair: the surprise dissolves once one counts pairs, not people.

15. Example protocol: roll a die in blocks of four, recording whether each block shows a six, for 100100 blocks; or collect the birthday lists of many classes of about 2323 and record the proportion with a coincidence. The observed frequency will wobble, but as the number of repetitions grows it should settle ever closer to the computed probabilities (0.5180.518; 0.5070.507) — frequencies converge to probabilities: the law of large numbers, stated here as an expectation and proved in the High School volume.