Chapter 9 Exercises

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

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 9 §9.4 Exercises 9.1–9.58.
  • Pages: Exercises on printed pages 365–374, PDF pages 396–405 (about PDF page = printed page + 31).
  • Notes: ch09-notes.qmd.

Exercise 9.1

NoteStem (abridged)

\(P(L\le\theta)=1-\alpha_1\), \(P(U\ge\theta)=1-\alpha_2\), \(L\le U\). Show that the coverage is \(1-\alpha_1-\alpha_2\).

TipSolution

\[ P(L\le\theta\le U)=1-P(L>\theta)-P(U<\theta)=1-\alpha_1-\alpha_2, \] because \(\{L>\theta\}\) and \(\{U<\theta\}\) are disjoint (\(L\le U\)).

Exercise 9.2

NoteStem (abridged)

A \(95\%\) interval for \(n(\theta,1)\). How does the probability \(p\) that \(X_{n+1}\) falls in that interval compare with \(.95\)?

TipSolution

The interval is \(I=\bar X\pm 1.96/\sqrt n\). \(X_{n+1}-\bar X\sim n(0,1+1/n)\), free of \(\theta\). \[ p=P\bigl(|X_{n+1}-\bar X|\le 1.96/\sqrt n\bigr)=P\bigl(|Z|\le 1.96/\sqrt{n+1}\bigr)<P(|Z|\le 1.96)=0.95. \] Smaller than \(.95\). \(I\) covers \(\theta\), not a future observation. A prediction interval should replace the variance by \(1+1/n\) (Exercise 9.57).

Exercise 9.3

NoteStem (abridged)

\(P(X_i\le x)=(x/\beta)^{\alpha_0}\), \(0<x<\beta\), \(\alpha_0\) known. An upper bound for \(\beta\); use the data of 7.10.

TipSolution

(a) \(Y=X_{(n)}\) is sufficient. \(P(Y\le y)=(y/\beta)^{n\alpha_0}\), so \(Y/\beta\) is a pivot. \[ P(Y/\beta\ge \alpha_{\mathrm{cut}}^{1/(n\alpha_0)})=0.95 \] is not the right start: \(P(Y\le\beta)=1\), so any upper bound must be \(\ge Y\). \(P(\beta\le Y/c)=P(Y/\beta\ge c)=(1-c^{n\alpha_0})\). For \(P(\beta\le Y/c)=0.95\) one needs \(c^{n\alpha_0}=0.05\), \(c=0.05^{1/(n\alpha_0)}\). Upper bound \(U=Y/0.05^{1/(n\alpha_0)}\).

(b) Plug the \(Y\) and \(\hat\alpha\) from Exercise 7.10 in as \(\alpha_0=\hat\alpha\). The numerical value depends on the 7.10 table; the formula is \(U=x_{(n)}/0.05^{1/(n\hat\alpha)}\).

Exercise 9.4

NoteStem (abridged)

Two independent zero-mean normals, \(\lambda=\sigma_Y^2/\sigma_X^2\). LRT and \(F\) interval.

TipSolution

(a) \(S_X^2=\sum X_i^2/n\), \(S_Y^2=\sum Y_j^2/m\) (means are 0). The ratio of the constrained (\(\lambda=\lambda_0\)) MLE to the unrestricted MLE gives \[ \lambda_{\mathrm{LRT}}=\frac{(\hat\sigma_X^2)^n(\hat\sigma_Y^2)^m}{(\tilde\sigma_X^2)^n(\tilde\sigma_Y^2)^m}, \] \(\tilde\sigma_Y^2=\lambda_0\tilde\sigma_X^2\). After algebra, reject \(F=\frac{\sum Y^2/m}{\sum X^2/n}\) far from \(\lambda_0\).

(b) Under \(H_0\), \((\sum Y^2/\sigma_Y^2)/(\sum X^2/\sigma_X^2)\cdot(n/m)\sim F_{m,n}\), i.e. \(F/\lambda\sim F_{m,n}\). Reject \(F/\lambda_0\le F_{m,n,1-\alpha/2}\) or \(\ge F_{m,n,\alpha/2}\).

(c) Invert: \(F/F_{m,n,\alpha/2}\le\lambda\le F/F_{m,n,1-\alpha/2}\).

Exercise 9.5

NoteStem (abridged)

Binomial upper bound: invert \(H_1:p<p_0\).

TipSolution

(a) UMP rejects small \(T\). Accept \(\{T\ge \ell(p_0)\}\). \(\ell\) is nondecreasing in \(p_0\), so inversion yields \([0,U(T))\).

(b) \(\ell(p_0)\) satisfies \(\sum_{y=\ell}^n\binom n y p_0^y(1-p_0)^{n-y}\ge 1-\alpha\), and one fewer term fails. \[ U(t)=\inf\Bigl\{p:\sum_{y=t+1}^n\binom n y p^y(1-p)^{n-y}\ge 1-\alpha\Bigr\}. \]

Exercise 9.6

NoteStem (abridged)

Invert the binomial LRT; it is a highest-density set for \(p^y(1-p)^{n-y}\).

TipSolution

(a) \(\lambda(p)=p^y(1-p)^{n-y}/[\hat p^y(1-\hat p)^{n-y}]\), \(\hat p=y/n\). Accept \(\{p: y\log p+(n-y)\log(1-p)\ge k\}\), i.e. the two endpoints \(L,U\) satisfy \(L^y(1-L)^{n-y}=U^y(1-U)^{n-y}\) and the coverage is \(1-\alpha\).

(b) This is a level set of the likelihood \(p^y(1-p)^{n-y}\), hence a highest-likelihood / highest-density region. The Wald interval (10.4.4) is \(\hat p\pm z\sqrt{\hat p(1-\hat p)/n}\), symmetric and possibly outside \([0,1]\), and generally not equal to the LRT interval.

Exercise 9.7

NoteStem (abridged)

Invert the LRT of 8.8 to get a confidence set for \(a\).

TipSolution

(a) \(n(\theta,a\theta)\). The LRT \(\lambda(a)\) is the ratio of constrained to unconstrained maximized likelihood. \(C=\{a:\lambda(a)\ge k\}\), with \(k\) such that \(P_{a_0}(\lambda(a_0)\ge k)=1-\alpha\). Typically this is an inequality in \(s^2/\bar x\).

(b) \(n(\theta,a\theta^2)\) similarly, \(C=\{a:s^2/\bar x^2\in[c_1,c_2]\}\), with quantiles from the constrained distribution.

Exercise 9.8

NoteStem (abridged)

List at least five pivots in a location–scale family.

TipSolution

\((\bar X-\theta)/\sigma\), \((\bar X-\theta)/S\), \(S/\sigma\), \((X_{(n)}-\theta)/\sigma\), \((X_{(1)}-\theta)/S\), \((X_{(n)}-X_{(1)})/\sigma\), \((X_i-\theta)/S\), and the ratio of any location-equivariant statistic to any scale-equivariant statistic.

Exercise 9.9

NoteStem (abridged)

Verify that the three quantities in Table 9.2.1 are pivots.

TipSolution

Location: \(X_i=\mu+Z_i\), \(Z_i\sim f\), \(\bar X-\mu=\bar Z\), free of \(\mu\). Scale: \(X_i=\sigma Z_i\), \(\bar X/\sigma=\bar Z\). Location–scale: \(X_i=\mu+\sigma Z_i\), \((\bar X-\mu)/S=\bar Z/S_Z\).

Exercise 9.10

NoteStem (abridged)

(9.2.11) \(\Rightarrow\) \(Q\) is a pivot; \(g=1\), \(Q=F\) is the PIT.

TipSolution

(a) Theorem 2.1.5: the density of the monotone transform \(Q(T,\theta)\) is \(g\), free of \(\theta\).

(b) \(f(t\mid\theta)=1\cdot |\partial F/\partial t|=f(t\mid\theta)\), and \(F(T\mid\theta)\sim U(0,1)\).

Exercise 9.11

NoteStem (abridged)

\(\{\alpha_1\le F(t\mid\theta_0)\le 1-\alpha_2\}\) is an \(\alpha\) acceptance region.

TipSolution

In the continuous case \(F(T\mid\theta_0)\sim U(0,1)\), so the event has probability \(1-\alpha_1-\alpha_2=1-\alpha\). Inversion is \(\{\theta:\alpha_1\le F(t\mid\theta)\le 1-\alpha_2\}\).

Exercise 9.12

NoteStem (abridged)

A pivot interval for \(n(\theta,\theta)\), \(\theta>0\).

TipSolution

\(\sum X_i^2/\theta=\sum(Z_i+\sqrt\theta\cdot 0)\) is not clean. Let \(W=\sum X_i^2\). \(X_i/\sqrt\theta\sim n(\sqrt\theta,1)\), noncentral. Simpler: \(\bar X/\sqrt{\theta/n}-\sqrt n\sim ?\) no.

\(\sum(X_i-\bar X)^2/\theta\sim\chi^2_{n-1}\), independent of \(\bar X\sim n(\theta,\theta/n)\). One pivot is \[ Q=\frac{n(\bar X-\theta)^2}{\theta}+\frac{(n-1)S^2}{\theta}=\frac{\sum(X_i-\theta)^2}{\theta}\sim\chi^2_n, \] because \(X_i-\theta\sim n(0,\theta)\). The interval is \(\{\theta:\chi^2_{n,1-\alpha/2}\le \sum(X_i-\theta)^2/\theta\le\chi^2_{n,\alpha/2}\}\), a quadratic inequality in \(\theta\), solved by two positive roots.

Exercise 9.13

NoteStem (abridged)

\(X\sim\mathrm{Beta}(\theta,1)\). \([Y/2,Y]\), \(Y=-1/\log X\).

TipSolution

(a) \(F(x)=x^\theta\). \(-\log X\sim\mathrm{Exp}(\text{rate }\theta)\), \(Y=1/(-\log X)\) makes \(\theta Y\sim\) ? (let \(U=-\log X\sim\mathrm{Exp}(\theta)\), density \(\theta e^{-\theta u}\), \(Y=1/U\), \(\theta/Y\sim\theta^2/y^2\cdot\ldots\)). \(P(Y/2\le\theta\le Y)=P(1\le\theta U\le 2)\). \(\theta U\sim\mathrm{Exp}(1)\), \[ P(1\le E\le 2)=e^{-1}-e^{-2}\approx 0.2325. \]

(b) \(Q=\theta(-\log X)\sim\mathrm{Exp}(1)\). Intervals with the same coverage: choose \(a<b\) so \(e^{-a}-e^{-b}=e^{-1}-e^{-2}\), e.g. \([a,b]=[1,2]\) is (a); or equal tails, etc. In general \(\{\theta:a\le\theta(-\log X)\le b\}=[aY,bY]\) (\(Y=1/(-\log X)\)).

(c) Among intervals of the form \([aY,bY]\), the shortest ratio minimizes \(b-a\) subject to \(e^{-a}-e^{-b}\) fixed. By Theorem 9.3.2 for the exponential density, \(f(a)=f(b)\Rightarrow a=b\) is impossible; the exponential is decreasing, so the shortest takes \(a=0\), \(b=-\log(1-0.2325)\approx 0.265\), interval \([0,0.265 Y]\), shorter than \([Y/2,Y]\).

Exercise 9.14

NoteStem (abridged)

Bonferroni simultaneous intervals: \(t\)+\(χ^2\), or \(z\) (known-\(\sigma\) form)+\(χ^2\).

TipSolution

(a) Take \(k=t_{n-1,\alpha_1/2}\), \(a=\chi^2_{n-1,1-\alpha_2/2}\), \(b=\chi^2_{n-1,\alpha_2/2}\), \(\alpha_1+\alpha_2=\alpha\). Bonferroni: \(P(\text{both correct})\ge 1-\alpha_1-\alpha_2\).

(b) The first slice still contains \(\sigma\), so the object is a region in the \((\mu,\sigma)\) plane (a cone cut by a \(\chi^2\) annulus). \(\bar X\perp S^2\), hence \[ P(\text{both})=P(|Z|\le k)\,P\bigl(a\le\chi^2_{n-1}\le b\bigr)=(1-\alpha_1)(1-\alpha_2). \] Choose \(k=z_{\alpha_1/2}\) and the usual \(\chi^2\) tails, then either set \((1-\alpha_1)(1-\alpha_2)=1-\alpha\) or Bonferroni \(\alpha_1+\alpha_2=\alpha\). This is a valid joint set, not a numerical \(z\)-interval that “uses unknown \(\sigma\).”

(c) Both (a) and (b) are legitimate \(1-\alpha\) constructions (Bonferroni vs independence). The \(t\) version (a) does not require known \(\sigma\); the \(z\) version (b) is a joint statement about \((\mu,\sigma)\).

Exercise 9.15

NoteStem (abridged)

Fieller quadratic roots: opens upward / downward / no real roots.

TipSolution

\(\theta=\mu_Y/\mu_X\). \((\bar Y-\theta\bar X)^2\le c^2\mathrm{Var}(\bar Y-\theta\bar X)\) rearranges to \(A\theta^2+B\theta+C\le 0\), \[ A=\bar X^2-c^2 S_X^2/n,\quad \text{etc.\ (see Miscellanea 9.5.3)}. \] (a) \(A>0\) (\(\bar X\) significantly nonzero): the parabola opens upward, and the inequality is a finite interval. (b) \(A<0\): opens downward, and the solution is the complement of an interval (unbounded). The data cannot rule out \(\mu_X=0\), so the ratio can be arbitrarily large. (c) Discriminant \(<0\) and \(A>0\): empty set (rare; usually the discriminant is nonnegative when \(A>0\)); \(A<0\) and discriminant \(<0\): all of \(\mathbb R\) (always true). Moral for the experimenter: when the denominator mean is indistinguishable from \(0\), a \(1-\alpha\) set for the ratio is unbounded.

Exercise 9.16

NoteStem (abridged)

Normal, known variance: acceptance regions and intervals for three hypotheses.

TipSolution

Let \(z=\sqrt n(\bar x-\theta_0)/\sigma\).

(a) Accept \(|z|\le z_{\alpha/2}\); interval \(\bar x\pm z_{\alpha/2}\sigma/\sqrt n\). (b) \(H_0:\theta\ge\theta_0\), accept \(z\ge -z_\alpha\); interval \((-\infty,\bar x+z_\alpha\sigma/\sqrt n]\). (c) Accept \(z\le z_\alpha\); interval \([\bar x-z_\alpha\sigma/\sqrt n,\infty)\).

Exercise 9.17

NoteStem (abridged)
  1. \(\mathrm{Unif}(\theta-1/2,\theta+1/2)\); (b) \(f=2x/\theta^2\), \(0<x<\theta\).
TipSolution

(a) Sufficient \((X_{(1)},X_{(n)})\). \(X_{(n)}-1/2\le\theta\le X_{(1)}+1/2\) almost surely, and \(\theta\) also lies in \([X_{(n)}-1/2,X_{(1)}+1/2]\). That interval has coverage \(1\) (length \(1-(X_{(n)}-X_{(1)})\)). To get coefficient exactly \(1-\alpha\), shrink the ends using the distribution of \(X_{(n)}-X_{(1)}\). A \(1-\alpha\) set is a central shortening of \[ \bigl[\max_i x_i-\tfrac12,\;\min_i x_i+\tfrac12\bigr], \] or use the pivots \(X_{(n)}-\theta\), \(X_{(1)}-\theta\).

(b) \(Y=X_{(n)}\), \(F_Y=(y/\theta)^{2n}\) (since \(F_X=(x/\theta)^2\)). \(Y/\theta\) is a pivot. \[ P(Y/\theta\le (1-\alpha)^{1/(2n)})=1-\alpha\implies \theta\in\bigl[Y,\,Y/( \alpha^{1/(2n)} )\bigr] \] etc. Equal tails: \(Y/b\le\theta\le Y/a\) with \(a^{2n}-b^{2n}\) complementary to \(\alpha\). Shortest pivot: \(a=\alpha^{1/(2n)}\), \(b=1\), \(\theta\in[Y,Y\alpha^{-1/(2n)}]\).

Exercise 9.18

NoteStem (abridged)

A problem with Sterne’s construction; Crow’s modification yields intervals.

TipSolution

(a) \(P(X=x)=\binom3x p^x(1-p)^{3-x}\). \(x=1\) is maximized at \(p=1/3\), \(x=2\) at \(p=2/3\).

(b) At \(p=1/3+\varepsilon\), \(P(X=0)=(2/3-\varepsilon)^3\), \(P(X=2)=3(1/3+\varepsilon)^2(2/3-\varepsilon)\). For small positive \(\varepsilon\), \(P(X=0)>P(X=2)\) can still hold (check \(\varepsilon=0.01\)). The acceptance region then puts \(0\) back in as \(p\) increases, so after inversion \(C(0)\) is disconnected.

(c) The given acceptance regions are nested in an “interval” way in \(p\), and inversion yields \[ C(0)=[0,0.305],\; C(1)=(0.238,0.634],\; C(2)=(0.362,0.762),\; C(3)=(0.695,1], \] all intervals, coverage \(\ge 0.442\).

Exercise 9.19

NoteStem (abridged)

Prove Theorem 9.2.12(b).

TipSolution

\(F\) is increasing in \(\theta\). \(\theta_U\) is defined by \(F(t\mid\theta_U)=1-\alpha_2\), \(\theta_L\) by \(F(t\mid\theta_L)=\alpha_1\). Then \(F<\alpha_1\Leftrightarrow\theta<\theta_L\), \(F>1-\alpha_2\Leftrightarrow\theta>\theta_U\). Hence \(\{\alpha_1\le F\le 1-\alpha_2\}=[\theta_L,\theta_U]\). Coverage as in (a).

Exercise 9.20

NoteStem (abridged)

Complete Theorem 9.2.14.

TipSolution

(a) \(\bar F(t)=P(T\ge t)=1-F(t-)\). By the discrete PIT of Exercise 2.10, \(\bar F(T)\) is likewise stochastically \(\ge U(0,1)\).

(b) \(P(F\le\alpha_1\text{ and }\bar F\le\alpha_2)\le P(F\le\alpha_1)+P(\bar F\le\alpha_2)\le\alpha_1+\alpha_2=\alpha\), so the complementary event has probability \(\ge 1-\alpha\). Tighter: the two events are nearly disjoint enough that the coverage is \(\ge 1-\alpha\).

(c) \(F\) decreasing in \(\theta\) \(\Rightarrow\) \(P(T\ge t)=1-P(T\le t-1)\) is nondecreasing in \(\theta\).

(d) Symmetric to 9.19, defining \(\theta_U\) from \(\bar F\).

Exercise 9.21

NoteStem (abridged)

Clopper–Pearson in terms of \(F\) quantiles.

TipSolution

\(P_p(X\ge x)=P(Y\le p)\), \(Y\sim\mathrm{Beta}(x,n-x+1)\). Left endpoint: \(P(X\ge x\mid p_L)=\alpha/2\Rightarrow p_L\) is the \(\alpha/2\) quantile of \(\mathrm{Beta}(x,n-x+1)\). Beta–\(F\): \[ \frac{(n-x+1)p}{x(1-p)}\sim F_{2x,2(n-x+1)} \] under the corresponding conditions. Rearrangement is the book’s \[ p_L=\frac{1}{1+\frac{n-x+1}{x}F_{2(n-x+1),2x,\alpha/2}},\qquad p_U=\frac{(x+1)F_{2(x+1),2(n-x),\alpha/2}}{n-x+(x+1)F_{\cdots}}. \] If \(x=0\) then \(p_L=0\); if \(x=n\) then \(p_U=1\).

Exercise 9.22

NoteStem (abridged)

An \(F\) interval for the negative-binomial \(p\).

TipSolution

\(X\sim\mathrm{NB}(r,p)\) (\(r\) successes, number of failures, or the book’s convention). \(P(X\le x)=P(\mathrm{Bin}(x+r,p)\ge r)\). Substitute the Beta–\(F\) of 9.21 to get \[ \frac{1}{1+\frac{x+1}{r}F_{2(x+1),2r,\alpha/2}}\le p\le\frac{r F_{2r,2x,\alpha/2}}{x+r F_{2r,2x,\alpha/2}}. \] When \(x=0\) the upper bound is replaced by \(1\), or a continuity correction is used.

Exercise 9.23

NoteStem (abridged)

Poisson LRT interval vs Garwood; aphid data.

TipSolution

(a) \(Y\sim\mathrm{Poisson}(n\lambda)\), \(\lambda_{\mathrm{LRT}}=e^{n(\hat\lambda-\lambda)}(\lambda/\hat\lambda)^Y\), \(\hat\lambda=Y/n\). Accept \(\{\lambda:Y\log\lambda-n\lambda\ge k\}\), solve the two ends numerically. Close to (9.2.17) but generally not equal (equal-tailed \(\chi^2\) vs equal-likelihood).

(b) Data \(155,104,66,50,36,40,30,35,42\), \(n=9\), \(Y=558\), \(\hat\lambda=62\). \(90\%\) Garwood: \[ \frac{\chi^2_{1116,0.95}}{18}\le\lambda\le\frac{\chi^2_{1118,0.05}}{18}. \] \(\chi^2_{\nu,0.95}\approx\nu-1.645\sqrt{2\nu}\), \(\chi^2_{\nu,0.05}\approx\nu+1.645\sqrt{2\nu}\), about \([57.7,66.6]\). The LRT interval is slightly asymmetric about \(\hat\lambda\), numerically close.

Exercise 9.24

NoteStem (abridged)

Poisson coverage is a Poisson sum of indicators; jumps at the endpoints.

TipSolution

\(P(\lambda\in[L(X),U(X)])=\sum_x I_{[L(x),U(x)]}(\lambda)e^{-\lambda}\lambda^x/x!\). For fixed \(\lambda\), the \(x\) with \(L(x)\le\lambda\le U(x)\) form a stretch \(\{x_l(\lambda),\ldots,x_u(\lambda)\}\). When \(\lambda\) crosses some \(U(x)\) or \(L(x)\), that \(x\) enters or leaves the indicator and the sum jumps. That is the sawtooth of Figure 9.2.5.

Exercise 9.25

NoteStem (abridged)

Location exponential: cdf pivot vs LRT vs pivot.

TipSolution

\(Y- \mu\sim\mathrm{Exp}(n)\) (rate \(n\)). Pivot: \(2n(Y-\mu)\sim\chi^2_2\). Equal tails give the same interval as Example 9.2.13, \[ Y+\frac{\log(\alpha/2)}{n}\le\mu\le Y+\frac{\log(1-\alpha/2)}{n}. \] LRT: likelihood \(e^{n(\mu-y)}I_{\mu\le y}\), accept \(\mu\) near \(y\), i.e. \([y-c,y]\). The shortest interval (Exercise 9.41) is \([Y+\log\alpha/n,\,Y]\), coefficient \(1-\alpha\), shorter than equal tails. Equal tails is not shortest.

Exercise 9.26

NoteStem (abridged)

\(\mathrm{Beta}(\theta,1)\), gamma prior. Credible set.

TipSolution

\(L=\theta^n(\prod x_i)^{\theta-1}\). Prior \(\mathrm{gamma}(r,\lambda)\) (scale \(\lambda\)), posterior \[ \theta\mid x\sim\mathrm{gamma}\bigl(r+n,\,[1/\lambda-\sum\log x_i]^{-1}\bigr) \] (\(\sum\log x_i<0\)). Equal tails: \(\theta_L,\theta_U\) are the posterior \(\alpha/2\) and \(1-\alpha/2\) quantiles; or HPD uses \(\pi(\theta\mid x)\ge k\).

Exercise 9.27

NoteStem (abridged)

HPD for exponential–IG and for a normal variance with IG prior; noninformative limit.

TipSolution

(a) Posterior \(\lambda\mid x\sim\mathrm{IG}(a+n,\,[\beta^{-1}+\sum x_i]^{-1})\) (book’s IG parameterization). HPD: \(\{\lambda:\pi(\lambda\mid x)\ge k\}\), generally asymmetric for IG; solve two roots of equal density with mass \(1-\alpha\).

(b) Likelihood of \(s^2\) is \(\propto (\sigma^2)^{-(n-1)/2}\exp\{-(n-1)s^2/(2\sigma^2)\}\); conjugate IG updates the shape to \(a+(n-1)/2\) and the scale with \((n-1)s^2/2\). HPD as above.

(c) \(a\to 0\), \(b\to\infty\): posterior \(\propto (\sigma^2)^{-((n-1)/2+1)}\exp\{-(n-1)s^2/(2\sigma^2)\}\), the reference IG. HPD of posterior mass \(1-\alpha\) among intervals \(\{(n-1)s^2/b\le\sigma^2\le(n-1)s^2/a\}\) is the shortest-length \(\chi^2\) set of Exercise 9.52(b): \(f_{n+3}(a)=f_{n+3}(b)\), not the unbiased constraint \(f_{n+1}(a)=f_{n+1}(b)\) of 9.52(c).

Exercise 9.28

NoteStem (abridged)

Normal \((\theta,\sigma^2)\) with \(n(\mu,\tau^2\sigma^2)\times\mathrm{IG}\) prior. Posterior; classical \(t\) interval as a limit.

TipSolution

(a) Likelihood \(\times\) this prior stays in the same conjugate family (normal–IG).

(b) The marginal posterior \(\theta\mid x\) is a noncentral \(t\) (location a weighted average of \(\bar x\) and \(\mu\)). Credible set: equal tails or HPD of the posterior \(t\).

(c) As \(\tau\to\infty\), \(a\to 0\), \(b\to\infty\), the posterior tends to the classical \(t_{n-1}\), and the credible set tends to \[ \{\,|\theta-\bar x|^2\le F_{1,n-1,\alpha}\,s^2/n\,\}, \] because \(t_{\nu,\alpha/2}^2=F_{1,\nu,\alpha}\) (upper \(\alpha\), not \(\alpha/2\)). The book prints \(F_{1,n-1,\alpha/2}\); that cutoff would give coverage \(1-\alpha/2\). For a symmetric \(t\), HPD and equal tails coincide and both use \(F_{1,n-1,\alpha}\).

Exercise 9.29

NoteStem (abridged)

Bernoulli–beta credible set, written with \(F\), compared with Clopper–Pearson.

TipSolution

(a) Posterior \(\mathrm{Beta}(a+y,b+n-y)\). Equal tails: \(B_{a+y,b+n-y,\alpha/2}\le p\le B_{\cdot,1-\alpha/2}\).

(b) Beta–\(F\) has the same shape as 9.21, with \(x\) replaced by \(x+a-1\) etc. (pseudo-counts). \(a=b=1\) (uniform prior) is essentially the Clopper–Pearson interval with \(x\) replaced by \(x+1\), a Jeffreys / Bayes interval, typically shorter than CP with coverage closer to \(1-\alpha\).

Exercise 9.30

NoteStem (abridged)

The credible probability in Example 9.2.17 \(\to 0\).

TipSolution

(a) \(2(nb+1)\lambda/b\sim\chi^2_{2(a+\sum x)}\).

(b) mgf of \(\chi^2_\nu\) is \((1-2t)^{-\nu/2}\). Standardized \((\chi^2_\nu-\nu)/\sqrt{2\nu}\): log mgf, Taylor \(\to t^2/2\).

(c) Write (9.2.21) as a standardized \(\chi^2\) falling in an interval that, as \(\sum x\to\infty\), drifts to \(+\infty\) (unless \(b=1/n\) matches the coefficients). The lower endpoint \(\to+\infty\), probability \(\to 0\).

Exercise 9.31

NoteStem (abridged)

The coverage in Example 9.2.17 \(\to 0\).

TipSolution

(a) \(Y\sim\mathrm{Poisson}(\lambda)\), \(\chi^2_{2Y}\): \(E=2\lambda\), \(\mathrm{Var}=8\lambda\) (Wald formula + compounding). mgf \(E[(1-2t)^{-Y}]=exp(-\lambda+\lambda/(1-2t))\). Standardized \(\to n(0,1)\).

(b) After standardizing (9.2.22) the upper end \(\to-\infty\) (\(nb/(nb+1)<1\)), so coverage \(\to 0\).

Exercise 9.32

NoteStem (abridged)

Frequentist coverage of a normal HPD; credible probability of the classical interval.

TipSolution

(a) The algebra of Example 9.2.18 gives \[ P_\theta\bigl(|\theta-\delta^B|\le z_{\alpha/2}\sqrt{\mathrm{Var}(\theta\mid X)}\bigr) =P\bigl(- \sqrt{1+\gamma}\,z_{\alpha/2}+\tfrac{\gamma(\theta-\mu)}{\sigma/\sqrt n}\le Z\le \cdots\bigr). \]

(b) \(\theta\neq\mu\), \(\gamma=1\), \(\sigma/\sqrt n\to 0\), the shift \(\to\pm\infty\), probability \(\to 0\).

(c) When \(\theta=\mu\) the shift is \(0\), coverage \(2\Phi(\sqrt{1+\gamma}\,z_{\alpha/2})-1\in(1-\alpha,1)\), minimum \(1-\alpha\) as \(\gamma\to 0\), maximum \(1\) as \(\gamma\to\infty\).

(d) The posterior probability of the classical interval contains a \(\gamma(x-\mu)\) term and \(\to 0\) when \(|x-\mu|\) is large.

Exercise 9.33

NoteStem (abridged)

\(C_a\) has coverage \(.95\) if \(\mu\neq 0\) and \(1\) if \(\mu=0\); under a flat prior the credible probability is \(.90\) when \(|x|\) is small.

TipSolution

(a) \(a=1.645\). If \(\mu\neq 0\), \(C_a\) is almost \([X-a,X+a]\) (except that \(0\) is pulled into the interval when the interval is already near \(0\)). More precisely: \(C_a=[ \min(0,x-a),\max(0,x+a)]\). If \(|\mu|>0\), \[ P(\mu\in C_a)=P\bigl(\min(0,X-a)\le\mu\le\max(0,X+a)\bigr). \] When \(\mu>0\): \(\mu\le\max(0,X+a)\) is \(X\ge\mu-a\) (since \(\mu>0\)), and \(\min(0,X-a)\le\mu\) always. \(P(X\ge\mu-a)=P(Z\ge -a)=\Phi(a)=0.95\). \(\mu<0\) is symmetric. \(\mu=0\): \(\min\le 0\le\max\) always, coverage \(1\).

(b) Posterior \(n(x,1)\). \(C_a=\{\mu:\min(0,x-a)\le\mu\le\max(0,x+a)\}\). When \(|x|\le a\) this is exactly \([x-a,x+a]\), so \[ P(\mu\in C_a\mid x)=\Phi(a)-\Phi(-a)=0.90 \] exactly (do not integrate as if the posterior were \(n(0,1)\)). When \(x>a\), \(C_a=[0,x+a]\) and the mass is \(\Phi(a)-\Phi(-x)\), which rises from \(0.90\) to \(0.95\) as \(x\to\infty\) (symmetric for \(x<-a\)). The book’s claim is correct.

Exercise 9.34

NoteStem (abridged)

Smallest \(n\) so that a \(.95\) interval has length \(\le\sigma/4\).

TipSolution

(a) Length \(2\cdot 1.96\sigma/\sqrt n\le\sigma/4\Rightarrow\sqrt n\ge 15.68\), \(n\ge 246\).

(b) Length \(2 t_{n-1,0.025}S/\sqrt n\). Want \(P(\text{length}\le\sigma/4)\ge 0.90\). \[ P\bigl(t_{n-1,0.025}S/\sqrt n\le\sigma/8\bigr)=0.90. \] \((n-1)S^2/\sigma^2\sim\chi^2_{n-1}\), equivalent to \(t_{n-1,0.025}\sqrt{\chi^2_{n-1}/(n(n-1))}\le 1/8\). Numerically the smallest \(n\) is about \(n\approx 270\) (\(t\) exceeds \(1.96\) and \(S\) is random). Cruder: \(t\approx 2\), the \(0.90\) quantile of \(S\) is about \(\sigma\sqrt{\chi^2_{n-1,0.90}/(n-1)}\), giving \(n\approx 260\)–\(280\).

Exercise 9.35

NoteStem (abridged)

Expected length with known / unknown \(\sigma^2\).

TipSolution

(a) \(2z_{\alpha/2}\sigma/\sqrt n\). (b) \(2 t_{n-1,\alpha/2}E(S)/\sqrt n=2 t_{n-1,\alpha/2}\sigma\sqrt{2/(n-1)}\,\Gamma(n/2)/\Gamma((n-1)/2)/\sqrt n\). Because \(t>z\) and \(ES<\sigma\) (slightly), overall (b)\(>\)(a). As \(n\to\infty\) the ratio \(\to 1\).

Exercise 9.36

NoteStem (abridged)

\(f_{X_i}=e^{i\theta-x}I_{[i\theta,\infty)}\). \(T=\min(X_i/i)\) is sufficient; shortest \([T+a,T+b]\).

TipSolution

Joint \(f=\exp(\theta\sum i-\sum x_i)\prod I(x_i\ge i\theta)=\exp(\cdots)I(T\ge\theta)\). \(T\) is sufficient. Distribution of \(T-\theta\): \(P(T>\theta+t)=P(\text{all }X_i>i(\theta+t))=\exp(-t\sum i)=\exp(-tn(n+1)/2)\), \(t>0\). Exponential rate \(\lambda=n(n+1)/2\). For \([T+a,T+b]\) one needs \(a<0<b\) (since \(\theta\le T\)), length \(b-a\), coverage \(e^{\lambda a}-e^{\lambda b}\) (\(a<0\)). Shortest: take \(b=0\), \(a=\log\alpha/\lambda\), interval \([T+\log\alpha/\lambda,\,T]\) (Exercise 9.41).

Exercise 9.37

NoteStem (abridged)

\(\mathrm{Unif}(0,\theta)\), \(Y/\theta\) a pivot; shortest pivotal interval.

TipSolution

\(f_Y=ny^{n-1}/\theta^n\), density of \(Y/\theta\) is \(nt^{n-1}\) on \((0,1)\). \(P(Y\le\theta\le Y\alpha^{-1/n})=1-\alpha\). Length \(y(\alpha^{-1/n}-1)\). In general \(\{y/b\le\theta\le y/a\}\), \(0<a\le b\le 1\), \(b^n-a^n=1-\alpha\), length \((1/a-1/b)y\). Minimizing gives \(b=1\), \(a=\alpha^{1/n}\), the stated interval.

Exercise 9.38

NoteStem (abridged)

A simplified proof of Theorem 9.3.2 when \(f\) is continuous.

TipSolution

(a) FTC: \(\frac{d}{da}\int_a^{a+c}f=f(a+c)-f(a)\). (b) Unimodality \(\Rightarrow\) this derivative is \(0\) when \(f(a+c)=f(a)\), and that is a maximum. (c) Among intervals of fixed length \(c^*\) the one with largest integral already attains \(1-\alpha\); any shorter interval has integral \(<1-\alpha\).

Exercise 9.39

NoteStem (abridged)

Symmetric unimodal: equal tails is shortest.

TipSolution

Symmetry \(\Rightarrow\) \(f(a)=f(b)\) if and only if \(a,b\) are symmetric about the mode, i.e. equal tails \(\alpha/2\). Theorem 9.3.2.

Exercise 9.40

NoteStem (abridged)

Symmetry \(\Rightarrow\) optimal \(m\pm k\); likelihood regions and HPD are symmetric.

TipSolution

From 9.39. The highest-likelihood set \(\{\theta:L(\theta)\ge k\}\) is MLE \(\pm c\) when \(L\) is symmetric about the MLE. For a unimodal symmetric posterior the HPD is posterior mode (\(=\) mean) \(\pm k\).

Exercise 9.41

NoteStem (abridged)

Strictly decreasing density on \([0,\infty)\): the shortest interval starts at \(0\). Example 9.2.13.

TipSolution

(a) For fixed length \(c\), \(\int_a^{a+c}f\) is maximized at \(a=0\) because \(f\) is decreasing. So the shortest interval attaining \(1-\alpha\) takes \(a=0\).

(b) \(Y-\mu\) has a strictly decreasing density (exponential). Shortest: \(0\le Y-\mu\le -\log(\alpha)/n\), i.e. \([Y+\log\alpha/n,\,Y]\).

Exercise 9.42

NoteStem (abridged)

Shortest pivot for a gamma scale: \(f(b)b^2=f(a)a^2\).

TipSolution

(a) \(b(a)\) is defined by \(\int_a^{b}f=1-\alpha\). \(\frac{d}{da}(1/a-1/b)=0\Rightarrow b'/a^2=1/b^2\Rightarrow b'=b^2/a^2\). Differentiating the constraint, \(f(b)b'-f(a)=0\Rightarrow f(b)b^2=f(a)a^2\).

(b) \(Y=X/\beta\sim\mathrm{gamma}(k,1)\), \(f(y)=y^{k-1}e^{-y}/\Gamma(k)\). \(b^{k+1}e^{-b}=a^{k+1}e^{-a}\) and \(\int_a^b f=1-\alpha\). Solve \((a,b)\) numerically, interval \([x/b,x/a]\).

Exercise 9.43

NoteStem (abridged)

Shortest pivotal set \(\{g<\lambda f\}\); apply to 9.37, 9.42.

TipSolution

(a) Same as NP: minimize \(\int_C g\) subject to \(\int_C f\ge 1-\alpha\), solution \(\{g-\lambda f<0\}\).

(b) 9.37: \(g(t)=1/t^2\) (length \(\propto\int_a^b t^{-2}dt\)), \(f=nt^{n-1}\), gives \(b=1\), \(a=\alpha^{1/n}\). 9.42: \(g=1/t^2\), \(f\) gamma, gives \(b^2 f(b)=a^2 f(a)\).

Exercise 9.44

NoteStem (abridged)

UMA one-sided intervals for Poisson and logistic.

TipSolution

(a) UMP rejects large \(Y=\sum X_i\). Inverting \(H_1:\lambda>\lambda_0\) gives the upper bound \(\{\lambda:Y\le c(\lambda)\}\), i.e. \(\lambda\le U(Y)\), the Garwood upper end: \(\lambda\le \chi^2_{2(Y+1),\alpha}/(2n)\). This is a UMA upper bound.

(b) Logistic location, one observation. An upper bound comes from inverting \(H_0:\theta=\theta_0\) vs \(H_1:\theta<\theta_0\) (UMP rejects small \(x\)). Acceptance \(x\ge\theta_0-d\) with \(F(-d)=\alpha\) gives \(d=\log((1-\alpha)/\alpha)\) and \[ U(x)=x+\log\frac{1-\alpha}{\alpha}=x-F^{-1}(\alpha), \] since \(F^{-1}(\alpha)=\log(\alpha/(1-\alpha))\). (The display \(U(x)=x-\log((1-\alpha)/\alpha)\) is the lower endpoint.)

Exercise 9.45

NoteStem (abridged)

Exponential UMA upper bound; Madansky’s shorter expected length.

TipSolution

(a) UMP rejects small \(\sum X_i\) (small \(\lambda\) concentrates the density near \(0\)—book \(H_1:\lambda<\lambda_0\)). Reject \(\sum X_i\le \chi^2_{2n,\alpha}\cdot\lambda_0/2\).

(b) Invert: \(\lambda\le 2\sum x_i/\chi^2_{2n,\alpha}\), i.e. \(C^*\).

(c) \(E\sum X_i=n\lambda\), \(E\,\mathrm{Len}(C^*)=2n\lambda/\chi^2_{2n,\alpha}\).

(d) \(n=120\), \(1-\alpha=0.3\), \(\chi^2_{240,0.7}=251.046\), \(E\,\mathrm{Len}(C^*)=240\lambda/251.046=0.956\lambda\). Madansky: \(E(-X_{(1)}/\log 0.99)=(\lambda/n)/0.01005\approx 0.829\lambda\). UMA need not have shortest expected length.

Exercise 9.46

NoteStem (abridged)

Unbiased acceptance region \(\Rightarrow\) unbiased confidence set.

TipSolution

\(P_\theta(\theta'\in C(X))=P_\theta(X\in A(\theta'))=\beta_{\text{accept}}(\theta;\theta')\). Unbiased test: \(P_{\theta'}(X\notin A(\theta'))=\alpha\) and power \(\ge\alpha\) for \(\theta\neq\theta'\), i.e. \(P_\theta(X\in A(\theta'))\le 1-\alpha\).

Exercise 9.47

NoteStem (abridged)

One-sided normal bounds are unbiased.

TipSolution

Upper bound \(C=(-\infty,\bar X+z_\alpha\sigma/\sqrt n]\). \(P_\theta(\theta'\in C)=P(\theta'\le\bar X+z_\alpha\sigma/\sqrt n)=\Phi(z_\alpha+\sqrt n(\theta-\theta')/\sigma)\). If \(\theta'>\theta\) this is \(<1-\alpha\); if \(\theta'<\theta\) it is \(>1-\alpha\), but one-sided false coverage is computed only for \(\theta'>\theta\) (9.3.2). Hence unbiased in the one-sided sense. The lower bound is symmetric.

Exercise 9.48

NoteStem (abridged)

The \(t\) interval comes from the LRT and is unbiased.

TipSolution

(a) Example 9.2.4 / Exercise 8.37. (b) Exercise 8.38. (c) The \(t\) test is UMPU \(\Rightarrow\) the interval is unbiased (9.46).

Exercise 9.49

NoteStem (abridged)

Cox’s paradox: mixed variances.

TipSolution

(a) Conditional on \(\sigma\), rejecting \(X>\theta_0+z_\alpha\sigma\) is conditionally level \(\alpha\), hence unconditionally as well. Invert: \(C=(-\infty,X-z_\alpha\sigma]\) (\(\sigma\) the observed one).

(b) With probability \(p\) one draws \(\sigma=10\) and always rejects (when \(\alpha>p\) this uses up that part of Type I), and the remaining \(\alpha-p\) is assigned to \(\sigma=1\) samples. Stronger, but after inversion the set is empty with positive probability (always reject \(\Leftrightarrow\) empty acceptance region). Optimal yet “unreasonable.”

Exercise 9.50

NoteStem (abridged)

A UMA set remains UMA under a strictly increasing transform; \(1/\theta\) can be disconnected.

TipSolution

(a) \(\{1/\theta:1/b\le 1/\theta\}\cup\{1/\theta:1/\theta\le 1/a\}\) when \(a<0<b\). UMA because the false-coverage event is just a relabeling of the parameter. Can be unbounded and not an interval.

(b) Strictly increasing \(h\) preserves order, inversion is one-to-one, UMA is inherited. Strictly decreasing swaps left and right, still UMA (the swapped one-sided version). Nonmonotone maps need not work.

Exercise 9.51

NoteStem (abridged)

Location family \(\bar x\pm\) a constant has constant coverage.

TipSolution

The distribution of \(\bar X-\theta\) is free of \(\theta\) (a location family remains a location family for the mean). \(P(\bar X-k_1\le\theta\le\bar X+k_2)=P(-k_2\le\bar X-\theta\le k_1)\) is constant.

Exercise 9.52

NoteStem (abridged)

Four optimality constraints for \(\sigma^2\); numerics for \(n=3\), \(\alpha=0.1\).

TipSolution

Interval \(\{(n-1)s^2/b\le\sigma^2\le(n-1)s^2/a\}\), \(\int_a^b f_{n-1}=1-\alpha\).

(a) The LRT uses \(\hat\sigma^2=\frac{n-1}{n}s^2\) and the constraint \(\sigma_0\); algebra gives \(f_{n+2}(a)=f_{n+2}(b)\). (b) Length \(\propto(1/a-1/b)\), as in 9.42, \(f_{n+3}(a)=f_{n+3}(b)\) (two extra degrees because of the density of \(s^2\) and the transform). (c) Unbiased / minimize false coverage: \(f_{n+1}(a)=f_{n+1}(b)\). (d) Equal tails: \(F_{n-1}(a)=\alpha/2\), \(1-F_{n-1}(b)=\alpha/2\).

(e) \(n=3\), \(\alpha=0.1\), constraint \(e^{-a/2}-e^{-b/2}=0.9\). Independent numerical solve:

rule constraint \(a\) \(b\) \(1/a-1/b\)
equal tails \(F_2(a)=F_2(b)^c=\alpha/2\) \(0.1026\) \(5.991\) \(9.58\)
unbiased \(f_4(a)=f_4(b)\) \(0.168\) \(7.87\) \(5.84\)
LRT \(f_5(a)=f_5(b)\) \(0.2065\) \(12.52\) \(4.76\)
min length \(f_6(a)=f_6(b)\) \(0.2105\) \(18.0\) \(4.70\)

Equal tails is longest. The pair \(a\approx 0.21\), \(b\approx 7\) is near the unbiased upper end, not LRT.

Exercise 9.53

NoteStem (abridged)

Length–coverage loss with known \(\sigma\).

TipSolution

(a) \(R=2bc\sigma-P(|Z|\le c)\). (b) \(\frac{dR}{dc}=2b\sigma-\sqrt{2/\pi}\,e^{-c^2/2}\), increasing in \(c\). (c) If \(b\sigma>1/\sqrt{2\pi}\) the derivative is already positive at \(0\), so the minimum is at \(c=0\). (d) Otherwise \(e^{-c^2/2}=b\sigma\sqrt{2\pi}\), \(c=\sqrt{-2\log(b\sigma\sqrt{2\pi})}\). Setting this equal to \(z_{\alpha/2}\) recovers the ordinary interval.

Exercise 9.54

NoteStem (abridged)

Unknown \(\sigma\), loss uses \(\mathrm{Len}/\sigma\).

TipSolution

(a) \(\mathrm{Len}=2cS\), \(E(S/\sigma)=M\), \(P(|\bar X-\mu|\le cS)=P(|T|\le c)\), \(T\sim t_\nu\). (b) Differentiate in \(c\): \(2bM=2f_T(c)\), and the \(t\) density gives \[ b=\frac{1}{\sqrt{2\pi}}\Bigl(\frac{\nu}{\nu+c^2}\Bigr)^{(\nu+1)/2} \] (\(M\) and the \(t\)-density constant cancel; matches the book). (c) \(\nu\to\infty\), \(t\to n(0,1)\), \(M\to 1\), back to 9.53.

Exercise 9.55

NoteStem (abridged)

When \(s\) is large, a \(C'\) that reports the empty set has smaller risk.

TipSolution

Risk of \(C\) is \(2bc E S-(2P(T\le c)-1)\). \(C'\) is empty when \(S\ge K\), length \(0\), coverage \(0\). Choose \(K\) large: with small probability one sacrifices coverage, but when \(S\) is huge the length term \(b\cdot 2cS\) of \(C\) is enormous. There exists \(K\) such that \(R(C')\le R(C)\) everywhere (for large \(\sigma\), \(S\) often exceeds \(K\), risk of \(C'\) \(\to 0\) while \(b E\,\mathrm{Len}\) of \(C\) is \(\propto\sigma\to\infty\)). So a loss that does not divide length by \(\sigma\) is unreasonable.

Exercise 9.56

NoteStem (abridged)

Bayes rule \(\{\theta:\pi(\theta\mid x)\ge b\}\).

TipSolution

Posterior expected loss \(b\int_C 1\,d\theta-\int_C\pi(\theta\mid x)\,d\theta=\int_C(b-\pi(\theta\mid x))\,d\theta\). Minimizing means taking \(\{\pi\ge b\}\) (NP: \(g=1\), \(f=\pi\)).

Exercise 9.57

NoteStem (abridged)

Prediction intervals and tolerance intervals.

TipSolution

(a) \(X_{n+1}-\bar X\sim n(0,\sigma^2(1+1/n))\), so \(\bar x\pm z_{\alpha/2}\sigma\sqrt{1+1/n}\). (b) To cover a \(p\)-quantile mass of the distribution: \(\bar x\pm z_{\alpha/2}\sigma(1+1/\sqrt n)\) is one approximate tolerance form (the book’s factor). A strict tolerance interval is more involved. (c) Unknown \(\sigma\): \(\bar x\pm t_{n-1,\alpha/2}s\sqrt{1+1/n}\).

Exercise 9.58

NoteStem (abridged)

Distribution-free intervals / prediction / tolerance for the median.

TipSolution

\(P(X_i\le m)=1/2\) iid.

(a) \(P(m\le X_{(n)})=1-P(\text{all}>m)=1-2^{-n}\). Likewise \([X_{(1)},\infty)\). Two-sided \(P(X_{(1)}\le m\le X_{(n)})=1-2\cdot 2^{-n}\).

(b) \(P(X_{n+1}\le X_{(n)})=n/(n+1)\) (the new observation is not the largest among \(n+1\)). Two-sided \((n-1)/(n+1)\).

(c) \(P(X_{(n)}\ge F^{-1}(p))=1-p^n\). Two-sided: \(1-p^n-n(1-p)p^{n-1}\) (all \(<F^{-1}(p)\), or exactly one \(\ge\) and the minimum still \(>F^{-1}(1-p)\), etc.; Vardeman’s formula).