← Back to the lesson

Probability & Statistics 1 (9709) · Probability · Quick revision

Two-way tables, conditioning and independence

Complete the counts, then choose the selection weights and denominator.

A uniform item selection starts from four disjoint cells

BBB′B^{\prime}Total
AAaabba+ba+b
A′A^{\prime}ccddc+dc+d
Totala+ca+cb+db+dNN

Counts are nonnegative integers; N>0N>0. Count fractions require equally likely items.

P(A∩B)=aN,P(A∪B)=a+b+cN.P(A\cap B)=\frac{a}{N},\quad P(A\cup B)=\frac{a+b+c}{N}.

Exactly one has probability b+cN\frac{b+c}{N}; neither has probability dN\frac{d}{N}.

The event after the bar supplies the denominator

P(A∣B)=aa+c,P(B∣A)=aa+b.P(A\mid B)=\frac{a}{a+c},\qquad P(B\mid A)=\frac{a}{a+b}.

Use a positive denominator. Count all cells in the condition, then its required subset. Reversing a condition can change the answer.

Test independence and recover unknown entries

P(A∩B)=P(A)P(B)⟺ad=bc.P(A\cap B)=P(A)P(B)\quad\Longleftrightarrow\quad ad=bc.

The product test allows zero marginals; conditioning on a zero marginal is undefined. Recovered counts must be valid integers.

Find j=P(A)P(B∣A)j=P(A)P(B\mid A), then P(B)=jP(A∣B)P(B)=\frac{j}{P(A\mid B)} if P(A∣B)>0P(A\mid B)>0.

Check all four probability regions. Two zero conditionals need not give a unique marginal; never divide by zero.

Choosing a group first changes individual weights

For two disjoint nonempty groups, choose group ii with probability wiw_i, then uniformly within it. Of its nin_i items, aia_i have A:

P(A)=w1a1n1+w2a2n2.P(A)=w_1\frac{a_1}{n_1}+w_2\frac{a_2}{n_2}.

Uniform items: wi=nin1+n2w_i=\frac{n_i}{n_1+n_2}. Uniform groups: w1=w2=12w_1=w_2=\frac{1}{2}. Keep the same scheme when conditioning.