-
A box holds three fair coins and one coin with heads on both sides. A coin is drawn at random and tossed three times, showing heads each time. Find the probability that it is the two-headed coin, and the probability that a fourth toss of the same coin shows heads.
Solution
Let \(D\) be the event that the two-headed coin was drawn and \(H\) the event of three heads in three tosses. The prior is \(P(D)=\tfrac14\) , and the likelihoods are \(P(H\mid D)=1\) and \(P(H\mid D^c)=\tfrac18\) , the tosses being independent given the coin. By Bayes’ rule,
\[ P(D\mid H)=\frac{\tfrac14\cdot 1}{\tfrac14\cdot 1+\tfrac34\cdot\tfrac18}=\frac{8/32}{11/32}=\frac{8}{11}. \]For the fourth toss, condition on the coin, using the posterior probabilities and the conditional independence of the tosses given the coin:
\[ P(\text{fourth is heads}\mid H)=\frac{8}{11}\cdot 1+\frac{3}{11}\cdot\frac12=\frac{19}{22}\approx 0.864 . \]In odds form: prior odds \(1:3\) , likelihood ratio \(8\) , posterior odds \(8:3\) . The tosses are not independent unconditionally; three heads raise the probability of a fourth from the prior value \(\tfrac14+\tfrac34\cdot\tfrac12=\tfrac58\) to \(\tfrac{19}{22}\) .
-
Five married couples are seated at random around a round table with ten seats. Find the expected number of couples who sit next to each other, and use it to bound the probability that at least four couples do.
Answer
Fix a couple. Wherever one partner sits, the other is in one of the \(9\) remaining seats, of which \(2\) are adjacent, so the couple sits together with probability \(\tfrac29\) . By linearity the expected number of couples together is \(5\cdot\tfrac29=\tfrac{10}{9}\) . By Markov’s inequality, \(P(\text{at least four})\le\tfrac{10/9}{4}=\tfrac{5}{18}\) .
-
Let \(X\) be exponential with rate \(1\) and \(Y=e^{-X}\) . Find the distribution of \(Y\) , and compute \(E[Y]\) both from that distribution and from a transform of \(X\) .
Answer
For \(0<y<1\) , \(P(Y\le y)=P(X\ge-\ln y)=e^{\ln y}=y\) , so \(Y\sim\mathrm{Unif}(0,1)\) and \(E[Y]=\tfrac12\) . Also \(E[e^{-X}]=M_X(-1)=\dfrac{1}{1-(-1)}=\tfrac12\) . This is Theorem 4.11(b), since \(Y=1-F_X(X)\) .
-
Let \((X,Y)\) have joint density \(2e^{-(x+y)}\) on the region \(0<x<y\) . Find the marginal density of \(X\) , the regression function \(E[Y\mid X=x]\) , the mean of \(Y\) , and the covariance of \(X\) and \(Y\) .
Solution
Marginal. For \(x>0\) , \(f_X(x)=\int_x^{\infty}2e^{-x-y}\,dy=2e^{-2x}\) : \(X\sim\mathrm{Exp}(2)\) , with mean \(\tfrac12\) and variance \(\tfrac14\) .
Regression function. The conditional density of \(Y\) given \(X=x\) is \(2e^{-x-y}/(2e^{-2x})=e^{-(y-x)}\) for \(y>x\) : given \(X=x\) , \(Y\) is \(x\) plus an \(\mathrm{Exp}(1)\) variable. Hence \(E[Y\mid X=x]=x+1\) .
Mean of the second variable. By the tower property, \(E[Y]=E[X]+1=\tfrac32\) .
Covariance. By Exercise 6.10, \(\operatorname{Cov}(X,Y)=\operatorname{Cov}(X,E[Y\mid X])=\operatorname{Cov}(X,X+1)=\operatorname{Var}(X)=\tfrac14\) .
The joint law is that of the smaller and the larger of two independent \(\mathrm{Exp}(1)\) variables: the density \(e^{-x-y}\) on the quadrant, folded onto the region \(x<y\) . The structure found here is lack of memory: after the first of two exponential clocks rings, at a time that is \(\mathrm{Exp}(2)\) by Exercise 5.13, the other still has an \(\mathrm{Exp}(1)\) time to run, independent of the past. As a check, the mean of the larger is \(\tfrac12+1=\tfrac32\) , and the two means sum to \(2\) , the mean of the sum of the two original variables.
-
A bird lays a Poisson number of eggs with mean \(4\) , and each egg hatches independently with probability \(\tfrac12\) . Find the probability that exactly two eggs hatch, and the expected number of eggs laid given that exactly two hatched.
Answer
By Exercise 6.15 the number hatched is \(\mathrm{Pois}(2)\) , so \(P(\text{two hatch})=2e^{-2}\approx 0.271\) . The number unhatched is also \(\mathrm{Pois}(2)\) and is independent of the number hatched, so given two hatched the expected number laid is \(2+2=4\) .
-
A fair coin is tossed \(400\) times. For the probability of at least \(220\) heads give the two-sided Chebyshev bound, the one-sided bound of Exercise 7.3, the exponential bound of Proposition 7.5, the normal approximation with continuity correction, and the exact value \(0.0255\) ; label each as a bound, an approximation, or exact.
Solution
The number of heads \(X\) has mean \(200\) and variance \(100\) ; the event is \(\{X\ge 220\}\) , a deviation of \(20\) , or two standard deviations.
Chebyshev, two-sided (a bound). \(P(X\ge 220)\le P(\lvert X-200\rvert\ge 20)\le\tfrac{100}{400}=0.25\) .
One-sided Chebyshev (a bound). \(\dfrac{\sigma^2}{\sigma^2+a^2}=\dfrac{100}{100+400}=0.2\) .
Exponential bound (a bound). With \(\varepsilon=20/400=0.05\) , Proposition 7.5 gives \(e^{-2\cdot 400\cdot 0.0025}=e^{-2}\approx 0.135\) .
Normal approximation (an approximation). \(1-\Phi\bigl(\tfrac{219.5-200}{10}\bigr)=1-\Phi(1.95)\approx 0.0256\) .
Exact. \(0.0255\) .
The three bounds are valid without qualification and are loose by factors of ten, eight, and five. The approximation is accurate to the fourth decimal place and comes with no guarantee. At two standard deviations the exponential bound has barely begun to outperform the moment bounds; its advantage is at larger deviations.
-
Let \(X_1,\dots,X_n\) be independent with a common continuous distribution. Show that \(P(X_1<X_2)=\tfrac12\) , that each of the \(n!\) orderings of the values is equally likely, and that the expected number of indices \(k\) for which \(X_k\) exceeds all earlier values is \(1+\tfrac12+\dots+\tfrac1n\) .
Solution
Two variables. The pair \((X_1,X_2)\) has the same joint distribution as \((X_2,X_1)\) , since the variables are independent with a common distribution. So \(P(X_1<X_2)=P(X_2<X_1)\) . Because the distribution is continuous, \(P(X_1=X_2)=0\) , and the two probabilities sum to one. Hence each is \(\tfrac12\) .
All orderings. The same symmetry holds for every permutation of the indices: the joint distribution of \((X_1,\dots,X_n)\) is unchanged by permuting the variables. Ties have probability zero, so exactly one of the \(n!\) strict orderings occurs, and by symmetry they are equally likely, each with probability \(1/n!\) .
Records. Let \(R_k\) be the event that \(X_k\) exceeds \(X_1,\dots,X_{k-1}\) . Among the first \(k\) variables each is equally likely to be the largest, by the previous part applied to \(X_1,\dots,X_k\) , so \(P(R_k)=1/k\) . The number of records is \(\sum_k\mathbf 1_{R_k}\) , and by linearity its expectation is
\[ \sum_{k=1}^{n}\frac1k=1+\frac12+\dots+\frac1n . \]Nothing about the common distribution was used beyond continuity. The expected number of records grows like \(\ln n\) : among a thousand independent observations, only about \(7.5\) record highs are expected.
-
Let \(U\) be uniform on \((0,1)\) and \(Y=U/(1-U)\) . Find the distribution function, the density, and the median of \(Y\) , and decide whether \(Y\) has a mean.
Answer
For \(y>0\) , \(P(Y\le y)=P\bigl(U\le\tfrac{y}{1+y}\bigr)=\dfrac{y}{1+y}\) , so \(f_Y(y)=\dfrac{1}{(1+y)^2}\) for \(y>0\) . The median is \(1\) . The mean is \(\int_0^{\infty}\dfrac{dy}{1+y}=\infty\) by the tail-integral formula. This is the distribution of Exercise 6.14.
-
A student argues: “For independent standard normal variables the sum and the difference are independent. The proof only used that the variances are equal. So for any two independent variables with equal variances, the sum and the difference are independent.” Decide what is true of the sum and difference in general, and refute the claim of independence with two fair coin indicators.
Solution
For any \(X\) and \(Y\) with finite variances, bilinearity gives
\[ \operatorname{Cov}(X+Y,X-Y)=\operatorname{Var}(X)-\operatorname{Cov}(X,Y)+\operatorname{Cov}(Y,X)-\operatorname{Var}(Y)=\operatorname{Var}(X)-\operatorname{Var}(Y). \]So what equal variances give, in general, is that the sum and difference are uncorrelated. Independence of \(X\) and \(Y\) is not even needed for that.
The student’s error is in the account of the proof. Example 5.10 did not deduce independence from equal variances. It computed the joint density of the sum and difference and saw it factorize, and the factorization used the specific form of the normal density, in which \(x^2+y^2\) appears in the exponent and equals \((u^2+v^2)/2\) .
Counterexample: let \(X\) and \(Y\) be independent fair coin indicators. They have equal variances, so \(X+Y\) and \(X-Y\) are uncorrelated. But \(P(X+Y=2,\ X-Y=0)=P(X=1,Y=1)=\tfrac14\) , while \(P(X+Y=2)\,P(X-Y=0)=\tfrac14\cdot\tfrac12=\tfrac18\) . The sum and difference are dependent; indeed a sum of \(0\) or \(2\) forces the difference to be \(0\) .
-
Customers arrive in a day as a Poisson number with mean \(100\) , and each spends an amount with mean \(20\) and standard deviation \(10\) , independently. Find the mean and standard deviation of the day’s takings, and approximate the probability that they exceed \(2400\) .
Answer
By Proposition 6.9, the mean is \(20\cdot 100=2000\) and the variance is \(\lambda E[X^2]=100\cdot(100+400)=50{,}000\) , a standard deviation of about \(223.6\) . A Poisson number of terms with mean \(100\) is itself a sum of \(100\) independent unit-mean Poisson batches, so the total is a sum of \(100\) independent identically distributed pieces and is approximately normal: \(P(S>2400)\approx 1-\Phi(400/223.6)=1-\Phi(1.79)\approx 0.037\) .
-
A fair coin is tossed until the pattern head, tail, head appears in three consecutive tosses. Find the expected number of tosses.
Solution
Use three states, according to how much of the pattern HTH is currently in hand: nothing, H, or HT. Let \(a\) , \(b\) , \(c\) be the expected numbers of further tosses from these states. From “nothing”: a head moves to H, a tail stays. From H: a tail moves to HT, a head stays at H. From HT: a head completes the pattern, a tail returns to “nothing”. So
\[ a=1+\tfrac12a+\tfrac12b,\qquad b=1+\tfrac12b+\tfrac12c,\qquad c=1+\tfrac12a . \]The first gives \(a=2+b\) and the second \(b=2+c\) , so \(a=4+c\) ; the third then gives \(c=1+\tfrac12(4+c)\) , so \(c=6\) , \(b=8\) , and
\[ a=10 . \]The pattern HTH takes \(10\) tosses on average, longer than the \(8\) that a pattern of three tosses with no self-overlap would take: HTH ends with the letter it begins with, so its occurrences can overlap, and overlapping patterns have longer waits, as with HH in Example 6.1.
-
A random variable has moment generating function \((0.3+0.7e^{t})^{10}\exp\bigl(2(e^{t}-1)\bigr)\) . Describe it as a sum of two independent variables with named distributions, and find its mean and variance.
-
A stick of unit length is broken at a uniformly random point. Find the expected length of the longer piece, and the probability that the longer piece is at least twice as long as the shorter.
Answer
The longer piece is \(\max(U,1-U)\) , uniform on \((\tfrac12,1)\) , with mean \(\tfrac34\) . It is at least twice the shorter when the shorter is at most \(\tfrac13\) , that is, when \(U\le\tfrac13\) or \(U\ge\tfrac23\) : probability \(\tfrac23\) .
-
Let \(S_n\) be the sum of \(n\) independent and identically distributed variables with mean \(0\) and variance \(1\) . Find the limits of \(P(S_n>0)\) , \(P(S_n>\sqrt n)\) , \(P(S_n>n^{0.6})\) , and \(P(S_n>-n)\) as \(n\to\infty\) , naming the theorem used for each.
Solution
Write \(Z_n=S_n/\sqrt n\) , the standardized sum.
\(P(S_n>0)=P(Z_n>0)\to 1-\Phi(0)=\tfrac12\) , by the central limit theorem.
\(P(S_n>\sqrt n)=P(Z_n>1)\to 1-\Phi(1)\approx 0.159\) , by the central limit theorem.
\(P(S_n>n^{0.6})=P(Z_n>n^{0.1})\) . By Chebyshev’s inequality this is at most \(\operatorname{Var}(S_n)/n^{1.2}=n^{-0.2}\to 0\) . The threshold is a growing number of standard deviations.
\(P(S_n>-n)=P(\bar X_n>-1)\to 1\) , by the weak law of large numbers, since \(\bar X_n\) converges in probability to \(0\) .
Only the second question needs the shape of the limit distribution. The first needs only its symmetry about \(0\) ; the third and fourth are settled by the scale alone, and for them Chebyshev’s inequality suffices.
The hypothesis that the variables are identically distributed is used in the first two answers and not in the last two. Chebyshev’s inequality and the weak law need only a common mean and variance and zero correlations. The central limit theorem needs more: let \(X_k\) be \(k\) or \(-k\) with probability \(\tfrac{1}{2k^2}\) each and \(0\) otherwise, independently. Each \(X_k\) has mean \(0\) and variance \(1\) , but \(P(X_k\ne 0)=k^{-2}\) has a finite sum, so by Lemma 7.9 only finitely many of the \(X_k\) are nonzero, \(S_n\) stays bounded, and \(P(S_n>\sqrt n)\to 0\) , not \(0.159\) .
-
A bridge hand of \(13\) cards is dealt from a standard deck; \(X\) is the number of aces and \(Y\) the number of kings. Find \(\operatorname{Cov}(X,Y)\) and \(\rho(X,Y)\) using indicators for individual cards.
Solution
Label the four aces and the four kings. For an ace \(a\) let \(I_a\) indicate that it is in the hand, and for a king \(k\) let \(J_k\) do the same. Then \(X=\sum_aI_a\) and \(Y=\sum_kJ_k\) . Each card is in the hand with probability \(\tfrac{13}{52}=\tfrac14\) , and two given cards are both in the hand with probability \(\tfrac{13}{52}\cdot\tfrac{12}{51}=\tfrac1{17}\) . So for every ace and every king,
\[ \operatorname{Cov}(I_a,J_k)=\frac1{17}-\frac1{16}=-\frac{1}{272}. \]By bilinearity, summing over the \(16\) ace–king pairs,
\[ \operatorname{Cov}(X,Y)=-\frac{16}{272}=-\frac1{17}. \]The number of aces is hypergeometric with \(N=52\) , \(K=4\) , \(n=13\) , so by Example 5.7
\[ \operatorname{Var}(X)=13\cdot\frac1{13}\cdot\frac{12}{13}\cdot\frac{39}{51}=\frac{12}{17}, \]and \(\operatorname{Var}(Y)\) is the same. Therefore
\[ \rho(X,Y)=\frac{-1/17}{12/17}=-\frac1{12}. \]Aces and kings compete for the thirteen places in the hand, so the correlation is negative, and it is small because there are \(44\) other cards competing as well.