Mathematics · Book 2 · Grades 10–12

High School Mathematics

High School Mathematics · Grades 10–12

9Probability and Sampling

Probability assigns numbers to chance. Starting from experiments with equally likely outcomes — dice, coins, cards — this chapter builds the basic rules for computing probabilities of events, introduces tree diagrams for two-step experiments, and ends with the link between probabilities and observed frequencies. The theory continues in Chapter 18.

9.1 Random experiments and events

Definition 9.1 (Outcomes and events)

A random experiment is an experiment whose result cannot be predicted (rolling a die). The set of all possible results is the sample space Ω={ω1,,ωn}\Omega = \{\omega_1, \dots, \omega_n\}; its elements are the outcomes. An event is a set of outcomes; an event occurs when the result of the experiment belongs to it.

Definition 9.2 (Probability distribution)

Assigning to each outcome ωi\omega_i a number pi0p_i \geq 0, with p1++pn=1p_1 + \dots + p_n = 1, defines a probability: the probability P(A)\P(A) of an event AA is the sum of the pip_i of the outcomes in AA. In particular P(Ω)=1\P(\Omega) = 1 and the impossible event \varnothing has probability 00.

Proposition 9.3 (Equally likely outcomes)

If the nn outcomes are equally likely (each pi=1np_i = \frac1n), then for every event AA:

P(A)=number of outcomes in An=favorable casespossible cases.\P(A) = \frac{\text{number of outcomes in } A}{n} = \frac{\text{favorable cases}}{\text{possible cases}} .

Proof. AA contains some number kk of outcomes, each of probability 1n\frac1n, so P(A)=kn\P(A) = \frac kn.

Example 9.4

Roll a fair die: Ω={1,2,3,4,5,6}\Omega = \{1, 2, 3, 4, 5, 6\}, each outcome having probability 16\frac16. The event AA: “the result is even” is A={2,4,6}A = \{2, 4, 6\}, so P(A)=36=12\P(A) = \frac36 = \frac12. The event BB: “the result is at least 55” is B={5,6}B = \{5, 6\}, so P(B)=26=13\P(B) = \frac26 = \frac13.

9.2 Combining events

Definition 9.5 (Intersection, union, complement)

Let AA and BB be events.

  • ABA \cap B (“AA and BB”) occurs when both occur;
  • ABA \cup B (“AA or BB”) occurs when at least one occurs;
  • the complement Aˉ\bar A (“not AA”) occurs exactly when AA does not;
  • AA and BB are incompatible when they cannot occur together: AB=A \cap B = \varnothing.

Theorem 9.6 (Addition rules)

For all events AA and BB:

P(AB)=P(A)+P(B)P(AB),P(Aˉ)=1P(A).\P(A \cup B) = \P(A) + \P(B) - \P(A \cap B), \qquad \P(\bar A) = 1 - \P(A) .

For incompatible events, the first rule simplifies to P(AB)=P(A)+P(B)\P(A \cup B) = \P(A) + \P(B).

Proof. Summing P(A)+P(B)\P(A) + \P(B) adds the probability of every outcome of ABA \cup B once, except those of ABA \cap B, which are counted twice — once in AA and once in BB. Subtracting P(AB)\P(A \cap B) repairs the double counting. For the complement: AA and Aˉ\bar A are incompatible and AAˉ=ΩA \cup \bar A = \Omega, so P(A)+P(Aˉ)=P(Ω)=1\P(A) + \P(\bar A) = \P(\Omega) = 1.

Two overlapping events: in (A) + (B), the shaded intersection A ∩ B is counted twice, which explains the subtraction in the addition rule.
Two overlapping events: in P(A)+P(B)\P(A) + \P(B), the shaded intersection ABA \cap B is counted twice, which explains the subtraction in the addition rule.

Example 9.7

Draw one card from a standard 5252-card deck. Let AA: “the card is a heart” (1313 cards) and BB: “the card is a king” (44 cards). Then ABA \cap B is “the king of hearts” (11 card), and

P(AB)=1352+452152=1652=413.\P(A \cup B) = \frac{13}{52} + \frac{4}{52} - \frac{1}{52} = \frac{16}{52} = \frac{4}{13}.

The complement rule is often the fastest route: the probability that the card is not a heart is 11352=341 - \frac{13}{52} = \frac34.

9.3 Tree diagrams

Method 9.8 (Two-step experiments)

For an experiment performed in two steps:

  1. draw a tree: one branch per possible result of the first step, then from each of these, one branch per result of the second step, writing the probability on each branch (the branches leaving any node must sum to 11);
  2. the probability of a path (a leaf of the tree) is the product of the probabilities along its branches;
  3. the probability of an event is the sum of the probabilities of the paths that realize it.

Example 9.9

An urn contains 33 red balls and 22 blue balls. Draw one ball, put it back, draw again. Each draw gives red (R) with probability 35\frac35 and blue (B) with probability 25\frac25.

The tree of two draws with replacement. The four path probabilities sum to 1.
The tree of two draws with replacement. The four path probabilities sum to 11.

The probability of getting two balls of the same color is P(RR)+P(BB)=925+425=1325\P(\text{RR}) + \P(\text{BB}) = \frac{9}{25} + \frac{4}{25} = \frac{13}{25}; the probability of at least one blue is 1P(RR)=1925=16251 - \P(\text{RR}) = 1 - \frac{9}{25} = \frac{16}{25} (complement rule).

Remark 9.10

Without replacement, the probabilities of the second draw depend on the first: with the urn above, after drawing a red ball, only 22 red and 22 blue remain, so the second branch carries 24\frac24 and 24\frac24. The tree method works unchanged; only the numbers on the second-level branches change.

9.4 Frequencies and sampling

When a random experiment is repeated many times, the observed frequency of an event approaches its probability — this is why probability is useful for describing the real world.

Definition 9.11 (Sample)

A sample of size nn is the result of repeating the same experiment nn times independently. The observed frequency of an event in the sample is the number of occurrences divided by nn.

Example 9.12

A fair coin gives heads with probability 0.50.5. Tossing it 100100 times rarely gives exactly 5050 heads: samples fluctuate. Typical runs of 100100 tosses give frequencies like 0.460.46, 0.530.53, 0.490.49 — close to 0.50.5, but not equal. Larger samples fluctuate less: with 1000010\,000 tosses, observed frequencies are usually within about 0.010.01 of 0.50.5.

Remark 9.13 (Fluctuation interval)

A useful rule of thumb, justified in Chapter 19: for a sample of size nn of an event of probability pp (with nn reasonably large), the observed frequency lies in the interval

[p1n,p+1n]\intcc{p - \frac{1}{\sqrt n}}{\,p + \frac{1}{\sqrt n}}

in roughly 95%95\% of samples. If an observed frequency falls far outside this interval, doubt the value of pp: this is the starting point of statistical testing.

Example 9.14

A factory claims that only 10%10\% of its parts are defective (p=0.1p = 0.1). In a sample of n=400n = 400 parts, 6464 are defective: observed frequency 64400=0.16\frac{64}{400} = 0.16. The fluctuation interval is [0.1120,0.1+120]=[0.05,0.15]\intcc{0.1 - \frac{1}{20}}{0.1 + \frac{1}{20}} = \intcc{0.05}{0.15}, and 0.160.16 falls outside it: the sample casts serious doubt on the claim.

9.5 Exercises

Exercise 9.1

A fair die is rolled. Compute the probability of each event: “getting a 66”; “getting an odd number”; “getting at most 44”; “getting a 77”.

Solution

Solution of Exercise 9.1.

Each of the 66 outcomes has probability 16\frac16. “Getting a 66”: 16\frac16. “Odd number” ={1,3,5}= \{1, 3, 5\}: 36=12\frac36 = \frac12. “At most 44={1,2,3,4}= \{1,2,3,4\}: 46=23\frac46 = \frac23. “Getting a 77”: impossible event, probability 00.

Exercise 9.2

A bag contains 55 green, 33 yellow and 22 black marbles; one marble is drawn at random. Compute the probability that it is green; that it is not black; that it is green or yellow.

Solution

Solution of Exercise 9.2.

There are 1010 equally likely marbles. P(green)=510=12\P(\text{green}) = \frac{5}{10} = \frac12. P(not black)=1210=810=45\P(\text{not black}) = 1 - \frac{2}{10} = \frac{8}{10} = \frac45. Green and yellow are incompatible: P(green or yellow)=510+310=810=45\P(\text{green or yellow}) = \frac{5}{10} + \frac{3}{10} = \frac{8}{10} = \frac45.

Exercise 9.3

In a class of 3030 students, 1818 study Spanish, 1010 study German, and 44 study both. A student is picked at random. Using the addition rule, compute the probability that this student studies at least one of the two languages, then the probability that they study neither.

Solution

Solution of Exercise 9.3.

Let SS: “studies Spanish”, GG: “studies German”. Then P(S)=1830\P(S) = \frac{18}{30}, P(G)=1030\P(G) = \frac{10}{30}, P(SG)=430\P(S \cap G) = \frac{4}{30}. Addition rule:

P(SG)=1830+1030430=2430=45.\P(S \cup G) = \frac{18}{30} + \frac{10}{30} - \frac{4}{30} = \frac{24}{30} = \frac45 .

Complement: P(neither)=145=15\P(\text{neither}) = 1 - \frac45 = \frac15.

Exercise 9.4

A fair coin is tossed twice. Draw the tree of the experiment and compute the probability of getting two heads; exactly one head; at least one head.

Solution

Solution of Exercise 9.4.

The tree has four paths HH, HT, TH, TT, each of probability 12×12=14\frac12 \times \frac12 = \frac14. Two heads: 14\frac14. Exactly one head (HT or TH): 24=12\frac24 = \frac12. At least one head: 1P(TT)=114=341 - \P(\text{TT}) = 1 - \frac14 = \frac34.

Exercise 9.5 ★★

An urn contains 44 red and 66 white balls. Two balls are drawn one after the other without replacement. Draw the tree with the correct probabilities on the second level, and compute the probability of drawing two red balls, then of drawing two balls of different colors.

Solution

Solution of Exercise 9.5.

First draw: red with probability 410\frac{4}{10}, white 610\frac{6}{10}. Second draw without replacement: after a red, 33 red and 66 white remain among 99; after a white, 44 red and 55 white among 99.

Two reds: 410×39=1290=215\frac{4}{10} \times \frac39 = \frac{12}{90} = \frac{2}{15}.

Different colors: paths RW and WR:

410×69+610×49=2490+2490=4890=815.\frac{4}{10} \times \frac69 + \frac{6}{10} \times \frac49 = \frac{24}{90} + \frac{24}{90} = \frac{48}{90} = \frac{8}{15}.

Exercise 9.6 ★★

Two fair dice are rolled and their sum is recorded.

  1. Explain why the sample space can be taken as the 3636 equally likely pairs (1,1),(1,2),,(6,6)(1,1), (1,2), \dots, (6,6).
  2. Compute the probability that the sum is 77; that it is 1212; that it is at most 44.
  3. Which sum is the most likely?
Solution

Solution of Exercise 9.6.

1. Each die independently shows each face with probability 16\frac16, so the 3636 ordered pairs are equally likely; the sum is determined by the pair.

2. Sum 77: the pairs (1,6),(2,5),(3,4),(4,3),(5,2),(6,1)(1,6), (2,5), (3,4), (4,3), (5,2), (6,1), so P=636=16\P = \frac{6}{36} = \frac16. Sum 1212: only (6,6)(6,6), P=136\P = \frac{1}{36}. Sum at most 44: pairs summing to 22, 33 or 44: (1,1)(1,1); (1,2),(2,1)(1,2), (2,1); (1,3),(2,2),(3,1)(1,3), (2,2), (3,1) — six pairs, so P=636=16\P = \frac{6}{36} = \frac16.

3. The number of pairs achieving each sum grows from 11 (sum 22) to 66 (sum 77) then decreases: the most likely sum is 77.

Exercise 9.7 ★★

A multiple-choice question offers 44 answers, one correct. A student answers 22 independent such questions completely at random. Compute the probability of answering both correctly, exactly one correctly, none correctly. Check that the three probabilities sum to 11.

Solution

Solution of Exercise 9.7.

Each question is answered correctly with probability 14\frac14, independently. Tree with two levels:

Both correct: 14×14=116\frac14 \times \frac14 = \frac{1}{16}.

Exactly one correct: paths correct–wrong and wrong–correct: 14×34+34×14=616=38\frac14 \times \frac34 + \frac34 \times \frac14 = \frac{6}{16} = \frac38.

None correct: 34×34=916\frac34 \times \frac34 = \frac{9}{16}.

Check: 116+616+916=1\frac{1}{16} + \frac{6}{16} + \frac{9}{16} = 1.

Exercise 9.8 ★★

A politician claims 50%50\% approval. In a poll of n=900n = 900 randomly chosen voters, 396396 approve.

  1. Compute the observed frequency and the fluctuation interval around p=0.5p = 0.5 for n=900n = 900.
  2. Does the poll cast doubt on the claim?
Solution

Solution of Exercise 9.8.

1. Observed frequency: 396900=0.44\frac{396}{900} = 0.44. With n=900n = 900: 1900=1300.033\frac{1}{\sqrt{900}} = \frac{1}{30} \approx 0.033, so the fluctuation interval is about [0.467,0.533]\intcc{0.467}{0.533}.

2. The observed 0.440.44 lies outside the interval: samples of 900900 voters from a population with 50%50\% approval rarely stray that far. The poll casts serious doubt on the claimed 50%50\%.

Exercise 9.9 ★★★

A game costs 22 to play: you roll a fair die and win 66 if you roll a 66, 33 if you roll a 55, nothing otherwise.

  1. Compute the probability of each amount won (66, 33, 00).
  2. Over 600600 games, about how many of each outcome do you expect? Compute the total expected gain and loss: is the game worth playing?
Solution

Solution of Exercise 9.9.

1. P(win 6)=16\P(\text{win } 6) = \frac16 (roll a 66), P(win 3)=16\P(\text{win } 3) = \frac16 (roll a 55), P(win 0)=46=23\P(\text{win } 0) = \frac46 = \frac23.

2. Over 600600 games, expect about 100100 sixes, 100100 fives, 400400 other rolls. Winnings: about 100×6+100×3=900100 \times 6 + 100 \times 3 = 900. Cost: 600×2=1200600 \times 2 = 1200. Expected net result: 9001200=300900 - 1200 = -300, i.e. a loss of about 0.50.5 per game on average — the game is not worth playing.

9.6 Problem: The three doors that fooled a thousand mathematicians

Problem 9.1

Weekend problem — the Monty Hall paradox and its cousins: how information changes probability, and how samples separate claims from wishful thinking

In 1990 the columnist Marilyn vos Savant published a puzzle about a game show host, three doors, a car and two goats — and answered it correctly. Ten thousand readers, among them hundreds of mathematics PhDs, wrote in to insist she was wrong. This problem arms you with trees (Method 9.8), complements and the addition rules (Theorem 9.6), lets you settle the argument yourself, and finishes with the tool that arbitrates every such dispute in practice: the fluctuating sample.

Part I — The rules, warmed up.

  1. One card from a standard 5252-card deck: compute P(king or heart)P(\text{king or heart}) with the addition rule — and say why 452+1352\frac{4}{52} + \frac{13}{52} alone is wrong.
  2. Three fair coin flips: compute P(at least one head)P(\text{at least one head}) by the complement.
  3. A bag holds 33 red and 22 blue marbles; two are drawn without replacement. With a tree, compute P(two reds)P(\text{two reds}) and P(one of each color)P(\text{one of each color}).
  4. Complete the distribution of question 3 with P(two blues)P(\text{two blues}) and check the three probabilities sum to 11.
  5. Someone reports, for two incompatible events, P(A)=0.6P(A) = 0.6 and P(B)=0.5P(B) = 0.5. Convict them with one line of arithmetic.

Part II — The three doors. The game: a car hides behind one of three doors, goats behind the other two. You pick a door (say door 1). The host — who knows where the car is — opens one of the other two doors, always revealing a goat, and offers you the chance to switch to the remaining closed door.

  1. Before computing anything: does switching help, hurt, or not matter? Write down your gut answer — honestly.
  2. Now the tree, by cases on the car’s true position (each 13\frac13): if the car is behind your door, switching loses; if it is behind either other door, what must the host do, and what does switching then win? Compute P(win by switching)P(\text{win by switching}).
  3. The one-line version: switching wins exactly when your first pick was wrong. Conclude again.
  4. Now the crucial variant — “Monty Fall”: the host does not know where the car is, opens one of the other doors at random, and by luck reveals a goat. List the six equally likely scenarios (car position ×\times door opened), discard those where the car is revealed, and compute the probability that switching wins among the surviving scenarios. What changed, and why does the host’s knowledge matter?
  5. The intuition pump: one hundred doors, you pick one, the knowing host opens 9898 goat doors. Switch? With what probability of winning?
  6. You face a skeptic who, like the thousand letter-writers, insists on “50–50”. Describe a card-based simulation (three cards, many rounds, a friend as host) and say what proportion of switching wins you expect after 300300 rounds — with the fluctuation interval of the chapter as your margin.

Part III — Cousins of the paradox.

  1. A family has two children; you learn that at least one is a boy. List the equally likely two-children configurations compatible with the information, and compute P(two boys)P(\text{two boys}).
  2. Same family, but the information is now: the elder child is a boy. Recompute. Why do the two answers differ, and what do they share with the two Montys?
  3. Three fair coins: compute P(all three alike)P(\text{all three alike}). The mathematician d’Alembert argued in 1754 for another answer: “either they are all alike or they are not — one case in two.” Name the exact error, with Proposition 9.3 in hand.
  4. A game costs 22 euros: roll a die, win 66 euros on a six, 33 euros on a five, nothing otherwise (Exercise 9.9). Over 600600 games, what average gain per game does the counting predict? An insurer plays the same mathematics: a 1%1\,\% yearly chance of a 1000010\,000-euro claim — what is the fair premium, and why does the real premium exceed it?

Part IV — Samples as arbiters.

  1. A coin is flipped 100100 times. Using the fluctuation interval p±1np \pm \frac{1}{\sqrt n}, decide which of these outcomes should raise eyebrows: 5555 heads; 7070 heads.
  2. A poll of 10001\,000 voters gives a candidate 52%52\,\%. Compute the fluctuation interval around 50%50\,\% and say whether the poll proves the candidate is ahead.
  3. A factory claims 4%4\,\% defective parts. A sample of 400400 shows 2828 defective (7%7\,\%); a later sample of 25002\,500 shows 175175 (7%7\,\% again). Test the claim against each sample. Why do the verdicts differ?
  4. Two error sources haunt every survey: sampling bias (the how-data-lies weekend problem of the Middle School volume) and sampling fluctuation (this chapter). Which one shrinks as nn grows, and which one survives any sample size? One sentence each.
  5. Finale — the probabilist’s checklist, one line per item: outcomes equally likely before counting (question 15); trees and complements for multi-step and “at least” (questions 2–3); information changes probabilities, and how it was obtained matters (questions 7–14); samples fluctuate by about 1n\frac{1}{\sqrt n}, and simulation arbitrates (questions 11, 16–18).
Solution

Solution of Problem 9.1.

1. P(king or heart)=452+1352152=1652=413P(\text{king or heart}) = \frac{4}{52} + \frac{13}{52} - \frac{1}{52} = \frac{16}{52} = \frac{4}{13}: the king of hearts sits in both events and must not be counted twice — hence the subtraction (Theorem 9.6).

2. P(no head)=(12)3=18P(\text{no head}) = \left(\frac12\right)^3 = \frac18, so P(at least one)=78P(\text{at least one}) = \frac78.

3. P(RR)=35×24=310P(RR) = \frac35 \times \frac24 = \frac{3}{10}; P(one of each)=35×24+25×34=620+620=35P(\text{one of each}) = \frac35 \times \frac24 + \frac25 \times \frac34 = \frac{6}{20} + \frac{6}{20} = \frac35.

4. P(BB)=25×14=110P(BB) = \frac25 \times \frac14 = \frac1{10}; and 310+610+110=1\frac{3}{10} + \frac{6}{10} + \frac{1}{10} = 1: the tree’s leaves always total 11.

5. Incompatible events obey P(AB)=P(A)+P(B)=1.1>1P(A \cup B) = P(A) + P(B) = 1.1 > 1: impossible — some probability was invented.

6. (Most people, including the thousand letter-writers, answer “it doesn’t matter, 50–50”. Keep your answer for question 8.)

7. Car behind door 1 (probability 13\frac13): the host opens either goat door; switching leaves the car: lose. Car behind door 2 (13\frac13): the host must open door 3; switching lands on door 2: win. Car behind door 3: symmetric: win. Total: P(switch wins)=13+13=23P(\text{switch wins}) = \frac13 + \frac13 = \frac23.

8. Your first pick is wrong with probability 23\frac23 — and precisely then, the host’s forced reveal leaves the car behind the remaining door: switching converts every initial error into a win. 23\frac23, whatever the gut said.

9. Six equally likely scenarios: car behind 11, 22 or 33, host opens door 22 or 33 (never yours). The reveal shows the car in two of them (car@2/opens 2, car@3/opens 3): discarded. Among the four survivors — car@1/opens 2, car@1/opens 3, car@2/opens 3, car@3/opens 2 — switching wins in the last two: 24=12\frac24 = \frac12. With an ignorant host, 50–50 is correct: the paradox lives entirely in the host’s knowledge, which filters the scenarios unevenly.

10. Your pick holds the car with probability 1100\frac{1}{100}; the knowing host’s 9898 reveals funnel the remaining 99100\frac{99}{100} onto the one closed door. Switch, and win 9999 times in 100100.

11. Three cards (one ace, two jokers), a friend who peeks and always discards a joker from the two you did not pick; play 300300 rounds, always switching, and record wins. Expected frequency 230.667\frac23 \approx 0.667, with fluctuation ±13000.058\pm\frac{1}{\sqrt{300}} \approx 0.058: expect between about 61%61\,\% and 72%72\,\% switching wins — far from any “50–50”.

12. Equally likely configurations (elder–younger): BB, BG, GB, GG. “At least one boy” keeps BB, BG, GB: P(BB)=13P(\text{BB}) = \frac13.

13. “The elder is a boy” keeps BB, BG: P(BB)=12P(\text{BB}) = \frac12. Different information filters different scenario sets — exactly as the two Montys did: what you learn matters, and how you learned it matters just as much.

14. All alike: HHH, TTT: 28=14\frac28 = \frac14. D’Alembert’s error: his two “cases” are not equally likely — “not all alike” bundles six of the eight outcomes. Proposition 9.3 counts only over equally likely outcomes.

15. Average winnings per game: 6×16+3×16=1.506 \times \frac16 + 3 \times \frac16 = 1.50 euros, against a 22-euro stake: an average loss of 0.500.50 per game, about 300300 euros over 600600 games. The fair premium equalizes average payout: 1%×10000=1001\,\% \times 10\,000 = 100 euros; real premiums add costs and a safety margin — the insurer must survive bad years, not just average ones.

16. Interval: 0.5±1100=[0.4,0.6]0.5 \pm \frac{1}{\sqrt{100}} = \intcc{0.4}{0.6}. 5555 heads (0.550.55): inside, unremarkable. 7070 heads (0.700.70): far outside — doubt the coin.

17. 110000.032\frac{1}{\sqrt{1000}} \approx 0.032: a fair 50%50\,\% candidate would typically poll in [0.468,0.532]\intcc{0.468}{0.532} — and 0.520.52 sits comfortably inside. The poll suggests a lead but proves nothing: the margin swallows it.

18. First sample: interval 0.04±120=[0,0.09]0.04 \pm \frac{1}{20} = \intcc{0}{0.09}; the observed 0.070.07 is inside: no verdict. Second: 0.04±150=[0.02,0.06]0.04 \pm \frac{1}{50} = \intcc{0.02}{0.06}; the observed 0.070.07 falls outside: the claim is now in serious doubt. Same frequency, sharper instrument: precision grows like n\sqrt n.

19. Fluctuation shrinks like 1n\frac{1}{\sqrt n}: quadruple the sample, halve the noise. Bias — asking the wrong crowd — survives any nn: two million badly chosen ballots stayed wrong (the how-data-lies weekend problem of the Middle School volume).

20. (i) Check outcomes are equally likely before counting — d’Alembert forgot. (ii) Trees multiply along branches; “at least one” surrenders to the complement. (iii) Information filters scenarios, and its source changes the filter — knowing Monty against fallen Monty, elder-boy against some-boy. (iv) Frequencies approach probabilities at speed 1n\frac{1}{\sqrt n}, so a patient simulation settles any argument — including one with ten thousand angry letter-writers.