AZTest
Probability study guide · step 2 of 6

Conditional probability from two-way tables and Venn diagrams

A two-way table splits a group two ways at once. A conditional probability looks at one row or column only: P(A given B) is the cell for A and B divided by the total of B.

Key ideas

Watch out: P(ill given positive) and P(positive given ill) are different numbers: check which total you divide by.

Practise this step

5 questions from this step only, in 8 minutes: new numbers and stories every time, of exactly the types worked out below. Marked at the end, with every question worked out.

Start the 5-question quiz

Every question type in this step, worked out

9 types of question. Try each one yourself before you open the hint or the solution.

Example 1 · level 6

At a school, 4 girls and 49 boys walk to school, and 12 girls and 57 boys come by bus. Nobody comes another way. A girl is chosen at random. What is the probability that she walks?

walkbustotalgirlsboys4124957P = ?
Hint

Only the girls count: the girls who walk out of all the girls.

Worked solution
walkbustotalgirlsboys412= 164957106P = 0.25
P(W|G)=n(W∩G)n(G)
  1. Girls: 4 + 12 = 16
  2. Probability: 4/16 = 0.25

Answer: 0.25

Example 2 · level 7

At a cinema, 110 adults and 15 children bought popcorn, and 94 adults and 49 children did not. Someone who bought popcorn is chosen at random. What is the probability that it is a child?

popcornnoneadultschildrentotal110941549P = ?
Hint

The condition leaves only the people who bought popcorn.

Worked solution
popcornnoneadultschildrentotal110941549= 125143P = 0.12
P(C|B)=n(C∩B)n(B)
  1. Popcorn buyers: 110 + 15 = 125
  2. Children among them: 15/125 = 0.12

Answer: 0.12

Example 3 · level 7

A sports club has 330 members. 157 of them are adults, 205 of the members swim, and 110 of the adults swim. A member who does not swim is chosen at random. What is the probability that it is an adult?

swimnottotaladultschildrentotal110157205330P = ?
Hint

Fill in a two-way table of adults and children against swimming or not; the totals give the missing cells.

Worked solution
swimnottotaladultschildrentotal110= 471579578173205= 125330P = 0.376
P(A|S')=n(A∩S')n(S')
  1. Adults who do not swim: 157 − 110 = 47
  2. Members who do not swim: 330 − 205 = 125
  3. 47/125 = 0.376

Answer: 0.376

Example 4 · level 7

Of the 60 members of a club, 16 play tennis, 12 play golf and 3 play both. A member who plays at least one of the two is chosen at random. What is the probability that this member plays both?

tennisgolf16123N = 60P = ?
Hint

Draw two overlapping circles. Adding tennis and golf counts the overlap twice.

Worked solution
tennisgolf16123N = 60= 25P = 0.12
P(T∩G|T∪G)=n(T∩G)n(T)+n(G)−n(T∩G)
  1. At least one of the two: 16 + 12 − 3 = 25
  2. Both: 3/25 = 0.12

Answer: 0.12

Example 5 · level 8

In a town, 27% of the households have a dog and 16% have a cat. Of the households with a cat, 30% also have a dog. What percentage of the households have a dog or a cat or both?

dogcat27 %16 %30 % of catsP = ?
Hint

The households with both are a percentage of the cat households, not of the whole town.

Worked solution
dogcat27 %16 %= 4.8 %30 % of catsP = 38.2 %
P(D∪C)=P(D)+P(C)−P(D|C)P(C)
  1. Dog and cat: 30% × 16% = 4.8%
  2. Dog or cat: 27 + 16 − 4.8 = 38.2%

Answer: 38.2%

Example 6 · level 8

Three schools go on a trip together: 80 pupils from school A, 40 from school B and 180 from school C. 60% of the pupils from A, 75% from B and 90% from C bring a packed lunch. A pupil with a packed lunch is chosen at random. What is the probability that the pupil is from school C?

60 %80A75 %40B90 %180CP = ?
Hint

Turn each percentage into a number of pupils first.

Worked solution
60 %80= 48A75 %40= 30B90 %180= 162CP = 0.675
P(C|L)=nCpCnApA+nBpB+nCpC
  1. Packed lunches: 60% × 80 = 48, 75% × 40 = 30, 90% × 180 = 162
  2. In all: 48 + 30 + 162 = 240
  3. From C: 162/240 = 0.675

Answer: 0.675

Example 7 · level 8

Of the 220 pupils in a year group, 98 learn French, 60 learn Spanish and 46 learn both. A pupil who does not learn Spanish is chosen at random. What is the probability that this pupil learns French?

FrenchSpanish986046N = 220P = ?
Hint

Outside the Spanish circle, only the part of the French circle that does not overlap is left.

Worked solution
FrenchSpanish986046N = 220= 52P = 0.325
P(F|S')=n(F)−n(F∩S)N−n(S)
  1. French but not Spanish: 98 − 46 = 52
  2. Not Spanish: 220 − 60 = 160
  3. 52/160 = 0.325

Answer: 0.325

Example 8 · level 9

In a group of 500 pupils, 250 are girls and 64 are left-handed. How many left-handed girls must there be for being left-handed to be independent of being a girl?

leftrighttotalgirlsboystotal?25064500
Hint

Independent means the share of left-handers among the girls is the same as in the whole group.

Worked solution
leftrighttotalgirlsboystotal= 3225064500
n(L∩G)=n(L)N×n(G)
  1. Left-handed in the whole group: 64/500 = 0.128
  2. The same share of the girls: 0.128 × 250 = 32

Answer: 32 girls

Example 9 · level 9

Of the 152 guests at a party, 40 drink tea, 60 drink coffee and 62 drink juice. 11 drink tea and coffee, 15 tea and juice, 13 coffee and juice, and 2 drink all three. A guest who drinks at least one of them is chosen at random. What is the probability that this guest drinks exactly one?

tea40coffee60juice622N = 152P = ?
Hint

Fill in a Venn diagram of three circles from the middle outwards.

Worked solution
tea40coffee60juice622= 16= 38= 36= 9= 13= 11N = 152P = 0.72
P(E|U)=n(E)n(U)
  1. At least one: 40 + 60 + 62 − 11 − 15 − 13 + 2 = 125
  2. Exactly one: 40 + 60 + 62 − (2 × (11 + 15 + 13)) + (3 × 2) = 90
  3. 90/125 = 0.72

Answer: 0.72

Ready for the quiz?

Check yourself on this step: 5 questions, 8 minutes.

Start the quiz

All steps of the Probability study guide

  1. Dice and coins

    Totals of two dice, numbers of heads, all different, and chances given what you already know.

  2. Tables and Venn diagrams

    Read P(A given B) from a table, fill in a missing cell, and use Venn diagrams with two or three sets.

  3. Tree diagrams and draws

    Two draws from a bag, rain on two days, faulty items from two machines, and reverse questions.

  4. Independent events and repeated trials

    At least one fails, exactly k successes, the first success on try n, and how many tries are needed.

  5. Bayes and medical tests

    The chance someone is ill after a positive test, false positives, spam filters and unreliable witnesses.

  6. Expected value

    The expected profit of a raffle, a fair price for a game, winnings and insurance premiums.

When every step feels easy, take the whole Probability test: 10 questions in 15 minutes.