Statistics 3.2 - Conditional probability with diagrams and tables

Statistics 3.2 - Conditional probability with diagrams and tables

“Given that” changes which outcomes you consider. You will calculate conditional probabilities using event totals, Venn diagrams, trees and two-way tables, then choose a representation that makes the denominator clear.

Given that changes the sample space

A factory uses setting HH for 30%30\% of its components. Fault rates are 8%8\% with HH and 3%3\% without it. If a component is faulty, is the chance that HH was used still 30%30\%? We will answer this by restricting the sample space.

You already know

A∩BA\cap B means both events, and A′A' means not AA. Individual Venn regions add to the whole event total.

Start with counts: of 100100 people, 6060 are in BB and 2424 are in both AA and BB. Given BB, only 6060 people remain eligible. The proportion also in AA is 24/6024/60.

Conditional probability

P(A∣B)P(A\mid B) is the probability of AA given that BB occurs. It is defined when P(B)>0P(B)>0. The condition after the vertical line restricts the sample space.

Divide the overlap by the whole condition.

Conditional probability

P(A∣B)=P(A∩B)P(B),P(B)>0.P(A\mid B)=\frac{P(A\cap B)}{P(B)},\qquad P(B)>0.

Not in the formula booklet: learn it.

The booklet prints the equivalent intersection-product relation and a two-case expression for reversed conditioning. Learn this direct definition to identify the numerator and denominator.

[DIAGRAM: asset_slug: p3_3_2_understand_and_use_conditional_probability_including_tree_diagrams_venn_diagrams_and_two_way_tables__diagram_01; asset_name: Statistics 3.2 - Conditional probability with diagrams and tables - diagram 01; caption: Restrict to B, then find the fraction also in A; description: A Venn diagram shades B lightly and its intersection with A more strongly; separate labels identify the numerator and denominator.]
Restrict to B, then find the fraction also in A

Worked example 1: two directions

Question. Given P(A)=0.48P(A)=0.48, P(B)=0.60P(B)=0.60 and P(A∩B)=0.24P(A\cap B)=0.24, find P(A∣B)P(A\mid B), P(B∣A)P(B\mid A) and P(A′∣B)P(A'\mid B).

Plan. Divide by each condition total, using the remaining part of BB for the third probability.

P(A∣B)=0.24/0.60=0.40condition BP(B∣A)=0.24/0.48=0.50condition AP(A′∣B)=(0.60−0.24)/0.60=0.60remaining part of B\begin{aligned} P(A\mid B)&=0.24/0.60=0.40 &&\text{condition }B\\ P(B\mid A)&=0.24/0.48=0.50 &&\text{condition }A\\ P(A'\mid B)&=(0.60-0.24)/0.60=0.60 &&\text{remaining part of }B \end{aligned}

Why do the first two answers differ? The overlap is the same, but the restricted groups differ.

Answer. The probabilities are 0.400.40, 0.500.50 and 0.600.60.

Check. Within BB, AA and A′A' partition the possibilities: 0.40+0.60=10.40+0.60=1.

Change only P(A)P(A) to 0.400.40. Only the question conditioned on AA needs a new denominator.

Worked example 2: a changed condition total

Question. Given P(A)=0.40P(A)=0.40, P(B)=0.60P(B)=0.60 and P(A∩B)=0.24P(A\cap B)=0.24, find the same three probabilities.

Plan. Identify the condition separately for each fraction.

P(A∣B)=0.24/0.60=0.40unchanged conditionP(B∣A)=0.24/0.40=0.60changed conditionP(A′∣B)=0.36/0.60=0.60complement within B\begin{aligned} P(A\mid B)&=0.24/0.60=0.40 &&\text{unchanged condition}\\ P(B\mid A)&=0.24/0.40=0.60 &&\text{changed condition}\\ P(A'\mid B)&=0.36/0.60=0.60 &&\text{complement within }B \end{aligned}

Why not change every answer? Neither BB nor the overlap has changed.

Answer. The probabilities are 0.400.40, 0.600.60 and 0.600.60.

Check. The separate regions 0.160.16, 0.240.24, 0.360.36 and 0.240.24 sum to 11.

The event after the line matters more than the order in which the data were presented.

Watch out

P(A∣B)P(A\mid B) generally differs from P(B∣A)P(B\mid A). Read the condition before choosing the denominator.

Change the AA total again.

Using complements and unions first

Conditional questions may hide the numerator. Find the relevant region first: “neither AA nor BB” is the complement of their union.

Complements, unions and intersections

For events AA and BB,

P(A′)=1−P(A)P(A∪B)=P(A)+P(B)−P(A∩B)P(A∩B)=P(A)P(B∣A),P(A)>0\begin{aligned} P(A')&=1-P(A)\\ P(A\cup B)&=P(A)+P(B)-P(A\cap B)\\ P(A\cap B)&=P(A)P(B\mid A),\qquad P(A)>0 \end{aligned}

In the formula booklet.

The product relation follows by rearranging the conditional definition. Independence is unnecessary because the second probability is conditional.

Worked example 3: neither within a complement

Question. Given P(A)=0.42P(A)=0.42, P(B)=0.50P(B)=0.50 and P(A∩B)=0.18P(A\cap B)=0.18, find P(A′∣B′)P(A'\mid B').

Plan. Take the complement of the union, then divide by P(B′)P(B').

P(A∪B)=0.42+0.50−0.18=0.74addition ruleP(A′∩B′)=1−0.74=0.26neither eventP(A′∣B′)=0.261−0.50=0.52restrict to B′\begin{aligned} P(A\cup B)&=0.42+0.50-0.18=0.74 &&\text{addition rule}\\ P(A'\cap B')&=1-0.74=0.26 &&\text{neither event}\\ P(A'\mid B')&=\frac{0.26}{1-0.50}=0.52 &&\text{restrict to }B' \end{aligned}

Why use the union's complement? The numerator must be outside both events.

Answer. The probability is 0.520.52.

Check. Within B′B', the AA-only region 0.240.24 and the neither region 0.260.26 sum to 0.500.50.

Change only P(A)P(A) to 0.320.32. The denominator stays fixed while the outside-both numerator grows.

Worked example 4: a changed numerator

Question. Given P(A)=0.32P(A)=0.32, P(B)=0.50P(B)=0.50 and P(A∩B)=0.18P(A\cap B)=0.18, find P(A′∣B′)P(A'\mid B').

Plan. Recover neither from the union before conditioning.

P(A′∩B′)=1−(0.32+0.50−0.18)=0.36outside bothP(A′∣B′)=0.36/0.50=0.72condition B′\begin{aligned} P(A'\cap B')&=1-(0.32+0.50-0.18)=0.36 &&\text{outside both}\\ P(A'\mid B')&=0.36/0.50=0.72 &&\text{condition }B' \end{aligned}

Why does the answer rise? More of the unchanged group B′B' lies outside AA.

Answer. The probability is 0.720.72.

Check. P(A∣B′)=(0.32−0.18)/0.50=0.28P(A\mid B')=(0.32-0.18)/0.50=0.28, and 0.28+0.72=10.28+0.72=1.

Complementing the wanted event keeps the condition fixed.

Watch out

P(A′∣B′)≠1−P(A∣B)P(A'\mid B')\ne1-P(A\mid B) in general. The valid rule is P(A′∣B′)=1−P(A∣B′)P(A'\mid B')=1-P(A\mid B'): both fractions condition on B′B'.

Find neither within the same condition using a new AA total.

Reading conditional probability from Venn diagrams

A Venn diagram helps with overlapping sets in one population. Fill the overlap first, subtract it from each event total, then find neither. Counts and probabilities both work, provided numerator and denominator use the same units.

Worked example 5: overlapping student groups

Question. Of 120120 students, 5252 study music, 6565 play sport and 2525 do both. Find P(M∣S)P(M\mid S), P(M′∩S′)P(M'\cap S') and P(M∪S)P(M\cup S).

Plan. Build the four separate regions, then select each denominator.

music only=52−25=27remove overlapsport only=65−25=40remove overlapneither=120−(27+25+40)=28remaining studentsP(M∣S)=25/65=5/13sport denominatorP(M′∩S′)=28/120=7/30whole populationP(M∪S)=92/120=23/30three inside regions\begin{aligned} \text{music only}&=52-25=27 &&\text{remove overlap}\\ \text{sport only}&=65-25=40 &&\text{remove overlap}\\ \text{neither}&=120-(27+25+40)=28 &&\text{remaining students}\\ P(M\mid S)&=25/65=5/13 &&\text{sport denominator}\\ P(M'\cap S')&=28/120=7/30 &&\text{whole population}\\ P(M\cup S)&=92/120=23/30 &&\text{three inside regions} \end{aligned}

Why is the first denominator 6565? Knowing the student plays sport removes everybody outside that group.

Answer. The probabilities are 5/135/13, 7/307/30 and 23/3023/30.

Check. The four regions sum to 120120, and the last two probabilities sum to 11.

Change only the overlap from 2525 to 2020, keeping both group totals fixed.

Worked example 6: a changed overlap count

Question. Of 120120 students, 5252 study music, 6565 play sport and 2020 do both. Find the same three probabilities.

Plan. Rebuild the regions before forming the fractions.

music only=32,sport only=45subtract 20neither=120−(32+20+45)=23complete the spaceP(M∣S)=20/65=4/13condition sportP(M′∩S′)=23/120unconditionalP(M∪S)=97/120union count\begin{aligned} \text{music only}&=32,\quad \text{sport only}=45 &&\text{subtract }20\\ \text{neither}&=120-(32+20+45)=23 &&\text{complete the space}\\ P(M\mid S)&=20/65=4/13 &&\text{condition sport}\\ P(M'\cap S')&=23/120 &&\text{unconditional}\\ P(M\cup S)&=97/120 &&\text{union count} \end{aligned}

Why does the union grow? Less of the fixed event totals is counted twice.

Answer. The probabilities are 4/134/13, 23/12023/120 and 97/12097/120.

Check. 32+20+45+23=12032+20+45+23=120, with no negative region.

A Venn sketch need not be to scale: use its labels rather than measuring its areas unless an area model is explicitly stated.

Exam tip

The conditional denominator includes every region inside the condition, including the overlap.

Change the overlap count again.

Using tree diagrams for staged events

Use a tree for stages. Each second-stage branch is conditional on the first-stage outcome. Branches need not match, and each set leaving one branch point must sum to 11.

Continue this lesson.

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

Create free account