Menu
Sign up Sign in

AI SL · 13.1

Probability

13.1.6

Conditional probability

13.1.6

Conditional probability

Target: I can write 'A given B' as P(A | B) and say what it means. (+4 more)

By the end of this section

Key points

What 'given that' means

  • P(A | B) is the probability of A given that B has happened (or is known). Read it 'A given B'.
  • Only the outcomes in B are left. B becomes the new sample space.
  • \(P(A\mid B)=\frac{P(A\cap B)}{P(B)}\). Use this formula, or a diagram. You do not need Bayes' theorem.
  • P(A | B) and P(B | A) are usually different. The event after 'given that' is the denominator.

Without replacement

  • If a counter or card is not put back, the second probability changes.
  • After the first draw, take 1 off the total. Take 1 off the count of the type you drew, if the second draw asks for the same type.
  • On a tree diagram the second-stage branches are conditional probabilities. The branches from each point add to 1.

Tables and Venn diagrams

  • Table: keep the row or column named after 'given that'. Its total is the denominator.
  • Venn from counts: fill the overlap first, then the 'only' parts by subtracting, then 'neither' = total − the rest.
  • Venn: keep only the circle named after 'given that'. Divide the part also in the other event by the whole circle.
  • 'Given that it is not B' keeps the regions outside B: A only and neither.

Explore: a two-stage tree diagram

Fill the tree from a bag of counters, with or without replacement, or type your own probabilities in the orange boxes. The grey box on each pair is 1 minus its partner.

The tree comes from

The four end products

Read out

Total of the four end products

Choose a bag or type your own probabilities.

  1. Choose "without replacement". Compare the second-stage branches after a red and after a blue. Why are they different? Then choose "with replacement": what changes?
  2. Look at the four end products. Why must they add to 1?
  3. Which is bigger, P(exactly one) or P(at least one)? Can they ever be equal? Try the counts to see.
  4. For "first, given second", why is the bottom of the fraction the probability of the second counter and not the first branch?

Explore: two events in a Venn diagram

Type P(A), P(B) and P(A ∩ B). The four regions fill in. Choose what to shade and read the working. The circles are not drawn to scale.

Shade

P(A ∪ B)
P(A′)
P(A | B)
P(B | A)
P(A) × P(B)

Type three probabilities to fill the diagram.

  1. Start with P(A) = 0.5 and P(B) = 0.4. Change only P(A ∩ B) until the events are independent. What value does it need, and how do you know?
  2. Choose "Mutually exclusive". Look at P(A | B). Why is it 0? Are the events independent?
  3. Compare P(A | B) with P(B | A). When are they the same, and why is it usually not so?
  4. Try a P(A ∩ B) bigger than P(A). What does the sentence say, and why can it never happen?

Worked examples

Problems like the ones in class. Pick one, try it, then open the working.
Without replacement: counters

A bag contains 4 blue and 7 yellow counters. Two counters are taken out at random, one after the other, without replacement. Given that the first counter is blue, find the probability that the second counter is yellow.

4/11Blue3/10Blue7/10Yellow7/11Yellow2/5Blue3/5Yellow
Working
  1. Take the first counter out

    4 blue + 7 yellow = 11. After a blue: 3 blue + 7 yellow = 10

    Without replacement the counter does not go back. The bag now has 10 counters.

  2. Read the branch

    7 of the 10 counters are yellow

    On the tree this is the branch that starts at 'Blue': second-stage probabilities are conditional.

  3. Probability

    \(P(Y2 | B1)=\frac{7}{10}=0.7\)

    The two branches from Blue add to 1: 3/10 + 7/10.

Video walkthrough coming
Without replacement: cards

Two cards are taken at random from a standard pack of 52 cards, without replacement. The first card is a queen. Find the probability that the second card is also a queen.

Working
  1. What is left

    52 − 1 = 51 cards; 4 − 1 = 3 queens

    Take the first card away from the total and from its own kind.

  2. Divide

    \(P=\frac{3}{51}=\frac{1}{17}\)

    Write the fraction in lowest terms.

Video walkthrough coming
From a two-way table

The table shows the options chosen by 80 students. A student is chosen at random. Given that the student is a boy, find the probability that the student chose music.

OptionGirlsBoysArt1812Music146Drama822
Working
  1. OptionGirlsBoysTotalArt181230Music14620Drama82230Total404080
    Totals

    Girls 40, Boys 40, total 80

    Add the columns.

  2. The definition

    \(P(\text{Music}\mid\text{Boy})=\frac{P(\text{Music and Boy})}{P(\text{Boy})}=\frac{6/80}{40/80}\)

    Both probabilities share the denominator 80.

  3. Simplify

    \(P=\frac{6}{40}=\frac{3}{20}=0.15\)

    The same as keeping the Boys column and dividing by its total.

Video walkthrough coming
A Venn diagram from counts

Of 40 students, 24 study music, 15 study drama and 9 study both. A student is chosen at random. Given that the student studies music, find the probability that the student studies drama.

Working
  1. Start in the middle

    Both: 9

    Always fill the overlap first.

  2. Subtract for 'only'

    Music only: 24 − 9 = 15. Drama only: 15 − 9 = 6.

    The 24 includes the 9 who study both.

  3. 159610MD
    Neither

    40 − (15 + 9 + 6) = 10

    Everyone else goes outside the circles.

  4. Keep the music circle

    Music: 15 + 9 = 24. Of these, drama: 9.

    Ignore everything outside the music circle.

  5. Divide

    \(P(D | M)=\frac{9}{24}=\frac{3}{8}=0.375\)

    The denominator is 24, not 40.

Video walkthrough coming
A Venn diagram from probabilities

A student is chosen at random. The probability that the student cycles to school but does not swim is 0.30. The probability that the student cycles and swims is 0.20. The probability that the student does neither is 0.25. Given that the student cycles, find the probability that the student swims.

Working
  1. 0.300.200.250.25CS
    The missing region

    Swims only: 1 − (0.30 + 0.20 + 0.25) = 0.25

    All four regions add to 1.

  2. Keep the cycling circle

    P(cycles) = 0.30 + 0.20 = 0.50

    This is the new total, in place of 1.

  3. Divide

    \(P(S\mid C)=\frac{P(S\cap C)}{P(C)}=\frac{0.20}{0.50}=0.4\)

    This is the definition, and it is the same as the shaded part of the circle.

Video walkthrough coming