Maths4UBETA

Maths4U · Learning together

Two-way tables, conditioning and independence

← Independent trials, sequences and stopping rulesTrees, total probability and reverse conditioning →

Notes

Objective

Use the conditioning group as denominator, recover missing cells, and justify independence numerically.

Before you start

Use exact fractions and identify what is selected at random. Counting-selections questions refer to the next chapter; the combination notation used there is introduced briefly in the final lesson.

Key ideas

The condition changes the denominator

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

This requires P(B)>0\mathrm P(B)>0. In a frequency table the denominator is the number in B, not the grand total or the number in A. In general P(A∣B)\mathrm P(A\mid B) and P(B∣A)\mathrm P(B\mid A) differ.

Complete cells and margins consistently

Intersection, A-only, B-only and neither are disjoint cells. Row and column totals overlap, so adding them directly double-counts the intersection. Every recovered count must be a non-negative integer.

Test independence using the actual marginals

Compare the joint probability with the product of the marginals. Equivalently compare a conditional with its marginal when that conditional is defined. Give the two numerical values, rather than just saying that the events look unrelated.

Use one joint event in both conditionals

P(A∩B)=P(A)P(B∣A),P(B)=P(A∩B)P(A∣B).\begin{aligned}\mathrm P(A\cap B)&=\mathrm P(A)\mathrm P(B\mid A),\\\mathrm P(B)&=\frac{\mathrm P(A\cap B)}{\mathrm P(A\mid B)}.\end{aligned}

The second expression needs a positive denominator. Restore the four cells and check they are all non-negative after solving a reverse problem.

Method

  1. Define outcomes, events and any condition before calculating.
  2. Decide which outcomes are equally likely and which branch probabilities change.
  3. Multiply along a path and add only disjoint qualifying paths.
  4. For a conditional probability, restrict both numerator and denominator to the stated condition.
  5. Check probability bounds, all branches and original model restrictions.

Common mistakes

  • The conditional denominator is the conditioning group.
  • Do not reverse the direction of a conditional.
  • Marginal totals overlap.
  • An independence claim needs a numerical check.

Worked examples

Read the direction of a conditional

MorningAfternoon
Attends club128
Does not attend614

A person is selected uniformly. Find P(attends∣morning)\mathrm P(\text{attends}\mid\text{morning}) and its reverse. Are the events independent?

Follow the solutionP(attends∣morning)=1218=23,P(morning∣attends)=1220=35.\begin{aligned}\mathrm P(\text{attends}\mid\text{morning})&=\frac{12}{18}=\frac{2}{3},\\\mathrm P(\text{morning}\mid\text{attends})&=\frac{12}{20}=\frac{3}{5}.\end{aligned}

The joint is 310\frac{3}{10}, but the marginal product is (12)(920)=940(\frac{1}{2})(\frac{9}{20})=\frac{9}{40}. The events are dependent.

Recover all four table cells

Among 60 items, 24 have A, 30 have B, and 9 have both. Find A-only, B-only, neither and the probability of exactly one characteristic for a uniform selection.

Follow the solution

The cells are A-only=15, both=9, B-only=21, neither=15. They total 60.

P(exactly one)=15+2160=35.\begin{gathered}\mathrm P(\text{exactly one})\\=\frac{15+21}{60}=\frac{3}{5}.\end{gathered}

An independence condition recovers a missing count

BNot B
A64
Not A9n

The two classifications are independent for a uniform selection. Find n and the union probability.

Follow the solution619+n=1019+n1519+n.\frac{6}{19+n}=\frac{10}{19+n}\frac{15}{19+n}.

Thus 6(19+n)=150, so n=6. All four counts are non-negative integers.

P(A∪B)=1−625=1925.\mathrm P(A\cup B)=1-\frac{6}{25}=\frac{19}{25}.

Two conditionals share the same intersection

P(A)=25\mathrm P(A)=\frac{2}{5}, P(B∣A)=34\mathrm P(B\mid A)=\frac{3}{4}, P(A∣B)=35\mathrm P(A\mid B)=\frac{3}{5}. Find P(B)\mathrm P(B) and the probability of exactly one event.

Follow the solutionP(A∩B)=(25)(34)=310,P(B)=(310)/(35)=12,P(exactly one)=25+12−2(310)=310.\begin{aligned}\mathrm P(A\cap B)&=(\frac{2}{5})(\frac{3}{4})=\frac{3}{10},\\\mathrm P(B)&=(\frac{3}{10})/(\frac{3}{5})=\frac{1}{2},\\\mathrm P(\text{exactly one})&=\frac{2}{5}+\frac{1}{2}-2(\frac{3}{10})\\&=\frac{3}{10}.\end{aligned}

Practise this topic