P9 - Conditional probability (Higher)

P9 - Conditional probability (Higher)

New information changes which outcomes are still possible. You will calculate and interpret conditional probabilities using two-way tables, Venn diagrams, probability trees and expected frequencies. The key is choosing the right group as the whole.

Conditions in two-way tables (Higher)

A detector sounds for 90%90\% of faulty components. Does an alarm mean that a component is probably faulty? Not necessarily: we also need to know how common faults are and how often good components trigger alarms. We will settle this with counts at the end.

You already know

A two-way table separates a group using two classifications. A cell counts people with both descriptions. A probability is a fraction of the group from which the choice is made.

Suppose 2727 of 3636 cyclists wear helmets. If you know a randomly selected pupil is a cyclist, only those 3636 cyclists remain possible. The probability of a helmet is 2736\frac{27}{36}, even if the school has many more pupils.

Conditional probability

The probability of an event when another event is known to have happened. P(A∣B)P(A\mid B) means “the probability of AA, given BB”. The condition BB restricts the possible outcomes. For a finite group of equally likely individuals, divide the number satisfying both AA and BB by the number satisfying BB.

Read the condition first. In P(A∣B)P(A\mid B), the group BB becomes the denominator. The notation means nothing in this calculation if BB has probability zero: there is no possible selected member of that group.

Worked example 1: a known cyclist

Question. The table describes 6060 pupils. A pupil is chosen at random. Given that the pupil cycles, work out the probability that the pupil wears a helmet. Non-calculator.

Wears a helmetDoes not wear a helmetTotal
Cycles2727993636
Does not cycle3321212424
Total303030306060

Plan. Restrict attention to the cycling row, then use its helmet cell over its row total.

possible pupils=36the condition is cyclesP(helmet∣cycles)=2736=34helmet wearers in that group\begin{aligned} \text{possible pupils}&=36 &&\text{the condition is cycles}\\ P(\text{helmet}\mid\text{cycles})&=\frac{27}{36}=\frac34 &&\text{helmet wearers in that group} \end{aligned}

Why not divide by 6060? The condition has ruled out the 2424 pupils who do not cycle.

Answer. 34\frac34.

Check. Within the cycling row, 2736+936=1\frac{27}{36}+\frac9{36}=1.

The next example changes only the direction of the condition. The numerator stays the same, but the denominator changes.

Worked example 2: a known helmet wearer

Question. Using the same table, given that the pupil wears a helmet, work out the probability that the pupil cycles. Non-calculator.

Plan. Restrict attention to the helmet column, then use its cycling cell over its column total.

possible pupils=27+3=30the condition is helmetP(cycles∣helmet)=2730=910cyclists in that group\begin{aligned} \text{possible pupils}&=27+3=30 &&\text{the condition is helmet}\\ P(\text{cycles}\mid\text{helmet})&=\frac{27}{30}=\frac9{10} &&\text{cyclists in that group} \end{aligned}

Why is this different from 34\frac34? “Among cyclists, how many wear helmets?” and “Among helmet wearers, how many cycle?” use different whole groups.

Answer. 910\frac9{10}.

Check. Only 33 of the 3030 helmet wearers do not cycle, giving the complement 110\frac1{10}.

Conditional probabilities in opposite directions are not generally equal. The count-based rule used here is not printed separately on the formulae sheet; learn it. The Higher sheet gives an equivalent multiplication identity, used with trees later in this lesson.

Watch out

Wrong: P(A∣B)=P(B∣A)P(A\mid B)=P(B\mid A) because both use the overlap. Right: their numerators agree, but their denominators are the sizes of BB and AA, which may differ.

Read the condition carefully in this new table.

Conditions in Venn diagrams (Higher)

A condition on a Venn diagram selects a region that becomes your new whole.

In a group of 3030 pupils, 1212 attend art only, 88 attend both art and badminton, 77 attend badminton only, and 33 attend neither. Let AA mean art and BB mean badminton.

[DIAGRAM: asset_name: Conditional club membership Venn diagram; asset_slug: aqa8300_p04_conditional_venn; caption: Given badminton, use the 15 pupils in circle B as the whole; description: The universal-set rectangle contains 30 pupils. Art-only has 12, the intersection of art and badminton has 8, badminton-only has 7 and neither has 3. Circle A has total 20 and circle B total 15.]
Given badminton, use the 15 pupils in circle B as the whole

Given BB, ignore everything outside circle BB. Given B′B', do the opposite: use the art-only and neither regions. A complement is always taken within the universal set before applying the condition. The notation and counting rule are not printed on the formulae sheet: learn them.

Worked example 3: the intersection inside the condition

Question. A pupil is chosen at random from the group described above. Work out P(A∣B)P(A\mid B). Non-calculator.

Plan. Count all pupils in BB, then count those also in AA.

pupils in B=8+7=15the restricted wholepupils in A∩B=8both conditionsP(A∣B)=815overlap over circle B\begin{aligned} \text{pupils in }B&=8+7=15 &&\text{the restricted whole}\\ \text{pupils in }A\cap B&=8 &&\text{both conditions}\\ P(A\mid B)&=\frac8{15} &&\text{overlap over circle }B \end{aligned}

Why include both regions of BB in the denominator? The condition says badminton, not badminton only.

Answer. 815\frac8{15}.

Check. This is greater than the unconditional probability P(A∩B)=830P(A\cap B)=\frac8{30}, because the same 88 pupils are being compared with a smaller whole.

The next example keeps the condition BB and changes only the requested event to not art.

Worked example 4: a complement inside the condition

Question. For the same group, work out P(A′∣B)P(A'\mid B). Non-calculator.

Plan. Keep the 1515 badminton pupils as the whole, then select those outside art.

pupils in A′∩B=7badminton onlyP(A′∣B)=715same restricted denominator\begin{aligned} \text{pupils in }A'\cap B&=7 &&\text{badminton only}\\ P(A'\mid B)&=\frac7{15} &&\text{same restricted denominator} \end{aligned}

Why not include the 33 in neither? They are outside art, but they do not satisfy the given condition BB.

Answer. 715\frac7{15}.

Check. P(A∣B)+P(A′∣B)=815+715=1P(A\mid B)+P(A'\mid B)=\frac8{15}+\frac7{15}=1.

A different condition creates a different denominator. For example, P(A∣B′)=1212+3=45P(A\mid B')=\frac{12}{12+3}=\frac45. The art-only region is the favourable count, and the entire outside-badminton region is the possible count.

Watch out

Wrong: use the universal-set total for every Venn probability. Right: for a conditional probability, shade the given group mentally and use only that group's total.

Try a new pair of clubs, with the condition on the first set instead.

Conditions in probability trees (Higher)

Second-stage tree branches already describe probabilities given the first-stage result.

A pupil travels by bus with probability 0.60.6. Given bus travel, the probability of being late is 0.20.2. Given no bus travel, it is 0.050.05. These are different second-stage probabilities, so bus travel and lateness are dependent in this model.

[DIAGRAM: asset_name: Bus travel and lateness probability tree; asset_slug: aqa8300_p04_bus_tree; caption: The late branches give probabilities within different first-stage groups; description: The first split is bus 0.6 and no bus 0.4. After bus, late is 0.2 and not late 0.8. After no bus, late is 0.05 and not late 0.95. End path probabilities are bus and late 0.12, bus and not late 0.48, no bus and late 0.02, no bus and not late 0.38.]
The late branches give probabilities within different first-stage groups

A branch is a fraction of its parent group. A complete path is a fraction of the starting whole. Multiplying converts the conditional branch chance into a joint chance.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account