P9 - Conditional probability

P9 - Conditional probability

P9 studies how a condition changes the group of possible outcomes. You will calculate conditional probabilities using expected frequencies, two-way tables, Venn diagrams and trees, and distinguish a condition from its reverse. Each part develops Higher content.

Restricting the sample space (Higher)

If 3030 pupils play music and 1212 of them play sport, what is the chance that a music player plays sport? The key is to choose from the 3030 music players, rather than from the whole school.

You already know

Probability is successful outcomes divided by all eligible outcomes when selection is uniform. An intersection A∩BA\cap B means both events; a two-way table or Venn diagram keeps overlapping counts organised.

A conditional probability uses new information to restrict the possible group. Write P(A∣B)P(A\mid B) for “probability of AA, given BB”. The event after the bar tells you who remains eligible. The numerator counts eligible outcomes that also meet AA.

Conditional probability

For P(B)>0P(B)>0,

P(A∣B)=P(A∩B)P(B)P(A\mid B)=\frac{P(A\cap B)}{P(B)}

Not on the formula sheet: derive it from the conditional multiplication rule P(A∩B)=P(A∣B)P(B)P(A\cap B)=P(A\mid B)P(B).

That multiplication rule is on the Higher formula sheet (2026 version; the 2027 sheet will have the same content). Dividing both sides by P(B)P(B) gives the displayed quotient. An impossible condition has no eligible outcomes, explaining why its denominator cannot be zero.

Worked example 1: choosing from music players

Question. Thirty pupils play music, including twelve who play sport. A music player is chosen uniformly. Find the probability that they play sport.

Plan. Restrict the denominator to music players, then count sport within that group.

eligible count=30given musicsuccessful count=12sport within musicP(sport∣music)=1230=25conditional share\begin{aligned} \text{eligible count}&=30 && \text{given music}\\ \text{successful count}&=12 && \text{sport within music}\\ P(\text{sport}\mid\text{music})&=\frac{12}{30}=\frac25 && \text{conditional share} \end{aligned}

Why this step? We know the pupil plays music, so pupils outside that group cannot be selected.

Answer. 2/52/5, or 0.40.4.

Check. The other 1818 music players give 18/30=3/518/30=3/5, and the shares total one.

Keep the same eligible group and change only the requested event to not playing sport.

Worked example 2: complement within the condition

Question. Find the probability that the chosen music player does not play sport.

Plan. Subtract the sport count within the group of thirty.

music, not sport=30−12=18complement within musicP(not sport∣music)=1830=35same eligible group\begin{aligned} \text{music, not sport}&=30-12=18 && \text{complement within music}\\ P(\text{not sport}\mid\text{music})&=\frac{18}{30}=\frac35 && \text{same eligible group} \end{aligned}

Why this step? The condition remains music; only the successful subset changes.

Answer. 3/53/5.

Check. 1−2/5=3/51-2/5=3/5.

The music-player data alone cannot give a joint probability for the whole school: its total is missing. The reverse condition can also be very different. Among 9090 club members, 3636 play badminton, 2525 squash and 1515 both. Then P(squash∣badminton)=15/36=5/12P(\text{squash}\mid\text{badminton})=15/36=5/12, while P(badminton∣squash)=15/25=3/5P(\text{badminton}\mid\text{squash})=15/25=3/5. The joint probability uses everyone: 15/90=1/615/90=1/6.

Independence has a precise interpretation here: P(A∣B)=P(A)P(A\mid B)=P(A) when A,BA,B are independent and P(B)>0P(B)>0. If the conditional chance differs, they are dependent.

Watch out

Wrong: P(squash∣badminton)=15/90P(\text{squash}\mid\text{badminton})=15/90. That is the joint chance of both among everyone. Given badminton, use its 3636 members: 15/3615/36. Reversing the condition uses 2525, not 3636.

Keep the sport count and condition from example 2, changing only the music group size from thirty to forty.

Conditional probabilities in two-way tables (Higher)

A condition selects a whole row or column of a two-way table, and the crossing cell supplies its successful count.

Here the complete population contains 100100 bookings. Given telephone, use the telephone row total; given late, use the late column total.

BookingOn timeLateTotal
Online5454666060
Telephone282812124040
Total82821818100100

The same cell can answer two reversed questions, but with different denominators.

Worked example 3: selecting a row

Question. A telephone booking is selected uniformly. Find the probability it arrived late.

Plan. Restrict to the telephone row and take the late share.

telephone total=28+12=40the conditionP(late∣telephone)=1240=310late cell within the row\begin{aligned} \text{telephone total}&=28+12=40 && \text{the condition}\\ P(\text{late}\mid\text{telephone})&=\frac{12}{40}=\frac3{10} && \text{late cell within the row} \end{aligned}

Why this step? On-time telephone bookings remain in the denominator even though they are unsuccessful.

Answer. 3/103/10.

Check. The on-time share is 28/40=7/1028/40=7/10, its complement.

Change only the direction of the condition: select from late arrivals instead.

Worked example 4: selecting a column

Question. A late booking is selected uniformly. Find the probability it was made by telephone.

Plan. Use the late column total instead of the telephone row total.

late total=6+12=18new conditionP(telephone∣late)=1218=23telephone share of late arrivals\begin{aligned} \text{late total}&=6+12=18 && \text{new condition}\\ P(\text{telephone}\mid\text{late})&=\frac{12}{18}=\frac23 && \text{telephone share of late arrivals} \end{aligned}

Why this step? The successful cell stays twelve, but the eligible group has changed from forty to eighteen.

Answer. 2/32/3.

Check. Online given late is 6/18=1/36/18=1/3, so both booking methods total one.

When given probabilities rather than counts, build expected frequencies in a convenient reference population. Multiplying every count by the same scale leaves the conditional proportion unchanged; these model frequencies need not be actual future counts.

Worked example 5: expected frequencies for damaged parcels

Question. A model sends 45%45\% of parcels by route XX, the rest by YY. Damage probabilities are 0.080.08 for XX and 0.040.04 for YY. Find the probability a damaged parcel used XX.

Plan. Use 10001000 reference parcels, build the damaged column, then restrict to it.

X total,Y total=450,550split the reference populationX damaged=450(0.08)=36route X damage rateY damaged=550(0.04)=22route Y damage rateall damaged=36+22=58complete condition groupP(X∣damaged)=3658=1829\begin{aligned} X\text{ total},Y\text{ total}&=450,550 && \text{split the reference population}\\ X\text{ damaged}&=450(0.08)=36 && \text{route X damage rate}\\ Y\text{ damaged}&=550(0.04)=22 && \text{route Y damage rate}\\ \text{all damaged}&=36+22=58 && \text{complete condition group}\\ P(X\mid\text{damaged})&=\frac{36}{58}=\frac{18}{29} \end{aligned}

Why this step? A damaged parcel could have used either route, so both routes contribute to the denominator.

Answer. 18/2918/29.

Check. The remaining expected counts are 414414 undamaged on XX and 528528 on YY; all four cells total 10001000.

Change only which route is requested, keeping the damage condition.

Worked example 6: the other route within damaged parcels

Question. For the same model, find P(Y∣damaged)P(Y\mid\text{damaged}).

Plan. Keep the damaged denominator and use its route-Y count.

P(Y∣damaged)=2258Y within damaged parcels=1129simplify\begin{aligned} P(Y\mid\text{damaged})&=\frac{22}{58} && \text{Y within damaged parcels}\\ &=\frac{11}{29} && \text{simplify} \end{aligned}

Why this step? The two routes exhaust the damaged group, so only the numerator changes.

Answer. 11/2911/29.

Check. 18/29+11/29=118/29+11/29=1.

The condition is what matters, whether counts were observed or generated from a model.

Watch out

Wrong: “P(X∣damaged)=0.08P(X\mid\text{damaged})=0.08.” That is damage given XX, the reverse direction. Within all damaged parcels the X share is 36/(36+22)=18/2936/(36+22)=18/29.

Keep the damage rates fixed and change only route X's share from 45%45\% to 40%40\%.

Continue this lesson.

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

Create free account