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 ; 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 a number , with , defines a probability: the probability of an event is the sum of the of the outcomes in . In particular and the impossible event has probability .
Proposition 9.3 (Equally likely outcomes)
If the outcomes are equally likely (each ), then for every event :
Proof. contains some number of outcomes, each of probability , so . ∎
Example 9.4
Roll a fair die: , each outcome having probability . The event : “the result is even” is , so . The event : “the result is at least ” is , so .
9.2 Combining events
Definition 9.5 (Intersection, union, complement)
Let and be events.
- (“ and ”) occurs when both occur;
- (“ or ”) occurs when at least one occurs;
- the complement (“not ”) occurs exactly when does not;
- and are incompatible when they cannot occur together: .
Theorem 9.6 (Addition rules)
For all events and :
For incompatible events, the first rule simplifies to .
Proof. Summing adds the probability of every outcome of once, except those of , which are counted twice — once in and once in . Subtracting repairs the double counting. For the complement: and are incompatible and , so . ∎
Example 9.7
Draw one card from a standard -card deck. Let : “the card is a heart” ( cards) and : “the card is a king” ( cards). Then is “the king of hearts” ( card), and
The complement rule is often the fastest route: the probability that the card is not a heart is .
9.3 Tree diagrams
Method 9.8 (Two-step experiments)
For an experiment performed in two steps:
- 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 );
- the probability of a path (a leaf of the tree) is the product of the probabilities along its branches;
- the probability of an event is the sum of the probabilities of the paths that realize it.
Example 9.9
An urn contains red balls and blue balls. Draw one ball, put it back, draw again. Each draw gives red (R) with probability and blue (B) with probability .
The probability of getting two balls of the same color is ; the probability of at least one blue is (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 red and blue remain, so the second branch carries and . 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 is the result of repeating the same experiment times independently. The observed frequency of an event in the sample is the number of occurrences divided by .
Example 9.12
A fair coin gives heads with probability . Tossing it times rarely gives exactly heads: samples fluctuate. Typical runs of tosses give frequencies like , , — close to , but not equal. Larger samples fluctuate less: with tosses, observed frequencies are usually within about of .
Remark 9.13 (Fluctuation interval)
A useful rule of thumb, justified in Chapter 19: for a sample of size of an event of probability (with reasonably large), the observed frequency lies in the interval
in roughly of samples. If an observed frequency falls far outside this interval, doubt the value of : this is the starting point of statistical testing.
Example 9.14
A factory claims that only of its parts are defective (). In a sample of parts, are defective: observed frequency . The fluctuation interval is , and 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 ”; “getting an odd number”; “getting at most ”; “getting a ”.
Solution
Solution of Exercise 9.1.
Each of the outcomes has probability . “Getting a ”: . “Odd number” : . “At most ” : . “Getting a ”: impossible event, probability .
Exercise 9.2 ★
A bag contains green, yellow and 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 equally likely marbles. . . Green and yellow are incompatible: .
Exercise 9.3 ★
In a class of students, study Spanish, study German, and 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 : “studies Spanish”, : “studies German”. Then , , . Addition rule:
Complement: .
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 . Two heads: . Exactly one head (HT or TH): . At least one head: .
Exercise 9.5 ★★
An urn contains red and 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 , white . Second draw without replacement: after a red, red and white remain among ; after a white, red and white among .
Two reds: .
Different colors: paths RW and WR:
Exercise 9.6 ★★
Two fair dice are rolled and their sum is recorded.
- Explain why the sample space can be taken as the equally likely pairs .
- Compute the probability that the sum is ; that it is ; that it is at most .
- Which sum is the most likely?
Solution
Solution of Exercise 9.6.
1. Each die independently shows each face with probability , so the ordered pairs are equally likely; the sum is determined by the pair.
2. Sum : the pairs , so . Sum : only , . Sum at most : pairs summing to , or : ; ; — six pairs, so .
3. The number of pairs achieving each sum grows from (sum ) to (sum ) then decreases: the most likely sum is .
Exercise 9.7 ★★
A multiple-choice question offers answers, one correct. A student answers 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 .
Solution
Solution of Exercise 9.7.
Each question is answered correctly with probability , independently. Tree with two levels:
Both correct: .
Exactly one correct: paths correct–wrong and wrong–correct: .
None correct: .
Check: .
Exercise 9.8 ★★
A politician claims approval. In a poll of randomly chosen voters, approve.
Exercise 9.9 ★★★
A game costs to play: you roll a fair die and win if you roll a , if you roll a , nothing otherwise.
- Compute the probability of each amount won (, , ).
- Over 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. (roll a ), (roll a ), .
2. Over games, expect about sixes, fives, other rolls. Winnings: about . Cost: . Expected net result: , i.e. a loss of about 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.
- One card from a standard -card deck: compute with the addition rule — and say why alone is wrong.
- Three fair coin flips: compute by the complement.
- A bag holds red and blue marbles; two are drawn without replacement. With a tree, compute and .
- Complete the distribution of question 3 with and check the three probabilities sum to .
- Someone reports, for two incompatible events, and . 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.
- Before computing anything: does switching help, hurt, or not matter? Write down your gut answer — honestly.
- Now the tree, by cases on the car’s true position (each ): 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 .
- The one-line version: switching wins exactly when your first pick was wrong. Conclude again.
- 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 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?
- The intuition pump: one hundred doors, you pick one, the knowing host opens goat doors. Switch? With what probability of winning?
- 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 rounds — with the fluctuation interval of the chapter as your margin.
Part III — Cousins of the paradox.
- 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 .
- 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?
- Three fair coins: compute . 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.
- A game costs euros: roll a die, win euros on a six, euros on a five, nothing otherwise (Exercise 9.9). Over games, what average gain per game does the counting predict? An insurer plays the same mathematics: a yearly chance of a -euro claim — what is the fair premium, and why does the real premium exceed it?
Part IV — Samples as arbiters.
- A coin is flipped times. Using the fluctuation interval , decide which of these outcomes should raise eyebrows: heads; heads.
- A poll of voters gives a candidate . Compute the fluctuation interval around and say whether the poll proves the candidate is ahead.
- A factory claims defective parts. A sample of shows defective (); a later sample of shows ( again). Test the claim against each sample. Why do the verdicts differ?
- 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 grows, and which one survives any sample size? One sentence each.
- 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 , and simulation arbitrates (questions 11, 16–18).
Solution
Solution of Problem 9.1.
1. : the king of hearts sits in both events and must not be counted twice — hence the subtraction (Theorem 9.6).
2. , so .
3. ; .
4. ; and : the tree’s leaves always total .
5. Incompatible events obey : 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 ): the host opens either goat door; switching leaves the car: lose. Car behind door 2 (): the host must open door 3; switching lands on door 2: win. Car behind door 3: symmetric: win. Total: .
8. Your first pick is wrong with probability — and precisely then, the host’s forced reveal leaves the car behind the remaining door: switching converts every initial error into a win. , whatever the gut said.
9. Six equally likely scenarios: car behind , or , host opens door or (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: . 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 ; the knowing host’s reveals funnel the remaining onto the one closed door. Switch, and win times in .
11. Three cards (one ace, two jokers), a friend who peeks and always discards a joker from the two you did not pick; play rounds, always switching, and record wins. Expected frequency , with fluctuation : expect between about and 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: .
13. “The elder is a boy” keeps BB, BG: . 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: . 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: euros, against a -euro stake: an average loss of per game, about euros over games. The fair premium equalizes average payout: euros; real premiums add costs and a safety margin — the insurer must survive bad years, not just average ones.
16. Interval: . heads (): inside, unremarkable. heads (): far outside — doubt the coin.
17. : a fair candidate would typically poll in — and sits comfortably inside. The poll suggests a lead but proves nothing: the margin swallows it.
18. First sample: interval ; the observed is inside: no verdict. Second: ; the observed falls outside: the claim is now in serious doubt. Same frequency, sharper instrument: precision grows like .
19. Fluctuation shrinks like : quadruple the sample, halve the noise. Bias — asking the wrong crowd — survives any : 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 , so a patient simulation settles any argument — including one with ten thousand angry letter-writers.