2.03c, 2.03d - Conditional probability and two-way data

2.03c, 2.03d - Conditional probability and two-way data

Use a given event to choose the right denominator, then connect two-way tables, trees and Venn regions. You will calculate conditional probabilities from first principles in 2.03d and use the diagram and probability rules of 2.03c to distinguish a branch, a complete path and independence.

Given an event changes the denominator

Why can the same eight people produce probabilities 4/94/9 and 2/52/5? In a group of 50, eight speak both French and Spanish. Eighteen speak Spanish and twenty speak French. Those eight people make up different fractions of the two language groups. The numerator can stay still while the question changes its denominator.

You already know

An intersection A∩BA\cap B means both events. To calculate a probability from equally likely outcomes, divide by the number in the relevant sample space. A complement means “not”, relative to that sample space.

“Given Spanish” tells you to look only at Spanish speakers. Everyone outside that group is irrelevant to this particular fraction.

Conditional probability

P(A∣B)\mathrm P(A\mid B) is the probability of AA given BB: the probability within the group satisfying BB. The event after the vertical bar supplies the condition. In a finite equally likely model, count outcomes in both A,BA,B, then divide by the number in BB.

The following complete table makes the two possible conditioned groups visible. A person is selected uniformly; AA means French and BB means Spanish.

BBB′B'Total
AA81220
A′A'102030
Total183250

The table gives P(A∩B)=8/50\mathrm P(A\cap B)=8/50 before any condition is imposed. The general conditional formula expresses the same restriction in probabilities.

Conditional probability

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

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

A zero-probability condition makes this ratio undefined. For this finite model, an empty conditioned group supplies no usable denominator.

In the formula sheet.

Use the counts directly or use their probabilities: the total 50 cancels in the ratio.

Worked example 1: within Spanish speakers

Question. Using the complete language table, find P(A∣B)\mathrm P(A\mid B) and P(A′∣B)\mathrm P(A'\mid B).

Plan. Restrict the table to its Spanish column.

P(A∣B)=818=49French within SpanishP(A′∣B)=1018=59not French within Spanish\begin{aligned} \mathrm P(A\mid B)&=\frac8{18}=\frac49 &&\text{French within Spanish}\\ \mathrm P(A'\mid B)&=\frac{10}{18}=\frac59 &&\text{not French within Spanish} \end{aligned}

Why this step? The selected person is already known to be one of the 18 Spanish speakers, not just one of all 50 people.

Answer. The conditional probabilities are 4/94/9 and 5/95/9.

Check. They sum to 1 because A,A′A,A' split the same conditioned group. The formula also gives (8/50)/(18/50)=4/9(8/50)/(18/50)=4/9.

Change only the condition to not speaking Spanish. Keep the person-selection rule and the events being measured unchanged.

Worked example 2: within non-Spanish speakers

Question. Using the same table, find P(A∣B′)\mathrm P(A\mid B') and P(A′∣B′)\mathrm P(A'\mid B').

Plan. Restrict to the non-Spanish column instead.

P(A∣B′)=1232=38French within the new groupP(A′∣B′)=2032=58remaining people in that group\begin{aligned} \mathrm P(A\mid B')&=\frac{12}{32}=\frac38 &&\text{French within the new group}\\ \mathrm P(A'\mid B')&=\frac{20}{32}=\frac58 &&\text{remaining people in that group} \end{aligned}

Why this step? Changing the condition changes both the available group and which members satisfy the event.

Answer. The probabilities are 3/83/8 and 5/85/8.

Check. They sum to 1. Dividing by 50 would instead calculate a joint probability, which answers a different question.

The full table also lets you count Spanish speakers within the French group directly: 8/20=2/58/20=2/5. This explains the opening puzzle. A conditional with the events exchanged generally has a different denominator; it is not obtained by simply swapping the letters in an answer.

Watch out

Wrong: P(A∣B)=8/50\mathrm P(A\mid B)=8/50. Right: 8/188/18. The whole-space denominator belongs to the joint probability, not the conditional probability. Do not cancel a condition merely because all the data came from one survey.

Try the same distinction with a fresh complete-count description.

Tree paths use the branch condition

A branch after the first outcome gives a conditional probability; a complete path gives a joint probability.

Let R1R_1 mean first red and B1B_1 mean first blue. Let R2,B2R_2,B_2 refer to the second draw. After reaching B1B_1, the next red branch is P(R2∣B1)\mathrm P(R_2\mid B_1), not P(B1∩R2)\mathrm P(B_1\cap R_2).

Conditional multiplication

For P(A)>0\mathrm P(A)>0,

P(A∩B)=P(A)P(B∣A).\mathrm P(A\cap B)=\mathrm P(A)\mathrm P(B\mid A).

Multiply the first event's probability by the probability of the second within that first event. If A,BA,B are independent, the second factor equals P(B)\mathrm P(B).

In the formula sheet.

Every pair of exhaustive outgoing branches sums to 1. Different completed paths are disjoint, so their probabilities may be added.

Conditional and joint probabilities for five red and three blue counters

Worked example 3: a conditional branch without replacement

Question. Five red and three blue counters are in a bag. Draw two without replacement. Find P(R2∣B1)\mathrm P(R_2\mid B_1), P(B1∩R2)\mathrm P(B_1\cap R_2), and the probability of different colours.

Plan. Read the remaining bag after blue, then calculate both different-colour paths.

P(R2∣B1)=57five red among seven remainingP(B1∩R2)=38×57=1556complete the blue-red pathP(R1∩B2)=58×37=1556the other orderP(different)=1528add disjoint paths\begin{aligned} \mathrm P(R_2\mid B_1)&=\frac57 &&\text{five red among seven remaining}\\ \mathrm P(B_1\cap R_2)&=\frac38\times\frac57=\frac{15}{56} &&\text{complete the blue-red path}\\ \mathrm P(R_1\cap B_2)&=\frac58\times\frac37=\frac{15}{56} &&\text{the other order}\\ \mathrm P(\text{different})&=\frac{15}{28} &&\text{add disjoint paths} \end{aligned}

Why this step? The condition first blue has already occurred in the branch probability, but it must still be included in the whole-path probability.

Answer. The three probabilities are 5/75/7, 15/5615/56 and 15/2815/28.

Check. RR has probability 5/145/14 and BB has probability 3/283/28. Together with the two mixed paths, they sum to 1.

Continue this lesson.

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

Create free account