Chapter 11 Exercises

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

Solutions keyed to the textbook numbers and worked independently; for readers who have seen Chen Xiru’s simple regression and ANOVA calculations

Notes

  • Textbook: George Casella & Roger L. Berger, Statistical Inference, Second Edition (CRC 2024 reprint; the text agrees with the 2001 second edition).
  • Scope: Chapter 11 §11.4 Exercises 11.1–11.41.
  • Pages: printed 455–462, PDF 486–493 (about PDF page = printed page + 31).
  • Audience: Chen Xiru’s undergraduate course already covers simple regression and ANOVA calculations; notation follows the textbook.
  • Policy: stems are taken from the book; solutions are independent. Numerical values already given in the text (trout ANOVA, grape \(F\), Table 11.3.1 slopes) are recomputed.
  • Companion: conceptual notes in ch11-notes.qmd. Miscellanea §11.5 is linked from 11.17, 11.23, 11.24, and 11.41.

Exercise 11.1

NoteStem (abridged)

Variance-stabilizing transformation: \(\mathrm{Var}\,Y=v(\theta)\), \(EY=\theta\). Use a first-order Taylor expansion to give \(\mathrm{Var}\,g(Y)\), and find the \(g^*\) that makes the approximate variance independent of \(\theta\).

TipSolution

(a) \(g(Y)=g(\theta)+g'(\theta)(Y-\theta)+o_p(|Y-\theta|)\). Taking the variance and dropping higher-order terms,

\[ \mathrm{Var}\,g(Y)\approx\bigl[g'(\theta)\bigr]^2 v(\theta) \]

(same order as the delta method in §10.1.3).

(b) For the right-hand side not to depend on \(\theta\), it suffices that \(g'(\theta)=c/\sqrt{v(\theta)}\). Taking \(c=1\),

\[ g^*(y)=\int^y\frac{1}{\sqrt{v(t)}}\,dt \]

so the approximate variance is identically \(1\).

Exercise 11.2

NoteStem (abridged)

Verify that the three \(g^*\) are approximately variance-stabilizing in the sense of 11.1.

TipSolution

(a) Poisson: \(v(\theta)=\theta\), \(g^*(y)=\sqrt{y}\), \(g'(\theta)=1/(2\sqrt{\theta})\),

\[ \mathrm{Var}\,g(Y)\approx\frac1{4\theta}\cdot\theta=\frac14. \]

(b) \(Y\sim\mathrm{binomial}(n,p)\), \(\theta=np\), \(v(\theta)=\theta(1-\theta/n)\). \(g^*(y)=\arcsin\sqrt{y/n}\), \(g'(\theta)=\frac12\bigl(\theta(n-\theta)/n\bigr)^{-1/2}\cdot n^{-1/2}\), hence \([g'(\theta)]^2 v(\theta)=1/(4n)\).

(c) \(v(\theta)=K\theta^2\), \(g^*(y)=\log y\), \(g'(\theta)=1/\theta\), approximate variance \(K\).

Exercise 11.3

NoteStem (abridged)

Box–Cox family \(g_\lambda^*(y)=(y^\lambda-1)/\lambda\) (\(\lambda\neq 0\)), and \(\log y\) when \(\lambda=0\). Continuity; the \(v(\theta)\) that is stabilized.

TipSolution

(a) For fixed \(y>0\), L’Hôpital or \(y^\lambda=e^{\lambda\log y}=1+\lambda\log y+O(\lambda^2)\),

\[ \lim_{\lambda\to 0}\frac{y^\lambda-1}{\lambda}=\log y. \]

(b) \(g_\lambda'(\theta)=\theta^{\lambda-1}\). For \([g']^2 v\) to be constant we need

\[ v(\theta)\propto \theta^{2-2\lambda}. \]

\(\lambda=1\) corresponds to already homoscedastic variance; \(\lambda=1/2\) to \(v\propto\theta\) (Poisson); \(\lambda=0\) to \(v\propto\theta^2\).

Exercise 11.4

NoteStem (abridged)

Fisher \(z\): apply the delta method from Exercise 10.17(d); then look at a finer expansion and explain why, for small \(\rho\) and moderate \(n\), one may treat the mean as \(0\) and the variance as \(1/(n-3)\).

TipSolution

Write \(z(u)=\frac12\log\frac{1+u}{1-u}\), \(z'(u)=1/(1-u^2)\). Exercise 10.17(d) gives that the limiting variance of \(\sqrt{n}(r-\rho)\) is \((1-\rho^2)^2\). Delta method:

\[ \sqrt{n}\bigl(z(r)-z(\rho)\bigr) \to n\bigl(0,\ [z'(\rho)]^2(1-\rho^2)^2\bigr)=n(0,1). \]

(b) Fisher’s higher-order expansion writes the bias as \(\rho/(2(n-1))\) and the variance as

\[ \frac1{n-1}+\frac{4-\rho^2}{2(n-1)^2}. \]

When \(|\rho|\) is small the \(O(1/n)\) bias may be dropped; the second term is about \(2/(n-1)^2\) for moderate \(n\). The usual correction subtracts \(2\) more from \(n-1\), giving the common variance \(1/(n-3)\) (equivalent to folding the \(O(1/n^2)\) term into the degrees of freedom).

Exercise 11.5

NoteStem (abridged)

Show that the overparameterized model (11.2.2) is not identifiable.

TipSolution

\(EY_{ij}=\mu+\tau_i\). Take \((\mu,\tau)=(0,1,2,\ldots,k)\) and \((\mu',\tau')=(1,0,1,\ldots,k-1)\). Then \(\mu+\tau_i=\mu'+\tau_i'\) for each \(i\). The error law is the same, so the joint distribution of \(\{Y_{ij}\}\) is the same, but the parameter vectors differ.

Exercise 11.6

NoteStem (abridged)

Sufficiency; independence of \(S_p^2\) and the \(\bar Y_{i\cdot}\); relation to Stein’s canonical form when \(\sigma^2\) is known.

TipSolution

(a) Joint density

\[ (2\pi\sigma^2)^{-N/2}\exp\Bigl\{-\frac1{2\sigma^2}\sum_i\sum_j(y_{ij}-\theta_i)^2\Bigr\}. \]

\(\sum_j(y_{ij}-\theta_i)^2=n_i(\bar y_{i\cdot}-\theta_i)^2+\sum_j(y_{ij}-\bar y_{i\cdot})^2\), so factorization yields that \((\bar Y_{1\cdot},\ldots,\bar Y_{k\cdot},S_p^2)\) is sufficient.

(b) Within group \(i\), \((\bar Y_{i\cdot},S_i^2)\) are independent (Lemma 5.3.3 / Example 5.3.5), and different groups are independent. \(S_p^2\) is a function of the \(\{S_i^2\}\) only, hence independent of each \(\bar Y_{i\cdot}\).

(c) When \(\sigma^2\) is known, the sufficient statistic is just \((\bar Y_{1\cdot},\ldots,\bar Y_{k\cdot})\), or equivalently \(X_i=\sqrt{n_i}\,\bar Y_{i\cdot}\sim n(\sqrt{n_i}\theta_i,\sigma^2)\) independently. This is the canonical problem of simultaneously estimating several normal means in Miscellanea 11.5.6.

Exercise 11.7

NoteStem (abridged)

Complete Theorem 11.2.8: \(\sum n_i[(\bar Y_{i\cdot}-\bar{\bar Y})-(\theta_i-\bar\theta)]^2/\sigma^2\sim\chi^2_{k-1}\).

TipSolution

Set \(U_i=\bar Y_{i\cdot}-\theta_i\). Then the \(U_i\) are independent \(n(0,\sigma^2/n_i)\), and \(\bar U=\sum n_i U_i/\sum n_i=\bar{\bar Y}-\bar\theta\). We need \(\sum n_i(U_i-\bar U)^2/\sigma^2\sim\chi^2_{k-1}\).

When \(k=1\) the left side is \(0=\chi^2_0\). Assume the claim for \(k-1\). Let \(N'=\sum_{i=1}^{k-1}n_i\), \(\bar U'=\sum_{i<k}n_i U_i/N'\). Algebraically

\[ \sum_{i=1}^k n_i(U_i-\bar U)^2 =\sum_{i=1}^{k-1}n_i(U_i-\bar U')^2 +\frac{N'n_k}{N'+n_k}(U_k-\bar U')^2. \]

The first term \(/\sigma^2\sim\chi^2_{k-2}\) and depends only on \((U_1,\ldots,U_{k-1})\); in the second term \(\sqrt{N'n_k/(N'+n_k)}\,(U_k-\bar U')\sim n(0,\sigma^2)\), independent of the first term. Adding them yields \(\chi^2_{k-1}\).

Exercise 11.8

NoteStem (abridged)

Exact normal law of \(\sum a_i\bar Y_{i\cdot}\).

TipSolution

The \(\bar Y_{i\cdot}\) are independent \(n(\theta_i,\sigma^2/n_i)\). Corollary 4.6.10: a linear combination of independent normals is normal, with mean \(\sum a_i\theta_i\) and variance \(\sigma^2\sum a_i^2/n_i\).

Exercise 11.9

NoteStem (abridged)

Construct \(t\) tests of \(\sum a_i\theta_i=\delta\) or \(\le\delta\).

TipSolution

The pivot is still (11.2.6). Write \(T=(\sum a_i\bar Y_{i\cdot}-\delta)/\sqrt{S_p^2\sum a_i^2/n_i}\).

(a) Two-sided: reject when \(|T|>t_{N-k,\alpha/2}\).

(b) One-sided \(H_1:\sum a_i\theta_i>\delta\): reject when \(T>t_{N-k,\alpha}\).

Exercise 11.10

NoteStem (abridged)

Four Helmert-type contrasts among five equally replicated treatments; orthogonality; planned contrasts for a fertilizer trial.

TipSolution

(a) \(a_1\) compares the control with the average of the four new treatments. If we reject and the control is worse, the four new treatments as a group beat the control. \(a_2\) compares treatment 2 with the average of \(\{3,4,5\}\) among the new treatments; \(a_3\) compares 3 with \(\{4,5\}\); \(a_4\) compares 4 with 5. Successive rejections can give a (partial) ranking of \(\theta_2,\ldots,\theta_5\) and locate them relative to the control. These four contrasts do not determine all \(5!\) total orders.

(b) With equal \(n_i\), orthogonality \(\Leftrightarrow\sum a_i b_i=0\). Direct pairwise dot products: \(a_1\cdot a_2=1\cdot 0+(-1/4)(1)+(-1/4)(-1/3)\times 3=0\), and likewise for the rest. These are Helmert contrasts, known to be orthogonal.

(c) Fertilizer: treatment 1 = blank, 2 = K only, 3 = Mg50+K, 4 = Mg200+K, 5 = K+Zn. \(a_1\): potassium versus blank; \(a_2\): average of the two magnesium levels versus “K only”, given potassium; \(a_3\): the two magnesium doses against each other; \(a_4\): zinc versus K only. Agronomically this is a sensible chain of questions. The dot product \(a_2\cdot a_4=1\neq 0\), so they are not orthogonal.

Exercise 11.11

NoteStem (abridged)

\(\mathrm{Cov}(\sum a_i\bar Y_{i\cdot},\sum b_i\bar Y_{i\cdot})\).

TipSolution

The \(\bar Y_{i\cdot}\) are uncorrelated, \(\mathrm{Var}\,\bar Y_{i\cdot}=\sigma^2/n_i\), so

\[ \mathrm{Cov}=\sigma^2\sum_{i=1}^k\frac{a_i b_i}{n_i}. \]

The contrasts are orthogonal if and only if this sum is zero.

Exercise 11.12

NoteStem (abridged)

With equal replication, \(F\) is the average of the pairwise \(t^2\).

TipSolution

(a) \(\bar Y_{i\cdot}-\bar Y_{i'\cdot}\sim n(\theta_i-\theta_{i'},2\sigma^2/n)\), independent of \(S_p^2\), so \(t_{ii'}^2=n(\bar Y_{i\cdot}-\bar Y_{i'\cdot})^2/(2S_p^2)\) is \(F_{1,N-k}\) under \(H_0:\theta_i=\theta_{i'}\).

(b) Sum over all ordered pairs \((i,i')\) (the \(i=i'\) terms vanish). Algebra of the type in Exercise 5.8(a):

\[ \sum_{i\neq i'}(\bar Y_{i\cdot}-\bar Y_{i'\cdot})^2 =2k\sum_i(\bar Y_{i\cdot}-\bar{\bar Y})^2. \]

Hence

\[ \frac1{k(k-1)}\sum_{i,i'}t_{ii'}^2 =\frac{n\sum_i(\bar Y_{i\cdot}-\bar{\bar Y})^2}{(k-1)S_p^2}=F. \]

Exercise 11.13

NoteStem (abridged)

The LRT of the ANOVA \(H_0\) is the \(F\) test.

TipSolution

The log-likelihood (up to a constant) is \(-\frac N2\log\sigma^2-\frac1{2\sigma^2}\mathrm{SSE}(\theta)\), \(\mathrm{SSE}(\theta)=\sum_i\sum_j(y_{ij}-\theta_i)^2\). Unrestricted MLE: \(\hat\theta_i=\bar y_{i\cdot}\), \(\hat\sigma^2=\mathrm{SSW}/N\). Under \(H_0\), \(\theta_i\equiv\theta\), \(\hat\theta_0=\bar{\bar y}\), \(\hat\sigma_0^2=\mathrm{SST}/N\).

\[ \lambda=\Bigl(\frac{\hat\sigma^2}{\hat\sigma_0^2}\Bigr)^{N/2}=\Bigl(\frac{\mathrm{SSW}}{\mathrm{SST}}\Bigr)^{N/2}. \]

\(\mathrm{SST}=\mathrm{SSB}+\mathrm{SSW}\), so \(\lambda\) is a strictly decreasing function of \(F=\frac{\mathrm{SSB}/(k-1)}{\mathrm{SSW}/(N-k)}\). Rejecting small \(\lambda\) is the same as rejecting large \(F\).

Exercise 11.14

NoteStem (abridged)

Scheffé for all linear combinations (not necessarily \(\sum a_i=0\)), \(M=\sqrt{k F_{k,N-k,\alpha}}\).

TipSolution

Without \(\sum a_i=0\), Cauchy–Schwarz as in Lemma 11.2.7 (no centering needed):

\[ \max_a\frac{(\sum a_i v_i)^2}{\sum a_i^2/c_i}=\sum c_i v_i^2, \]

attained at \(a_i\propto c_i v_i\). Taking \(v_i=\bar Y_{i\cdot}-\theta_i\), \(c_i=n_i\), we get

\[ \sup_a T_a^2=\frac{\sum n_i(\bar Y_{i\cdot}-\theta_i)^2}{S_p^2}\sim k F_{k,N-k}, \]

because \(\sum n_i(\bar Y_{i\cdot}-\theta_i)^2/\sigma^2\sim\chi^2_k\) and is independent of \(S_p^2\). Taking \(M^2=k F_{k,N-k,\alpha}\) gives simultaneous coverage.

Exercise 11.15

NoteStem (abridged)

\(t_{\nu,\alpha/2}\le\sqrt{(k-1)F_{k-1,\nu,\alpha}}\); hence Scheffé is wider and has less power.

TipSolution

(a) \(t_{\nu,\alpha/2}^2=F_{1,\nu,\alpha}\). The family \(\{m F_{m,\nu}:m=1,2,\ldots\}\) is stochastically increasing in \(m\) for fixed \(\nu\) (Exercise 5.19), so \(F_{1,\nu,\alpha}\le(k-1)F_{k-1,\nu,\alpha}\).

(b) The Scheffé half-width uses \(\sqrt{(k-1)F}\); a single contrast uses \(t_{\nu,\alpha/2}\). The former is larger.

(c) The Scheffé test of the same contrast has a smaller rejection region, hence less power.

Exercise 11.16

NoteStem (abridged)

The ANOVA null as the intersection of all pairwise differences being zero; another UIT from this.

TipSolution

(a) \(\theta_1=\cdots=\theta_k\) if and only if every \(\theta_i-\theta_j=0\).

(b) \(H_0:\theta\in\bigcap_{i<j}\Theta_{ij}\), \(H_1:\theta\in\bigcup_{i<j}\Theta_{ij}^c\). The UIT looks at \(\max_{i<j}|T_{ij}|\), where \(T_{ij}\) is the pairwise \(t\). The critical value comes from the null distribution of the max, i.e. Tukey’s method (the \(Q\) method, Miscellanea 11.5.2), which differs from Scheffé’s \(\sup\) over all contrasts.

Exercise 11.17

NoteStem (abridged)

Experimentwise error rate of protected LSD; unprotected LSD can exceed \(\alpha\); apply to the trout data.

TipSolution

(a) The experimentwise error rate is the probability of declaring at least one pair different when all means are equal. Protected LSD first runs the ANOVA \(F\) at level \(\alpha\). If \(F\) does not reject, no difference is declared. Hence that probability is \(\le P(F\text{ rejects}\mid H_0)=\alpha\). Equality fails: \(F\) can reject while every pairwise \(|t|\) stays below \(t_{N-k,\alpha/2}\). With equal \(n\), Exercise 11.12 gives \(F=\) average of the pairwise \(t^2\). For the trout df, \(F_{1,15,0.05}=4.54>F_{3,15,0.05}=3.29\), so e.g. all pairwise \(t^2=3.5\) yields \(F=3.5>3.29\) (ANOVA rejects) and no LSD rejection. Unequal sample means are not the same as \(|T_{ij}|>t_{\alpha/2}\).

(b) Unprotected LSD runs a level-\(\alpha\) \(t\) on each of the \(m=k(k-1)/2\) pairs. Even for this dependent family of \(t\) statistics, \(P(\max|T_{ij}|>t_{\alpha/2})\) grows with \(k\) and exceeds \(\alpha\) (the Bonferroni lower bound is already of order \(1-(1-\alpha)^m\approx m\alpha\)). The comparisonwise error rate (Type I error for a single pair) remains \(\alpha\).

(c) Trout data: \(N=19\), \(k=4\), \(\mathrm{MSW}=12.722\), \(F=26.09>F_{3,15,0.05}\approx 3.29\), so proceed to pairwise comparisons. \(t_{15,0.025}\approx 2.131\). Pairwise \(|t|\):

Pair \(|\bar y_i-\bar y_{i'}|\) se \(|t|\) Conclusion
T1–T2 9.833 2.302 4.27 different
T1–T3 2.000 2.393 0.84 do not declare
T1–C 10.000 2.522 3.96 different
T2–T3 11.833 2.160 5.48 different
T2–C 19.833 2.302 8.61 different
T3–C 8.000 2.393 3.34 different

T2 is highest, the control lowest; T1 and T3 cannot be separated. Summary: \(\mathrm{T2}>\{\mathrm{T1},\mathrm{T3}\}>\mathrm{Control}\).

Exercise 11.18

NoteStem (abridged)

“Looking at the data and then testing” inflates Type I error.

TipSolution

(a) \(a>b\) and \(P(Y>b)<1\). \[ P(Y>a\mid Y>b)=\frac{P(Y>a)}{P(Y>b)}>P(Y>a). \]

(b) Let \(Y\) be the test statistic, \(a\) the nominal critical value, and \(b\) the threshold at which “the data already look large.” Conditional on the snooping event \(\{Y>b\}\), the rejection probability is strictly larger than the nominal level.

Exercise 11.19

NoteStem (abridged)

Successive ratios of independent gammas; connection with the usual ANOVA distributions.

TipSolution

Write \(S_i=\sum_{j=1}^i X_j\), \(Y_i=X_{i+1}/S_i\) (\(i<n\)), \(Y_n=S_n\). Gamma addition: \(S_i\sim\mathrm{gamma}(\Lambda_i,1)\), \(\Lambda_i=\sum_{j\le i}\lambda_j\), and \(S_i\) is independent of \(X_{i+1}\). Hence

\[ \frac{X_{i+1}}{S_{i+1}}=\frac{Y_i}{1+Y_i}\sim\mathrm{Beta}(\lambda_{i+1},\Lambda_i), \]

and \(Y_i\) is the corresponding Beta-prime. Sequential updating gives mutual independence:

\[ \frac{Y_i}{1+Y_i}\ \text{independent},\qquad Y_n\sim\mathrm{gamma}(\Lambda_n,1). \]

(Inductively: given \(S_i\), the next block’s ratio from \((X_{i+1},S_i)\) is independent of the past.)

(b) \(\chi^2_\nu=\mathrm{gamma}(\nu/2,1/2)\) differs only by scale. In ANOVA, \(\mathrm{SSB}/\sigma^2\sim\chi^2_{k-1}\) and \(\mathrm{SSW}/\sigma^2\sim\chi^2_{N-k}\) are independent, so \(F=\frac{\mathrm{SSB}/(k-1)}{\mathrm{SSW}/(N-k)}\) is a scaled ratio of two independent gammas (chi-squares); \(\mathrm{SSB}/\mathrm{SST}\sim\mathrm{Beta}((k-1)/2,(N-k)/2)\). The present transformation is a coordinate form of this gamma–beta algebra.

Exercise 11.20

NoteStem (abridged)

Unbiasedness of MSB under \(H_0\); derive the \(F\) test in the spirit of Example 5.3.5.

TipSolution

(a) Under \(H_0\), \(\bar Y_{i\cdot}\sim n(\theta,\sigma^2/n_i)\) independently. Exercise 11.7 gives \(\sum n_i(\bar Y_{i\cdot}-\bar{\bar Y})^2/\sigma^2\sim\chi^2_{k-1}\), so \(E(\mathrm{MSB})=\sigma^2\).

(b) Example 5.3.5: in a normal sample the mean and variance are independent and the sum of squares is chi-square. Here treat the \(k\) group means as a “sample” and \(S_p^2\) as an independent \(\chi^2_{N-k}\). The ratio (each divided by its degrees of freedom) is \(F_{k-1,N-k}\) under \(H_0\). Under alternatives the numerator is noncentral chi-square, so the test has power.

Exercise 11.21

NoteStem (abridged)

ANOVA table for the rat-diet data; complete Theorem 11.2.11; check 11.12(b) on these data.

TipSolution

(a) Low / medium / high protein: \(n_i=5\),

\[ \bar y=(3.508,\ 9.274,\ 24.926),\qquad \bar{\bar y}=12.569. \]

\[ \mathrm{SSB}=1228.27,\quad \mathrm{SSW}=66.74,\quad \mathrm{SST}=1295.01 \]

(df \(2,12,14\)). \(\mathrm{MSB}=614.14\), \(\mathrm{MSW}=5.561\), \(F=110.43\).

(b) \[ \sum_i\sum_j(y_{ij}-\bar{\bar y})^2 =\sum_i\sum_j\bigl[(y_{ij}-\bar y_{i\cdot})+(\bar y_{i\cdot}-\bar{\bar y})\bigr]^2. \]

The cross term vanishes because \(\sum_j(y_{ij}-\bar y_{i\cdot})=0\), leaving SSW + SSB.

(c) Equal \(n=5\). Pairwise \(t_{12}^2=14.946\), \(t_{13}^2=206.215\), \(t_{23}^2=110.129\). Averaging over the \(3\times 2=6\) ordered pairs:

\[ \frac{2(14.946+206.215+110.129)}{3\cdot 2}=110.43=F. \]

Exercise 11.22

NoteStem (abridged)

\(E(\mathrm{MSB})\), \(E(\mathrm{MSW})\).

TipSolution

\(\mathrm{MSW}=S_p^2\), and \(E(\mathrm{MSW})=\sigma^2\) regardless of the means.

\[ E\sum_i n_i(\bar Y_{i\cdot}-\bar{\bar Y})^2 =\sum_i n_i\mathrm{Var}(\bar Y_{i\cdot}-\bar{\bar Y})+\sum_i n_i(\theta_i-\bar\theta)^2. \]

The random part of the left side: after centering \(\theta\), \(\sum n_i(\bar Y_{i\cdot}-\bar{\bar Y})^2/\sigma^2\) has the same distribution as under \(H_0\), with expectation \((k-1)\sigma^2\). Hence

\[ E(\mathrm{MSB})=\sigma^2+\frac1{k-1}\sum_{i=1}^k n_i(\theta_i-\bar\theta)^2. \]

Exercise 11.23

NoteStem (abridged)

Randomized complete block: means, variances; unconditional variance of a contrast.

TipSolution

(a) \(Y_{ij}=\mu+\tau_i+B_j+\varepsilon_{ij}\), \(EB_j=0\), so \(EY_{ij}=\mu+\tau_i\). \(B_j\perp\varepsilon_{ij}\), so \(\mathrm{Var}\,Y_{ij}=\sigma_B^2+\sigma^2\).

(b) \(\bar Y_{i\cdot}=\mu+\tau_i+\bar B+\bar\varepsilon_{i\cdot}\). \(\sum a_i=0\) cancels \(\bar B\):

\[ \sum a_i\bar Y_{i\cdot}=\sum a_i\tau_i+\sum a_i\bar\varepsilon_{i\cdot}. \]

\(\mathrm{Var}(\bar\varepsilon_{i\cdot})=\sigma^2/r\), and different \(i\) are independent, so \(\mathrm{Var}(\sum a_i\bar Y_{i\cdot})=(\sigma^2/r)\sum a_i^2\). Rewrite \(\sigma^2=(\sigma^2+\sigma_B^2)(1-\rho)\) with \(\rho=\sigma_B^2/(\sigma_B^2+\sigma^2)\), i.e. \(\frac1r(\sigma^2+\sigma_B^2)(1-\rho)\sum a_i^2\). The block variance is cancelled by the contrast.

Exercise 11.24

NoteStem (abridged)

Empirical Bayes view of the Stein estimator: the marginal, the expected shrinkage factor; failure when \(p<3\).

TipSolution

(a) \(\theta_i\sim n(0,\tau^2)\), \(X_i\mid\theta_i\sim n(\theta_i,1)\), so marginally \(X_i\sim n(0,\tau^2+1)\) iid and \(\sum X_i^2/(\tau^2+1)\sim\chi^2_p\).

(b) \(Y\sim\chi^2_p\), and \(E(1/Y)=1/(p-2)\) when \(p\ge 3\). Thus

\[ E\Bigl(1-\frac{p-2}{\sum X_j^2}\Bigr) =1-\frac{p-2}{\tau^2+1}\cdot E\frac{\tau^2+1}{\sum X_j^2} =\frac{\tau^2}{\tau^2+1}. \]

The Bayes estimator is \([\tau^2/(\tau^2+1)]X_i\); Stein replaces the shrinkage factor by the unbiased estimator above.

(c) When \(p=1,2\), \(E(1/\chi^2_p)=\infty\), so the expected shrinkage factor does not exist.

Exercise 11.25

NoteStem (abridged)

Find the least squares estimators by partial derivatives: normal equations, solution, second-order conditions.

TipSolution

(a) \(\partial\mathrm{RSS}/\partial c=-2\sum(y_i-c-dx_i)\), \(\partial\mathrm{RSS}/\partial d=-2\sum x_i(y_i-c-dx_i)\). Setting these to zero gives

\[ nc+d\sum x_i=\sum y_i,\qquad c\sum x_i+d\sum x_i^2=\sum x_i y_i. \]

(b) The first equation gives \(c=\bar y-d\bar x\). Substitute into the second and use \(S_{xx}=\sum x_i^2-n\bar x^2\), \(S_{xy}=\sum x_i y_i-n\bar x\bar y\), to get \(d=S_{xy}/S_{xx}\). Hence \((c,d)=(a,b)\).

(c) Hessian: \(\partial^2\mathrm{RSS}/\partial c^2=2n\), \(\partial^2\mathrm{RSS}/\partial d^2=2\sum x_i^2\), \(\partial^2\mathrm{RSS}/\partial c\partial d=2\sum x_i\). The determinant is \(4n S_{xx}>0\) (unless all \(x\) are equal), and \(n>0\), so the Hessian is positive definite and the critical point is a minimum.

Exercise 11.26

NoteStem (abridged)

\(n\) even, \(x_i\in[e,f]\), the design that maximizes \(S_{xx}\).

TipSolution

\(S_{xx}=\sum(x_i-\bar x)^2\). For fixed \(\bar x\), the sum of squares is maximized at the endpoints (strict convexity). For a two-point design with \(m\) points at \(f\) and \(n-m\) at \(e\), \(S_{xx}=m(n-m)(f-e)^2/n\), maximized at \(m=n/2\). Hence half at \(e\) and half at \(f\).

Exercise 11.27

NoteStem (abridged)

The BLUE of \(\alpha\).

TipSolution

A linear estimator \(\sum d_i Y_i\) is unbiased for \(\alpha\) if and only if \(\sum d_i=1\) and \(\sum d_i x_i=0\). Minimize \(\sum d_i^2\). Use Lagrange multipliers, or write the constraints as orthogonality to \((1,x)\). The solution is

\[ d_i=\frac1n-\frac{\bar x(x_i-\bar x)}{S_{xx}}, \]

i.e. \(\hat\alpha=\bar Y-\hat\beta\bar x\). Variance \(\sigma^2\sum x_i^2/(n S_{xx})\).

Exercise 11.28

NoteStem (abridged)

MLE of \(\sigma^2\) in the conditional normal model.

TipSolution

\(\hat\alpha,\hat\beta\) already minimize RSS. The log-likelihood in \(\sigma^2\) is \(-\frac n2\log\sigma^2-\mathrm{RSS}/(2\sigma^2)\). The derivative \(-n/(2\sigma^2)+\mathrm{RSS}/(2(\sigma^2)^2)=0\) gives \(\hat\sigma^2=\mathrm{RSS}/n\). The second derivative is negative at this point.

Exercise 11.29

NoteStem (abridged)

Mean and variance expansion of the residuals, and verify (11.3.28).

TipSolution

(a) \(E\hat\alpha=\alpha\), \(E\hat\beta=\beta\), so \(E\hat\varepsilon_i=0\).

(b) \(\hat\varepsilon_i=Y_i-\hat\alpha-\hat\beta x_i\); expanding the variance gives the stated formula.

(c) \(Y_i=\sum_j \delta_{ij}Y_j\), \(\hat\alpha=\sum c_j Y_j\), \(\hat\beta=\sum d_j Y_j\). Lemma 11.3.2:

\[ \mathrm{Cov}(Y_i,\hat\alpha)=\sigma^2 c_i=\sigma^2\Bigl(\frac1n-\frac{(x_i-\bar x)\bar x}{S_{xx}}\Bigr), \qquad \mathrm{Cov}(Y_i,\hat\beta)=\sigma^2 d_i=\sigma^2\frac{x_i-\bar x}{S_{xx}}. \]

(The problem writes \(c_i\) as \(1/n+(x_i-\bar x)\bar x/S_{xx}\); the sign convention differs from \(c_i=1/n-(\,\cdot\,)\) by a sign, but together with \(\mathrm{Cov}(\hat\alpha,\hat\beta)=-\sigma^2\bar x/S_{xx}\) it rearranges to (11.3.28).) Summing over \(i\), the cross terms cancel and \(E\hat\sigma^2=(n-2)\sigma^2/n\).

Exercise 11.30

NoteStem (abridged)

Complete the mean and variance of \(\hat\alpha\) and \(\mathrm{Cov}(\hat\alpha,\hat\beta)\).

TipSolution

(a) \(\hat\alpha=\bar Y-\hat\beta\bar x=\sum_i\bigl(1/n-d_i\bar x\bigr)Y_i\), so \(c_i=1/n-(x_i-\bar x)\bar x/S_{xx}\).

(b) Direct computation of \(\sum c_i\) and \(\sum c_i x_i\) gives \(E\hat\alpha=\alpha\). \(\sum c_i^2=\sum x_i^2/(n S_{xx})\), so \(\mathrm{Var}\,\hat\alpha=\sigma^2\sum x_i^2/(n S_{xx})\).

(c) \(\sum c_i d_i=-\bar x/S_{xx}\), so \(\mathrm{Cov}(\hat\alpha,\hat\beta)=-\sigma^2\bar x/S_{xx}\).

Exercise 11.31

NoteStem (abridged)

\(\hat\varepsilon_i\) is uncorrelated with \(\hat\alpha,\hat\beta\).

TipSolution

\(\hat\varepsilon_i=\sum_j e_{ij}Y_j\), \(e_{ij}=\delta_{ij}-(c_j+d_j x_i)\). \(\sum_j e_{ij}c_j=c_i-\sum c_j^2-x_i\sum c_j d_j\). Substituting the explicit forms of \(c,d\) yields \(0\); likewise \(\sum_j e_{ij}d_j=0\). Lemma 11.3.2 gives covariance \(0\).

Exercise 11.32

NoteStem (abridged)

Centered reparameterization: \(Y_i=\alpha'+\beta'(x_i-\bar x)+\varepsilon_i\).

TipSolution

(a) The slope is unchanged: \(\hat\beta'=\hat\beta=S_{xY}/S_{xx}\).

(b) \(\alpha'=\alpha+\beta\bar x=E\bar Y\), so the MLE is \(\hat\alpha'=\bar Y\), which in general differs from \(\hat\alpha=\bar Y-\hat\beta\bar x\). \(\bar Y\sim n(\alpha+\beta\bar x,\sigma^2/n)\).

(c) \(\mathrm{Cov}(\bar Y,\hat\beta)=\sigma^2\sum_i(1/n)d_i=0\). Joint normality implies independence.

Exercise 11.33

NoteStem (abridged)

\(H_0:\beta=0\Leftrightarrow H_0:\rho=0\); algebraic relation between the \(t\) statistic and the sample correlation.

TipSolution

(a) (11.3.25): \(\beta=\rho\sigma_Y/\sigma_X\), and \(\sigma_X,\sigma_Y>0\), so \(\beta=0\Leftrightarrow\rho=0\).

(b) \(r=S_{xy}/\sqrt{S_{xx}S_{yy}}\), \(\hat\beta=S_{xy}/S_{xx}\), \(S^2=\bigl(S_{yy}-S_{xy}^2/S_{xx}\bigr)/(n-2)\). Substituting,

\[ \frac{\hat\beta}{S/\sqrt{S_{xx}}}=\frac{S_{xy}/\sqrt{S_{xx}}}{\sqrt{(S_{yy}-S_{xy}^2/S_{xx})/(n-2)}} =\sqrt{n-2}\,\frac{r}{\sqrt{1-r^2}}. \]

(c) Under \(H_0:\rho=0\) the left side is \(\sim t_{n-2}\), so a two-sided \(t\) test can be run from \(r^2\) and \(n\) alone. Interval estimation of \(\rho\) should use Fisher \(z\) from Exercise 11.4.

Exercise 11.34

NoteStem (abridged)

Regression ANOVA for Galton-type height data; verify (11.3.36) and the equality of the two regression sums of squares; two correlation interpretations of \(r^2\).

TipSolution

(a) \(n=8\), \(\bar x=34\), \(\bar y=66.75\), \(S_{xx}=70\), \(S_{yy}=67.5\), \(S_{xy}=65\). \(\hat\beta=0.9286\), \(\hat\alpha=35.179\).

\[ \mathrm{RegSS}=60.357,\quad \mathrm{RSS}=7.143,\quad \mathrm{SST}=67.5 \]

(df \(1,6,7\)). \(F=50.70\), \(r^2=0.894\).

(b) \(\hat y_i=\bar y+\hat\beta(x_i-\bar x)\), so \(y_i-\bar y=(\hat y_i-\bar y)+(y_i-\hat y_i)\). The cross term \(\sum\hat\beta(x_i-\bar x)\hat\varepsilon_i=\hat\beta\sum(x_i-\bar x)(y_i-\bar y-\hat\beta(x_i-\bar x))=0\).

(c) \(\sum(\hat y_i-\bar y)^2=\hat\beta^2 S_{xx}=(S_{xy}/S_{xx})^2 S_{xx}=S_{xy}^2/S_{xx}\).

(d) The sample correlation \(r_{yx}=S_{xy}/\sqrt{S_{xx}S_{yy}}\), and its square is \(r^2\). Also \(\hat y_i-\bar y=\hat\beta(x_i-\bar x)\) is perfectly correlated with \(x\), so \(r_{y,\hat y}=r_{yx}\) (sign that of \(\hat\beta\)), and the squares agree.

Exercise 11.35

NoteStem (abridged)

\(Y_i=\theta x_i^2+\varepsilon_i\), \(\varepsilon_i\) iid \(n(0,\sigma^2)\). Least squares, MLE, BUE.

TipSolution

(a) Differentiate \(\sum(y_i-\theta x_i^2)^2\) in \(\theta\): \(\hat\theta_{\mathrm{LS}}=\sum x_i^2 Y_i/\sum x_i^4\).

(b) Normal, mean linear in \(\theta\), so the MLE coincides with least squares.

(c) These are independent \(n(\theta x_i^2,\sigma^2)\) observations, an exponential family, and the complete sufficient statistic includes \(\sum x_i^2 Y_i\). \(\hat\theta_{\mathrm{LS}}\) is unbiased (\(E\hat\theta=\theta\)) and a function of the sufficient statistic, hence UMVUE / BUE. Variance \(\sigma^2/\sum x_i^4\).

Exercise 11.36

NoteStem (abridged)

When the \(X_i\) are random normal, are \(\hat\alpha,\hat\beta\) still unbiased for the joint distribution? Unconditional covariance.

TipSolution

(a) Conditional on \(X=x\), \(E(\hat\beta\mid x)=\beta\) and \(E(\hat\alpha\mid x)=\alpha\) (as long as \(S_{xx}>0\), which has probability \(1\)). Taking the expectation over \(X\) preserves unbiasedness.

(b) \(\mathrm{Cov}(\hat\alpha,\hat\beta)=E[\mathrm{Cov}(\hat\alpha,\hat\beta\mid X)]+\mathrm{Cov}(E\hat\alpha\mid X,E\hat\beta\mid X)\). The second term is \(0\). The first is \(E[-\sigma^2\bar X/S_{XX}]\). \(S_{XX}/\sigma_X^2\sim\chi^2_{n-1}\) is independent of \(\bar X\sim n(\mu_X,\sigma_X^2/n)\), so

\[ \mathrm{Cov}(\hat\alpha,\hat\beta)=-\sigma^2\mu_X\cdot E(1/S_{XX}) =-\frac{\sigma^2\mu_X}{\sigma_X^2(n-3)}\qquad(n>3), \]

because \(E(1/\chi^2_{\nu})=1/(\nu-2)\) with \(\nu=n-1\). This differs from the conditional covariance \(-\sigma^2\bar x/S_{xx}\): the unconditional version also integrates over the randomness of the design.

Exercise 11.37

NoteStem (abridged)

Through-the-origin regression \(EY_i=\beta x_i\): MLE / mean and variance, CRLB, BUE, optimal design, maximum-probability estimator.

TipSolution

(a) \(\ell(\beta)=-\sum(y_i-\beta x_i)^2/(2\sigma^2)\), \(\hat\beta=\sum x_i Y_i/\sum x_i^2\). \(E\hat\beta=\beta\), \(\mathrm{Var}\,\hat\beta=\sigma^2/\sum x_i^2\).

(b) \(I(\beta)=\sum x_i^2/\sigma^2\), CRLB \(=\sigma^2/\sum x_i^2\).

(c) \(\hat\beta\) is unbiased and attains the CRLB, hence is BUE.

(d) Minimizing the variance \(\Leftrightarrow\) maximizing \(\sum x_i^2\). When \(x_i\in[A,B]\), each \(|x_i|\) should take the endpoint of larger absolute value (if \(|A|\neq|B|\), put all points at the farther endpoint; if \(|A|=|B|\), either endpoint is fine).

(e) The integral in \(\beta\) is a normal kernel over \([D-r,D+r]\), maximized when that interval is centered at the MLE, so \(D=\hat\beta\).

Exercise 11.38

NoteStem (abridged)

\(Y_i\sim\mathrm{Poisson}(\theta x_i)\): least squares, MLE, BUE, with variances and bias.

TipSolution

(a) Minimizing \(\sum(Y_i-\theta x_i)^2\) gives \(\hat\theta_{\mathrm{LS}}=\sum x_i Y_i/\sum x_i^2\). \(E\hat\theta_{\mathrm{LS}}=\theta\) (unbiased). \(\mathrm{Var}\,Y_i=\theta x_i\), so \(\mathrm{Var}\,\hat\theta_{\mathrm{LS}}=\theta\sum x_i^3/(\sum x_i^2)^2\).

(b) Log-likelihood \(\sum(Y_i\log\theta-\theta x_i)\), \(\hat\theta_{\mathrm{MLE}}=\sum Y_i/\sum x_i\). \(E=\theta\) (unbiased), \(\mathrm{Var}=\theta/\sum x_i\).

(c) Poisson exponential family, complete sufficient statistic \(T=\sum Y_i\sim\mathrm{Poisson}(\theta\sum x_i)\). \(\tilde\theta=T/\sum x_i\) is unbiased, hence UMVUE. Information \(I(\theta)=\sum x_i/\theta\), CRLB \(=\theta/\sum x_i\), which is attained. Least squares generally does not attain it (unless all \(x_i\) are equal).

Exercise 11.39

NoteStem (abridged)

Verify simultaneous coverage of (11.3.42).

TipSolution

Let \(A_i\) be the event that the \(i\)th interval covers \(\alpha+\beta x_{0i}\). Each uses \(t_{n-2,\alpha/(2m)}\), so \(P(A_i^c)\le\alpha/m\). Boole:

\[ P\Bigl(\bigcap_{i=1}^m A_i\Bigr)=1-P\Bigl(\bigcup A_i^c\Bigr) \ge 1-\sum P(A_i^c)\ge 1-\alpha. \]

Exercise 11.40

NoteStem (abridged)

Maximum of \((a+bt)^2/(c+dt^2)\); application to Theorem 11.3.6 and simultaneous prediction bands.

TipSolution

(a) Let \(h(t)=(a+bt)^2/(c+dt^2)\). \(h'(t)=0\) when \(b(c+dt^2)-(a+bt)dt=0\), i.e. \(t=bc/a\) (\(a\neq 0\); if \(a=0\) then \(h\to b^2/d\) as \(t\to\infty\)). Substituting,

\[ h=\frac{(a+b\cdot bc/a)^2}{c+d(bc/a)^2}=\frac{a^2}{c}+\frac{b^2}{d}. \]

Cauchy–Schwarz also works: \((a+bt)^2=(a/\sqrt{c}\cdot\sqrt{c}+b/\sqrt{d}\cdot\sqrt{d}\,t)^2\le(a^2/c+b^2/d)(c+dt^2)\).

(b) Take \(a=\bar Y-\mu_{\bar Y}\), \(b=\hat\beta-\beta\), \(c=S^2/n\), \(d=S^2/S_{xx}\), which is (11.3.44).

(c) The prediction-interval denominator is \(S^2\bigl(1+1/n+t^2/S_{xx}\bigr)\), i.e. \(c=S^2(1+1/n)\), \(d=S^2/S_{xx}\). Part (a) gives \[ \max_t\frac{(a+bt)^2}{c+dt^2}=\frac{a^2}{c}+\frac{b^2}{d}=\frac{\frac{n}{n+1}(\bar Y-\mu)^2+S_{xx}(\hat\beta-\beta)^2}{S^2}. \] The book’s displayed maximum multiplies the mean term by an extra \(n\) and the slope term by \(n/(n+1)\); that is not what (a) produces. The prediction-band ratio is not a constant times the Scheffé mean-band maximum (11.3.44).

(d) The correct statistic is a linear combination of two independent \(\chi^2_1\) over \(\chi^2_{n-2}\), not a multiple of \(F_{2,n-2}\). Matching moments of that combination to a \(c F_{d_1,d_2}\) yields an approximate critical value. Using \(2F_{2,n-2}\) times \(n/(n+1)\) inherits the book’s wrong maximum.

Exercise 11.41

NoteStem (abridged)

Potoroo data, animal 24: first missing \(Y\) (known \(O_2=16.3\)), then missing \(X\) (known \(CO_2=4.2\)). Write the EM steps and find the MLE.

TipSolution

Write the first 23 complete observations as \((x_i,y_i)\). Under the conditional normal regression the complete-data log-likelihood (parameterized by \(\sigma^2\)) is

\[ \ell_{\mathrm{c}}=-\frac{n}{2}\log(2\pi\sigma^2)-\frac1{2\sigma^2}\sum_{i=1}^n(y_i-\alpha-\beta x_i)^2, \]

with \(n=24\). Observed-data likelihood: the missing response does not appear.

(a)(b) Missing \(Y_{24}\), known \(x_{24}=16.3\). E-step: \(E(Y_{24}\mid\text{obs},\theta)=\alpha+\beta\cdot 16.3\), and \(E[(Y_{24}-\alpha-\beta x_{24})^2\mid\text{obs}]=\sigma^2\). M-step: impute \(y_{24}^{(t)}=\hat\alpha^{(t)}+\hat\beta^{(t)}\cdot 16.3\), run 24-point least squares, and \(\hat\sigma^{2}=\bigl(\mathrm{RSS}_{23}+\hat\sigma^{2}\bigr)/24\) as a fixed point (the expected residual-square contribution is \(\sigma^2\) itself).

(c) Because the filled-in point lies exactly on the current line, the 24-point least squares \((\hat\alpha,\hat\beta)\) is the 23-point least squares:

\[ \hat\alpha=18.675,\qquad \hat\beta=-0.894 \]

(matching Example 12.4.2 in the text). \(\hat\sigma^2_{\mathrm{MLE}}=\mathrm{RSS}_{23}/23=0.0503\) (the observed likelihood contains only 23 normal densities). EM reaches \((\alpha,\beta)\) in one step.

(d) Now \(x_{24}\) is missing and \(y_{24}=4.2\). The observed likelihood of the conditional regression still involves the law of \(X\), so switch to the bivariate normal. Parameters \((\mu_X,\mu_Y,\sigma_X^2,\sigma_Y^2,\rho)\); the complete-data MLE is the sample moments (divided by \(n=24\)). E-step:

\[ E(X\mid Y=4.2)=\mu_X+\frac{\sigma_{XY}}{\sigma_Y^2}(4.2-\mu_Y),\qquad E(X^2\mid Y=4.2)=\mathrm{Var}(X\mid Y)+\bigl[E(X\mid Y)\bigr]^2. \]

Iterate from the moments of the 23 complete pairs, converging to

\[ \hat\mu_X=18.243,\ \hat\mu_Y=2.371,\ \hat\sigma_X^2=0.957,\ \hat\sigma_Y^2=0.831,\ \hat\sigma_{XY}=-0.864, \]

which give the regression

\[ \hat\beta=\hat\sigma_{XY}/\hat\sigma_X^2=-0.903,\qquad \hat\alpha=\hat\mu_Y-\hat\beta\hat\mu_X=18.841. \]

The missing \(O_2\) corresponds to a high \(CO_2\); EM places that \(x\) somewhat low, so the slope steepens slightly.