← Back to the lesson

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

Without replacement, transfers and changing contents

Write the actual contents before every draw. Keep colour, identity and stopping rules distinct.

Update counts on each reached history

For RR red and BB blue items, N=R+B≥2N=R+B\ge2, two uniform draws without replacement give

P(RR)=R(R−1)N(N−1),P(exactly one red)=2RBN(N−1).P(RR)=\frac{R(R-1)}{N(N-1)},\qquad P(\text{exactly one red})=\frac{2RB}{N(N-1)}.

After red: (R−1,B)(R-1,B); after blue: (R,B−1)(R,B-1). Include both colour orders when needed. Impossible paths have probability zero; do not form later conditionals on an unreachable history. Replacement restores counts only when instructed.

Use one consistent sample space for an unordered sample

(nk)=n!k!(n−k)!,0!=1.\binom{n}{k}=\frac{n!}{k!(n-k)!},\qquad0!=1.

For integers 0≤k≤n0\le k\le n, this counts k-item subsets of n distinct objects. A uniform k-subset from RR red and BB blue items has

P(exactly j red)=(Rj)(Bk−j)(R+Bk).P(\text{exactly }j\text{ red})=\frac{\binom{R}{j}\binom{B}{k-j}}{\binom{R+B}{k}}.

Require 0≤k≤R+B0\le k\le R+B and max⁡(0,k−B)≤j≤min⁡(R,k)\max(0,k-B)\le j\le\min(R,k), with integer counts. Outside this j-range, the event is impossible. Do not mix ordered and unordered counts.

Transfers change the destination; returns do not reset it

For each possible transfer, write the new contents of every affected box. Multiply its history weight by the next conditional probability, then add disjoint routes. Carry the resulting state into the next cycle.

A named object differs from its colour. A uniform k-item sample from N>0N>0 objects includes one specified object with probability kN\frac{k}{N}, for integers 0≤k≤N0\le k\le N.

Respect conditional rules, stopping and count restrictions

Apply return, removal and addition rules within each branch; later totals may differ. End a path as soon as the stated stopping condition is met.

P(F∣E)=P(F∩E)P(E),P(E)>0.P(F\mid E)=\frac{P(F\cap E)}{P(E)},\qquad P(E)>0.

Recover unknown counts from the original process. Keep only nonnegative integers whose contents permit every required draw and reproduce the given probability. Never round a fractional count.