Grade by GradeEssential student suppliesSign in
C. Content · Foundations of Mathematics 12 Content

Conditional Probability and Binomial Probability

BC FOM 12: odds, probability BC FOM 12: binomial probabilityAbout 75 minutes
Learning goals
  • I can find conditional probabilities from tables, tree diagrams and the formula P(B | A) = P(A and B) ÷ P(A).
  • I can decide whether two events are independent.
  • I can explain why a medical or screening test that is "98% accurate" may still give many false positives.
  • I can use the binomial probability formula for repeated independent trials.

Words to know

conditional probability
The probability of B given that A has happened, written P(B | A).
independent events
Events where one happening does not change the probability of the other: P(A and B) = P(A) × P(B).
dependent events
Events where one happening changes the probability of the other.
binomial experiment
A fixed number of independent trials, each with two outcomes (success or failure) and the same probability of success.
false positive
A test result that says a condition is present when it is not.

Given that...

A conditional probability restricts the sample space to the cases where something is already known.

P(B | A) = P(A and B) ÷ P(A), read "the probability of B given A".

Equivalently, P(A and B) = P(A) × P(B | A). If knowing A does not change the chance of B, the events are independent and P(A and B) = P(A) × P(B). Drawing cards without replacement makes events dependent: the second draw depends on the first.

Has a driver's licenceNo licenceTotal
Has a part-time job482270
No job5278130
Total100100200
A made-up survey of 200 Grade 12 students.
Worked example

Example 1: Conditional probability from a table

Use the survey. Find P(licence | job) and P(job | licence). Are "has a job" and "has a licence" independent?

  1. P(licence | job): only look at the 70 with jobs. 48 of them have a licence: 48/70 ≈ 0.686.
  2. P(job | licence): only look at the 100 with licences. 48 have jobs: 48/100 = 0.48.
  3. Independence test: P(job) × P(licence) = 0.35 × 0.5 = 0.175, but P(job and licence) = 48/200 = 0.24.
  4. Since 0.175 ≠ 0.24, the events are not independent.

P(licence | job) ≈ 0.686, P(job | licence) = 0.48; the events are dependent. (Note that P(B | A) and P(A | B) are usually different.)

How reliable is a test that is 98% accurate?

Suppose 1% of a population has a condition. A screening test correctly detects it 98% of the time, and correctly gives a negative result 98% of the time for people who do not have it (so 2% of them get a false positive). If someone tests positive, what is the chance they have the condition? A tree diagram answers it.

0.010.99has itdoes not0.98+0.02-0.02+0.98-0.00980.00020.01980.9702
Tree diagram for a test with 98% accuracy when 1% of people have the condition. The products at the right are the probabilities of each path.
Worked example

Example 2: A positive test result

Using the tree, find P(has the condition | positive).

  1. P(has it and +) = 0.01 × 0.98 = 0.0098.
  2. P(does not and +) = 0.99 × 0.02 = 0.0198.
  3. P(+) = 0.0098 + 0.0198 = 0.0296.
  4. P(has it | +) = 0.0098 ÷ 0.0296 ≈ 0.331.

Only about 33%. Because the condition is rare, most positive results come from the large group without it. This is why a positive screening test is usually followed by a second, different test. Accuracy (how often the test is right) and reliability of a single positive result are not the same thing.

Binomial probability

A binomial experiment has a fixed number n of independent trials, each with the same probability p of success. The probability of exactly k successes is

P(k) = nCk × p^k × (1 - p)^(n - k)

nCk counts the ways to place the k successes among the n trials (from the combinatorics lessons). The expected number of successes is n × p.

Successes k012345
P(k), n = 5, p = 0.70.002 430.028 350.132 300.308 700.360 150.168 07
Binomial distribution for 5 free throws by a player who makes 70%. The probabilities add to 1, and the expected number is 5 × 0.7 = 3.5.
Worked example

Example 3: Free throws

A basketball player makes 70% of free throws, and the shots are independent. In 5 shots, find P(exactly 3) and P(at least 4).

  1. Exactly 3: 5C3 × 0.7³ × 0.3² = 10 × 0.343 × 0.09 = 0.3087.
  2. Exactly 4: 5C4 × 0.7⁴ × 0.3 = 5 × 0.2401 × 0.3 = 0.360 15.
  3. Exactly 5: 0.7⁵ = 0.168 07.
  4. At least 4: 0.360 15 + 0.168 07 = 0.528 22.

P(exactly 3) ≈ 0.309; P(at least 4) ≈ 0.528.

Check the four conditions

Before using the binomial formula, check: a fixed number of trials, two outcomes, the same p every time, and independent trials. Drawing without replacement from a small group breaks the "same p" condition.

Hands-on activity

Guessing on a test

A 10-question multiple-choice quiz has 4 choices per question. Use the binomial formula (or a calculator's binompdf feature) to make a table of P(k correct) for k = 0 to 10 if a student guesses every answer. What is the most likely score? What is the chance of passing (5 or more correct)? Then simulate it: roll a 4-sided die (or use a random number generator) for 10 questions, 20 times, and compare.

Just for fun

The bad reasoning in Example 2 is common enough to have a name: the base rate fallacy. Studies have found that many people, including some professionals, guess that a positive result on a 98% accurate test means a 98% chance of having the condition.

Your turn

1

A bag has 5 red and 3 blue marbles. Two are drawn without replacement. Find P(both red).

2

Find P(both red) if the first marble is put back before the second draw.

3

P(A) = 0.5, P(B) = 0.4 and P(A and B) = 0.2. Are A and B independent?

4

P(A) = 0.6 and P(A and B) = 0.15. Find P(B | A).

5

A fair coin is flipped 6 times. Find P(exactly 3 heads).

6

A student guesses all 10 questions on a 4-choice quiz. Find P(exactly 5 correct).

More practice

1

90% of a type of seed sprout. Eight are planted. Find P(all 8 sprout).

2

Find P(at least 7 of 8 sprout).

3

How many of the 8 seeds would you expect to sprout?

4

A condition affects 5% of a group. A test detects it 90% of the time and gives a false positive 10% of the time. Find P(condition | positive).

5

Explain why drawing 2 cards without replacement is not a binomial experiment for "number of hearts".

Check your understanding

Quiz

1.

P(A) = 0.4 and P(A and B) = 0.1. What is P(B | A)?

2.

Which is NOT a condition of a binomial experiment?

3.

A coin is flipped 4 times. What is P(exactly 2 heads)?

4.

A rare condition and a 98% accurate test: why can P(condition | positive) be low?

For parents and teachers

How to help: The screening-test example is worth talking about at home: it shows why doctors order a second test and why "98% accurate" needs a closer look. Sports statistics, such as free-throw or save percentages, make good binomial examples.

Common mistakes:

  • Mixing up P(A | B) and P(B | A).
  • Multiplying probabilities of dependent events as if they were independent.
  • Forgetting the nCk factor in the binomial formula.
  • Finding "at least" by computing only one case.