An Even Split in Probability

An Even Split in Probability

This is a generalisation of Q18 from 50 Challenging Problems in Probability.

Q: When nn coins are tossed, what is the probability that exactly kk are heads?

Assume first that we have a fair coin, and thus the probability of getting a heads or a tails is 1/21/2. Let Xn(ω)=(t1(ω),…,tn(ω))X_n(\omega) = (t_1(\omega),\dots,t_n(\omega)) denote a possible realisation of a sequence of nn coin tosses from a random sampling ω\omega from the space of all possible random samplings Ω\Omega. Then, we wish to determine

P(#Xn(ω)=k)=∑ω∈Ω#Xn(ω)=kP(Xn(ω)). P(\#X_n(\omega) = k) = \sum_{\substack{\omega\in\Omega \\ \#X_n(\omega) = k}} P(X_n(\omega)).

Since the coin is fair, the probability of getting any number of heads, say kk, followed by n−kn-k tails is exactly (1/2)k(1/2)n−k=(1/2)n(1/2)^k (1/2)^{n-k} = (1/2)^n. Therefore

P(#Xn(ω)=k)=∣{ω∈Ω:#Xn(ω)=k}∣(12)n, P(\#X_n(\omega) = k) = \left|\{\omega \in \Omega : \#X_n(\omega) = k\}\right| \left(\frac{1}{2}\right)^n,

and thus is dependent purely on the number of ways in which we can obtain exactly kk heads out of nn tosses, which is precisely (nk)n \choose k. Therefore

P(#Xn(ω)=k)=(nk)(12)n. P(\#X_n(\omega) = k) = {n \choose k} \left(\frac{1}{2}\right)^n.