Chapter 10 Exercises

Casella & Berger, Statistical Inference (2nd ed.) §10.5

Stems locked to the textbook numbering; solutions obtained independently.

How to use these solutions

  • Textbook: George Casella & Roger L. Berger, Statistical Inference, Second Edition.
  • Scope: Chapter 10 §10.5 Exercises 10.1–10.48.
  • Pages: Exercises on printed pages 407–416, PDF pages 438–447 (about PDF page = printed page + 31).
  • Notes: ch10-notes.qmd. Miscellanea §10.6 is used for 10.8, 10.12, and 10.27.

Exercise 10.1

NoteStem (abridged)

\(f(x\mid\theta)=(1+\theta x)/2\), \(|x|<1\), \(|\theta|<1\). Find a consistent estimator.

TipSolution

\(EX=\theta/3\), \(\mathrm{Var}X=1/3-(\theta/3)^2<\infty\). Hence \(3\bar X_n\to_p\theta\) (WLLN + Theorem 10.1.5). If \(|3\bar X_n|>1\) one may project onto \([-1,1]\) and still have consistency.

Exercise 10.2

NoteStem (abridged)

Prove Theorem 10.1.5.

TipSolution

\(a_n W_n+b_n-\theta=a_n(W_n-\theta)+(a_n-1)\theta+b_n\). \(W_n\to_p\theta\), \(a_n\to 1\), \(b_n\to 0\), so Slutsky gives the right-hand side \(\to_p 0\). This holds for each \(\theta\).

Exercise 10.3

NoteStem (abridged)

MLE of \(n(\theta,\theta)\) and its approximate variance.

TipSolution

(a) \(\ell=- (n/2)\log\theta-\sum(x_i-\theta)^2/(2\theta)\). Setting the derivative to \(0\) gives \[ \theta^2+\theta-W=0,\qquad W=n^{-1}\sum X_i^2. \] Positive root \(\hat\theta=(-1+\sqrt{1+4W})/2\) (\(\theta>0\)).

(b) \(I_1(\theta)=E(-\partial_\theta^2\log f)\). \(\log f=- \tfrac12\log(2\pi\theta)-(x-\theta)^2/(2\theta)\), and the calculation yields \(I_1(\theta)=(2\theta+1)/(2\theta^2)\). Hence \(\mathrm{Var}(\hat\theta)\approx 2\theta^2/[n(2\theta+1)]\).

Exercise 10.4

NoteStem (abridged)

\(Y_i=\beta X_i+\varepsilon_i\), \(X_i\sim n(\mu,\tau^2)\). Approximate moments of three slope estimators.

TipSolution

\(EY_i=\beta\mu\), \(\mathrm{Var}Y_i=\beta^2\tau^2+\sigma^2\), \(\mathrm{Cov}(X,Y)=\beta\tau^2\).

(a) \(\sum XY/\sum X^2\) has exact conditional mean \(\beta\) and \[ \operatorname{Var}=\sigma^2\,E\bigl(1/\textstyle\sum X_i^2\bigr)\approx\sigma^2\bigl(n(\mu^2+\tau^2)\bigr)^{-1}. \] (The \(1/n\) is required.)

(b) \(\bar Y/\bar X\): mean \(\approx\beta\), variance \(\approx\sigma^2/(n\mu^2)\).

(c) \(Y_i/X_i=\beta+\varepsilon_i/X_i\). For \(X_i\sim n(\mu,\tau^2)\), \(E|1/X|\) and \(E(1/X^2)\) are infinite, so \(Y/X\) has no mean or variance. A delta-method (principal-value) calculation gives variance \(\sigma^2/(n\mu^2)\), valid only after cutting out a neighborhood of \(X=0\) as in 10.5.

Exercise 10.5

NoteStem (abridged)

Variance of \(T_n=\sqrt n/\bar X_n\): infinite on the whole space; finite after deleting \((-\delta,\delta)\).

TipSolution

(a) \(\bar X\sim n(\mu,1/n)\), \(1/\bar X^2\) is not integrable at \(0\), \(\mathrm{Var}(T_n)=\infty\).

(b) On \(\{|\bar X|\ge\delta\}\), \(|T_n|\le\sqrt n/\delta\), finite.

(c) \(P(|\bar X|<\delta)=P\bigl(|Z+\sqrt n\mu|<\delta\sqrt n\bigr)\to 0\) (\(\mu\neq 0\)).

Exercise 10.6

NoteStem (abridged)

Mean, variance, and weak convergence in Example 10.1.10.

TipSolution

(a) \(E(Y\mid W)=0\), \(\mathrm{Var}(Y\mid W)=W+(1-W)\sigma_n^2\), \(EY=0\), \(\mathrm{Var}Y=p_n+(1-p_n)\sigma_n^2\).

(b) \(P(Y<a)=p_n\Phi(a)+(1-p_n)\Phi(a/\sigma_n)\). If \(p_n\to 1\) and \(\sigma_n\to\infty\), the second term \(\to 0\), so \(\to\Phi(a)\).

Exercise 10.7

NoteStem (abridged)

\(\tau\) continuous \(\Rightarrow\tau(\hat\theta)\) is consistent and asymptotically efficient.

TipSolution

\(\hat\theta\to_p\theta\), \(\tau\) continuous \(\Rightarrow\tau(\hat\theta)\to_p\tau(\theta)\). If \(\tau\) is differentiable, Delta: \[ \sqrt n(\tau(\hat\theta)-\tau(\theta))\to n\bigl(0,[\tau']^2/I(\theta)\bigr), \] which is the CRLB for \(\tau\).

Exercise 10.8

NoteStem (abridged)

Complete (10.1.6): score CLT and second-derivative LLN.

TipSolution

(a) \(n^{-1/2}l'(\theta_0)=n^{-1/2}\sum W_i\), \(W_i=\partial_\theta\log f(X_i\mid\theta_0)\), \(EW_i=0\), \(\mathrm{Var}=I(\theta_0)\). CLT \(\Rightarrow n(0,I)\). Note that (10.1.6) writes \(-n^{-1/2}l'\), the sign being absorbed into the limiting normal.

(b) \(-n^{-1}l''=n^{-1}\sum W_i^2-n^{-1}\sum \partial_\theta^2 f/f\). The first term has mean \(I\), the second mean \(0\) (regularity allowing differentiation under the integral). WLLN gives \(\to_p I\).

Exercise 10.9

NoteStem (abridged)

Poisson: UMVUE vs MLE of \(e^{-\lambda}\) and \(\lambda e^{-\lambda}\), ARE; mutation data.

TipSolution

\(S=\sum X_i\sim\mathrm{Poisson}(n\lambda)\) is complete sufficient.

(a) \(P(X_1=0\mid S=s)=(1-1/n)^s\), so UMVUE \(=(1-1/n)^S\). MLE \(=e^{-\bar X}\).

(b) \(P(X_1=1\mid S=s)=s(1/n)(1-1/n)^{s-1}\), UMVUE \(=\bar X(1-1/n)^{S-1}\). MLE \(=\bar X e^{-\bar X}\).

(c) UMVUE and MLE differ by \(O_p(n^{-1})\), ARE \(=1\). For small \(\lambda\) or small \(n\) the unbiased UMVUE is better; at large samples there is no difference. Prefer the MLE because its range automatically lies in \((0,1)\) and it is smoother in (b).

(d) Data: \(n=15\), \(\sum=104\), \(\bar x=6.933\). \[ \widehat{e^{-\lambda}}_{\mathrm{U}}=(14/15)^{104}\approx 0.00080,\quad e^{-\bar x}\approx 0.00097. \] \[ \widehat{\lambda e^{-\lambda}}_{\mathrm{U}}=\bar x(14/15)^{103}\approx 0.0060,\quad \bar x e^{-\bar x}\approx 0.0067. \]

Exercise 10.10

NoteStem (abridged)

\(\hat p(1-\hat p)\): efficient if \(p\neq 1/2\); second-order limit if \(p=1/2\); exact variance.

TipSolution

(a) \(h'(p)=1-2p\neq 0\), Theorem 10.1.12 + Delta.

(b) \(h'(1/2)=0\), \(h''=-2\), \(\sigma^2=1/4\). Theorem 5.5.26: \[ n\bigl(\hat p(1-\hat p)-1/4\bigr)\;\to\;\frac{\sigma^2 h''}{2}\,Z^2=-\frac14 Z^2=-\frac14\chi^2_1. \] Equivalently \(n\bigl(1/4-\hat p(1-\hat p)\bigr)\to\chi^2_1/4\). (Not \(-Z^2/2\).)

(c) \(\hat p=n^{-1}\mathrm{Bin}(n,p)\), \(\mathrm{Var}(\hat p(1-\hat p))=\mathrm{Var}(\hat p-\hat p^2)\) expands in fourth moments of \(p\). At \(p=1/2\) the leading term is \(O(n^{-2})\), not \(O(n^{-1})\), so the first-order \(I^{-1}(h')^2=0\) drops the true variance.

Exercise 10.11

NoteStem (abridged)

Details of the gamma-mean ARE.

TipSolution

(a) \(\beta\) known, \(I(\mu)=(\partial_\mu\log f)^2\) has expectation involving \(\psi'(\mu/\beta)/\beta^2\) (trigamma). \(\mathrm{ARE}(\bar X,\hat\mu)=I(\mu)\cdot(\beta\mu)\). Plotting \(\mu\in(0,10)\) for \(\beta=1,3,5,10\) is Figure 10.1.1.

(b) In the \((\mu,\beta)\) parameterization the parameters are not orthogonal. Unrestricted MLE \(\hat\mu=\bar X\); asymptotic variance is \(\beta\mu/n\) when \(\beta\) is unknown and \(1/(n I_{\mu\mu})<\beta\mu/n\) when \(\beta\) is known. The ARE comparison is not the same as (a).

(c) Known \(\mu=\alpha\beta\) is a curved exponential family (natural statistics \((\sum\log X,\sum X)\), one parameter). MOM uses only the second moment, \(\hat\beta=(\overline{X^2}-\mu^2)/\mu\). The MLE solves a digamma/score equation and is not that estimator. (If the stem had said known shape \(\alpha\), both would be \(\bar X/\alpha\).)

(d) When \(\mu\) is unknown, MOM \(\hat\beta=s^2/\bar x\), MLE solves a digamma equation. Plot ARE against \(\mu\), similar to Figure 10.1.1.

Exercise 10.12

NoteStem (abridged)

Hodges’s superefficient estimator \(d_n\).

TipSolution

\(d_n=\bar X\) when \(|\bar X|\ge n^{-1/4}\); that event has probability \(\to 1\) (\(\theta\neq 0\)) or \(\to 0\) (\(\theta=0\), since \(\sqrt n\bar X=O_p(1)\) and \(n^{1/4}\bar X\to_p 0\)). \(\theta\neq 0\): \(\sqrt n(d_n-\theta)=\sqrt n(\bar X-\theta)+o_p(1)\to n(0,1)\). \(\theta=0\): \(d_n=a\bar X\) a.s. asymptotically, \(\sqrt n d_n\to n(0,a^2)\).

Exercise 10.13

NoteStem (abridged)

Bootstrap mean / variance in Example 10.1.19.

TipSolution

(a)(b) Empirical mean \(6.75\). Ideal bootstrap \[ \operatorname{Var}^*(\bar X^*)=n^{-2}\sum(x_i-\bar x)^2=15.6875/4=3.921875. \] The complete-enumeration version with divisor \(4^4-1=255\) is \(3.921875\cdot 256/255=3.937\approx 3.94\). Bessel \(s^2/n=5.229\) is not \(3.94\).

(c) The ideal \(\mathrm{Var}^*\) is \(n^{-2}\sum(x_i-\bar x)^2\), not \(s^2/n\).

(d) \(35\) multisets, multinomial weights \(4!/(k_1!\cdots)\), weighted to the same mean and variance.

(e) In general: \(\mathrm{E}^*(\bar X^*)=\bar X\), \(\mathrm{Var}^*(\bar X^*)=n^{-2}\sum(X_i-\bar X)^2\).

Exercise 10.14

NoteStem (abridged)

Parametric vs nonparametric bootstrap.

TipSolution

(a) Resample from the data and compute the sample variance of \(S^{2*}\). No normality is used.

(b) Example 5.6.6 drawing from \(\mathrm{Poisson}(\bar x)\) is parametric; the nonparametric version draws from the empirical distribution, so the histogram is more discrete and more conservative at small \(n\).

(c) Data \(0.28,\ldots,7.42\). MLE \((\hat\alpha,\hat\beta)\) from the digamma equation; \(\widehat{\mathrm{mean}}=\bar x=2.303\), \(\widehat{\mathrm{var}}=\hat\alpha\hat\beta^2\). Parametric bootstrap draws from \(\mathrm{gamma}(\hat\alpha,\hat\beta)\); nonparametric redraws from \(6\) points, so the variance estimate is very noisy.

Exercise 10.15

NoteStem (abridged)

\(\mathrm{Var}^*_B\to\mathrm{Var}^*\); average \(m\) independent \(B\)-bootstraps.

TipSolution

(a) Resamples are iid, so the sample variance \(\to\) the finite-population (\(n^n\) points) variance.

(b) The \(\mathrm{Var}^*_{B_i}\) are iid, so their mean \(\to E\mathrm{Var}^*_B=\mathrm{Var}^*\) (unbiased or asymptotically unbiased).

Exercise 10.16

NoteStem (abridged)

Second-order Delta near \(p=1/2\); \(n=24\), \(\hat p=11/24\).

TipSolution

Second-order variance \(2[\mathrm{Var}(\hat p)]^2=2[p(1-p)/n]^2\), equal to \(2(1/(4n))^2=1/(8n^2)\) at \(p=1/2\).

At \(\hat p=11/24\), \(n=24\), \[ \frac{\hat p(1-\hat p)(1-2\hat p)^2}{24}=0.0000718\approx 0.00007 \] is the first-order delta, and \[ 2\bigl[\hat p(1-\hat p)/24\bigr]^2=0.000214 \] is the second-order term. Exact binomial moments of \(h=X(24-X)/24^2\) give \(\mathrm{Var}\,h=0.000283\); first+second order \(\approx 0.000286\) already matches. The printed “exact \(0.00529\)” (and Table 10.1.1 “true” \(0.00531\) at \(p=1/2\)) is not \(\mathrm{Var}(\hat p(1-\hat p))\) (at \(p=1/2\) the true variance is \(0.000208\)).

(c) \(h'\) is near \(0\), so the Taylor remainder is large. The bootstrap uses the actual resampling distribution and does not rely on \(h'\).

Exercise 10.17

NoteStem (abridged)

LSAT–GPA correlation: bootstrap and Fisher \(z\).

TipSolution

Fifteen pairs (read the printed \(5.58\) as \(558\), and \(580.3.07\) as \((580,3.07)\)).

(a) \(r\approx 0.776\).

(b) Nonparametric \(B=1000\): SE\((r)\) about \(0.13\)–\(0.14\) (Efron’s classical result is about \(0.127\)). The histogram is left-skewed.

(c) Fit a bivariate normal with \((\bar x,\bar y,s_x,s_y,r)\), draw 15 pairs \(\times 1000\); the SE is usually a bit smaller.

(d) \(\widehat{\mathrm{se}}= (1-r^2)/\sqrt n\approx 0.399/3.873\approx 0.103\), too small.

(e) \(z=\tfrac12\log\frac{1+r}{1-r}\), se \(=1/\sqrt{n-3}\approx 0.289\); transforming back gives an approximate density for \(r\), more accurate than (d).

Exercise 10.18

NoteStem (abridged)

\(\mathrm{Var}(\bar X)\) in a contamination model; Cauchy makes the variance infinite.

TipSolution

\(Y\) indicates contamination. \(\mathrm{Var}(X_i)=E\mathrm{Var}(X\mid Y)+\mathrm{Var}(E(X\mid Y))=(1-\delta)\sigma^2+\delta\tau^2+\delta(1-\delta)(\theta-\mu)^2\). \(\mathrm{Var}(\bar X)\) is that over \(n\). Cauchy has no mean or variance, so the inner \(\mathrm{Var}(X\mid Y=1)=\infty\).

Exercise 10.19

NoteStem (abridged)

\(\mathrm{Var}(\bar X)\) under equicorrelation and AR(1).

TipSolution

(a) \(\mathrm{Var}(\sum X)=n\sigma^2+n(n-1)\rho\sigma^2\), so \(\mathrm{Var}(\bar X)=\sigma^2/n+(1-1/n)\rho\sigma^2\not\to 0\).

(b) \(\sum_{i\neq j}\rho^{|i-j|}=2\sum_{k=1}^{n-1}(n-k)\rho^k\), yielding the book’s formula; if \(\rho\in(-1,1)\) then \(\mathrm{Var}(\bar X)=O(1/n)\).

(c) Stationary AR(1): \(\mathrm{Var}X_1=1/(1-\rho^2)\), \(\mathrm{Cov}(X_1,X_i)=\rho^{i-1}\mathrm{Var}X_1\).

Exercise 10.20

NoteStem (abridged)

Breakdown of the mean / median / trimmed mean.

TipSolution

(a) One \(X_{(n)}\to\infty\) sends \(\bar X\to\infty\), \(b=0\). (b) More than half the points must run off to pull the median, \(b=1/2\). (c) After deleting \(\alpha n\) at each end, one can still withstand a further fraction \(\alpha\), \(b=\alpha\).

Exercise 10.21

NoteStem (abridged)

Breakdown of \(S^2\) is \(0\); MAD is \(50\%\).

TipSolution

(a) One point \(\to\infty\) sends \(S^2\to\infty\). (b) MAD is the median of \(\{|X_i-m|\}\); to send it to \(\infty\) one needs more than half of the \(|X_i-m|\to\infty\), i.e. \(b=1/2\).

Exercise 10.22

NoteStem (abridged)

Details of the median limit theorem.

TipSolution

(a) \(n\) odd, \(M_n\le\mu+a/\sqrt n\Leftrightarrow\) at least \((n+1)/2\) of the \(X_i\) do not exceed that threshold \(\Leftrightarrow\sum Y_i\ge(n+1)/2\).

(b) \(p_n=F(\mu+a/\sqrt n)\to 1/2\). \[ \frac{(n+1)/2-np_n}{\sqrt{np_n(1-p_n)}}=\frac{\tfrac12-p_n+O(n^{-1})}{\sqrt{p_n(1-p_n)/n}}\to -2a f(\mu), \] because \((p_n-1/2)/(a/\sqrt n)\to f(\mu)\).

(c) \(P(\sqrt n(M_n-\mu)\le a)\to P(Z\ge -2af(\mu))=P(Z\le 2af(\mu))\), the cdf of \(N(0,1/[2f]^2)\). \(p_n\) changes with \(n\), so a strict proof needs Lindeberg; the conclusion is unchanged.

Exercise 10.23

NoteStem (abridged)

ARE of the median to the mean: three distributions, \(t_\nu\), Tukey contamination.

TipSolution

(a) Asymptotic variances: mean \(\sigma^2\), median \(1/[2f(m)]^2\). Normal \(f(0)=1/\sqrt{2\pi}\), ARE \(=4f(0)^2\sigma^2=2/\pi\approx 0.637\). Logistic \(f=e^{-x}/(1+e^{-x})^2\), \(f(0)=1/4\), \(\sigma^2=\pi^2/3\), ARE \(=4\cdot(1/16)\cdot\pi^2/3=\pi^2/12\approx 0.822\). Double exponential \(f(0)=1/2\), \(\sigma^2=2\), ARE \(=4\cdot(1/4)\cdot 2=2\).

(b) A scale change multiplies \(f\) and \(\sigma\) together, so ARE is invariant.

(c) \(t_\nu\): \(f(0)=\Gamma(\frac{\nu+1}2)/(\sqrt{\nu\pi}\Gamma(\frac\nu2))\), \(\sigma^2=\nu/(\nu-2)\) (\(\nu>2\)). ARE at \(\nu=3,5,10,25,50,\infty\) is about \(1.62,\,0.96,\,0.76,\,0.68,\,0.65,\,0.64\). Small \(\nu\) (heavy tails) favors the median.

(d) Tukey: variance \((1-\delta)+\delta\sigma^2\), \(f(0)=(1-\delta)/\sqrt{2\pi}+\delta/(\sigma\sqrt{2\pi})\). Increasing \(\delta\) or \(\sigma\) increases ARE, so the median relatively improves.

Exercise 10.24

NoteStem (abridged)

(10.2.4)+(10.2.5)\(\Rightarrow\)(10.2.6).

TipSolution

Slutsky: numerator \(\to n(0,E\psi^2)\), denominator \(\to_p E\psi'\), ratio \(\to n(0,E\psi^2/(E\psi')^2)\).

Exercise 10.25

NoteStem (abridged)

Symmetric \(f\) and symmetric \(\rho\Rightarrow E\psi=0\), so the asymptotic center is correct.

TipSolution

\(\psi=\rho'\) is odd (\(\rho\) even), \(f\) is even, \(\psi f\) is odd, integral \(0\). Thus the mean term in (10.2.6) is \(0\).

Exercise 10.26

NoteStem (abridged)

Huber’s \(E\psi'\), \(E\psi^2\); replace \(E\psi'\) by \(d/d\theta E\psi\).

TipSolution

(a) \(\psi'=1\) on \(|x|<k\) and \(0\) otherwise, \(E\psi'=P(|X|\le k)\). \(E\psi^2=\int_{-k}^k x^2 f+k^2 P(|X|>k)\).

(b) Under dominated convergence \(\frac{d}{d\theta}E\psi(X-\theta)=-E\psi'\), the same limit as (10.2.5).

Exercise 10.27

NoteStem (abridged)

Influence function: mean and median.

TipSolution

(a) \(T(F)=\int x\,dF\), \(T(F_\delta)=(1-\delta)\mu+\delta x\), \((T(F_\delta)-T(F))/\delta=x-\mu\).

(b) The cdf of \(F_\delta=(1-\delta)F+\delta\Delta_x\) is as in the stem.

(c) \(a_\delta=F^{-1}(1/(2(1-\delta)))\), \(a_0=m\). Implicit function: \((1-\delta)^{-1}=2F(a_\delta)\), \(a_0'=1/(2f(m))\). IF \(=1/(2f(m))\) if \(x>m\); \(-1/(2f(m))\) if \(x<m\). Bounded, matching \(50\%\) breakdown.

Exercise 10.28

NoteStem (abridged)

Huber \(\rho\) and \(\rho'\) are continuous.

TipSolution

At \(|x|=k\): \(k^2/2=k\cdot k-k^2/2\). \(\rho'(x)=x\) (\(|x|<k\)), \(\mathrm{sign}(x)k\) (\(|x|>k\)), matching at \(\pm k\).

Exercise 10.29

NoteStem (abridged)

When \(\psi\propto l'\) the M-estimator attains MLE efficiency; four examples.

TipSolution

(a) Cauchy–Schwarz equality when \(\psi=c\,l'\).

(b) (i) Normal \(l'=x\) (location). (ii) Logistic \(f=e^{-x}/(1+e^{-x})^2\) has \(l'=-\tanh(x/2)\). Efficiency requires \(\psi=c\,\ell'\), so the printed \(\psi(x)=\tanh x\) is not a scalar multiple of the score. (iii) Cauchy \(l'=2x/(1+x^2)\). (iv) The \(l'\) of the least favorable density is exactly Huber \(\psi\).

Exercise 10.30

NoteStem (abridged)

Breakdown of a bounded \(\psi\); efficiency–robustness.

TipSolution

(a) Normal \(\psi=x\) is unbounded, \(b^*=0\). Logistic and Huber \(\psi\) are bounded, \(b^*>0\). Cauchy \(\psi(x)=2x/(1+x^2)\) is redescending (\(\psi(\pm\infty)=0\)); the displayed breakdown formula that uses \(\psi(\pm\infty)\) in the denominator does not apply as written. (Cauchy location MLE still has breakdown \(1/2\), but not by plugging \(\psi(\infty)=0\) into that display.)

(b) Huber: \(\psi(\pm\infty)=\pm k\), \(\eta=1\), \(b^*=1/2\). Tukey / Andrews: \(\psi(\pm\infty)=0\), so the formula needs a finite cutoff \(c\); the actual \(b^*\) is determined by redescending \(\psi\), usually \(<1/2\).

(c) On the normal, Huber \(k=1.5\) has ARE \(\approx 0.96\); on the double exponential, \(>1\) relative to the mean. Tukey / Andrews similar, slightly below Huber.

Exercise 10.31

NoteStem (abridged)

\(2\times 2\) table: \(\chi^2\), expected frequencies, \(T^{**}\); Lister data.

TipSolution

(a) Under \(H_0\), \(\hat p_1-\hat p_2\) has variance \((1/n_1+1/n_2)p(1-p)\); plug in \(\hat p\), \(T\to\chi^2_1\).

(b) Expected counts \(n_i \hat p\) etc. Expanding \((O-E)^2/E\) in the four cells, \(T^*=T\) algebraically.

(c) Without pooling the variance, \(T^{**}\to n(0,1)\), square \(\to\chi^2_1\), but \((T^{**})^2\neq T^*\) (different denominators).

(d) Under \(H_0\), \(T^*\) is more stable (better variance estimate); under the alternative \(T^{**}\) is sometimes more sensitive. For small cells use \(T^*\) / Fisher.

(e) Lister: \(\hat p_{\mathrm{yes}}=34/40=0.85\), \(\hat p_{\mathrm{no}}=19/35\approx 0.543\), \(\hat p=53/75\). \[ T=\frac{(0.85-0.543)^2}{(1/40+1/35)\hat p(1-\hat p)}\approx 8.5, \] \(p\approx 0.0035\). Carbolic acid is associated with survival.

Exercise 10.32

NoteStem (abridged)

McNemar; different from a hypothesis on conditional proportions.

TipSolution

(a) \(H_0:p_1=p_2\), \(E_1=E_2=m(X_1+X_2)/(2m)=(X_1+X_2)/2\). \((O-E)^2/E\) on those two cells contributes \((X_1-X_2)^2/(X_1+X_2)\).

(b) “Among changers, the proportion who change from agree equals the proportion who change from disagree” is \[ \frac{p_1}{p_1+p_3}=\frac{p_2}{p_2+p_4}, \] not \(p_1=p_2\). One needs a \(\chi^2\) on the full table.

Exercise 10.33

NoteStem (abridged)

Complete Theorem 10.3.1: \((\hat\theta-\theta_0)/\sqrt{-l''(\hat\theta)}\to n(0,1)\).

TipSolution

\(\sqrt n(\hat\theta-\theta_0)\to n(0,1/I)\), \(-n^{-1}l''(\hat\theta)\to_p I\). Slutsky: \[ \frac{\hat\theta-\theta_0}{\sqrt{-l''(\hat\theta)^{-1}}}=\sqrt n(\hat\theta-\theta_0)\sqrt{-n^{-1}l''}\to n(0,1). \] Hence \(-2\log\lambda\approx(\hat\theta-\theta_0)^2(-l''(\hat\theta))\to\chi^2_1\).

Exercise 10.34

NoteStem (abridged)

Bernoulli LRT: simulate \(-2\log\lambda\) vs \(\chi^2\).

TipSolution

(a) \(-2\log\lambda=2n\bigl[\hat p\log(\hat p/p_0)+(1-\hat p)\log((1-\hat p)/(1-p_0))\bigr]\).

(b) Fix \(p_0=1/2\), draw \(n=20\) a total of 10000 times; the histogram should match \(\chi^2_1\); quantiles are close to the slightly low ones in Table 10.3.5. The fit deteriorates when \(p_0\) is near \(0\).

Exercise 10.35

NoteStem (abridged)

Normal Wald: mean / variance.

TipSolution

(a) \(\hat\mu=\bar X\), \(\mathrm{se}=\sigma/\sqrt n\), \(Z=\sqrt n(\bar X-\mu_0)/\sigma\) is Wald.

(b) \(\hat\sigma^2=n^{-1}\sum(X_i-\mu)^2\), \(I(\sigma)=2n/\sigma^2\), \(\mathrm{se}(\hat\sigma)=\sigma/\sqrt{2n}\). Wald \(Z=\sqrt{2n}(\hat\sigma-\sigma_0)/\hat\sigma\).

Exercise 10.36

NoteStem (abridged)

gamma\((\alpha,\beta)\), \(\alpha\) known. Wald.

TipSolution

(a) \(\hat\beta=\bar X/\alpha\). (b) \(I(\beta)=n\alpha/\beta^2\), \(\mathrm{se}=\hat\beta/\sqrt{n\alpha}\), \(Z=\sqrt{n\alpha}(\hat\beta-\beta_0)/\hat\beta\). (c) Estimate \(\mathrm{se}(\bar X)\) by \(S/\sqrt n\) and divide by \(\alpha\): \(\mathrm{se}(\hat\beta)=S/(\alpha\sqrt n)\).

Exercise 10.37

NoteStem (abridged)

Normal score statistic.

TipSolution

(a) \(S(\mu)=n(\bar X-\mu)/\sigma^2\), \(I=n/\sigma^2\), \(Z_S=\sqrt n(\bar X-\mu_0)/\sigma\), same as Wald.

(b) \(S(\sigma)= -n/\sigma+\sum(X_i-\mu)^2/\sigma^3\), \(I=2n/\sigma^2\), \(Z_S=(\sum(X_i-\mu)^2/\sigma_0^2-n)/\sqrt{2n}\).

Exercise 10.38

NoteStem (abridged)

Gamma score.

TipSolution

\(S(\beta)=-n\alpha/\beta+\sum X_i/\beta^2\), \(I=n\alpha/\beta^2\), \[ Z_S=\frac{\bar X-\alpha\beta_0}{\beta_0\sqrt{\alpha/n}}. \]

Exercise 10.39

NoteStem (abridged)

Extend Example 10.3.7: another variance, bootstrap SE, median test.

TipSolution

(a) (10.3.6) uses the empirical second / first moments of \(\psi\). At small \(n\) the \(\psi'\) denominator can blow up if near \(0\); simulated levels are often less stable than (10.3.8).

(b) A bootstrap SE accounts for estimation variability, so the level is usually closer to nominal, with a slight drop in power.

(c) The median test uses se \(=1/(2\hat f(0)\sqrt n)\) (kernel estimate of \(f\)). Best for the double exponential; for the normal, power is below Huber.

Exercise 10.40

NoteStem (abridged)

Poisson: \((\bar X-\lambda)/\sqrt{\lambda/n}\) equals score / information.

TipSolution

\(\log L=-n\lambda+\sum x\log\lambda\), \(\partial_\lambda\log L= -n+\sum x/\lambda\), \(I=n/\lambda\). \[ \frac{\partial_\lambda\log L}{\sqrt I}=\frac{\bar X-\lambda}{\sqrt{\lambda/n}}. \] The optimal pivot in Wilks’s sense.

Exercise 10.41

NoteStem (abridged)

Approximate negative-binomial intervals; aphid data.

TipSolution

(a) Mean \(\mu=r(1-p)/p\) (failures convention); score / information give a Wilks pivot.

(b) \(\bar X\pm z\sqrt{\widehat{\mathrm{Var}}}/\sqrt n\), continuity correction \(\pm 1/(2n)\).

(c) Aphids \(\bar x=62\). If one fits \(r\), \(\hat p=r/(r+\bar x)\). A \(90\%\) interval is wider than Poisson (overdispersion). Compared with the \([58,67]\) of Exercise 9.23, an NB interval can be of order \([50,76]\).

Exercise 10.42

NoteStem (abridged)

(10.4.5) is equivalent to the highest-likelihood region (9.2.7).

TipSolution

The LRT interval \(\{-2\log(L(\theta)/L(\hat\theta))\le\chi^2_{1,\alpha}\}=\{L(\theta)\ge L(\hat\theta)e^{-\chi^2_{1,\alpha}/2}\}\) is (9.2.7) with \(k'\) free of \(\theta\).

Exercise 10.43

NoteStem (abridged)

Endpoint correction of the Wald interval at \(y=0,n\).

TipSolution

(a) When \(y=0\), \(P(X=0)=(1-p)^n\). Lower bound \(0\), upper bound satisfies \((1-U)^n=\alpha/2\), \(U=1-(\alpha/2)^{1/n}\) (cdf pivoting). \(y=n\) is symmetric.

(b) Truncation to \([0,1]\) drops impossible endpoints; the boundary correction avoids zero length. Coverage near \(0,1\) rises back above \(1-\alpha\).

Exercise 10.44

NoteStem (abridged)

Agresti–Coull: add two successes and two failures, then Wald.

TipSolution

\(\tilde p=(y+2)/(n+4)\), \(\tilde p\pm z\sqrt{\tilde p(1-\tilde p)/(n+4)}\). The center agrees with Wilson’s \((y+z^2/2)/(n+z^2)\) when \(z\approx 2\). Coverage is close to the score interval, and the formula can be taught in elementary courses. Length is slightly larger than score, acceptable. Agree with Agresti–Coull’s recommendation.

Exercise 10.45

NoteStem (abridged)

A continuity-corrected binomial interval is wider and has higher coverage.

TipSolution

\(|y/n-p|-1/(2n)\le z\sqrt{p(1-p)/n}\). Solving the quadratic in \(p\), the discriminant is larger, so the interval is wider. Coverage \(=\) uncorrected coverage plus a layer of boundary cells, hence uniformly higher, and stays \(\ge 1-\alpha\).

Exercise 10.46

NoteStem (abridged)

Robust coverage of a median interval and a Huber–bootstrap interval.

TipSolution

(a) Median \(\pm z\cdot\widehat{\mathrm{se}}\), \(\mathrm{se}=1/(2\hat f\sqrt n)\). Slightly wide on the normal; on Cauchy / contamination, coverage is far better than \(\bar x\pm z s/\sqrt n\).

(b) Huber point estimate + bootstrap SE: coverage near nominal on contamination models, more stable than plugging \(z\) into (10.3.8).

Exercise 10.47

NoteStem (abridged)

A \(\chi^2\) interval for a small negative-binomial \(p\); shortest endpoints.

TipSolution

(a) When \(p\) is small and \(r\) is fixed, \(2p\sum X\approx\chi^2_{2nr}\) (gamma limit). Invert: \[ \chi^2_{2nr,1-\alpha/2}/(2\sum x)\le p\le\chi^2_{2nr,\alpha/2}/(2\sum x). \]

(b) Length \(\propto(1/a-1/b)\), same constraint as 9.42, \(a^2 f_{\chi^2}(a)=b^2 f_{\chi^2}(b)\).

Exercise 10.48

NoteStem (abridged)

A large-sample interval for Fieller’s ratio.

TipSolution

Example 5.5.27: \(\widehat{\mathrm{Var}}(\bar Y/\bar X)\approx n^{-1}(\sigma_Y^2/\mu_X^2+\mu_Y^2\sigma_X^2/\mu_X^4-2\rho\sigma_X\sigma_Y\mu_Y/\mu_X^3)\). Plug in sample moments; CLT: \[ \frac{\bar Y}{\bar X}\pm z_{\alpha/2}\sqrt{\widehat{\mathrm{Var}}}. \] This is an approximate interval; when \(\mu_X\approx 0\) it is inferior to the exact Fieller quadratic set (which can be unbounded).