Chapter 1 Exercises
Casella & Berger, Statistical Inference (2nd ed.) §1.7
How to use this file
- Textbook: George Casella & Roger L. Berger, Statistical Inference, Second Edition (CRC 2024 reprint; the text agrees with the 2001 second edition).
- Range: Chapter 1, §1.7 Exercises 1.1–1.55.
- Pages: printed pp. 31–37; PDF pp. 62–68 (offset PDF ≈ printed + 31).
- Principle: stems follow the textbook; solutions are independent. Numerical answers printed in the book are recomputed.
- Companion notes:
ch01-notes.qmd. Miscellanea §1.8.1 (inclusion-exclusion) is used in 1.42–1.43.
Exercise 1.1
Describe the sample space of each of five experiments.
(a) Four coin tosses, each H or T. Take ordered 4-tuples \[ S=\{H,T\}^4,\qquad |S|=16. \]
(b) The number of damaged leaves is a count, so \(S=\{0,1,2,\ldots\}\).
(c) Lifetime in hours: theoretically \(S=(0,\infty)\) (or a countable grid if recorded to a fixed precision).
(d) Ten-day-old rat weights are positive reals. If \(k\) rats are recorded, \(S=(0,\infty)^k\); if the number is unspecified, a single rat may be written \(S=(0,\infty)\).
(e) The defective proportion lies in \([0,1]\), so \(S=[0,1]\). If the shipment has finite size \(N\), then \(S=\{0,1/N,\ldots,1\}\).
Exercise 1.2
Verify four set identities.
Each identity is proved by double inclusion.
(a) \(x\in A\setminus B\Leftrightarrow x\in A\) and \(x\notin B\Leftrightarrow x\in A\) and \(x\notin A\cap B\Leftrightarrow x\in A\setminus(A\cap B)\). Also \(x\in A\) and \(x\notin B\Leftrightarrow x\in A\cap B^c\).
(b) \(x\in B\Leftrightarrow\) either \(x\in A\) or \(x\notin A\), i.e. \(x\in B\cap A\) or \(x\in B\cap A^c\). The two pieces on the right are disjoint and their union is \(B\).
(c) By definition of set difference, \(B\setminus A=B\cap A^c\).
(d) \(x\in A\cup B\Leftrightarrow x\in A\) or \(x\in B\). If \(x\in A\) then \(x\) is already in the right-hand side; if \(x\in B\setminus A\) then \(x\in B\cap A^c\). Conversely both pieces on the right sit inside \(A\cup B\).
Exercise 1.3
Finish Theorem 1.1.4: commutativity, associativity, and DeMorgan’s laws (distributivity is proved in the text).
(a) \(x\in A\cup B\Leftrightarrow x\in A\) or \(x\in B\Leftrightarrow x\in B\cup A\). Intersection is analogous.
(b) \(x\in A\cup(B\cup C)\Leftrightarrow x\) belongs to at least one of \(A,B,C\Leftrightarrow x\in(A\cup B)\cup C\). For intersections, \(x\) belongs to all three.
(c) \(x\in(A\cup B)^c\Leftrightarrow x\notin A\) and \(x\notin B\Leftrightarrow x\in A^c\cap B^c\). Dually, \(x\in(A\cap B)^c\Leftrightarrow x\) fails to lie in at least one of the two sets \(\Leftrightarrow x\in A^c\cup B^c\).
Exercise 1.4
Express four event probabilities in terms of \(P(A)\), \(P(B)\), and \(P(A\cap B)\).
(a)(c) “Either \(A\) or \(B\) or both” and “at least one of \(A\) or \(B\)” are both \(A\cup B\): \[ P(A\cup B)=P(A)+P(B)-P(A\cap B). \]
(b) Exactly one: \((A\setminus B)\cup(B\setminus A)\), \[ P=P(A)+P(B)-2P(A\cap B). \]
(d) At most one \(=1-\) both occur: \[ P=1-P(A\cap B). \] (This also equals \(P((A\cup B)^c)+P(\text{exactly one})\).)
Exercise 1.5
Twin sex and identical/fraternal twins. Interpret \(A\cap B\cap C\) and find its probability.
(a) A U.S. birth that is identical female twins (hence, in particular, a twin birth).
(b) \(P(C)=1/90\). Among twins, about \(1/3\) are identical, and among identical twins about \(1/2\) are female. Thus \[ P(A\cap B\cap C)=P(C)\,P(B\mid C)\,P(\text{female}\mid B\cap C)=\frac{1}{90}\cdot\frac13\cdot\frac12=\frac{1}{540}. \]
Exercise 1.6
Two independent coins with \(P(H)=u,w\). Can one arrange \(p_0=p_1=p_2\)?
\[ p_0=(1-u)(1-w),\quad p_2=uw,\quad p_1=u(1-w)+w(1-u)=u+w-2uw. \] If \(p_0=p_1=p_2\) and the three probabilities sum to \(1\), each must equal \(1/3\). Then \(uw=1/3\) and \((1-u)(1-w)=1/3\); subtracting gives \[ uw-(1-u-w+uw)=0\implies u+w-1=0\implies w=1-u. \] Substitute \(u(1-u)=1/3\), i.e. \(u-u^2=1/3\). The discriminant is \(1-4/3<0\), so there is no real root. No.
(Alternatively, \(p_1^2-4p_0p_2=(u-w)^2\ge 0\), with equality iff \(u=w\). Forcing the three probabilities equal still requires \(u^2=1/3\) and \((1-u)^2=1/3\) simultaneously, which forces \(u=1-u\) i.e. \(u=1/2\), but then \(p_2=1/4\neq 1/3\).)
Exercise 1.7
A dart may miss the board: wall area \(A\), board radius \(r\). Construct \(P(\text{score }i)\), and show that conditioning on hitting the board recovers Example 1.2.7.
The board has area \(\pi r^2\). Ring \(i=1,\ldots,5\) has area \(\pi\bigl[((6-i)r/5)^2-((5-i)r/5)^2\bigr]\). A miss (0 points) has area \(A-\pi r^2\). By area, \[ \begin{aligned} P(i)&=\frac{\pi r^2}{A}\cdot\frac{(6-i)^2-(5-i)^2}{25},\quad i=1,\ldots,5,\\ P(0)&=1-\frac{\pi r^2}{A}. \end{aligned} \] (b) \(P(\text{board is hit})=\pi r^2/A\), so \[ P(i\mid\text{board is hit})=\frac{P(i)}{P(\text{board is hit})}=\frac{(6-i)^2-(5-i)^2}{25}, \] which is the distribution of Example 1.2.7.
Exercise 1.8
Example 1.2.7: general term, decrease in \(i\), and the Kolmogorov axioms.
(a) Ring \(i\) has outer radius \((6-i)r/5\) and inner radius \((5-i)r/5\), so the area ratio is \[ p_i=\frac{(6-i)^2-(5-i)^2}{25}=\frac{11-2i}{25},\qquad i=1,\ldots,5. \]
(b) \(p_{i+1}-p_i=-2/25<0\), so the sequence decreases.
(c) \(p_i>0\) and \(\sum_{i=1}^5 p_i=(9+7+5+3+1)/25=1\). On a finite sample space, Theorem 1.2.6 yields the Kolmogorov axioms.
Exercise 1.9
DeMorgan’s laws for an arbitrary (possibly uncountable) index set.
(a) \(x\in\bigl(\bigcup_\alpha A_\alpha\bigr)^c\Leftrightarrow\) for every \(\alpha\), \(x\notin A_\alpha\Leftrightarrow x\in\bigcap_\alpha A_\alpha^c\).
(b) \(x\in\bigl(\bigcap_\alpha A_\alpha\bigr)^c\Leftrightarrow\) there exists \(\alpha\) with \(x\notin A_\alpha\Leftrightarrow x\in\bigcup_\alpha A_\alpha^c\).
Exercise 1.10
DeMorgan’s laws for a finite collection.
The case \(n=2\) is Theorem 1.1.4(d). Induct: \[ \Bigl(\bigcup_{i=1}^{n+1}A_i\Bigr)^c=\Bigl(\bigl(\bigcup_{i=1}^n A_i\bigr)\cup A_{n+1}\Bigr)^c =\Bigl(\bigcup_{i=1}^n A_i\Bigr)^c\cap A_{n+1}^c =\bigcap_{i=1}^{n+1}A_i^c. \] The dual statement for intersections is the same argument, or apply the union form already proved to the complements \(A_i^c\).
Exercise 1.11
The trivial \(\sigma\)-algebra, the power set, and the intersection of two \(\sigma\)-algebras.
(a) \(\emptyset\in\mathcal{B}\), \(\emptyset^c=S\), \(S^c=\emptyset\), and a countable union is either \(\emptyset\) or \(S\).
(b) The power set contains \(\emptyset\) and is closed under complement and arbitrary unions.
(c) Let \(\mathcal{B}_1,\mathcal{B}_2\) be \(\sigma\)-algebras and \(\mathcal{B}=\mathcal{B}_1\cap\mathcal{B}_2\). Then \(\emptyset\) belongs to both. If \(A\in\mathcal{B}\) then \(A\) lies in both, hence so does \(A^c\). Countable unions are analogous.
Exercise 1.12
Countable additivity \(\Rightarrow\) finite additivity; finite additivity + continuity \(\Rightarrow\) countable additivity.
(a) For disjoint \(A,B\), set \(A_1=A\), \(A_2=B\), and \(A_i=\emptyset\) for \(i\ge 3\). Countable additivity and \(P(\emptyset)=0\) give \(P(A\cup B)=P(A)+P(B)\). The same padding works for any finite \(n\).
(b) Let \(\{A_i\}\) be pairwise disjoint. Set \(B_n=\bigcup_{i=n+1}^\infty A_i\). Then \(B_n\downarrow\emptyset\), so continuity yields \(P(B_n)\to 0\). Finite additivity on the \(n+1\) pieces consisting of \(A_1,\ldots,A_n\) and \(B_n\) gives \[ P\Bigl(\bigcup_{i=1}^\infty A_i\Bigr)=\sum_{i=1}^n P(A_i)+P(B_n). \] Let \(n\to\infty\) to obtain countable additivity.
Exercise 1.13
\(P(A)=1/3\), \(P(B^c)=1/4\). Can \(A\) and \(B\) be disjoint?
\(P(B)=3/4\). If \(A\cap B=\emptyset\), then \(P(A\cup B)=P(A)+P(B)=1/3+3/4=13/12>1\), which is impossible. They cannot be disjoint.
Exercise 1.14
An \(n\)-element set has \(2^n\) subsets.
Each element independently is either in the subset or not, giving \(2^n\) choices. By induction: \(n=0\) has one subset (the empty set); passing from \(n\) to \(n+1\) doubles the collection according as the new element is adjoined or not.
Exercise 1.15
Finish the induction for Theorem 1.2.14 from the \(k=2\) case.
The case \(k=2\) is already proved. If the first \(k\) tasks can be done in \(n_1\cdots n_k\) ways, treat that product as one “super-task” and append the \((k+1)\)st task (\(n_{k+1}\) ways). The \(k=2\) case multiplies, giving \(n_1\cdots n_{k+1}\).
Exercise 1.16
Surname plus one, two, or three given names; 26 letters. Count distinct initials.
The surname initial has 26 choices. (a) Two given names: \(26^3\). (b) One or two given names: \(26^2+26^3\). (c) Allow three given names as well: \(26^2+26^3+26^4\). These match the answers printed in the book.
Exercise 1.17
Dominoes: unordered pairs \(\{i,j\}\) with \(i,j\in\{1,\ldots,n\}\) (doubles allowed).
Unordered pairs including doubles: \(\binom{n}{2}+n=n(n+1)/2\).
Exercise 1.18
\(n\) balls placed at random into \(n\) cells; probability that exactly one cell is empty.
Balls and cells are distinguishable, so there are \(n^n\) placements. Exactly one empty cell \(\Leftrightarrow\) occupancy type \((2,1^{n-2},0)\). Choose the empty cell in \(n\) ways, the double-occupancy cell in \(n-1\) ways, the two balls that go into the double cell in \(\binom{n}{2}\) ways, and assign the remaining \(n-2\) balls to the \(n-2\) singleton cells by a permutation \((n-2)!\). Thus \[ P=\frac{n(n-1)\binom{n}{2}(n-2)!}{n^n}=\frac{\binom{n}{2}\,n!}{n^n}. \] This matches the answer printed in the book.
Exercise 1.19
Number of \(r\)th partial derivatives of a function of \(n\) variables (mixed partials commute).
Each \(r\)th partial is determined by a multi-index \((\alpha_1,\ldots,\alpha_n)\) with \(\alpha_i\ge 0\) and \(\sum\alpha_i=r\). The number of nonnegative integer solutions is \[ \binom{r+n-1}{r}. \] (a) \(n=3\), \(r=4\): \(\binom{6}{4}=15\).
Exercise 1.20
Twelve independent calls placed uniformly over seven days; probability of at least one call each day.
The \(12\) calls are independent with probability \(1/7\) each day, so there are \(7^{12}\) equally likely assignments. The number of surjections is \(7!\,S(12,7)\), where the Stirling number of the second kind is \[ S(12,7)=\frac{1}{7!}\sum_{k=0}^7(-1)^{7-k}\binom{7}{k}k^{12}. \] Hence \[ P=\frac{7!}{7^{12}}S(12,7)=\sum_{k=0}^7(-1)^{7-k}\binom{7}{k}\Bigl(\frac{k}{7}\Bigr)^{12}. \] Numerically, \[ \begin{aligned} P&=\binom{7}{7}1^{12}-\binom{7}{6}(6/7)^{12}+\binom{7}{5}(5/7)^{12}-\binom{7}{4}(4/7)^{12}\\ &\quad+\binom{7}{3}(3/7)^{12}-\binom{7}{2}(2/7)^{12}+\binom{7}{1}(1/7)^{12}\\ &\approx 0.2285. \end{aligned} \] (The inclusion-exclusion term at \(k=0\) vanishes.) This matches the book’s \(0.2285\).
Exercise 1.21
From \(n\) pairs of shoes, draw \(2r\) shoes (\(2r<n\)); probability of no matching pair.
The total is \(\binom{2n}{2r}\). For no pair: first choose \(2r\) distinct pairs \(\binom{n}{2r}\), then from each pair take left or right in \(2^{2r}\) ways. Thus \[ P=\frac{\binom{n}{2r}2^{2r}}{\binom{2n}{2r}}. \] This matches the answer printed in the book.
Exercise 1.22
Draft lottery on 366 days. (a) First 180 days evenly distributed among 12 months; (b) first 30 days contain none from September.
Months do not have a common integer length \(30.5\). Partition the \(366\) days into \(12\) month-groups of sizes \(n_1+\cdots+n_{12}=366\). A standard leap-year split is \(31,29,31,30,31,30,31,31,30,31,30,31\) (February has \(29\)).
(a) “Evenly distributed” means \(15\) days from each month. Each month has at least \(15\) days, so this is possible. Sampling without replacement, \[ P=\frac{\prod_{m=1}^{12}\binom{n_m}{15}}{\binom{366}{180}}. \] The book prints \(0.167\times 10^{-8}\). Replacing every month by the average \(366/12=30.5\) does not yield a binomial coefficient; the exact count uses the actual \(n_m\) above. A Stirling / normal approximation is already enough to see that the probability is extremely small.
(b) September has \(30\) days and the other months have \(336\), \[ P=\frac{\binom{336}{30}}{\binom{366}{30}}, \] which matches the answer printed in the book.
Exercise 1.23
Two people each toss a fair coin \(n\) times; probability they obtain the same number of heads.
\[ P=\sum_{k=0}^n\binom{n}{k}^2 2^{-2n}=\binom{2n}{n}2^{-2n}=\binom{2n}{n}4^{-n}. \] (The identity \(\sum_k\binom{n}{k}^2=\binom{2n}{n}\) counts ways to choose \(n\) people from \(2n\) by splitting into the first \(n\) and the last \(n\).) This matches the answer printed in the book.
Exercise 1.24
A and B toss a coin in turn; first head wins; A tosses first.
Write \(q=1-p\) and \(E_i=\) first head occurs on toss \(i\). A wins on the odd tosses: \[ P(A)=\sum_{k=0}^\infty P(E_{2k+1})=\sum_{k=0}^\infty q^{2k}p=\frac{p}{1-q^2}=\frac{p}{1-(1-p)^2}=\frac{p}{2p-p^2}=\frac{1}{2-p}. \] (a) \(p=1/2\) gives \(2/3\). (b) This is \(p/(1-(1-p)^2)\). (c) \(2-p<2\Rightarrow 1/(2-p)>1/2\).
Exercise 1.25
Two children, at least one boy; probability both are boys.
The sample space \(\{BB,BG,GB,GG\}\) is equally likely. Conditioning on “at least one boy” removes \(GG\), so \[ P(\text{two boys}\mid\text{at least one boy})=\frac13. \] (If the information were “a specified child is a boy”, the answer would be \(1/2\). Here the usual Gardner reading gives \(1/3\).)
Exercise 1.26
A fair die is cast until a \(6\) appears; probability that more than five casts are needed.
The first five casts are all not \(6\): \[ P=(5/6)^5\approx 0.4019. \]
Exercise 1.27
Three binomial identities.
(a) \((1-1)^n=0=\sum_k(-1)^k\binom{n}{k}\) (for \(n\ge 1\); the problem assumes \(n\ge 2\)).
(b) \(k\binom{n}{k}=n\binom{n-1}{k-1}\), so \(\sum_k k\binom{n}{k}=n2^{n-1}\).
(c) \(\sum_k(-1)^{k+1}k\binom{n}{k}=n\sum_k(-1)^{k+1}\binom{n-1}{k-1}=n(1-1)^{n-1}=0\) (for \(n\ge 2\)).
Exercise 1.28
Show that \(n!/(n^{n+1/2}e^{-n})\) has a finite nonzero limit (a weak form of Stirling).
Following the hint, monotonicity of \(\log\) gives \[ \int_{k-1}^k\log x\,dx\le\log k\le\int_k^{k+1}\log x\,dx, \] and summing over \(k=1,\ldots,n\) (the left-hand integral at \(k=1\) is interpreted as the limit \(0\)) yields \[ \int_0^n\log x\,dx\le\log n!\le\int_1^{n+1}\log x\,dx. \] That is, \(n\log n-n\le\log n!\le(n+1)\log(n+1)-n\). Set \[ a_n=\log n!-\bigl(n+\tfrac12\bigr)\log n+n. \] The two integral bounds show that \(a_n\) is bounded. Comparing consecutive terms, \[ a_{n+1}-a_n=1-\bigl(n+\tfrac32\bigr)\log\bigl(1+\tfrac1n\bigr)+\tfrac12\log n-\tfrac12\log(n+1)+\cdots \] and the expansion \(\log(1+1/n)=1/n-1/(2n^2)+O(n^{-3})\) shows \(a_{n+1}-a_n=O(n^{-2})\). Thus \(\sum(a_{n+1}-a_n)\) converges absolutely, \(a_n\) converges to a finite limit, and the desired ratio converges to the positive constant \(e^{\lim a_n}\) (Stirling identifies the constant as \(\sqrt{2\pi}\)).
Exercise 1.29
Number of ordered realizations of an unordered with-replacement sample; a multinomial counting identity.
(a) Example 1.2.20 draws \(4\) from \(\{2,4,9,12\}\). Ordered \(4\)-tuples for \(\{4,4,12,12\}\): choose two positions for \(4\) and put \(12\) in the rest, \(\binom{4}{2}=6\). For \(\{2,9,9,12\}\): choose two positions for \(9\), then assign \(\{2,12\}\) to the remaining two positions, \(\binom{4}{2}\cdot 2!=12\).
(b) Drawing \(6\) with replacement from \(6\) numbers gives \(6^6\) ordered samples. The unordered sample \(\{2,7,7,8,14,14\}\) corresponds to \(6!/(2!2!)=180\) ordered samples, hence probability \(180/6^6=180/46656=5/1296\).
(c) A multiset \(\{y_1^{k_1},\ldots,y_m^{k_m}\}\) has \(k!/(k_1!\cdots k_m!)\) distinct permutations.
(d) The left-hand side of the printed identity sums \(k!/(k_1!\cdots k_m!)\) over compositions of \(k\). By the multinomial theorem \[ \sum_{k_1+\cdots+k_m=k}\frac{k!}{k_1!\cdots k_m!}=\sum\binom{k}{k_1,\ldots,k_m}=m^k. \] The printed right-hand side is \(\binom{k+m-1}{k}\), which counts unordered multisets. If each type is counted once rather than \(k!/(k_1!\cdots k_m!)\) times, the sum is \(\binom{k+m-1}{k}\). As printed, \[ \sum\frac{k!}{k_1!\cdots k_m!}=\binom{k+m-1}{k} \] is false (the left side equals \(m^k\)). Author’s remark: the typesetting appears to have written a sum of \(1\) over types as a sum carrying the factorial weights. The correct count of unordered with-replacement samples is \(\binom{k+m-1}{k}\) (stars and bars). If the factorial weights on the left are kept, the right-hand side should be \(m^k\). The solution reads the identity in the stars-and-bars sense consistent with (c).
Exercise 1.30
Histogram of the sample mean for with-replacement samples from \(\{1,2,7,8,14,20\}\).
There are \(6^n\) ordered samples; the problem does not specify \(n\). In parallel with Example 1.2.20 take \(n=4\) (or \(n=6\) to match 1.29). The distribution of \(\bar x=(x_1+\cdots+x_n)/n\) is obtained from multinomial weights on occupancy types: type \((k_1,\ldots,k_6)\) has probability \[ \frac{n!}{k_1!\cdots k_6!}6^{-n},\qquad \bar x=\frac{1k_1+2k_2+7k_3+8k_4+14k_5+20k_6}{n}. \] The histogram has possible values of \(\bar x\) on the horizontal axis and the summed probabilities as bar heights. The mode sits near the population mean \(52/6\approx 8.67\) (see 1.31). Concrete bars require enumerating types for the chosen \(n\); the plotting procedure is the same as in Example 1.2.20 / Figure 1.2.2.
Exercise 1.31
With-replacement sampling: the sample whose mean equals the population mean is most likely; Stirling; the probability a given \(x_i\) is missing tends to \(e^{-1}\).
(a) Ordered samples are equally likely, each with probability \(n^{-n}\). The unordered sample \(\{x_1,\ldots,x_n\}\) (each original number once) corresponds to \(n!\) permutations, hence probability \(n!/n^n\), and its mean is exactly \(\bar x\). Any type with a repeated value has some \(k_i\neq 1\), so the number of permutations is \(n!/(k_1!\cdots)<n!\), and that unordered sample has strictly smaller probability.
(b) Stirling’s formula \(n!\sim\sqrt{2\pi n}\,(n/e)^n\) immediately yields \(n!/n^n\sim\sqrt{2\pi n}\,e^{-n}\).
(c) Each draw independently avoids \(x_i\) with probability \(1-1/n\), so \((1-1/n)^n\to e^{-1}\).
Exercise 1.32
Secretary problem: given that a candidate is hired on trial \(i\), probability that the best candidate was hired.
The candidates appear in random order. A hire occurs on trial \(i\) if and only if \(i\) is a record (best of the first \(i\)). Then \[ P(\text{record at }i)=\frac1i,\qquad P(\text{global best at }i)=\frac1N, \] and \(\{\text{global best at }i\}\subset\{\text{record at }i\}\). Therefore \[ P(\text{best hired}\mid\text{hired on trial }i) =\frac{P(\text{global best at }i)}{P(\text{record at }i)} =\frac{i}{N}. \] (The relative ranks of the first \(i\) being uniform does not make the global best equally likely to sit at each of those \(i\) positions conditional on a hire at \(i\): that event already forces the maximum of the first \(i\) to be at \(i\).)
Exercise 1.33
Equal numbers of men and women; color-blind rates \(5\%\) and \(0.25\%\). Given color-blindness, probability the person is male.
Bayes’ rule: \[ P(M\mid C)=\frac{0.05\cdot 1/2}{0.05\cdot 1/2+0.0025\cdot 1/2}=\frac{0.05}{0.0525}=\frac{20}{21}. \]
Exercise 1.34
Pick a litter at random, then one offspring. Probability of brown hair; given brown hair, probability the offspring came from litter 1.
(a) \(P(B)=\frac12\cdot\frac23+\frac12\cdot\frac35=\frac13+\frac{3}{10}=\frac{19}{30}\).
(b) \(P(L_1\mid B)=\dfrac{(1/2)(2/3)}{19/30}=\dfrac{10}{19}\).
Exercise 1.35
\(P(\,\cdot\mid B)\) satisfies the Kolmogorov axioms.
\(P(A\mid B)=P(A\cap B)/P(B)\ge 0\). \(P(S\mid B)=P(B)/P(B)=1\). If \(\{A_i\}\) are pairwise disjoint then so are \(\{A_i\cap B\}\), and \[ P\Bigl(\bigcup A_i\Bigm| B\Bigr)=\frac{P\bigl(\bigcup(A_i\cap B)\bigr)}{P(B)}=\sum_i\frac{P(A_i\cap B)}{P(B)}=\sum_i P(A_i\mid B). \]
Exercise 1.36
Hit probability \(1/5\), ten independent shots. At least two hits; and at least two hits given at least one hit.
\(X\sim\mathrm{Bin}(10,1/5)\). \[ P(X\ge 2)=1-P(X=0)-P(X=1)=1-(4/5)^{10}-10(1/5)(4/5)^9. \] Numerically \((4/5)^{10}=0.10737\) and \(10\cdot(1/5)\cdot(4/5)^9=0.26844\), so \(P(X\ge 2)\approx 0.6242\). \[ P(X\ge 2\mid X\ge 1)=\frac{P(X\ge 2)}{1-P(X=0)}\approx\frac{0.6242}{0.8926}\approx 0.6993. \]
Exercise 1.37
Three prisoners: the warden names B with probability \(\gamma\) when A is pardoned; and swapping fates with C.
(a) \[ \begin{aligned} P(W)&=P(W\mid A)P(A)+P(W\mid C)P(C)=\gamma\cdot\frac13+1\cdot\frac13=\frac{\gamma+1}{3},\\ P(A\cap W)&=\gamma/3,\\ P(A\mid W)&=\frac{\gamma}{\gamma+1}. \end{aligned} \] Compare with \(1/3\): \(\gamma/(\gamma+1)<1/3\Leftrightarrow 3\gamma<\gamma+1\Leftrightarrow\gamma<1/2\); equality when \(\gamma=1/2\); the reverse inequality when \(\gamma>1/2\).
(b) When \(\gamma=1/2\), \(P(C\mid W)=1-1/3=2/3\) (or directly \(P(C\cap W)=1/3\) and \(P(W)=1/2\)). After swapping fates with C, A lives if and only if the original pardon was C, which has probability \(2/3\).
Exercise 1.38
Four conditional-probability identities.
(a) \(P(B)=1\Rightarrow P(A\cap B)=P(A)-P(A\cap B^c)=P(A)\), since \(P(A\cap B^c)\le P(B^c)=0\). Hence \(P(A\mid B)=P(A)\).
(b) \(A\subset B\Rightarrow A\cap B=A\), so \(P(B\mid A)=1\) and \(P(A\mid B)=P(A)/P(B)\).
(c) \(A\cap B=\emptyset\Rightarrow A\cap(A\cup B)=A\) and \(P(A\cup B)=P(A)+P(B)\).
(d) \(P(A\cap B\cap C)=P(A\mid B\cap C)P(B\cap C)=P(A\mid B\cap C)P(B\mid C)P(C)\).
Exercise 1.39
Events of positive probability cannot be both disjoint and independent.
(a) Disjoint \(\Rightarrow P(A\cap B)=0\), but \(P(A)P(B)>0\), so they are not independent.
(b) Independent \(\Rightarrow P(A\cap B)=P(A)P(B)>0\), so \(A\cap B\neq\emptyset\).
Exercise 1.40
Finish Theorem 1.3.9(b)(c).
(b) \(P(A^c\cap B)=P(B)-P(A\cap B)=P(B)-P(A)P(B)=P(A^c)P(B)\).
(c) \(P(A^c\cap B^c)=1-P(A\cup B)=1-P(A)-P(B)+P(A)P(B)=P(A^c)P(B^c)\).
Exercise 1.41
Dots:dashes \(=3:4\); a dot is received as a dash with probability \(1/4\), a dash as a dot with probability \(1/3\).
\(P(\text{dot})=3/7\), \(P(\text{dash})=4/7\). \[ \begin{aligned} P(\text{receive dash})&=\tfrac14\cdot\tfrac37+\tfrac23\cdot\tfrac47=\tfrac{3}{28}+\tfrac{8}{21}=\tfrac{9+32}{84}=\tfrac{41}{84},\\ P(\text{sent dash}\mid\text{receive dash})&=\frac{(2/3)(4/7)}{41/84}=\frac{32}{41}. \end{aligned} \]
(b) Write the sent pair as \((X_1X_2)\) and condition on receiving dot–dot. The channel acts independently on the two signals. \[ \begin{aligned} P(\text{receive dot–dot}\mid\text{dot–dot})&=(3/4)^2=9/16,\\ P(\text{receive dot–dot}\mid\text{dot–dash})&=(3/4)(1/3)=1/4,\\ P(\text{receive dot–dot}\mid\text{dash–dot})=(1/3)(3/4)=1/4,\\ P(\text{receive dot–dot}\mid\text{dash–dash})=(1/3)^2=1/9. \end{aligned} \] Priors: dot–dot \((3/7)^2\), dot–dash \(=\) dash–dot \(=12/49\), dash–dash \((4/7)^2\). Posterior weights are likelihood \(\times\) prior: \[ \begin{aligned} w_{\cdot\cdot}&=\frac9{16}\cdot\frac9{49}=\frac{81}{784},& w_{\cdot-}&=\frac14\cdot\frac{12}{49}=\frac{3}{49}=\frac{48}{784},\\ w_{-\cdot}&=\frac{48}{784},& w_{--}&=\frac19\cdot\frac{16}{49}=\frac{16}{441}=\frac{64}{1764}. \end{aligned} \] Clearing to denominator \(7056\): \(w_{\cdot\cdot}=729/7056\), \(w_{\cdot-}=w_{-\cdot}=432/7056\), \(w_{--}=256/7056\). The total is \(1849/7056\). Hence \[ \begin{aligned} P(\text{dot–dot}\mid\text{receive dot–dot})&=729/1849,\\ P(\text{dot–dash}\mid\text{receive dot–dot})&=432/1849,\\ P(\text{dash–dot}\mid\text{receive dot–dot})&=432/1849,\\ P(\text{dash–dash}\mid\text{receive dot–dot})&=256/1849. \end{aligned} \]
Exercise 1.42
Prove the §1.8.1 identity by the method of inclusion-exclusion.
(a) The events \(\{\text{in exactly }k\text{ of the }A_i\}\) are disjoint and union to \(\bigcup A_i\), so \(P(\bigcup A_i)=\sum_k P(E_k)\).
(b) A point \(x\in E_1\) lies in exactly one \(A_i\), so it is counted once in \(\sum_i P(x\in A_i)\).
(c) If \(x\) lies in exactly \(k\) of the \(A_i\), then \(x\) appears in \(P_r=\sum P(\text{$r$-fold intersections})\) exactly \(\binom{k}{r}\) times.
(d) \(\sum_{r=1}^k(-1)^{r-1}\binom{k}{r}=1-(1-1)^k=1\) (for \(k\ge 1\)). That is, \[ k-\binom{k}{2}+\cdots\pm\binom{k}{k}=1. \]
(e) Each \(x\in E_k\) contributes \(P(x)\) times the \(1\) from (d) to \(\sum_r(-1)^{r-1}P_r\). Summing over \(k\) yields \[ P\Bigl(\bigcup A_i\Bigr)=P_1-P_2+\cdots\pm P_n. \]
Exercise 1.43
Boole/Bonferroni from inclusion-exclusion; monotonicity of the bounds; the degenerate case of identical events.
(a) Truncate the alternating sum: a positive last term gives an upper bound and a negative last term a lower bound (the remainder sign is controlled by the partial sums in (d)). In particular \(P(\bigcup)\le P_1\) is Boole’s inequality, and \(P(\bigcap)=1-P(\bigcup A_i^c)\ge\sum P(A_i)-(n-1)\) is Bonferroni’s inequality.
(b) The claim \(P_i\ge P_j\) for \(i\le j\) need not hold under arbitrary dependence. What does hold is that the alternating remainder makes the bounding intervals nest. The partial sums satisfy \[ S_{2m-1}\ge P(\bigcup)\ge S_{2m} \] and \(S_{2m-1}-S_{2m}=P_{2m}\ge 0\), so the interval lengths are nonincreasing.
(c) If every \(A_i=A\), then \(P_k=\binom{n}{k}P(A)\) and \[ \sum_{k=1}^n(-1)^{k-1}\binom{n}{k}P(A)=P(A), \] which agrees with \(P(\bigcup A_i)=P(A)\). The intermediate bound \(P_1=nP(A)\) is useless unless \(P(A)\) is small; higher-order terms oscillate violently before returning to \(P(A)\). That is why, under strong dependence, “adding more terms” need not help immediately.
Exercise 1.44
Twenty four-choice questions guessed blindly; probability of at least ten correct.
\(X\sim\mathrm{Bin}(20,1/4)\), \[ P(X\ge 10)=\sum_{k=10}^{20}\binom{20}{k}(1/4)^k(3/4)^{20-k}. \] The numerical value is about \(0.01386\).
Exercise 1.45
The induced \(P_X\) satisfies the Kolmogorov axioms.
\(P_X(X=x_i)=P(X^{-1}\{x_i\})\ge 0\). \(\sum_i P_X(X=x_i)=P(S)=1\). If the sets \(B_j\) in the range are pairwise disjoint, then so are the preimages \(X^{-1}(B_j)\), and countable additivity is inherited from \(P\).
Exercise 1.46
Seven balls placed at random into seven cells; \(X_3=\) number of cells with exactly three balls. Find the distribution of \(X_3\).
Balls and cells are distinguishable, so there are \(7^7\) placements. The event \(X_3=x\) means exactly \(x\) cells contain \(3\) balls each, using \(3x\) balls and \(x\) cells. The remaining \(7-3x\) balls go into the remaining \(7-x\) cells, and none of those cells may contain exactly \(3\) balls. Feasible values are \(x\in\{0,1,2\}\) (since \(3\cdot 3=9>7\)).
\(x=2\): six balls occupy two cells (three each) and one ball occupies one of the five leftover cells. Choose two triple cells and one singleton cell, then apply the multinomial coefficient: \[ N(2)=\binom{7}{2,1,4}\frac{7!}{3!\,3!\,1!}=21\cdot 5\cdot\frac{5040}{6\cdot 6}. \] Equivalently \(\binom{7}{2}\binom{5}{1}=21\cdot 5=105\) and \(7!/(3!3!1!)=140\), so \(N(2)=105\cdot 140=14700\).
\(x=1\): one cell has three balls; four balls go into six cells with no further cell of size \(3\). Occupancy types: \((3,4,0^5)\), \((3,2,2,0^4)\), \((3,2,1,1,0^3)\), \((3,1^4,0^2)\). Counting by type, \[ \begin{aligned} (3,4) &: \binom{7}{1,1,5}\frac{7!}{3!4!}=7\cdot 6\cdot 35=1470,\\ (3,2,2)&: \binom{7}{1,2,4}\frac{7!}{3!2!2!}=7\cdot 15\cdot 210=22050,\\ (3,2,1,1)&: \binom{7}{1,1,2,3}\frac{7!}{3!2!1!1!}=420\cdot 420=176400,\\ (3,1^4)&: \binom{7}{1,4,2}\frac{7!}{3!}=105\cdot 840=88200. \end{aligned} \] Total \(N(1)=1470+22050+176400+88200=288120\).
\(x=0\): \(N(0)=7^7-N(1)-N(2)=823543-288120-14700=520723\).
Therefore \[ P(X_3=2)=\frac{14700}{7^7},\quad P(X_3=1)=\frac{288120}{7^7},\quad P(X_3=0)=\frac{520723}{7^7}, \] and \(P(X_3=x)=0\) for every other \(x\). Numerically these are about \(0.0178,\,0.3499,\,0.6323\).
Exercise 1.47
Verify that five functions are cdfs.
Use Theorem 1.5.3.
(a) Cauchy: \(F(-\infty)=1/2+(1/\pi)(-\pi/2)=0\), \(F(\infty)=1\), derivative \(1/(\pi(1+x^2))>0\), continuous.
(b) Logistic: \(F(-\infty)=0\), \(F(\infty)=1\), derivative \(e^{-x}/(1+e^{-x})^2>0\), continuous.
(c) Gumbel: \(e^{-e^{-x}}\). As \(x\to-\infty\), \(e^{-x}\to\infty\) and \(F\to e^{-\infty}=0\); as \(x\to\infty\), \(F\to e^0=1\). Derivative \(e^{-x}e^{-e^{-x}}>0\).
(d) Exponential: \(1-e^{-x}\) on \((0,\infty)\); set \(F=0\) for \(x\le 0\). Right-continuous, monotone, limits \(0\) and \(1\).
(e) Display (1.5.6): \((1-\varepsilon)/(1+e^{-y})\) for \(y<0\) and \(\varepsilon+(1-\varepsilon)/(1+e^{-y})\) for \(y\ge 0\). The left limit at \(0\) is \((1-\varepsilon)/2\); the right limit and the function value are both \(\varepsilon+(1-\varepsilon)/2\), a jump of size \(\varepsilon\). Endpoint limits are \(0\) and \(1\); each piece is increasing; the function is right-continuous.
Exercise 1.48
Necessity in Theorem 1.5.3.
\(F(x)=P(X\le x)\).
(a) \(\{X\le -n\}\downarrow\emptyset\), so countable additivity / continuity \(\Rightarrow F(-n)\to 0\). \(\{X\le n\}\uparrow S\Rightarrow F(n)\to 1\).
(b) \(x<y\Rightarrow\{X\le x\}\subset\{X\le y\}\Rightarrow F(x)\le F(y)\).
(c) Let \(x_n\downarrow x\). Then \(\{X\le x_n\}\downarrow\{X\le x\}\) (right-continuity uses \(\le\)), so \(F(x_n)\to F(x)\).
Exercise 1.49
Stochastic order: \(F_X\le F_Y\) with a strict inequality somewhere implies \(P(X>t)\ge P(Y>t)\) with a strict inequality somewhere.
\(P(X>t)=1-F_X(t)\) because \(F(t)=P(X\le t)\). Thus \(F_X(t)\le F_Y(t)\Rightarrow P(X>t)\ge P(Y>t)\). If \(F_X(t_0)<F_Y(t_0)\) at some \(t_0\), the inequality is strict there.
Exercise 1.50
Partial sum of a geometric series.
Let \(s=\sum_{k=0}^{n-1}t^k\) (the book’s \(\sum_{k=1}^n t^{k-1}\)). Then \(s-ts=1-t^n\), so \(s=(1-t^n)/(1-t)\) when \(t\neq 1\). When \(t=1\) the sum is \(n\).
Exercise 1.51
Thirty ovens, five defective; draw four; \(X=\) number defective. Find the pmf and cdf.
Hypergeometric: \[ f(x)=P(X=x)=\frac{\binom{5}{x}\binom{25}{4-x}}{\binom{30}{4}},\qquad x=0,1,2,3,4. \] \[ \binom{30}{4}=27405. \] \[ \begin{aligned} f(0)&=\binom{25}{4}/27405=12650/27405,\\ f(1)&=\binom{5}{1}\binom{25}{3}/27405=5\cdot 2300/27405=11500/27405,\\ f(2)&=\binom{5}{2}\binom{25}{2}/27405=10\cdot 300/27405=3000/27405,\\ f(3)&=\binom{5}{3}\binom{25}{1}/27405=10\cdot 25/27405=250/27405,\\ f(4)&=\binom{5}{4}/27405=5/27405. \end{aligned} \] The cdf is the right-continuous step function with these jumps: \(F(x)=0\) for \(x<0\), \(F(x)=\sum_{k\le x}f(k)\) at the integers, and \(F(4)=1\).
Exercise 1.52
The truncated density \(g(x)=f(x)/[1-F(x_0)]\) for \(x\ge x_0\) is a pdf.
\(g\ge 0\), and \[ \int_{-\infty}^\infty g=\frac{1}{1-F(x_0)}\int_{x_0}^\infty f=\frac{1-F(x_0)}{1-F(x_0)}=1. \] This is the density of \(X\mid X\ge x_0\).
Exercise 1.53
High-water mark \(F_Y(y)=1-1/y^2\) for \(y\ge 1\). Verify the cdf, find the pdf, then the cdf of \(Z=10(Y-1)\).
(a) \(F_Y(1)=0\) (and \(F_Y=0\) for arguments below \(1\)); \(F\to 1\) as \(y\to\infty\); \(F'(y)=2/y^3>0\); continuous.
(b) \(f_Y(y)=2y^{-3}\) for \(y\ge 1\).
(c) \(Y=1+Z/10\) with \(Z\ge 0\), so \[ F_Z(z)=P\bigl(Y\le 1+z/10\bigr)=1-\frac{1}{(1+z/10)^2},\qquad z\ge 0. \]
Exercise 1.54
Choose \(c\) so that \(f\) is a pdf.
(a) \(\int_0^{\pi/2}\sin x\,dx=1\), so \(c=1\).
(b) \(\int_{-\infty}^\infty e^{-|x|}\,dx=2\), so \(c=1/2\).
Exercise 1.55
\(T\) is exponential with mean \(1.5\). \(V=5\) if \(T<3\), otherwise \(V=2T\). Find \(F_V\).
\(f_T(t)=(2/3)e^{-(2/3)t}\) for \(t>0\). \(P(T<3)=1-e^{-2}\).
\(V\) has an atom at \(5\) of mass \(P(T<3)=1-e^{-2}\). When \(T\ge 3\), \(V=2T\ge 6\), so \(V\) does not take values in \((5,6)\). For \(v<5\), \(F_V(v)=0\). At \(v=5\), \[ F_V(5)=P(T<3)=1-e^{-2}. \] For \(5<v<6\), \(F_V(v)\) remains \(1-e^{-2}\) (no additional mass). For \(v\ge 6\), \[ F_V(v)=P(T<3)+P(2T\le v,\,T\ge 3)=P(T\le v/2)=1-e^{-v/3}, \] since \(v/2\ge 3\). In summary, \[ F_V(v)=\begin{cases} 0, & v<5,\\ 1-e^{-2}, & 5\le v<6,\\ 1-e^{-v/3}, & v\ge 6. \end{cases} \]