← Back to the lesson

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

Independent trials, sequences and stopping rules

Multiply the probabilities on each valid path, then add disjoint alternatives.

Fixed independent trials with a constant success chance

For 0<p<10<p<1, put q=1−pq=1-p. In nn fixed trials, let XX count successes. One specified string with kk successes has weight pkqn−kp^kq^{n-k}.

P(X=1)=npqn−1,P(X≥1)=1−qn.P(X=1)=npq^{n-1},\qquad P(X\ge1)=1-q^n.

Count every permitted placement. At most one includes zero and one; at least two excludes both. At p=0p=0 or p=1p=1, only all F or all S can occur.

Unequal chances and patterns need their actual path weights

For independent chances p1,p2,p3p_1,p_2,p_3,

P(SFS)=p1(1−p2)p3.P(\mathrm{SFS})=p_1(1-p_2)p_3.

Other placements may have different weights. For dependent trials, use each reached branch’s conditional probability. Outgoing labels sum to one.

For adjacency, list full strings once. Overlapping pair-events cannot simply be added.

One working key, no repeats, at most rr attempts

For mm distinct keys in uniform random order, exactly one working key and 1≤r≤m1\le r\le m,

P(success by r)=rm,P(reach r)=m−r+1m,P(\text{success by }r)=\frac{r}{m},\quad P(\text{reach }r)=\frac{m-r+1}{m},P(success on r∣reach r)=1m−r+1.P(\text{success on }r\mid\text{reach }r)=\frac{1}{m-r+1}.

Include failure at the limit if possible. Stop on success; removing failed keys changes the next chance.

First to two wins: end every path immediately

Terminal paths: AA, BB, ABA, ABB, BAA, BAB. For independent rounds, A-win chance pp, and q=1−pq=1-p, let WW mean A wins the contest and LL mean three rounds:

P(W)=p2+2p2q,P(L)=2pq.P(W)=p^2+2p^2q,\qquad P(L)=2pq.P(L∣W)=2q1+2q(p>0).P(L\mid W)=\frac{2q}{1+2q}\qquad(p>0).

At p=0p=0, conditioning on an A win is undefined. Changing-history chances need their actual conditional branches.