Unit 4, lesson 43

Conditional Probability

How a given condition shrinks the reference group, how to compute and reverse a conditional probability from a table, and how to test independence with actual numbers.

  • Theory part 85
  • Practice part 86
  • Data and Probability

Theory, part 85

Practice, part 86

Out of everyone at a school, only a few students are late on a given morning. Out of the students who ride the bus, the share who are late might be quite different. The question has changed even though the people have not, because “out of the students who ride the bus” picks a smaller group to look at. Conditional probability is the probability you get after a piece of information narrows the group, and SAT questions test whether you divide by that narrower group.

Key terms

Intersection

Definition The intersection of events AA and BB, written A∩BA \cap B or ”AA and BB”, is the event that both AA and BB occur. Its outcomes are those that belong to AA and to BB at the same time. In a two-way table, the intersection of a row category and a column category is the single inner cell where that row and column meet.

In plain words The intersection is the overlap, the members who fit both descriptions.

Example A school of 300300 students records who rides the bus and who was late at least once last month.

LateNot lateTotal
Bus36368484120120
No bus2424156156180180
Total6060240240300300

The event “rides the bus and was late” is the cell with 3636 students. For a student chosen at random from all 300300,

P(bus and late)=36300=325.P(\text{bus and late}) = \frac{36}{300} = \frac{3}{25}.

Given

Definition In probability, the phrase “given BB” means that the outcome is known to lie in the event BB, and only outcomes in BB are still possible. The probability of AA given BB is written P(A∣B)P(A \mid B), where the event after the bar is the condition. In word problems the condition often appears as “if a student who rides the bus is chosen”, “among the students who were late” or “of those who”.

In plain words The word “given” tells you what you already know. Whatever follows “given”, “among” or “of those who” is the group you divide by.

Example “A student who rides the bus is chosen at random. What is the probability that the student was late?” The condition is riding the bus, so this asks for P(late∣bus)P(\text{late} \mid \text{bus}). The question “A student who was late is chosen at random. What is the probability that the student rides the bus?” swaps the roles and asks for P(bus∣late)P(\text{bus} \mid \text{late}).

Restricted sample space

Definition When the event BB is given, the restricted sample space is BB itself. The outcomes outside BB are removed, and, for equally likely outcomes or for counts in a table, each probability is recomputed as a fraction of the outcomes in BB.

In plain words Cover up every row or column that does not match the condition. What remains is the new whole, and its total is your denominator.

Example For P(late∣bus)P(\text{late} \mid \text{bus}), keep only the bus row of the table. Its total is 120120, and 3636 of those students were late, so

P(late∣bus)=36120=310.P(\text{late} \mid \text{bus}) = \frac{36}{120} = \frac{3}{10}.

The grand total 300300 plays no part, because the students who do not ride the bus are no longer possible.

Conditional probability

Definition For events AA and BB with P(B)>0P(B) > 0, the conditional probability of AA given BB is

P(A∣B)=P(A and B)P(B).P(A \mid B) = \frac{P(A \text{ and } B)}{P(B)}.

It is not defined when P(B)=0P(B) = 0, since an impossible condition leaves nothing to divide by. With equally likely outcomes or a table of counts this is the same as

P(A∣B)=count of A and Bcount of B.P(A \mid B) = \frac{\text{count of } A \text{ and } B}{\text{count of } B}.

Rearranging gives the multiplication rule

P(A and B)=P(B)⋅P(A∣B).P(A \text{ and } B) = P(B) \cdot P(A \mid B).

In general P(A∣B)P(A \mid B) and P(B∣A)P(B \mid A) are different numbers, because they have the same numerator but different denominators.

In plain words Take the overlap and divide by the size of the condition. Reversing the condition changes the denominator, so it usually changes the answer.

Example From the bus table,

P(late∣bus)=36120=0.3,P(\text{late} \mid \text{bus}) = \frac{36}{120} = 0.3,

while

P(bus∣late)=3660=0.6.P(\text{bus} \mid \text{late}) = \frac{36}{60} = 0.6.

Thirty percent of bus riders were late, yet sixty percent of late students ride the bus. Both use the same 3636 students, but compare them with different groups. The formula agrees with the table, since P(bus and late)=36300P(\text{bus and late}) = \frac{36}{300} and P(bus)=120300P(\text{bus}) = \frac{120}{300}, and dividing gives 36120\frac{36}{120} again.

Independence

Definition Events AA and BB are independent when

P(A and B)=P(A)⋅P(B).P(A \text{ and } B) = P(A) \cdot P(B).

When P(B)>0P(B) > 0 this is the same as P(A∣B)=P(A)P(A \mid B) = P(A), so knowing that BB happened does not change the probability of AA. Independence must be checked with actual probabilities or stated as an assumption, never guessed from wording that only sounds unrelated. It is also different from events that cannot happen together. If P(A)>0P(A) > 0 and P(B)>0P(B) > 0 and AA and BB have no outcomes in common, then AA and BB are not independent, because P(A and B)=0P(A \text{ and } B) = 0 while P(A)⋅P(B)>0P(A) \cdot P(B) > 0.

In plain words Independent means the condition makes no difference. Test it by comparing the conditional probability with the overall one.

Example In the bus table, P(late)=60300=0.2P(\text{late}) = \frac{60}{300} = 0.2 but P(late∣bus)=0.3P(\text{late} \mid \text{bus}) = 0.3, so being late and riding the bus are not independent. Compare a survey of 250250 adults.

Owns a bicycleNo bicycleTotal
Left-handed101015152525
Right-handed9090135135225225
Total100100150150250250

Here P(bicycle)=100250=0.4P(\text{bicycle}) = \frac{100}{250} = 0.4 and P(bicycle∣left-handed)=1025=0.4P(\text{bicycle} \mid \text{left-handed}) = \frac{10}{25} = 0.4. They are equal, so in this group owning a bicycle and being left-handed are independent. The product test agrees, since

25250⋅100250=10250.\frac{25}{250} \cdot \frac{100}{250} = \frac{10}{250}.

Check yourself

  1. A club survey counts juniors and seniors by the activity they chose. Of the juniors, 1414 chose chess and 2626 chose debate. Of the seniors, 2121 chose chess and 1919 chose debate. If a student who chose chess is selected at random, what is the probability that the student is a senior? (A) 2180\frac{21}{80} (B) 2140\frac{21}{40} (C) 716\frac{7}{16} (D) 35\frac{3}{5}
Show the answer

The correct choice is (D). The condition is choosing chess, and 14+21=3514 + 21 = 35 students chose chess. Of them 2121 are seniors, so the probability is 2135=35\frac{21}{35} = \frac{3}{5}. Choice (A) divides by all 8080 students, which ignores the condition. Choice (B) divides by the 4040 seniors, which reverses the condition. Choice (C) equals 3580\frac{35}{80}, the probability that a randomly chosen student chose chess.

  1. In a group of juniors and seniors who each chose art or music, 2727 seniors and kk juniors chose art. If a student who chose art is selected at random, the probability that the student is a junior is 25\frac{2}{5}. What is the value of kk?
Show the answer

The answer is 1818. The reference group is the k+27k + 27 students who chose art, so

kk+27=25.\frac{k}{k + 27} = \frac{2}{5}.

Cross multiplying gives 5k=2k+545k = 2k + 54, so k=18k = 18. As a check, 1845=25\frac{18}{45} = \frac{2}{5}. Setting k27=25\frac{k}{27} = \frac{2}{5} would use the seniors alone as the denominator, which is not the group described.

  1. For two events, P(A)=0.5P(A) = 0.5, P(B)=0.4P(B) = 0.4 and P(A and B)=0.25P(A \text{ and } B) = 0.25. Which statement is true? (A) The events are independent, because P(A and B)P(A \text{ and } B) is less than P(A)P(A). (B) The events are not independent, because P(A)⋅P(B)=0.2P(A) \cdot P(B) = 0.2, which is not 0.250.25. (C) The events are independent, because P(A)+P(B)P(A) + P(B) is less than 11. (D) The events are not independent, because P(A and B)P(A \text{ and } B) is not 00.
Show the answer

The correct choice is (B). Independence requires P(A and B)=P(A)⋅P(B)P(A \text{ and } B) = P(A) \cdot P(B), and 0.5⋅0.4=0.2≠0.250.5 \cdot 0.4 = 0.2 \ne 0.25. Equivalently, P(A∣B)=0.250.4=0.625P(A \mid B) = \frac{0.25}{0.4} = 0.625, which differs from P(A)=0.5P(A) = 0.5. Choices (A) and (C) state facts that hold for many dependent events. Choice (D) confuses independent events with events that cannot happen together.

How this lesson connects