Chapter 3 Exercises
Casella & Berger, Statistical Inference (2nd ed.)
How to use these solutions
- Textbook: George Casella & Roger L. Berger, Statistical Inference, Second Edition (CRC 2024 reprint; the body text matches the 2001 second edition).
- Range: Chapter 3, §3.7 Exercises 3.1–3.50.
- Pages: printed 104–111, PDF 135–142 (approximately PDF page = printed page + 31).
- Companion notes:
ch03-notes.qmd. Miscellanea §3.8 is used for Exercise 3.44 and the Poisson postulates.
Exercise 3.1
Mean and variance of the discrete uniform on \(\{N_0,\ldots,N_1\}\).
Set \(M=N_1-N_0+1\) and \(Y=X-N_0+1\). Then \(Y\sim\mathrm{discrete\ uniform}(1,M)\). \(EY=(M+1)/2\) and \(\mathrm{Var}\,Y=(M^2-1)/12\). Hence \[ EX=N_0-1+\frac{M+1}{2}=\frac{N_0+N_1}{2},\qquad \mathrm{Var}\,X=\frac{(N_1-N_0+1)^2-1}{12}. \]
Exercise 3.2
Lot of size \(N=100\), with \(M\ge 6\) defectives. Draw \(K\) items; acceptance rule.
The worst case (easiest to accept a bad lot) is \(M=6\). Then \(X\sim\mathrm{Hypergeometric}(100,6,K)\).
(a) Require \(P(X=0)=\binom{94}{K}/\binom{100}{K}<0.10\). \[ P(X=0)=\prod_{i=0}^{K-1}\frac{94-i}{100-i}. \] Numerically: \(K=31\) gives \(\approx 0.1006\) and \(K=32\) gives \(\approx 0.0918\). Thus \(K\ge 32\).
(b) \(P(X\le 1)=\dfrac{\binom{6}{0}\binom{94}{K}+\binom{6}{1}\binom{94}{K-1}}{\binom{100}{K}}\). At \(K=50\) this is \(\approx 0.1022\); at \(K=51\) it is \(\approx 0.0933\). Thus \(K\ge 51\).
Exercise 3.3
Each second a car passes with probability \(p\). A pedestrian needs 3 consecutive car-free seconds. Probability of waiting exactly 4 seconds before starting.
“Wait exactly 4 seconds” means the pedestrian cannot start during the first 4 seconds, then seconds 5–7 are car-free. Starting is allowed from a given second only if the next 3 seconds are empty. Waiting 4 seconds means: \(t=1,2,3,4\) cannot be starting seconds, while \(t=5\) can. Equivalently: seconds 5, 6, 7 are empty, and second 4 has a car (otherwise one could start at \(t=4\)). One still needs that \(t=1,2,3\) are not starting times: a car in second 4 already blocks \(t=2\) and \(t=3\); it remains that seconds 1–3 are not all empty—wait: starting at \(t=1\) looks at seconds 1, 2, 3.
Precisely: let \(I_t=1\) if a car passes in second \(t\). We need - \(I_5=I_6=I_7=0\) (start at \(t=5\)); - for \(t=1,2,3,4\), \((I_t,I_{t+1},I_{t+2})\ne(0,0,0)\).
Together with \(I_5=I_6=0\), the condition at \(t=4\) is \(I_4=1\). At \(t=3\): \((I_3,I_4,I_5)\) already satisfies the requirement because \(I_4=1\). At \(t=2\): \(I_4=1\) already. At \(t=1\): we need \((I_1,I_2,I_3)\ne(0,0,0)\).
Hence: \(I_4=1\), \(I_5=I_6=I_7=0\), and \((I_1,I_2,I_3)\ne(0,0,0)\). \[ P=p(1-p)^3\bigl(1-(1-p)^3\bigr). \]
Exercise 3.4
\(n\) keys, one opens the door. Expected number of trials with / without replacement.
(a) With replacement: each trial succeeds with probability \(1/n\), geometric (trial count). \(EX=n\).
(b) Without replacement: equally likely permutations; the position \(U\) of the correct key is uniform on \(\{1,\ldots,n\}\). \(EX=(n+1)/2\).
Exercise 3.5
Old drug \(p=0.8\); new drug effective in \(85\) of \(100\) patients. Is it better?
Under \(p=0.8\), \(X\sim\mathrm{binomial}(100,0.8)\). Normal approximation: \(EX=80\), \(\sigma=\sqrt{16}=4\), with continuity correction \[ P(X\ge 85)=P(X\ge 84.5)\approx P\bigl(Z\ge(84.5-80)/4\bigr)=P(Z\ge 1.125)\approx 0.13. \] The exact binomial tail is of the same order \(0.13\), which is not extreme. This is not enough to claim that the new drug is better.
Exercise 3.6
\(2000\) insects, insecticide \(99\%\) effective. \(X=\) number of survivors.
(a) \(X\sim\mathrm{binomial}(2000,0.01)\).
(b) \(P(X<100)=\sum_{k=0}^{99}\binom{2000}{k}(0.01)^k(0.99)^{2000-k}\).
(c) Poisson\((\lambda=20)\) or normal \(n(20,19.8)\). Normal: \(P(X\le 99.5)\approx P(Z\le(99.5-20)/\sqrt{19.8})\approx P(Z\le 17.9)\approx 1\). The Poisson approximation is likewise essentially \(1\) (mean \(20\), more than \(4\) standard deviations away).
Exercise 3.7
Poisson: smallest \(\lambda\) such that \(P(X\ge 2)>0.99\).
\(P(X\ge 2)=1-e^{-\lambda}(1+\lambda)>0.99\Leftrightarrow e^{-\lambda}(1+\lambda)<0.01\). Trial values: at \(\lambda=6.6\), \(e^{-6.6}(7.6)\approx 0.0103\); at \(\lambda=6.7\), \(\approx 0.0094\). The smallest mean is about \(6.64\) (continuous parameter). An integer report may be written as \(6.7\).
Exercise 3.8
\(1000\) people independently choose one of two theaters with probability \(1/2\). Seat count \(N\) so that the probability of a sell-out is \(<1\%\).
(a) \(X\sim\mathrm{binomial}(1000,1/2)\). We need \(P(X>N)<0.01\), i.e. \(N\ge F_X^{-1}(0.99)\).
(b) Approximate by \(n(500,250)\). Then \(P(X>N)\approx P(Z>(N+0.5-500)/\sqrt{250})<0.01\), so \((N+0.5-500)/15.811\ge 2.326\), hence \(N\ge 536.3\). Take \(N=537\).
Exercise 3.9
Five pairs of twins in a kindergarten: is this “statistically impossible”?
(a) Treat families/children as approximately \(\mathrm{binomial}(60,1/90)\) (twin births). \(EX=2/3\). \(P(X\ge 5)\approx 1-F_{\mathrm{Poisson}(2/3)}(4)\approx 0.0007\). Rare for a single school, but not necessarily “impossible” at news-headline scale.
(b) \(62\times 5=310\) schools. \(1-(1-0.0007)^{310}\approx 0.20\). About a \(20\%\) chance in the state in a given year.
(c) \(50\) states \(\times 10\) years: about \(1-(1-0.20)^{500}\approx 1\). Entirely expected. This is “the real law of large numbers.”
Exercise 3.10
\(496\) packets; first \(4\) tested are cocaine, then \(2\) untested packets are sold. Probability of innocence.
(a) Hypergeometric: first draw \(4\) cocaine then \(2\) non-cocaine, \[ \frac{\binom{N}{4}\binom{M}{2}}{\binom{496}{4}\binom{492}{2}},\qquad N+M=496. \]
(b) Maximize over integers \(M=0,\ldots,492\). Set \(N=496-M\) and compute directly, or locate the sign change of the ratio \(p(M+1)/p(M)\). The maximum \(\approx 0.022\) occurs at \(M=165\), \(N=331\). The defendant’s “probability of innocence” is at most \(2.2\%\).
Exercise 3.11
Hypergeometric \(\to\) binomial \(\to\) Poisson.
(a) \[ P(X=x)=\frac{\binom{M}{x}\binom{N-M}{K-x}}{\binom{N}{K}} =\binom{K}{x}\frac{(M)_x(N-M)_{K-x}}{(N)_K}. \] As \(M/N\to p\) and \(N\to\infty\), \((M)_x/(N)_x\to p^x\) and \((N-M)_{K-x}/(N-x)_{K-x}\to(1-p)^{K-x}\).
(b) Next let \(K\to\infty\), \(p\to 0\), \(Kp\to\lambda\), and apply the binomial–Poisson limit.
(c) Directly: \((M)_x/(N)_x\cdot(N-M)_{K-x}/(N-x)_{K-x}\cdot K(K-1)\cdots(K-x+1)\). If \(M/N\to 0\), \(KM/N\to\lambda\), and \(K/N\to 0\), each \((1-M/N)^{K}\)-type factor tends to \(e^{-\lambda}\) by Lemma 2.3.14, and the polynomial prefactor tends to \(\lambda^x\).
Exercise 3.12
\(X\sim\mathrm{binomial}(n,p)\), \(Y\sim\mathrm{NB}(r,p)\). Prove \(F_X(r-1)=1-F_Y(n-r)\).
\(F_X(r-1)=P(\) number of successes in \(n\) trials \(\le r-1)=P(\) the \(r\)th success occurs at trial \(n+1\) or later \()=P(X_{\mathrm{trial}}\ge n+1)\), where \(X_{\mathrm{trial}}=Y+r\). Hence \(P(Y+r\ge n+1)=P(Y\ge n-r+1)=1-F_Y(n-r)\).
Exercise 3.13
Zero-truncated Poisson and negative binomial.
(a) \(P(X>0)=1-e^{-\lambda}\), \(P(X_T=x)=e^{-\lambda}\lambda^x/(x!(1-e^{-\lambda}))\), \(x\ge 1\). \(EX_T=\lambda/(1-e^{-\lambda})\), \(E[X_T(X_T-1)]=\lambda^2/(1-e^{-\lambda})\), \(\mathrm{Var}\,X_T=\frac{\lambda}{1-e^{-\lambda}}-\frac{\lambda^2 e^{-\lambda}}{(1-e^{-\lambda})^2}\).
(b) \(P(Y=0)=p^r\), \(P(Y_T=y)=\binom{r+y-1}{y}p^r(1-p)^y/(1-p^r)\), \(y\ge 1\). \(EY_T=\frac{r(1-p)}{p(1-p^r)}\). The variance is obtained by dividing the original negative-binomial \(E[Y(Y-1)]\) by \(1-p^r\) and subtracting the square of the mean.
Exercise 3.14
Logarithmic series distribution.
(a) \(-\sum_{x=1}^\infty(1-p)^x/(x\log p)=-\log p/\log p=1\) (because \(-\log p=\sum(1-p)^x/x\)).
(b) \(EX=-(1-p)/(p\log p)\), \(\mathrm{Var}\,X=-(1-p)(1+(1-p)/\log p)/(p^2\log p)\). (Differentiate the partition function in \(p\), or differentiate the pgf \(E t^X=\log(1-(1-p)t)/\log p\).)
Exercise 3.15
Negative binomial mgf \(\to\) Poisson mgf.
\(M(t)=\bigl(p/(1-(1-p)e^t)\bigr)^r\). As \(p\to 1\) and \(r(1-p)\to\lambda\), one has \(r\log p=r\log(1-(1-p))\sim -r(1-p)\to-\lambda\), \[ \bigl(1-(1-p)e^t\bigr)^r=\exp\bigl(r\log(1-(1-p)e^t)\bigr)\to\exp(-\lambda e^t). \] Hence \(M\to e^{-\lambda}e^{\lambda e^t}=e^{\lambda(e^t-1)}\).
Exercise 3.16
\(\Gamma(\alpha+1)=\alpha\Gamma(\alpha)\); \(\Gamma(1/2)=\sqrt{\pi}\).
(a) Integration by parts: \(u=t^\alpha\), \(dv=e^{-t}dt\). The boundary terms vanish.
(b) \(\Gamma(1/2)=\int_0^\infty t^{-1/2}e^{-t}\,dt\). The substitution \(t=z^2/2\) reduces this to \(\sqrt{2}\int_0^\infty e^{-z^2/2}\,dz=\sqrt{\pi}\) (by (3.3.14)).
Exercise 3.17
\(X\sim\mathrm{gamma}(\alpha,\beta)\), \(EX^\nu=\beta^\nu\Gamma(\nu+\alpha)/\Gamma(\alpha)\).
\(\int_0^\infty x^\nu\cdot x^{\alpha-1}e^{-x/\beta}\,dx/\Gamma(\alpha)\beta^\alpha=\Gamma(\nu+\alpha)\beta^{\nu+\alpha}/(\Gamma(\alpha)\beta^\alpha)\), provided \(\nu>-\alpha\).
Exercise 3.18
\(pY\) with \(Y\sim\mathrm{NB}(r,p)\) tends to \(\mathrm{gamma}(r,1)\) as \(p\to 0\).
\(M_{pY}(t)=M_Y(pt)=\bigl(p/(1-(1-p)e^{pt})\bigr)^r\to(1/(1-(1+t-1)))^r\), more carefully: \(1-(1-p)e^{pt}=1-(1-p)(1+pt+O(p^2))=p(1-t)+O(p^2)\), so \(p/[\cdots]\to 1/(1-t)\). Hence \(M\to(1-t)^{-r}\), the mgf of \(\mathrm{gamma}(r,1)\).
Exercise 3.19
Incomplete gamma and the Poisson cdf.
Let \(\alpha\) be a positive integer. Integrate by parts with \(u=z^{\alpha-1}/\Gamma(\alpha)\), \(dv=e^{-z}dz\): \[ \int_x^\infty\frac{z^{\alpha-1}e^{-z}}{\Gamma(\alpha)}\,dz=\frac{x^{\alpha-1}e^{-x}}{\Gamma(\alpha)}+\int_x^\infty\frac{z^{\alpha-2}e^{-z}}{\Gamma(\alpha-1)}\,dz. \] Iterating yields \(\sum_{y=0}^{\alpha-1}e^{-x}x^y/y!\). In probability terms: the left-hand side is the survival function of \(\mathrm{gamma}(\alpha,1)\); the right-hand side is \(P(Y\le\alpha-1)\) for \(Y\sim\mathrm{Poisson}(x)\). This is (3.3.9) at \(\beta=1\).
Exercise 3.20
Folded normal \(f(x)=\sqrt{2/\pi}\,e^{-x^2/2}\), \(x>0\).
(a) \(EX=\sqrt{2/\pi}\), \(EX^2=1\), \(\mathrm{Var}\,X=1-2/\pi\) (as in 2.11(b)).
(b) \(Y=X^2/2\): \(g^{-1}(y)=\sqrt{2y}\), \(|J|=(2y)^{-1/2}\), \(f_Y(y)=\sqrt{2/\pi}\,e^{-y}\cdot(2y)^{-1/2}=y^{1/2-1}e^{-y}/\Gamma(1/2)\), i.e. \(\mathrm{gamma}(1/2,1)\).
Exercise 3.21
Is the Cauchy mgf integral finite?
\(M(t)=\int_{-\infty}^\infty e^{tx}/(\pi(1+x^2))\,dx\). For \(t\neq 0\) the exponential growth is not dominated by the polynomial denominator, so the integral diverges. This agrees with “no moments \(\Rightarrow\) no mgf.” One should not expect the integral to be finite.
Exercise 3.22
Verify the moments of the Poisson, NB, gamma, beta, and double exponential.
(a) \(E[X(X-1)]=\lambda^2\), \(\mathrm{Var}=\lambda\).
(b) \(E[Y(Y-1)]=(r+1)r(1-p)^2/p^2\) (using \(y(y-1)\binom{r+y-1}{y}=r(r+1)\binom{r+y-1}{y-2}\)), \(\mathrm{Var}=r(1-p)/p^2\).
(c) \(EX^2=\alpha(\alpha+1)\beta^2\), \(\mathrm{Var}=\alpha\beta^2\).
(d) See (3.3.18).
(e) Symmetry gives \(EX=\mu\); \(\mathrm{Var}\,|Z|=2\) for a standard double exponential with \(\sigma=1\), hence \(\mathrm{Var}\,X=2\sigma^2\).
Exercise 3.23
Pareto: \(f(x)=\beta\alpha^\beta/x^{\beta+1}\), \(x>\alpha\).
(a) \(\int_\alpha^\infty \beta\alpha^\beta x^{-\beta-1}\,dx=1\).
(b) \(EX=\alpha\beta/(\beta-1)\) (for \(\beta>1\)); \(EX^2=\alpha^2\beta/(\beta-2)\) (for \(\beta>2\)); \(\mathrm{Var}\,X=\alpha^2\beta/((\beta-1)^2(\beta-2))\).
(c) If \(\beta\le 2\) then \(EX^2=\infty\).
Exercise 3.24
Weibull, Rayleigh, inverted gamma, Maxwell, Gumbel.
(a) \(Y=X^{1/\gamma}\) with \(X\sim\mathrm{exp}(\beta)\): \(f_Y(y)=(\gamma/\beta)y^{\gamma-1}e^{-y^\gamma/\beta}\). \(EY=\beta^{1/\gamma}\Gamma(1+1/\gamma)\), \(\mathrm{Var}\,Y=\beta^{2/\gamma}\bigl(\Gamma(1+2/\gamma)-\Gamma(1+1/\gamma)^2\bigr)\).
(b) \(Y=\sqrt{2X/\beta}\): \(f_Y(y)=y e^{-y^2/2}\) (standard Rayleigh; \(\beta\) cancels). \(EY=\sqrt{\pi/2}\), \(\mathrm{Var}\,Y=2-\pi/2\).
(c) \(Y=1/X\) with \(X\sim\mathrm{gamma}(a,b)\): \(f_Y(y)=\frac{1}{\Gamma(a)b^a}y^{-a-1}e^{-1/(by)}\). \(EY=1/((a-1)b)\) (\(a>1\)), \(\mathrm{Var}\,Y=1/((a-1)^2(a-2)b^2)\) (\(a>2\)).
(d) \(X\sim\mathrm{gamma}(3/2,\beta)\), \(Y=\sqrt{X/\beta}\). Jacobian \(X=\beta y^2\), \(dx=2\beta y\,dy\). With \(\Gamma(3/2)=\sqrt{\pi}/2\), \[ f_Y(y)=\frac{4}{\sqrt{\pi}}\,y^2 e^{-y^2},\qquad y>0. \] Then \(EY=2/\sqrt{\pi}\), \(EY^2=3/2\), \(\mathrm{Var}\,Y=3/2-4/\pi\). (The \(\chi_3\) formulas \(\sqrt{2/\pi}\,y^2 e^{-y^2/2}\) and \(EY=2\sqrt{2/\pi}\) are \(Y=\sqrt X\) when \(\beta=2\), not the book’s map.)
(e) \(Y=\alpha-\gamma\log X\) with \(X\sim\mathrm{exp}(1)\): \(f_Y(y)=\frac1\gamma\exp\bigl(-(y-\alpha)/\gamma-e^{-(y-\alpha)/\gamma}\bigr)\). \(EY=\alpha+\gamma\gamma_{\mathrm{E}}\) (Euler–Mascheroni), \(\mathrm{Var}\,Y=\gamma^2\pi^2/6\).
Exercise 3.25
Hazard rate \(h_T(t)=f/(1-F)=-\frac{d}{dt}\log(1-F)\).
\[ P(t\le T<t+\delta\mid T\ge t)=\frac{F(t+\delta)-F(t)}{1-F(t)}. \] Divide by \(\delta\) and let \(\delta\to 0\) to obtain \(f(t)/(1-F(t))\). Also \(\frac{d}{dt}\log(1-F)=-f/(1-F)\).
Exercise 3.26
Hazard rates of the exponential, Weibull, and logistic.
(a) \(1-F=e^{-t/\beta}\), \(f=(1/\beta)e^{-t/\beta}\), \(h=1/\beta\).
(b) \(1-F=e^{-t^\gamma/\beta}\), \(f=(\gamma/\beta)t^{\gamma-1}e^{-t^\gamma/\beta}\), \(h=(\gamma/\beta)t^{\gamma-1}\).
(c) \(F=(1+e^{-(t-\mu)/\beta})^{-1}\), \(1-F=e^{-(t-\mu)/\beta}F\), \(f=F(1-F)/\beta\), hence \(h=F/\beta\).
Exercise 3.27
Are the uniform, gamma, normal, and beta families unimodal?
(a) Uniform: the density is constant on the support, so every point is a mode in the sense of Exercise 2.27. Unimodal (not uniquely).
(b) Gamma: if \(\alpha\le 1\) the density is decreasing at \(0\) (mode \(0\), or no interior mode); if \(\alpha>1\) there is a unique mode at \((\alpha-1)\beta\). The whole family is unimodal.
(c) Normal: unique mode \(\mu\). The whole family is unimodal.
(d) Unimodal if \(\alpha,\beta>1\); U-shaped if both are \(<1\) (modes at the endpoints; the “decreases away from \(a\) on both sides” condition of 2.27 fails, so not unimodal); monotone if one parameter equals \(1\). Hence the family as a whole is not unimodal.
Exercise 3.28
Verify that five families are exponential families.
(a) \(\sigma\) known: \(h=1\), \(c=(2\pi\sigma^2)^{-1/2}e^{-\mu^2/(2\sigma^2)}\), \(w=\mu/\sigma^2\), \(t=x\) (absorb \(-x^2/(2\sigma^2)\) into \(h\)). \(\mu\) known: similarly, or \(t=-x^2/2\), \(w=1/\sigma^2\).
(b) Both parameters unknown: \(h=I_{(0,\infty)}(x)\), \(t_1=\log x\), \(t_2=x\), \(w_1=\alpha-1\), \(w_2=-1/\beta\), \(c=1/(\Gamma(\alpha)\beta^\alpha)\). For a one-parameter submodel fold the other parameter into \(h\) or \(c\).
(c) \(h=I_{(0,1)}\), \(t_1=\log x\), \(t_2=\log(1-x)\), \(w_1=\alpha-1\), \(w_2=\beta-1\), \(c=1/B(\alpha,\beta)\).
(d) \(h=1/x!\), \(c=e^{-\lambda}\), \(w=\log\lambda\), \(t=x\).
(e) \(r\) known: \(h=\binom{r+x-1}{x}\), \(c=p^r\), \(w=\log(1-p)\), \(t=x\), \(0<p<1\).
Exercise 3.29
Natural parameter spaces of the families in 3.28.
(a) \(\sigma\) known: \(\eta=\mu/\sigma^2\in\mathbb{R}\). \(\mu\) known: \(\eta=1/\sigma^2>0\).
(b) \((\eta_1,\eta_2)=(\alpha-1,-1/\beta)\): \(\eta_1>-1\), \(\eta_2<0\) (to make the \(\Gamma\) integral converge).
(c) \(\eta_1=\alpha-1>-1\), \(\eta_2=\beta-1>-1\).
(d) \(\eta=\log\lambda\in\mathbb{R}\).
(e) \(\eta=\log(1-p)<0\).
Exercise 3.30
Use Theorem 3.4.2 to compute the binomial variance and beta moments.
(a) Continue Example 3.4.3: \(w'=1/(p(1-p))\), \(w''=(2p-1)/(p^2(1-p)^2)\), \((\log c)''=-n/(1-p)^2\). Theorem 3.4.2 gives \[ \mathrm{Var}\bigl(w'X\bigr)=\frac{n}{p(1-p)}, \] hence \(\mathrm{Var}\,X=np(1-p)\). (The identity \(\mathrm{Var}(X/(p(1-p)))=n/(p(1-p)^2)\) is off by a factor of \(p\).)
(b) \(c=1/B(a,b)\), the derivative of \(w_1=a-1\) in \(a\) is \(1\), and \(t_1=\log X\). Applying (3.4.4) directly in \(a\) does not immediately yield \(EX\). Use the natural parameterization, or recognize the kernel: (3.3.18) already gives \(EX=a/(a+b)\). Insisting on 3.4.2: for the parameter \(a\), \(w_1=a-1\), \(c=B(a,b)^{-1}\), \(E\log X=\psi(a)-\psi(a+b)\) (digamma), and a second identity gives the variance. To obtain the mean with \(t=x\) one must write the beta density in a form containing \(x^{a}\) and differentiate a representation other than the default one—the natural form of Exercise 3.32 is cleaner. Directly: \(h(x)=I_{(0,1)}(x)\), \(c(a,b)=B(a,b)^{-1}\), \(\sum w_i t_i=(a-1)\log x+(b-1)\log(1-x)\). Differentiating in \(a\), (3.4.4) gives \(E\log X=-\partial_a\log c=\partial_a\log B=\psi(a)-\psi(a+b)\). For \(EX\), rewriting the density as \(c^*(a) x^{a} \cdot x^{-1}(1-x)^{b-1}\) and using \(t=\log x\) still does not produce \(EX\). Instead: \(EX=B(a+1,b)/B(a,b)=a/(a+b)\).
Exercise 3.31
Prove Theorem 3.4.2.
(a) \(\int h c\exp(\sum w_i t_i)\,dx=1\). Differentiate in \(\theta_j\) (regularity inside an exponential family, §2.4): \[ \int h\Bigl(\partial_j c+c\sum_i(\partial_j w_i)t_i\Bigr)\exp(\cdots)\,dx=0. \] Divide by \(c\): \(\partial_j\log c+E\sum(\partial_j w_i)t_i=0\).
(b) Differentiate again: use \((\log g)''=g''/g-(g'/g)^2\) and rearrange to obtain (3.4.5).
Exercise 3.32
Simplification in the natural parameterization; gamma moments.
(a) \(w_i(\eta)=\eta_i\), \(\partial_{\eta_j}w_i=\delta_{ij}\), and second derivatives vanish. Hence \(Et_j=-\partial_{\eta_j}\log c^*\) and \(\mathrm{Var}\,t_j=-\partial_{\eta_j}^2\log c^*\).
(b) For \(\mathrm{gamma}(a,b)\): \(c^*=|\eta_2|^a/\Gamma(a)\), \(\eta_2=-1/b\), \(\eta_1=a-1\), \(t_2=x\). Holding \(a\) fixed, \(-\partial_{\eta_2}\log c^*=a/|\eta_2|=ab=EX\). Second derivative: \(a/\eta_2^2=ab^2=\mathrm{Var}\,X\).
Exercise 3.33
Parameter curves of curved exponential families.
(a) \(n(\theta,\theta)\): \(\sigma^2=\mu=\theta>0\). In the full-family \((\mu,\sigma^2)\) plane this is the ray \(\sigma^2=\mu\), \(\mu>0\).
(b) \(n(\theta,a\theta^2)\): a parabola (if \(a>0\), view \((\mu,\sigma^2)=(\theta,a\theta^2)\)).
(c) \(\mathrm{gamma}(\alpha,1/\alpha)\): \(EX=1\), the curve \(\alpha\beta=1\).
(d) \(f\propto\exp(-(x-\theta)^4)\): expand \(x^4-4\theta x^3+6\theta^2 x^2-4\theta^3 x+\theta^4\); the four \(t_i\) correspond to polynomials in \(\theta\), so the parameter runs along a curve.
All are exponential families (the support does not depend on \(\theta\)). Sketch: draw the indicated curves in the corresponding \((\mu,\sigma^2)\) or \((\alpha,\beta)\) plane.
Exercise 3.34
Curved normals arising from CLT approximations.
(a) \((\mu,\sigma^2)=(\lambda,\lambda/n)\): a ray through the origin of slope \(1/n\), \(\lambda>0\).
(b) \((p,p(1-p)/n)\): a downward-opening parabola for \(p\in(0,1)\).
(c) \(\bigl(r(1-p)/p,\,r(1-p)/(np^2)\bigr)\). Set \(\mu=r(1-p)/p\); then \(\sigma^2=\mu/n+\mu^2/(nr)\), a parabola.
Exercise 3.35
Curved spaces after reparameterization.
(a) \(n(e^\theta,e^\theta)\): the same ray \(\sigma^2=\mu>0\) as in 3.34(a); \(\theta\in\mathbb{R}\) simply covers the whole positive half-axis.
(b) \(EX=\alpha\beta=\mu\) held fixed: a hyperbola \(\beta=\mu/\alpha\) in the \((\alpha,\beta)\) plane.
(c) \(n\) gammas, each with \(\alpha_i\beta_i=\mu\): the parameter space is a product of \(n\) hyperbolas in \(\mathbb{R}_+^{2n}\), of dimension \(n\).
Exercise 3.36
\(f(x)=\frac{63}{4}(x^6-x^8)\), \(-1<x<1\). Sketch three location–scale members.
The standard density vanishes at \(\pm 1\), is symmetric about \(0\), and has peaks near \(|x|=\sqrt{6/8}=\sqrt{3}/2\). (a) the standard member; (b) translated to be centered at \(3\), same shape; (c) then stretched horizontally by a factor of two and halved in height. Draw the three curves on a common horizontal axis for comparison.
Exercise 3.37
If \(f\) is symmetric about \(0\), the median of the location–scale family is \(\mu\).
\(P(X\le\mu)=P(Z\le 0)=1/2\) (\(Z\) has density \(f\), symmetric about \(0\)). Likewise \(P(X\ge\mu)=1/2\).
Exercise 3.38
Quantiles under a location–scale transformation.
\(P(X>x_\alpha)=P(\sigma Z+\mu>\sigma z_\alpha+\mu)=P(Z>z_\alpha)=\alpha\).
Exercise 3.39
Cauchy location–scale: median and quartiles.
Standard Cauchy: \(F(z)=\frac12+\frac1\pi\arctan z\). \(F(0)=1/2\); \(F(1)=3/4\), \(F(-1)=1/4\). By 3.38, \(\mu\) is the median and \(\mu\pm\sigma\) are the quartiles.
Exercise 3.40
Standardize an arbitrary \(f\) with finite mean and variance to a location–scale standard density with mean \(0\) and variance \(1\).
Let \(f\) be the density of \(W\), with \(EW=\mu_0\) and \(\mathrm{Var}\,W=\sigma_0^2\). Set \(f^*(z)=\sigma_0 f(\sigma_0 z+\mu_0)\). Then \(Z=(W-\mu_0)/\sigma_0\) has density \(f^*\), \(EZ=0\), and \(\mathrm{Var}\,Z=1\). In the location–scale family generated by \(f^*\), the parameters \((\mu,\sigma)\) are the mean and the standard deviation.
Exercise 3.41
The normal is stochastically increasing in \(\mu\); the gamma is stochastically increasing in \(\beta\).
(a) If \(\mu_1>\mu_2\): \(F(x\mid\mu_1)=P(\sigma Z+\mu_1\le x)=P(Z\le(x-\mu_1)/\sigma)<P(Z\le(x-\mu_2)/\sigma)=F(x\mid\mu_2)\). Hence \(F(\,\cdot\mid\mu_1)\) is stochastically larger than \(F(\,\cdot\mid\mu_2)\).
(b) \(\beta\) is a scale. Write \(X=\beta W\) with \(W\sim\mathrm{gamma}(\alpha,1)\). If \(\beta_1>\beta_2\) then \(P(\beta_1 W\le x)=P(W\le x/\beta_1)<P(W\le x/\beta_2)\).
Exercise 3.42
Location families, and scale families with positive support, are stochastically increasing.
(a) \(F(x\mid\mu)=F_Z(x-\mu)\) is decreasing in \(\mu\), hence stochastically increasing.
(b) Support \([0,\infty)\): \(F(x\mid\sigma)=F_Z(x/\sigma)\) is decreasing in \(\sigma\) for \(x>0\).
Exercise 3.43
Stochastic increase reverses under reciprocals and under \(\theta\mapsto 1/\theta\).
(a) \(P(1/X\le y\mid\theta)=P(X\ge 1/y\mid\theta)=1-F_X(1/y-\mid\theta)\). Increasing \(\theta\) makes \(X\) stochastically larger, hence \(1-F_X\) larger, so \(1/X\) is stochastically smaller.
(b) Set \(\eta=1/\theta\). Increasing \(\theta\) decreases \(\eta\); \(F(x\mid 1/\eta)\) being stochastically increasing in \(\theta\) means it is stochastically decreasing in \(\eta\).
Exercise 3.44
Markov / second-moment bounds; compare for the exponential at \(b=\sqrt{2},3\).
Chebyshev with \(g=|x|\) and \(r=b\): \(P(|X|\ge b)\le E|X|/b\). With \(g=x^2\): \(P(|X|\ge b)\le EX^2/b^2\).
Exponential\((1)\): \(E|X|=1\), \(EX^2=2\). At \(b=3\): \(1/3\approx.333\), \(2/9\approx.222\) (second-moment bound better). At \(b=\sqrt{2}\): \(1/\sqrt{2}\approx.707\), \(2/2=1\) (first-moment bound better). True values: \(e^{-3}\approx.050\), \(e^{-\sqrt{2}}\approx.243\).
Exercise 3.45
Chernoff bound.
(a) For \(t>0\): \(P(X\ge a)=P(e^{tX}\ge e^{ta})\le e^{-ta}M_X(t)\) (Markov).
(b) For \(t<0\): multiplying by \(t\) reverses the inequality, so \(P(X\le a)=P(e^{tX}\ge e^{ta})\le e^{-ta}M(t)\).
(c) Need \(h(t,x)\ge 1\) on \(\{x\ge 0\}\), and \(h\ge 0\). Then \(P(X\ge 0)\le Eh(t,X)\).
Exercise 3.46
Chebyshev comparisons for the uniform and the exponential.
Uniform\((0,1)\): \(\mu=1/2\), \(\sigma=1/\sqrt{12}\). \(P(|X-\mu|\ge k\sigma)\) equals \(0\) when \(k\sigma>1/2\), i.e. \(k>\sqrt{3}\); otherwise it equals \(1-k/\sqrt{3}\). Chebyshev gives \(1/k^2\).
Exponential\((\lambda)\) (mean \(\lambda\), \(\sigma=\lambda\)): \(P(|X-\lambda|\ge k\lambda)=P(X\ge\lambda(1+k))\) (and if \(k<1\) add the left tail \(P(X\le\lambda(1-k))\))\(=e^{-(1+k)}+I_{k<1}(1-e^{-(1-k)})\). At \(k=2\): true value \(e^{-3}\approx.050\), Chebyshev \(.25\).
Exercise 3.47
A lower bound for the standard normal tail.
For \(x>t>0\) write \(e^{-x^2/2}=\frac{x}{x}e^{-x^2/2}\), or \[ \frac{d}{dx}\Bigl(\frac{e^{-x^2/2}}{x}\Bigr)=-e^{-x^2/2}\Bigl(1+\frac{1}{x^2}\Bigr). \] Integrate from \(t\) to \(\infty\): \[ \frac{e^{-t^2/2}}{t}=\int_t^\infty e^{-x^2/2}\bigl(1+1/x^2\bigr)\,dx\le\bigl(1+1/t^2\bigr)\int_t^\infty e^{-x^2/2}\,dx. \] Hence \(P(Z\ge t)\ge \frac{e^{-t^2/2}}{\sqrt{2\pi}}\frac{t}{1+t^2}\), and doubling for both tails gives \[ P(|Z|\ge t)\ge\sqrt{\frac{2}{\pi}}\frac{t}{1+t^2}e^{-t^2/2}. \]
Exercise 3.48
Recurrences for the binomial, negative binomial, and hypergeometric.
Binomial: \(P(X=x+1)/P(X=x)=\frac{n-x}{x+1}\frac{p}{1-p}\).
Negative binomial (3.2.10): \(P(Y=y+1)/P(Y=y)=\frac{r+y}{y+1}(1-p)\).
Hypergeometric: \(P(X=x+1)/P(X=x)=\frac{(M-x)(K-x)}{(x+1)(N-M-K+x+1)}\).
Exercise 3.49
Stein-type identities for the gamma and the beta.
(a) \(E[g(X)(X-\alpha\beta)]=\int g(x)(x-\alpha\beta)\frac{x^{\alpha-1}e^{-x/\beta}}{\Gamma(\alpha)\beta^\alpha}\,dx\). Write \((x-\alpha\beta)x^{\alpha-1}e^{-x/\beta}=\beta\frac{d}{dx}(x^\alpha e^{-x/\beta})+\) a boundary rearrangement, or \(x\cdot x^{\alpha-1}=\beta\frac{d}{dx}(x^\alpha e^{-x/\beta})e^{x/\beta}+\cdots\). Integrate by parts with \(u=g\), \(dv=(x-\alpha\beta)f\,dx\); the boundary terms vanish (under a condition such as \(E|Xg'|<\infty\)), leaving \(\beta E[X g'(X)]\).
(b) The same argument for the beta density: integrate \(g\) by parts against the derivative of \((1-x)f\) and rearrange to the left-hand side.
Exercise 3.50
Prove Hwang’s negative binomial identity.
\[ E[(1-p)g(X)]=\sum_{x=0}^\infty(1-p)g(x)\binom{r+x-1}{x}p^r(1-p)^x. \] \(\binom{r+x-1}{x}(1-p)^{x+1}=\frac{x+1}{r+x}\binom{r+(x+1)-1}{x+1}(1-p)^{x+1}\cdot\frac{r+x}{x+1}\). Change variables \(y=x+1\): \[ \sum_{y=1}^\infty g(y-1)\frac{y}{r+y-1}\binom{r+y-1}{y}p^r(1-p)^y =E\Bigl[\frac{X}{r+X-1}g(X-1)\Bigr]. \]