Lessons and exercises follow the school system and stay in its language.Les leçons et les exercices suivent le système scolaire et restent dans sa langue.Lektionen und Übungen folgen dem Schulsystem und bleiben in seiner Sprache.

Applications of probability

Print the chapter

Every lesson of the chapter, ready for paper. Exercise sets are lettered A, B, C… and answered at the end.

To save a PDF, choose “Save as PDF” in the print dialog.

1. Probability with equally likely outcomes; the complement

Warm-up

Three quick questions from earlier lessons.

  1. A survey of 23 students records the following. Tick all the categorical variables.
    1. Eye color
    2. ZIP code
    3. Takes the bus to school (yes/no)
    4. Height in cm
    5. Number of siblings
  2. Area codes such as 770 are numbers. Is the area code of a phone number a quantitative variable?
    1. No: it is categorical, a label that only looks like a number
    2. Yes: its values are numbers
    3. Yes, a discrete quantitative variable
  3. A study measures the resting heart rate of 29 runners. What are the cases (observational units)?
    1. The 29 runners
    2. The heart rates
    3. The number 29

Discover

Two dice are rolled. The sums go from 2 to 12: eleven values. Is each sum equally likely, with probability 111\tfrac{1}{11}?

  1. No
  2. Yes

Roll two dice 1,000 times. Which sum comes up most often?

  1. 7
  2. All sums come up about equally often

Key idea

Probability with equally likely outcomes, and the complement.

If all outcomes in the sample space are equally likely, P(A)=number of outcomes in Anumber of outcomesP(A) = \dfrac{\text{number of outcomes in } A}{\text{number of outcomes}}. Always 0≤P(A)≤10 \le P(A) \le 1, and P(not A)=1−P(A)P(\text{not } A) = 1 - P(A).

Worked example

At least one head in 3 coin tosses.

P(no heads)=18P(\text{no heads}) = \tfrac{1}{8}
8 equally likely sequences.
P(at least one head)=1−18P(\text{at least one head}) = 1 - \tfrac{1}{8}
Complement.
=78= \tfrac{7}{8}
Compute.

Your turn, guided

Your turn: P(sum = 7) with two dice.

16\tfrac{1}{6}
6 pairs of 36.

Practice ★

  1. Two fair dice are rolled. Find the probability that the sum is 2.
  2. Two fair dice are rolled. Find the probability that the sum is 12.
  1. The probability that a flight is late is 0.78. Find the probability that it is not late.

Watch out!

Practice ★★

  1. A fair die is rolled 2 times. Find the probability of at least one six.
  2. A fair die is rolled 6 times. Find the probability of at least one six.

Exit ticket

Three questions to check you have got it.

  1. Two fair dice are rolled. Find the probability that the sum is 2.
  2. Two fair dice are rolled. Find the probability that the sum is 12.
  3. Two fair dice are rolled. Find the probability that the sum is 8.

Summary card

Basics

  • Equally likely: favorable ÷ total.
  • P(not A)=1−P(A)P(\text{not } A) = 1 - P(A); "at least one" via the complement.

Watch out: make sure the outcomes really are equally likely.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. Two fair dice are rolled and the two numbers are multiplied. What is the probability that the product is odd?

2. The addition rule and mutually exclusive events

Warm-up

Three quick questions from earlier lessons.

  1. Two fair dice are rolled. Find the probability that the sum is 2.
  2. A fair die is rolled 2 times. Find the probability of at least one six.
  3. The probability that a flight is late is 0.78. Find the probability that it is not late.

Discover

In a deck of 52 cards, 13 are hearts and 4 are kings. How many cards are a heart or a king?

  1. 16
  2. 17

Key idea

Add, then remove the overlap.

General addition rule: P(A or B)=P(A)+P(B)−P(A and B)P(A \text{ or } B) = P(A) + P(B) - P(A \text{ and } B). If AA and BB are mutually exclusive (cannot both happen), P(A and B)=0P(A \text{ and } B) = 0 and P(A or B)=P(A)+P(B)P(A \text{ or } B) = P(A) + P(B).

Worked example

P(heart or king).

1352+452−152\tfrac{13}{52} + \tfrac{4}{52} - \tfrac{1}{52}
Each part.
=1652=413= \tfrac{16}{52} = \tfrac{4}{13}
Simplify.

Your turn, guided

Your turn: P(A) = 0.5, P(B) = 0.4, P(A and B) = 0.2. Find P(A or B).

0.70.7
0.5 + 0.4 − 0.2.

Practice ★

  1. In a class of 35 students, 12 are girls, 12 play soccer and 2 girls play soccer. A student is chosen at random. Find P(girl or soccer player).
  2. In a class of 34 students, 16 are girls, 10 play soccer and 4 girls play soccer. A student is chosen at random. Find P(girl or soccer player).
  3. In a class of 35 students, 19 are girls, 8 play soccer and 4 girls play soccer. A student is chosen at random. Find P(girl or soccer player).

Watch out!

Practice ★★

  1. Events A and B are mutually exclusive, with P(A) = 0.31 and P(B) = 0.24. Find P(A and B).
  1. A spinner lands on red with probability 0.20 and on blue with probability 0.10. Find P(red or blue).

Exit ticket

Three questions to check you have got it.

  1. In a class of 35 students, 12 are girls, 12 play soccer and 2 girls play soccer. A student is chosen at random. Find P(girl or soccer player).
  2. In a class of 34 students, 16 are girls, 10 play soccer and 4 girls play soccer. A student is chosen at random. Find P(girl or soccer player).
  3. In a class of 35 students, 19 are girls, 8 play soccer and 4 girls play soccer. A student is chosen at random. Find P(girl or soccer player).

Summary card

Addition rule

P(A or B)=P(A)+P(B)−P(A and B)P(A \text{ or } B) = P(A) + P(B) - P(A \text{ and } B); for disjoint events the last term is 0.

Watch out: disjoint is not the same as independent.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. P(A)=310P(A) = \dfrac{ 3 }{10}, P(B)=610P(B) = \dfrac{ 6 }{10} and P(A∪B)=610P(A \cup B) = \dfrac{ 6 }{10}. Find P(A∩B)P(A \cap B).

3. Conditional probability

Warm-up

Three quick questions from earlier lessons.

  1. In a class of 35 students, 12 are girls, 12 play soccer and 2 girls play soccer. A student is chosen at random. Find P(girl or soccer player).
  2. Events A and B are mutually exclusive, with P(A) = 0.31 and P(B) = 0.24. Find P(A and B).
  3. A spinner lands on red with probability 0.20 and on blue with probability 0.10. Find P(red or blue).

Discover

Of 100 students, 40 take French; 10 of those also take Spanish. Among the French students, what is the probability of taking Spanish?

  1. 1040\tfrac{10}{40}
  2. 10100\tfrac{10}{100}

Key idea

Conditioning shrinks the sample space.

P(A∣B)=P(A and B)P(B)P(A \mid B) = \dfrac{P(A \text{ and } B)}{P(B)}: the probability of AA among the outcomes in BB. In general P(A∣B)≠P(B∣A)P(A \mid B) \ne P(B \mid A).

Worked example

P(rain) = 0.3, P(late) = 0.2, P(rain and late) = 0.12.

P(late∣rain)=0.120.3=0.4P(\text{late} \mid \text{rain}) = \tfrac{0.12}{0.3} = 0.4
Divide by P(rain).
P(rain∣late)=0.120.2=0.6P(\text{rain} \mid \text{late}) = \tfrac{0.12}{0.2} = 0.6
Divide by P(late).
Two different numbers
Different conditions.

Your turn, guided

Your turn: P(A and B) = 0.1, P(B) = 0.4. Find P(A | B).

0.250.25
0.1 ÷ 0.4.

Practice ★

  1. P(A) = 0.60, P(B) = 0.22 and P(A and B) = 0.5. Find P(A | B).
  2. P(A) = 0.55, P(B) = 0.33 and P(A and B) = 0.13. Find P(A | B).
  1. A screening test was given to 316 people: 47 had the disease and tested positive, 8 had the disease and tested negative, 34 did not have it and tested positive, 227 did not have it and tested negative. Find P(disease | positive).
  2. A screening test was given to 256 people: 33 had the disease and tested positive, 7 had the disease and tested negative, 21 did not have it and tested positive, 195 did not have it and tested negative. Find P(disease | positive).

Watch out!

Practice ★★

  1. A test detects a disease in 87% of people who have it. Which statement says the same thing?
    1. P(positive | disease) = 0.87
    2. P(disease | positive) = 0.87
    3. P(disease and positive) = 0.87

Exit ticket

Three questions to check you have got it.

  1. A screening test was given to 316 people: 47 had the disease and tested positive, 8 had the disease and tested negative, 34 did not have it and tested positive, 227 did not have it and tested negative. Find P(disease | positive).
  2. A screening test was given to 256 people: 33 had the disease and tested positive, 7 had the disease and tested negative, 21 did not have it and tested positive, 195 did not have it and tested negative. Find P(disease | positive).
  3. A screening test was given to 239 people: 57 had the disease and tested positive, 3 had the disease and tested negative, 29 did not have it and tested positive, 150 did not have it and tested negative. Find P(disease | positive).

Summary card

Conditional probability

P(A∣B)=P(A and B)/P(B)P(A \mid B) = P(A \text{ and } B) / P(B).

Watch out: P(A∣B)P(A \mid B) and P(B∣A)P(B \mid A) are different.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. P(A)=0.5P(A) = 0.5, P(B∣A)=0.8P(B \mid A) = 0.8 and P(B)=0.6P(B) = 0.6. Find P(A∣B)P(A \mid B).

4. Independence and the multiplication rule

Warm-up

Three quick questions from earlier lessons.

  1. A screening test was given to 316 people: 47 had the disease and tested positive, 8 had the disease and tested negative, 34 did not have it and tested positive, 227 did not have it and tested negative. Find P(disease | positive).
  2. P(A) = 0.60, P(B) = 0.22 and P(A and B) = 0.5. Find P(A | B).
  3. A test detects a disease in 87% of people who have it. Which statement says the same thing?
    1. P(positive | disease) = 0.87
    2. P(disease | positive) = 0.87
    3. P(disease and positive) = 0.87

Discover

A card is drawn from a deck. Does knowing it is a heart change the probability that it is a king?

  1. No
  2. Yes

Key idea

Independent events do not influence each other.

AA and BB are independent if P(A∣B)=P(A)P(A \mid B) = P(A), equivalently P(A and B)=P(A) P(B)P(A \text{ and } B) = P(A)\,P(B). In general P(A and B)=P(A) P(B∣A)P(A \text{ and } B) = P(A)\,P(B \mid A). Draws without replacement are dependent.

Worked example

Two cards drawn without replacement: P(both aces).

P(ace)=452P(\text{ace}) = \tfrac{4}{52}
First draw.
P(ace∣ace)=351P(\text{ace} \mid \text{ace}) = \tfrac{3}{51}
3 aces left of 51.
452⋅351=1221\tfrac{4}{52} \cdot \tfrac{3}{51} = \tfrac{1}{221}
Multiply.

Your turn, guided

Your turn: two independent events with probabilities 0.5 and 0.3. P(both).

0.150.15
0.5 × 0.3.

Practice ★

  1. Two independent machines fail with probabilities 0.2 and 0.2. Find the probability that both fail.
  2. Two independent machines fail with probabilities 0.9 and 0.2. Find the probability that both fail.
  1. P(A) = 3/10, P(B) = 6/10 and P(A and B) = 18/100. Are A and B independent?
    1. Yes: P(A and B) = P(A)·P(B)
    2. No, because P(A and B) > 0
    3. It cannot be decided

Watch out!

Practice ★★

  1. A bag has 3 red and 3 blue marbles. Two are drawn without replacement. Find P(both red).
  2. A bag has 16 red and 19 blue marbles. Two are drawn without replacement. Find P(both red).

Exit ticket

Three questions to check you have got it.

  1. Two independent machines fail with probabilities 0.2 and 0.2. Find the probability that both fail.
  2. Two independent machines fail with probabilities 0.9 and 0.2. Find the probability that both fail.
  3. Two independent machines fail with probabilities 0.5 and 0.5. Find the probability that both fail.

Summary card

Independence

  • Independent: P(A and B)=P(A)P(B)P(A \text{ and } B) = P(A)P(B).
  • In general: P(A)P(B∣A)P(A)P(B \mid A).

Watch out: without replacement, update the second probability.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. Three independent machines each fail with probability 0.2. Find the probability that at least one fails.

5. Tree diagrams and reverse conditioning

Warm-up

Three quick questions from earlier lessons.

  1. Two independent machines fail with probabilities 0.2 and 0.2. Find the probability that both fail.
  2. P(A) = 3/10, P(B) = 6/10 and P(A and B) = 18/100. Are A and B independent?
    1. Yes: P(A and B) = P(A)·P(B)
    2. No, because P(A and B) > 0
    3. It cannot be decided
  3. A bag has 3 red and 3 blue marbles. Two are drawn without replacement. Find P(both red).

Discover

1% of people have a condition. A test is positive for 95% of them, and for 5% of healthy people. Of 10,000 people, about how many test positive in total?

  1. About 590
  2. About 5,000

Key idea

A tree organizes conditional probabilities.

First branches: P(A)P(A) and P(not A)P(\text{not } A); second branches: conditional probabilities. Multiply along a path; add the paths that end in BB to get P(B)P(B). Then P(A∣B)=P(A and B)P(B)P(A \mid B) = \dfrac{P(A \text{ and } B)}{P(B)} (reverse conditioning, Bayes' rule).

Worked example

With the numbers above: P(condition | positive).

0.01×0.95=0.00950.01 \times 0.95 = 0.0095
Path: condition, positive.
P(+)=0.0095+0.99×0.05=0.059P(+) = 0.0095 + 0.99 \times 0.05 = 0.059
Both paths to positive.
P(condition∣+)=0.00950.059≈0.16P(\text{condition} \mid +) = \tfrac{0.0095}{0.059} \approx 0.16
Divide.

Your turn, guided

Your turn: P(A) = 0.2, P(B | A) = 0.5, P(B | not A) = 0.25. Find P(B).

0.30.3
0.2 × 0.5 + 0.8 × 0.25.

Practice ★

  1. 12% of a population has a condition. A test is positive for 86% of people with the condition and for 11% of people without it. Find P(positive).
  2. 14% of a population has a condition. A test is positive for 94% of people with the condition and for 8% of people without it. Find P(positive).
  1. 22% of a population has a condition. A test is positive for 81% of people with the condition and for 12% of people without it. Find P(condition | positive).

Watch out!

Practice ★★

  1. A disease affects 1 in 1,000 people. A test is 93% accurate for both sick and healthy people. Your test is positive. What is most likely?
    1. You are still more likely healthy: false positives from the many healthy people outnumber the true positives
    2. You are about 93% likely to be sick
    3. You are certainly sick

Exit ticket

Three questions to check you have got it.

  1. 12% of a population has a condition. A test is positive for 86% of people with the condition and for 11% of people without it. Find P(positive).
  2. 14% of a population has a condition. A test is positive for 94% of people with the condition and for 8% of people without it. Find P(positive).
  3. 28% of a population has a condition. A test is positive for 95% of people with the condition and for 14% of people without it. Find P(positive).

Summary card

Trees

  • Multiply along paths; add paths to the same end.
  • P(A∣B)=P(A and B)/P(B)P(A \mid B) = P(A \text{ and } B)/P(B).

Watch out: with rare events, most positives can be false.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. 16% of a population has a condition. A test is positive for 93% of people with it and for 13% of people without it. Your test is negative. Find the probability that you do not have the condition.

6. Permutations and combinations in probability

Warm-up

Three quick questions from earlier lessons.

  1. Two fair dice are rolled. Find the probability that the sum is 2.
  2. A fair die is rolled 2 times. Find the probability of at least one six.
  3. The probability that a flight is late is 0.78. Find the probability that it is not late.

Discover

In how many orders can 3 books stand on a shelf?

  1. 6
  2. 3

Key idea

Count ordered choices; divide when order does not matter.

Choosing rr things from nn in order (a permutation): nPr=n(n−1)⋯(n−r+1)_nP_r = n(n - 1) \cdots (n - r + 1). Choosing rr things without order (a combination): nCr=nPrr!_nC_r = \dfrac{_nP_r}{r!}, because each group was counted r!r! times. With equally likely outcomes, a probability is (favorable count) ÷ (total count).

Worked example

Choose 2 of 5 students: as president and treasurer, or as a pair.

5⋅4=205 \cdot 4 = 20
In order.
20÷2!=1020 \div 2! = 10
As a pair.

Your turn, guided

Your turn: choose 2 of 6 for a committee.

1515
6 · 5 ÷ 2.

Practice ★

  1. 5 runners are in a race. In how many ways can the gold, silver and bronze medals be awarded?
  2. 15 runners are in a race. In how many ways can the gold, silver and bronze medals be awarded?
  1. Which question is answered by counting arrangements where order matters (a permutation)?
    1. In how many ways can 5 students stand in a line for a photo?
    2. In how many ways can 2 of the 5 students be chosen for a committee?
    3. How many handshakes happen if each of 5 students shakes hands once with every other?

Watch out!

Practice ★★

  1. In how many ways can a team of 3 students be chosen from 6 students?
  2. In how many ways can a team of 3 students be chosen from 15 students?
  1. Two students are chosen at random from a class of 4 to go on a trip. What is the probability that both Ana and Ben are chosen?

Exit ticket

Three questions to check you have got it.

  1. 5 runners are in a race. In how many ways can the gold, silver and bronze medals be awarded?
  2. 15 runners are in a race. In how many ways can the gold, silver and bronze medals be awarded?
  3. 6 runners are in a race. In how many ways can the gold, silver and bronze medals be awarded?

Summary card

Permutations and combinations

Order matters: nPr. Order does not: nCr = nPr ÷ r!.

Watch out: ask whether swapping two choices changes the result.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. A team of 3 is chosen from 15 students. How many teams include Ana?

7. The birthday problem

Discover

In a class of 23 students, is it likely that two share a birthday?

  1. Yes, slightly more than 50 %
  2. No, you would need about 183 people

Key idea

The birthday problem.

Count the opposite event, all different: with dd equally likely days and nn people,

P(all different)=dd×d−1d×⋯×d−n+1dP(\text{all different}) = \dfrac{d}{d} \times \dfrac{d-1}{d} \times \dots \times \dfrac{d-n+1}{d}, so P(a shared day)=1−P(all different)P(\text{a shared day}) = 1 - P(\text{all different}).

Worked example

3 people: what is the chance that at least two share a birth month (12 equally likely months)?

1212×1112×1012=5572\dfrac{12}{12} \times \dfrac{11}{12} \times \dfrac{10}{12} = \dfrac{55}{72}
All different: the second avoids 1 month, the third avoids 2.
1−5572=1772≈24 %1 - \dfrac{55}{72} = \dfrac{17}{72} \approx 24\,\%
Opposite event.

Your turn, guided

Your turn: 2 people: what is the chance they share a birth month?

112\dfrac{1}{12}
1−11121 - \dfrac{11}{12}.

Practice ★

  1. 3 people each have one of 12 equally likely birth months. What is the probability that at least two share a month?
  2. 5 people each have one of 12 equally likely birth months. What is the probability that at least two share a month?
  3. 2 people each have one of 12 equally likely birth months. What is the probability that at least two share a month?

Practice ★★

  1. With 12 equally likely birth months, what is the smallest group in which the chance of a shared month is more than one half?

Exit ticket

Two questions to check.

  1. 3 people each have one of 12 equally likely birth months. What is the probability that at least two share a month?
  2. 5 people each have one of 12 equally likely birth months. What is the probability that at least two share a month?

Summary card

Shared birthdays

  • 'At least two the same' is the opposite of 'all different'.
  • Multiply the chances for each new person.

The same idea checks how often two files get the same short code in computing.

8. History of probability: Pascal, Fermat and the problem of points

Discover

Two players stop a game of chance before the end. One is ahead. How should they share the stakes fairly? In the summer of 1654, Blaise Pascal and Pierre de Fermat answered this in five letters. What was new in their answer?

  1. Share by each player's chance of winning if the game had gone on
  2. Share by the points already won

Key idea

From games of chance to a theory.

1560158016001620164016601680c. 1563Cardanoc. 1563Cardano
  1. Step 11560158016001620164016601680c. 1563Cardanoc. 1563CardanoGerolamo Cardano 1501–1576R. Cooper. Wellcome Collection (V0001004). CC BY 4.0About 1563: Cardano finishes his book on games of chance. It is printed only in 1663.
  2. Step 21560158016001620164016601680c. 1563Cardano1654Pascal & Fermatc. 1563Cardano1654Pascal & FermatBlaise Pascal 1623–1662Gérard Edelinck, about 1691. Clermont Auvergne Métropole, Bibliothèque du patrimoine, GRA 6025. CC BY-SA 4.0Pierre de Fermat c. 1607 – 1665Rolland Lefebvre. Public domainSummer 1654: five letters between Pascal and Fermat solve the problem of points and study the dice problem.
  3. Step 31560158016001620164016601680c. 1563Cardano1654Pascal & Fermat1657Huygensc. 1563Cardano1654Pascal & Fermat1657HuygensChristiaan Huygens 1629–1695Bernard Vaillant, 1686. Public domain1657: Huygens prints the first book on the calculation of chances.

Cardano wrote a book on games of chance (finished by about 1563, printed in 1663). Pascal and Fermat solved the problem of points in 1654. In 1657 Huygens printed the first book on probability.

Source

I see that the truth is the same in Toulouse and in Paris.

Blaise Pascal, letter to Pierre de Fermat, 29 July 1654 (our translation from French)

Why does Pascal write this?

  1. Fermat (in Toulouse) and he (in Paris) found the same result by two methods
  2. To say that games of chance are the same everywhere

Worked example

The problem of points, our way: first to win 3 rounds wins; each round is 50–50. A has 2 wins, B has 1.

P(B wins)=12×12=14P(\text{B wins}) = \tfrac{1}{2} \times \tfrac{1}{2} = \tfrac{1}{4}
B must win the next 2 rounds.
P(A wins)=34P(\text{A wins}) = \tfrac{3}{4}
So A should get 3 quarters of the stakes.

Practice ★

  1. Who printed the first book on probability, in 1657?
    1. Christiaan Huygens
    2. Girolamo Cardano
    3. Blaise Pascal
  1. The problem of points: each round is 50–50. A needs 1 more win, B needs 5 more wins. What is A's chance of winning, which fixes A's fair share?
  2. The problem of points: each round is 50–50. A needs 1 more win, B needs 4 more wins. What is A's chance of winning, which fixes A's fair share?
  1. The dice problem of 1654: a pair of dice is thrown 19 times. What is the probability of at least one double six?

Summary card

Probability today

  • Weather forecasts give chances of rain.
  • Insurance prices come from probabilities of accidents and illness.
  • Medicine tests drugs and reads test results with probability.

Sources: MacTutor biographies of Cardano, Pascal and Huygens (see "Sources and credits").