Chapter 7 Exercises

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

Independent solutions to Exercises 7.1–7.67.

Usage

  • Text: George Casella & Roger L. Berger, Statistical Inference, Second Edition.
  • Range: Chapter 7 §7.4 Exercises 7.1–7.67.
  • Pages: printed 287–297; PDF 318–328 (about PDF = printed + 31).
  • Companion notes: ch07-notes.qmd. Miscellanea 7.5.1 and 7.5.3 are used for MoM–MLE and Lehmann–Scheffé.
  • The text’s “Exercise 7.2.17” is read as Example 7.2.17.

Exercise 7.1

NoteStem (abridged)

A single discrete observation \(X\), \(\theta\in\{1,2,3\}\). Find the MLE.

TipSolution

For each \(x\) compare the three columns of probabilities:

\(x\) MLE
0 \(1\) (\(1/3>1/4>0\))
1 \(1\)
2 \(3\) (\(1/4=1/4\), but \(\theta=1\) has 0; \(\theta=2,3\) tie at \(1/4\), so both are MLEs)
3 \(3\) (\(1/2>1/4>1/6\))
4 \(3\) (\(1/4>1/6>0\))

When \(x=2\), \(\hat\theta\in\{2,3\}\).

Exercise 7.2

NoteStem (abridged)

gamma\((\alpha,\beta)\): MLE when \(\alpha\) is known; when both are unknown, solve numerically on the 7.10(c) data.

TipSolution

(a) \(\log L=-n\log\Gamma(\alpha)-n\alpha\log\beta+(\alpha-1)\sum\log x_i-\sum x_i/\beta\). \(\partial_\beta\): \(-n\alpha/\beta+\sum x_i/\beta^2=0\Rightarrow\hat\beta=\bar X/\alpha\).

(b) Profile: \(\hat\beta(\alpha)=\bar x/\alpha\); substitute and solve \(\psi(\hat\alpha)-\log\hat\alpha=\overline{\log x}-\log\bar x\) (\(\psi\) is the digamma). For the 7.10(c) data, \(n=14\), \(\bar x\approx 23.114\), \(\overline{\log x}-\log\bar x\approx -0.000972\). Numerical root \(\hat\alpha\approx 514.3\), \(\hat\beta=\bar x/\hat\alpha\approx 0.04494\). The data are tightly concentrated, the shape is large, and the gamma is close to normal.

Exercise 7.3

NoteStem (abridged)

Maximizing \(L\) is equivalent to maximizing \(\log L\).

TipSolution

\(\log\) is strictly increasing on \((0,\infty)\), so \(L(\theta_1)>L(\theta_2)\Leftrightarrow\log L(\theta_1)>\log L(\theta_2)\). The sets of maximizers coincide.

Exercise 7.4

NoteStem (abridged)

Prove Example 7.2.8: when \(\theta\ge 0\) the MLE is \(\bar X\vee 0\).

TipSolution

The unconstrained maximizer is at \(\bar x\). If \(\bar x\ge 0\) it already lies in the parameter space. If \(\bar x<0\), then for \(\theta\ge 0\), \(\sum(x_i-\theta)^2\) is minimized at \(\theta=0\) (Theorem 5.2.4, and \(\theta\) can only move to the right). The likelihood decreases as \(\sum(x_i-\theta)^2\) increases.

Exercise 7.5

NoteStem (abridged)

Binomial MLE for unknown \(k\) is \(\lfloor 1/\hat z\rfloor\); compute \(\hat k\) on the given data.

TipSolution

(a) \(L(k)/L(k-1)\ge 1\) if and only if \(k\le 1/z_*\), where \(z_*\) is the root of \((1-p)^n=\prod(1-x_i z)\). The largest integer \(k\) satisfying the inequality is \(\lfloor 1/z_*\rfloor\) (if it is exactly an integer one must check the convention for \(L(k+1)/L(k)<1\); the book uses \(\le\)).

(b) \(p=1/2\), \(n=4\), \(x=(0,20,1,19)\). Equation \((1-20z)(1-19z)(1-z)=1/16\). Unique root in \((0,1/20)\): \(\hat z\approx 0.038173\), \(1/\hat z\approx 26.197\). Hence \(\hat k=26\). Check: \(L(26)/L(25)\ge 1>L(27)/L(26)\).

Exercise 7.6

NoteStem (abridged)

\(f=\theta/x^2\), \(0<\theta\le x\). Sufficient statistic, MLE, MoM.

TipSolution

(a) \(L=\theta^n(\prod x_i^{-2})I(x_{(1)}\ge\theta)\). Sufficient: \(X_{(1)}\).

(b) \(L\) is increasing in \(\theta\) on \([0,x_{(1)}]\), so the MLE is \(\hat\theta=X_{(1)}\).

(c) \(EX=\infty\) (tail \(1/x^2\)), so the first moment does not exist and classical MoM fails. The inverse moment is \[ E(1/X)=\int_\theta^\infty x^{-1}\cdot\theta x^{-2}\,dx=\frac1{2\theta}, \] hence \(\tilde\theta=n\big/\bigl(2\sum X_i^{-1}\bigr)\).

Exercise 7.7

NoteStem (abridged)

Two densities: \(\theta=0\) is \(U(0,1)\), \(\theta=1\) is \(1/(2\sqrt x)\). MLE.

TipSolution

\(L(0)=\prod I_{(0,1)}(x_i)=1\) (all data in \((0,1)\)). \(L(1)=\prod(2\sqrt{x_i})^{-1}=2^{-n}(\prod x_i)^{-1/2}\). \(\hat\theta=1\) when \(L(1)>1\), i.e. \(\prod x_i<2^{-2n}\); otherwise \(\hat\theta=0\). Equivalent to \(\sum\log x_i<-2n\log 2\).

Exercise 7.8

NoteStem (abridged)

One \(n(0,\sigma^2)\). Unbiased estimator of \(\sigma^2\); MLE of \(\sigma\); MoM.

TipSolution

(a) \(EX^2=\sigma^2\), so \(X^2\) is unbiased.

(b) \(L\propto\sigma^{-1}\exp(-x^2/(2\sigma^2))\), \(\widehat{\sigma^2}=X^2\), \(\hat\sigma=|X|\) (invariance).

(c) \(E|X|=\sigma\sqrt{2/\pi}\), so the MoM of \(\sigma\) is \(|X|\sqrt{\pi/2}\). The second-moment MoM gives \(|X|\).

Exercise 7.9

NoteStem (abridged)

\(U(0,\theta)\): MoM and MLE, means and variances, which is better.

TipSolution

MoM: \(\tilde\theta=2\bar X\), \(E= \theta\), \(\mathrm{Var}=4\cdot(\theta^2/12)/n=\theta^2/(3n)\).

MLE: \(\hat\theta=X_{(n)}\), \(E=n\theta/(n+1)\), \(\mathrm{Var}=n\theta^2/[(n+1)^2(n+2)]\). The unbiased version \(\frac{n+1}n X_{(n)}\) has variance \(\theta^2/(n(n+2))\), much smaller than MoM. The MLE is biased but its MSE \(=\frac{2\theta^2}{(n+1)(n+2)}\) is still far smaller than \(\theta^2/(3n)\). Prefer estimators based on \(X_{(n)}\) (sufficient).

Exercise 7.10

NoteStem (abridged)

\(F=(x/\beta)^\alpha\), \(0\le x\le\beta\). Sufficiency, MLE, cuckoo-egg data.

TipSolution

Density \(f=\alpha x^{\alpha-1}/\beta^\alpha\), \(0<x<\beta\).

(a) \(L=\alpha^n(\prod x_i)^{\alpha-1}\beta^{-n\alpha}I(x_{(n)}\le\beta)\). Sufficient \((X_{(n)},\prod X_i)\).

(b) For fixed \(\alpha\), \(\hat\beta=X_{(n)}\). Then \(\partial_\alpha\): \(\hat\alpha=n/\sum\log(X_{(n)}/X_i)\).

(c) \(x_{(n)}=25.0\), \(\sum\log(25/x_i)\approx 1.11156\). \(\hat\alpha=14/1.11156\approx 12.59\), \(\hat\beta=25\).

Exercise 7.11

NoteStem (abridged)

\(f=\theta x^{\theta-1}\), \(0<x<1\). Variance of the MLE \(\to 0\); MoM.

TipSolution

(a) \(\hat\theta=-n/\sum\log X_i\). \(-\log X_i\sim\mathrm{Exp}(\theta)\) (rate), \(\sum(-\log X_i)\sim\mathrm{gamma}(n,1/\theta)\), and \(\hat\theta\) is \(n\) times the reciprocal. \(E\hat\theta=n\theta/(n-1)\) (\(n>1\)), \(\mathrm{Var}\hat\theta=n^2\theta^2/[(n-1)^2(n-2)]\to 0\).

(b) \(EX=\theta/(\theta+1)\), \(\tilde\theta=\bar X/(1-\bar X)\).

Exercise 7.12

NoteStem (abridged)

Bernoulli, \(\theta\le 1/2\). MoM, MLE, MSE.

TipSolution

(a) The unconstrained MLE is \(\bar X\); under the constraint \(\hat\theta=\bar X\wedge 1/2\). The MoM is the same (first moment): \(\tilde\theta=\bar X\wedge 1/2\). They coincide.

(b) \(Y\sim\mathrm{binomial}(n,\theta)\), \(\hat\theta= (Y/n)\wedge 1/2\).

\[ E\hat\theta=\sum_{k\le n/2}(k/n)\binom nk\theta^k(1-\theta)^{n-k}+\frac12 P(Y>n/2), \]

and the MSE is computed from this. When \(\theta<1/2\) and \(n\) is large, the estimator equals \(\bar X\) with high probability, so MSE \(\sim\theta(1-\theta)/n\).

(c) The same estimator.

Exercise 7.13

NoteStem (abridged)

The MLE of a double-exponential location is the sample median.

TipSolution

\(\log L=-n\log 2-\sum|x_i-\theta|\). Minimize \(\sum|x_i-\theta|\): for odd \(n\) at \(\theta=X_{((n+1)/2)}\); for even \(n\) any value in \([X_{(n/2)},X_{(n/2+1)}]\) is an MLE (the midpoint is the usual choice).

Exercise 7.14

NoteStem (abridged)

\(Z=\min(X,Y)\), \(W=I(Z=X)\), \(X\sim\mathrm{Exp}(\lambda)\), \(Y\sim\mathrm{Exp}(\mu)\). MLE from iid pairs.

TipSolution

Exercise 4.26: \(Z\sim\mathrm{Exp}(\eta)\), \(\eta=\lambda\mu/(\lambda+\mu)\)? Standard: \(P(Z>z)=e^{-z/\lambda}e^{-z/\mu}\), rate \(1/\lambda+1/\mu\). \(W\sim\mathrm{Bernoulli}(\mu/(\lambda+\mu))\), \(W\perp Z\). Likelihood \(\prod \bigl[(1/\lambda)e^{-z_i(1/\lambda+1/\mu)}\bigr]^{w_i}\bigl[(1/\mu)e^{-z_i(1/\lambda+1/\mu)}\bigr]^{1-w_i}\). Let \(n_1=\sum W_i\), \(S=\sum Z_i\). \(\hat\lambda=S/n_1\) (if \(n_1>0\)), \(\hat\mu=S/(n-n_1)\). This is the MLE in exponential competing risks.

Exercise 7.15

NoteStem (abridged)

Inverse-Gaussian MLE; Tweedie’s independence: \(n=2\) and induction.

TipSolution

(a) Log-likelihood \(\frac n2\log\lambda-\frac12\sum\log(2\pi x_i^3)-\frac\lambda{2\mu^2}\sum(x_i-\mu)^2/x_i\). \(\partial_\mu\) gives \(\hat\mu=\bar X\); \(\partial_\lambda\) gives \(\hat\lambda=n/\sum(1/X_i-1/\bar X)\).

(b)(i) \(n=2\) is Exercise 6.27(b).
(ii) Induction: the joint of a new point \(x\) with \((\hat\mu_k,\hat\lambda_k)\), transformed to \((\hat\mu_{k+1},\hat\lambda_{k+1})\); the Jacobian and the exponential-family convolution produce the factor \(f_{\mathrm{IG}}(\hat\mu_{k+1})f_{\chi^2}(k\lambda/\hat\lambda_{k+1})\).

Exercise 7.16

NoteStem (abridged)

Generalized means, Box–Cox, lognormal MLE, exponential-family MLE.

TipSolution

(a) Differentiate \(\sum[h(x_i)-h(a)]^2\) in \(a\): \(h'(a)\sum(h(a)-h(x_i))=0\Rightarrow h(a)=\overline{h(x)}\).

(b) \(h=\mathrm{id}\) arithmetic; \(h=\log\) geometric; \(h=1/x\) harmonic.

(c) Box–Cox \(h=x^\lambda\) (\(\lambda\neq 0\)) is a power mean.

(d) \(\log X_i\sim n(\mu,\sigma^2)\), \(\hat\mu=\overline{\log X}\), the log geometric mean.

(e)(i) Log-likelihood \(\theta\sum h(x_i)-n H(\theta)\), \(H'=h\) \(\Rightarrow\) \(h(\hat\theta)=\overline{h(X)}\).
(ii) Normal \(h(x)=x\); inverse gamma \(h(x)=-1/x\) yields the harmonic mean.

Exercise 7.17

NoteStem (abridged)

Borel paradox: looking only at \(X_2\) versus only at \((X_2-1)/X_1\) gives different MLEs / posteriors on \(\{X_2=1\}\).

TipSolution

(a) \(X_2\sim\mathrm{Exp}(\theta)\) (book scale \(\theta\)), \(\hat\theta=X_2\).

(b) Joint of \((X_1,Z)\): Jacobian \(|x_1|\), \(Z=(X_2-1)/X_1\). The marginal density of \(Z\) depends on \(\theta\), and after observing \(z\) the likelihood is not a pure exponential.

(c) \(X_2=1\Leftrightarrow Z=0\). The two likelihoods, as functions of \(\theta\), differ, so the MLEs differ.

(d) Posterior \(\propto L(\theta)\pi(\theta)\); the two \(L\) differ \(\Rightarrow\) the posteriors differ. There is no unique way to condition on a probability-zero event.

Exercise 7.18

NoteStem (abridged)

Five-parameter bivariate normal: MoM = MLE.

TipSolution

(a) Matching first and second moments is the book’s \(\tilde\mu_X=\bar x\) etc., \(\tilde\rho=n^{-1}\sum(x_i-\bar x)(y_i-\bar y)/(\tilde\sigma_X\tilde\sigma_Y)\).

(b) \(f(y|x)f(x)\): the marginal \(X\sim n(\mu_X,\sigma_X^2)\) gives \(\hat\mu_X,\hat\sigma_X^2\) as in the univariate normal. The conditional \(Y\mid X\sim n(\mu_Y+\rho\sigma_Y/\sigma_X(x-\mu_X),\sigma_Y^2(1-\rho^2))\), then swap \(X\leftrightarrow Y\). The profile likelihood equation for \(\rho\) yields the sample correlation. Same as MoM (both use \(1/n\) rather than \(1/(n-1)\)).

Exercise 7.19

NoteStem (abridged)

Through-origin regression \(Y_i=\beta x_i+\varepsilon_i\). Sufficiency, MLE, distribution.

TipSolution

(a) Joint normal, sufficient \((\sum x_i Y_i,\sum Y_i^2)\).

(b) \(\hat\beta=\sum x_i Y_i/\sum x_i^2\). \(E\hat\beta=\beta\).

(c) \(\hat\beta\sim n\bigl(\beta,\sigma^2/\sum x_i^2\bigr)\).

Exercise 7.20

NoteStem (abridged)

\(\sum Y_i/\sum x_i\) is unbiased; compare its variance with the MLE.

TipSolution

\(E\sum Y_i=\beta\sum x_i\), hence unbiased. Since \(\mathrm{Var}(\sum Y_i)=n\sigma^2\), \[ \mathrm{Var}\Bigl(\frac{\sum Y_i}{\sum x_i}\Bigr)=\frac{n\sigma^2}{(\sum x_i)^2}. \] MLE variance \(\sigma^2/\sum x_i^2\). Cauchy–Schwarz \((\sum x_i)^2\le n\sum x_i^2\) gives \[ \frac{\sigma^2}{\sum x_i^2}\le\frac{n\sigma^2}{(\sum x_i)^2}, \] so the MLE is at least as precise (Gauss–Markov).

Exercise 7.21

NoteStem (abridged)

\(n^{-1}\sum(Y_i/x_i)\) is unbiased; compare variances.

TipSolution

\(E(Y_i/x_i)=\beta\), so the average is unbiased. Variance \(\sigma^2 n^{-2}\sum x_i^{-2}\). Typically larger than \(\sigma^2/\sum x_i^2\) (harmonic vs sum of squares).

Exercise 7.22

NoteStem (abridged)

Normal–normal: joint, marginal, posterior.

TipSolution

\(\bar X\mid\theta\sim n(\theta,\sigma^2/n)\), \(\theta\sim n(\mu,\tau^2)\). The joint is bivariate normal. Marginal \(\bar X\sim n(\mu,\sigma^2/n+\tau^2)\). Precisions add: posterior precision \(n/\sigma^2+1/\tau^2\), mean the \(n\)-sample version of (7.2.10)

\[ E(\theta\mid\bar x)=\frac{\tau^2\bar x+(\sigma^2/n)\mu}{\tau^2+\sigma^2/n},\qquad \mathrm{Var}=\frac{\tau^2\sigma^2/n}{\tau^2+\sigma^2/n}. \]

Exercise 7.23

NoteStem (abridged)

IG conjugate prior for \(\sigma^2\); posterior mean.

TipSolution

Likelihood \((s^2)^{-\nu/2}\exp(-(n-1)s^2/(2\sigma^2))\), \(\nu=n-1\). Multiply by \(IG(\alpha,\beta)\): \(\sigma^{-2(\alpha+1)}\exp(-1/(\beta\sigma^2))\). Combining gives \(IG\bigl(\alpha+\nu/2,\ \bigl[(n-1)s^2/2+1/\beta\bigr]^{-1}\bigr)\). The posterior mean (\(IG(\alpha',\beta')\) has mean \(1/((\alpha'-1)\beta')\), \(\alpha'>1\)) is

\[ \frac{(n-1)s^2/2+1/\beta}{\alpha+(n-1)/2-1}. \]

Exercise 7.24

NoteStem (abridged)

Poisson–gamma posterior.

TipSolution

(a) \(\sum X_i\sim\mathrm{Poisson}(n\lambda)\), \(\lambda\sim\mathrm{gamma}(\alpha,\beta)\) (scale \(\beta\)) \(\Rightarrow\) posterior \(\mathrm{gamma}(\alpha+\sum x_i,\ \beta/(1+n\beta))\).

(b) Posterior mean \((\alpha+\sum x_i)\beta/(1+n\beta)\), variance \((\alpha+\sum x_i)\beta^2/(1+n\beta)^2\).

Exercise 7.25

NoteStem (abridged)

Hierarchical normal: the marginals are iid.

TipSolution

(a) \(X_i=\theta_i+\varepsilon_i\), independent, \(\mathrm{Var}X_i=\sigma^2+\tau^2\), \(EX_i=\mu\). Distinct \(i\) are independent.

(b) In general: the marginal of \(X_i\) is \(\int f(x|\theta_i)\pi(\theta_i|\tau)\,d\theta_i\), and the \(\theta_i\) are independent \(\Rightarrow\) the \(X_i\) are iid.

Exercise 7.26

NoteStem (abridged)

Normal likelihood, double-exponential prior, posterior mean.

TipSolution

\(\pi(\theta|x)\propto\exp\bigl(-n(\bar x-\theta)^2/(2\sigma^2)-|\theta|/a\bigr)\). This is piecewise Gaussian. The posterior mean is a mixture of two truncated normals, with weights the integrals on either side of \(0\). It can be written

\[ E(\theta\mid x)=\frac{\int_{-\infty}^\infty \theta\exp\bigl(-n(\theta-\bar x)^2/(2\sigma^2)-|\theta|/a\bigr)\,d\theta}{\int\exp(\cdots)\,d\theta}. \]

Complete the square separately on each side: for \(\theta>0\) the center is \(\bar x-\sigma^2/(na)\). No simpler closed form (Mills ratios).

Exercise 7.27

NoteStem (abridged)

Example 7.2.17: complete-data MLE; the EM limit satisfies (7.2.16); explicit solution.

TipSolution

(a) \(\partial_{\tau_j},\partial_\beta\) of the log of (7.2.11) is (7.2.12).

(b) Let \(r\to\infty\); the fixed point of (7.2.23) is (7.2.16) (\(\hat\tau_1\) in place of the missing \(x_1\)).

(c) Eliminate \(y_1=\hat\tau_1\hat\beta\) and \(\hat\beta=\sum y_i/(\hat\tau_1+\sum_{i\ge 2}x_i)\) to get \(\hat\beta=\sum_{i\ge 2}y_i/\sum_{i\ge 2}x_i\), \(\hat\tau_1=y_1/\hat\beta\), \(\hat\tau_j=(x_j+y_j)/(\hat\beta+1)\).

Exercise 7.28

NoteStem (abridged)

Leukemia data: complete / missing \(x_1\) / missing \(y_1\).

TipSolution

Table: \(n=18\), \(\sum x=56252\), \(\sum y=47\).

(a) Complete: \(\hat\beta=47/56252\approx 8.355\times 10^{-4}\), \(\hat\tau_j=(x_j+y_j)/(\hat\beta+1)\). Missing \(x_1=3540\): use 7.27(c), \(\hat\beta=44/(56252-3540)=44/52712\approx 8.347\times 10^{-4}\), \(\hat\tau_1=3/\hat\beta\approx 3594\).

(b) Missing \(y_1=3\): symmetrically, \(x_1\) is present and the E-step fills \(E(Y_1\mid\cdot)=\beta\tau_1\). The fixed point \(\hat\beta=44/(56252-?)\) needs EM rewritten for missing \(y\): \(\hat\beta=(\hat\tau_1\hat\beta+\sum_{i\ge 2}y_i)/(\sum x_i)\) holds identically; in fact \(\hat\beta=\sum_{i\ge 2}y_i/\sum_{i\ge 2}x_i=44/52712\), unlike (a) with missing \(x_1\) (the denominator still contains \(x_1\)): \(\hat\beta=44/52712\) if one drops the pair? Correct: complete-data \(\hat\beta=\sum y/\sum x\). Missing \(y_1\) is filled by \(\hat y_1=\hat\beta\hat\tau_1=\hat\beta x_1/(\hat\beta+1)\). Solving gives \(\hat\beta=\sum_{i\ge 2}y_i/(\sum_{i\ge 2}x_i)=44/52712\approx 8.347\times 10^{-4}\), numerically close to the missing-population case but from a different formula.

Exercise 7.29

NoteStem (abridged)

\(Y_i\sim\mathrm{Poisson}(m\beta\tau_i)\), \(X\sim\mathrm{Mult}(m,\tau)\).

TipSolution

(a) The independent product is the book formula.

(b) The log-likelihood in \(\beta,\tau\) (\(\sum\tau=1\)) gives \(\hat\beta=\sum y/\sum x\), \(\hat\tau_j=(x_j+y_j)/(\sum x+\sum y)\).

(c) \(X_1\sim\mathrm{Bin}(m,\tau_1)\), \(E(X_1\mid\tau^{(r)})=m\tau_1^{(r)}\). Substituting into the complete-data MLE is the given sequence.

(d) Complete data: \(m=\sum x=56252\), \(\hat\beta=47/56252\), \(\hat\tau_j=(x_j+y_j)/(56252+47)\). With \(x_1\) missing, if \(m\) is still treated as known (the problem: treat \(m=\sum x\) as known) then use \(m=56252\) but \(x_1\) is unobserved—if \(m\) is known then \(x_1=m-\sum_{i\ge 2}x_i\) can actually be computed. If \(m\) is recomputed from the remainder, use EM (c).

Exercise 7.30

NoteStem (abridged)

EM for a two-component mixture.

TipSolution

(a) \(f(x,z)=\prod [p f(x_i)]^{z_i}[(1-p)g(x_i)]^{1-z_i}\).

(b) \(P(Z_i=1\mid x_i,p)=p f(x_i)/(p f+(1-p)g)\).

(c) Maximizing the expected complete-data log-likelihood in \(p\) gives \(\hat p^{(r+1)}=n^{-1}\sum P(Z_i=1\mid x_i,\hat p^{(r)})\).

Exercise 7.31

NoteStem (abridged)

Prove Theorem 7.2.20 (EM is monotone).

TipSolution

(a) (7.2.19) at \(\theta=\theta^{(r)}\) gives the decomposition. \(\theta^{(r+1)}\) maximizes \(E[\log L(\theta|y,X)\mid\theta^{(r)},y]\), so that term is nondecreasing; equality when the two expected complete-data log-likelihoods agree.

(b) Jensen: for the densities \(k(\cdot|\theta^{(r+1)},y)\) and \(k(\cdot|\theta^{(r)},y)\),

\[ E\bigl[\log\tfrac{k(\theta^{(r+1)})}{k(\theta^{(r)})}\bigm|\theta^{(r)},y\bigr]\le\log 1=0. \]

Hence \(-E\log k(\theta^{(r+1)})\) is at least \(-E\log k(\theta^{(r)})\). Combining the two pieces, \(L(\theta^{(r+1)}|y)\ge L(\theta^{(r)}|y)\).

Exercise 7.32

NoteStem (abridged)

Approximate the posterior by reweighting a prior sample (SIR).

TipSolution

(a) \(q_i=L(\theta_i|x)/\sum L(\theta_j|x)\). Same as Exercise 5.65, \(f=\pi(\theta|x)\propto L(\theta|x)\pi(\theta)\), \(g=\pi\), weights \(\propto L\). The empirical cdf \(\to\) the posterior cdf.

(b) Averages of bounded continuous \(h\) \(\to\) the posterior expectation.

(c) \(E[h(\theta_j^*)\mid\theta_{1:m}]=\sum q_i h(\theta_i)\). Rao–Blackwell: the conditional expectation has the same mean and smaller variance.

Exercise 7.33

NoteStem (abridged)

\(\alpha=\beta=\sqrt n/4\) makes the MSE of \(\hat p_B\) constant.

TipSolution

With \(\alpha=\beta=c\), \[ \mathrm{MSE}=\frac{c^2+(n-4c^2)p(1-p)}{(n+2c)^2}. \] The \(p(1-p)\) term vanishes iff \(c=\sqrt n/2\), and then \(\mathrm{MSE}=n\big/\bigl[4(n+\sqrt n)^2\bigr]\) with \(\hat p_B=(Y+\sqrt n/2)/(n+\sqrt n)\).

The stem / Example 7.3.5 prints \(c=\sqrt n/4\) and the same constant MSE. That pair is inconsistent: \(c=\sqrt n/4\) leaves a leftover \(\frac34 n\,p(1-p)\) in the numerator, while the displayed denominator \(n+\sqrt n\) is the \(c=\sqrt n/2\) case. Treat \(\sqrt n/2\) as the algebraically correct flattening constant (typesetting slip in the book).

Exercise 7.34

NoteStem (abridged)

Equivariant estimators of a binomial \(p\); the Bayes subclass; minimum MSE.

TipSolution

(a) \(T(x)=1-T(n-x)\) (Example 6.4.1).

(b) \(\hat p= (y+\alpha)/(\alpha+\beta+n)\) is equivariant \(\Leftrightarrow\) \(\alpha=\beta\) (symmetric prior).

(c) Minimize MSE in the \(\alpha=\beta\) class: as in the corrected 7.33, the constant-MSE choice is \(\alpha=\beta=\sqrt n/2\). Under squared error this flattens the risk and is often minimax.

Exercise 7.35

NoteStem (abridged)

Pitman location estimator.

TipSolution

(a) Translate numerator and denominator by \(x_i\mapsto x_i+a\), change of variable \(t\mapsto t+a\), get \(d_P(x+a)=d_P(x)+a\).

(b) Normal: \(\prod f(x_i-t)\propto\exp(-n(\bar x-t)^2/2)\), posterior (flat prior) mean \(=\bar x\).

(c) \(U(\theta-1/2,\theta+1/2)\): the likelihood is the set of \(t\) with all \(x_i\in(t-1/2,t+1/2)\), i.e. \(t\in(x_{(n)}-1/2,x_{(1)}+1/2)\), which is flat, so the midpoint \(\frac12(x_{(1)}+x_{(n)})\).

Exercise 7.36

NoteStem (abridged)

Pitman scale estimator.

TipSolution

(a) \(x\mapsto cx\), \(t\mapsto t/c\), \(dt\) contributes \(c^{-1}\), numerator \(c^{-(n+r)}\), denominator \(c^{-(n+2r)}\), ratio times \(c^{r}\).

(b) \(n(0,\sigma^2)\) estimating \(\sigma^2\) (\(r=2\)): \(\prod f(tx_i)\propto t^n\exp(-t^2\sum x_i^2/2)\). The integrals are gamma, giving \(d=\sum X_i^2/(n+2)\).

(c) Exponential\((\beta)\) estimating \(\beta\) (\(r=1\)): \(\sum X_i/(n+1)\).

(d) \(U(0,\theta)\) estimating \(\theta\): \(t\le 1/x_{(n)}\), the integrals give \(\frac{n+1}n X_{(n)}\)? Pitman for \(\sigma^r=\theta\): \(d=(n+1)/(n)X_{(n)}\) is exactly the UMVUE. Check: \(\int_0^{1/x_{(n)}} t^{n}\,dt/\int_0^{1/x_{(n)}} t^{n+1}\,dt\) (difference \(r\)) \(=\frac{n+2}{n+1}x_{(n)}\). The book’s \(r\) corresponds to \(\theta^r\); when estimating \(\theta\), \(r=1\), \(d_P=\frac{n+1}n X_{(n)}\). Checking powers: \(f(tx)=I(0<tx<\theta)\) for the standard \(f=I(0<u<1)\), \(\sigma=\theta\). \(\int_0^{1/x_{(n)}} t^{n+1-1}t^{n}\,dt\)by definition \(\int_0^{1/M}t^{n}\,dt\big/\int_0^{1/M}t^{n+1}\,dt=\frac{n+2}{n+1}M\). So the estimator of \(\theta\) is \(\frac{n+2}{n+1}X_{(n)}\). Follow the definition: \(d_{P,1}=\dfrac{n+2}{n+1}X_{(n)}\).

Exercise 7.37

NoteStem (abridged)

\(U(-\theta,\theta)\). UMVUE of \(\theta\)?

TipSolution

Sufficient \(T=\max_i|X_i|\). Density of \(T\) is \(n t^{n-1}/\theta^n\), \(0<t<\theta\), same as the max of \(U(0,\theta)\). Complete. \(ET=n\theta/(n+1)\), UMVUE \(=\frac{n+1}n T\).

Exercise 7.38

NoteStem (abridged)

For which \(g(\theta)\) does an unbiased estimator attain the CRLB?

TipSolution

Corollary 7.3.15: the score must be \(a(\theta)(W-g(\theta))\).

(a) \(f=\theta x^{\theta-1}\), \(\partial_\theta\log f=1/\theta+\log x\). Score \(=n/\theta+\sum\log X_i\), already of the form \(a(\theta)(\sum\log X_i-(-n/\theta))\). Hence \(g(\theta)=E\sum\log X_i=-n/\theta\) is attained. Equivalently estimate \(-1/\theta\) or \(\sum\log X_i\).

(b) \(f=\frac{\log\theta}{\theta-1}\theta^x\) on \((0,1)\). The score is already linear in \(x\): \[ \partial_\theta\log f=\frac1{\theta\log\theta}-\frac1{\theta-1}+\frac x\theta. \] Corollary 7.3.15 therefore applies to \(g(\theta)=EX\) (and to \(\sum X_i\)). Support \((0,1)\) is free of \(\theta\), so CRLB regularity is not the obstruction.

Exercise 7.39

NoteStem (abridged)

Prove Lemma 7.3.11.

TipSolution

\(\partial_\theta\log f=f^{-1}\partial_\theta f\). Differentiate again: \(\partial_{\theta\theta}\log f=f^{-1}\partial_{\theta\theta}f-(f^{-1}\partial_\theta f)^2\). Take expectations: \(E\partial_{\theta\theta}\log f=E(f^{-1}\partial_{\theta\theta}f)-I(\theta)\). Under interchange \(E(f^{-1}\partial_{\theta\theta}f)=\partial_{\theta\theta}\int f=0\). Hence \(I=-E\partial_{\theta\theta}\log f\).

Exercise 7.40

NoteStem (abridged)

Bernoulli \(\bar X\) attains the CRLB.

TipSolution

\(I_1(p)=1/(p(1-p))\), \(\mathrm{Var}\bar X=p(1-p)/n=1/(n I_1)\).

Exercise 7.41

NoteStem (abridged)

Optimal weights for a linear unbiased estimator of \(\mu\).

TipSolution

(a) \(E\sum a_i X_i=\mu\sum a_i\).

(b) \(\mathrm{Var}=\sigma^2\sum a_i^2\), constraint \(\sum a_i=1\). Lagrange gives \(a_i=1/n\), \(\mathrm{Var}=\sigma^2/n\).

Exercise 7.42

NoteStem (abridged)

Optimal weights for independent unbiased estimators.

TipSolution

(a) \(\min\sum a_i^2\sigma_i^2\) s.t. \(\sum a_i=1\). \(a_i\propto 1/\sigma_i^2\).

(b) \(\mathrm{Var}W^*=1/\sum(1/\sigma_i^2)\).

Exercise 7.43

NoteStem (abridged)

Tukey’s weight inequality.

TipSolution

(a) \(\mathrm{Var}W/\mathrm{Var}W^*=(\sum q_i^2\sigma_i^2)(\sum 1/\sigma_i^2)\). Set \(b_i=q_i/q_i^*\), \(q_i^*=(1/\sigma_i^2)/\sum(1/\sigma^2)\). Kantorovich / spectral: if \(m\le b_i\le M\), \((1/n\sum b)(1/n\sum 1/b)\le (M+m)^2/(4Mm)\), which rearranges to the form \((1+\lambda)/(1-\lambda)=M/m\).

(b) Equal weights \(q_i=1/k\). \(b_{\max}/b_{\min}=\sigma_{\max}^2/\sigma_{\min}^2\). The ratio \(\le 1/(1-\lambda^2)\).

Exercise 7.44

NoteStem (abridged)

\(n(\theta,1)\) estimating \(\theta^2\): UMVUE \(\bar X^2-1/n\), variance \(>\) CRLB.

TipSolution

\(\bar X\) is complete sufficient. \(E\bar X^2=\theta^2+1/n\), so \(\bar X^2-1/n\) is unbiased and hence UMVUE. Stein: \(E\bar X^3=\theta^3+3\theta/n\) etc., or \(\bar X\sim n(\theta,1/n)\), \(\mathrm{Var}(\bar X^2)=2/n^2+4\theta^2/n\). CRLB: \(I=n\), \(\tau=\theta^2\), \(\tau'=2\theta\), CRLB \(=4\theta^2/n<\mathrm{Var}\) (the extra \(2/n^2\)).

Exercise 7.45

NoteStem (abridged)

MSE of \(aS^2\); kurtosis; normal optimum \(a=(n-1)/(n+1)\).

TipSolution

(a) Expand directly.

(b) Same as 5.8(b): \(\mathrm{Var}S^2=n^{-1}\bigl(\kappa-\frac{n-3}{n-1}\sigma^4\bigr)\), \(\kappa=E(X-\mu)^4\).

(c) Normal \(\kappa=3\sigma^4\), \(\mathrm{Var}S^2=2\sigma^4/(n-1)\). Minimize \(a^2\cdot 2/(n-1)+(a-1)^2\) in \(a\) to get \(a=(n-1)/(n+1)\).

(d) \(a^*=\sigma^4/(\mathrm{Var}S^2+\sigma^4)\) is the expression in the problem.

(e) \(\kappa>3\) (heavy tails) \(\Rightarrow\) larger \(\mathrm{Var}S^2\) \(\Rightarrow\) smaller \(a^*\).

Exercise 7.46

NoteStem (abridged)

\(n=3\), \(U(\theta,2\theta)\). MoM, MLE, unbiased version, data.

TipSolution

(a) \(EX=3\theta/2\), \(\tilde\theta=2\bar X/3\).

(b) Likelihood \(\theta^{-3}I(\theta<x_{(1)},x_{(3)}<2\theta)\). \(\hat\theta=\max(X_{(1)},X_{(3)}/2)\). The \(k\) with \(E(k\hat\theta)=\theta\) is determined by integrating the density of \(\hat\theta\) (split on whether \(X_{(3)}<2X_{(1)}\)).

(c) MoM is not a function of the minimal sufficient \((X_{(1)},X_{(3)})\), so Rao–Blackwell can improve it. The MLE is already a function of \(T\).

(d) Data \(1.29,0.86,1.33\). \(\bar x=1.16\), \(\tilde\theta=0.773\). \(x_{(1)}=0.86\), \(x_{(3)}/2=0.665\), \(\hat\theta=0.86\).

Exercise 7.47

NoteStem (abridged)

Radius measured with \(n(0,\sigma^2)\) error. Unbiased estimator of the area of the circle.

TipSolution

Observe \(Y_i=r+\varepsilon_i\), \(\varepsilon_i\sim n(0,\sigma^2)\). Area \(\pi r^2\). \(\bar Y\) is complete sufficient (\(\sigma\) known). \(E\bar Y^2=r^2+\sigma^2/n\), UMVUE \(\pi(\bar Y^2-\sigma^2/n)\). If \(\sigma\) is unknown use \((\bar Y,S^2)\), \(\pi\bigl(\bar Y^2-S^2/n\bigr)\). It is UMVUE (a function of a complete sufficient statistic).

Exercise 7.48

NoteStem (abridged)

Bernoulli: the MLE of \(p\) attains the CRLB; estimating \(p^4\).

TipSolution

(a) Same as 7.40.

(b) \(E(X_1X_2X_3X_4)=p^4\). UMVUE \(=E(X_1X_2X_3X_4\mid\sum X_i)=\dfrac{\binom{n-4}{t-4}}{\binom n t}I(t\ge 4)=\dfrac{t(t-1)(t-2)(t-3)}{n(n-1)(n-2)(n-3)}\).

Exercise 7.49

NoteStem (abridged)

Exponential: unbiased estimator from \(Y=\min\); a better one; Kevlar data.

TipSolution

(a) \(Y\sim\mathrm{Exp}(\lambda/n)\) (scale), \(EY=\lambda/n\), so \(nY\) is unbiased.

(b) \(\bar X\) is a function of a complete sufficient statistic, \(E\bar X=\lambda\). \(\mathrm{Var}(nY)=\lambda^2\), \(\mathrm{Var}\bar X=\lambda^2/n\) is smaller. Rao–Blackwell: \(E(nY\mid\sum X_i)=\bar X\).

(c) Data \(n=12\), \(\min=50.1\), \(nY=601.2\). \(\bar x=124.825\).

Exercise 7.50

NoteStem (abridged)

\(n(\theta,\theta^2)\): linear unbiased combination of \(\bar X\) and \(cS\).

TipSolution

Choose \(c\) so that \(EcS=\theta\). (a) \(E[a\bar X+(1-a)cS]=\theta\).

(b) Compute \(\mathrm{Var}\bar X=\theta^2/n\), \(\mathrm{Var}(cS)\), \(\mathrm{Cov}(\bar X,S)=0\) (even in this curved family, \(\bar X\perp S^2\) still holds for normals!). Optimal \(a\propto 1/\mathrm{Var}\bar X\). \(\mathrm{Var}(cS)=c^2\mathrm{Var}S\), \(\mathrm{Var}S=\sigma^2\bigl(1-2(\Gamma(n/2))^2/((n-1)[\Gamma((n-1)/2)]^2)\bigr)\) etc. \(a^*=\mathrm{Var}(cS)/(\mathrm{Var}\bar X+\mathrm{Var}(cS))\).

(c) \((\bar X,S^2)\) is sufficient (6.15); not complete (curved family).

Exercise 7.51

NoteStem (abridged)

The linear class without the constraint \(a_1+a_2=1\); truncated improvement.

TipSolution

(a) MSE is quadratic in \(a_1,a_2\); differentiating the bias \(Ea_1\bar X+a_2 cS-\theta\) and the variance yields shrinkage: the coefficients of \(T^*\) sum to less than 1.

(b) A larger class, smaller MSE.

(c) \(\theta>0\), \(T^{*+}=\max(T^*,0)\) dominates, under squared error, any \(T^*\) that can be negative (for almost every realization).

(d) \(\theta\) enters both the mean and the scale; it is a scale-type parameter (\(\theta>0\)).

Exercise 7.52

NoteStem (abridged)

Poisson: \(\bar X\) is UMVUE; \(E(S^2\mid\bar X)=\bar X\).

TipSolution

(a) \(\sum X_i\) is complete sufficient, \(E\bar X=\lambda\).

(b) \(S^2\) is unbiased, \(E(S^2\mid\bar X)\) is a function of \(\bar X\) and unbiased, hence equals \(\bar X\) by completeness. Thus \(\mathrm{Var}S^2=E\mathrm{Var}(S^2\mid\bar X)+\mathrm{Var}\bar X>\mathrm{Var}\bar X\).

(c) In general: if two unbiased estimators of the same parameter are given and one is a function of a complete sufficient statistic, then it equals the conditional expectation of the other.

Exercise 7.53

NoteStem (abridged)

Complete Theorem 7.3.20: correlation with an unbiased-for-zero statistic precludes being UMVUE.

TipSolution

\(W+aU\) is unbiased. \(\mathrm{Var}(W+aU)=\mathrm{Var}W+2a\mathrm{Cov}+a^2\mathrm{Var}U\). If \(\mathrm{Cov}_{\theta_0}(W,U)\neq 0\), take \(a\) of opposite sign to the covariance and small enough, and the variance at \(\theta_0\) drops.

Exercise 7.54

NoteStem (abridged)

Nile: moments of \(T\); \(Z_1,Z_2\) unbiased; optimal linear combination.

TipSolution

(a) \(X_i\sim\mathrm{Exp}(\text{scale }1/\theta)\), \(Y_i\sim\mathrm{Exp}(\text{scale }\theta)\). \(T=(\sum Y/\sum X)^{1/2}\) (if so defined) or the book’s \(T=\sum Y/\sum X\). Using the book’s \(T=\sum Y/\sum X\): \(2\theta\sum X\sim\chi^2_{2n}\), \(2\sum Y/\theta\sim\chi^2_{2n}\) independent, \(T/\theta^2\) is \(F_{2n,2n}\). \(ET=\theta\cdot\frac{n}{n-1}\)? Mean of \(F_{\nu,\nu}\) is \(\nu/(\nu-2)=n/(n-1)\). The book’s version with \(\Gamma(n\pm 1/2)\) corresponds to \(E\sqrt T\). Direct integration of the gamma density gives it. \(U\) is ancillary (scale).

(b) \(Z_1=(n-1)/\sum X_i\): \(E\sum X=n/\theta\), \(\sum X\sim\mathrm{gamma}(n,1/\theta)\), \(E(1/\sum X)=\theta/(n-1)\), so \(EZ_1=\theta\), \(\mathrm{Var}Z_1=\theta^2/(n-2)\). \(Z_2=\sum Y/n\), \(EZ_2=\theta\), \(\mathrm{Var}=\theta^2/n\).

(c) Independent (Basu: \(U\) and \(T\) are not, but \(Z_1\) comes from \(X\), \(Z_2\) from \(Y\), and \(X\) is always independent of \(Y\)!). Optimal \(a=\mathrm{Var}Z_2/(\mathrm{Var}Z_1+\mathrm{Var}Z_2)=(n-2)/(2n-2)\). Variance \(\theta^2/((n-2)+n)\cdot\) harmonic. Better than merely bias-correcting the MLE based on \(T\).

Exercise 7.55

NoteStem (abridged)

UMVUE of \(\theta^r\) under three densities.

TipSolution

(a) \(U(0,\theta)\), \(T=X_{(n)}\), \(ET^r=n\theta^r/(n+r)\), UMVUE \(\frac{n+r}n T^r\).

(b) Location exponential, \(T=X_{(1)}\), \(T-\theta\sim\mathrm{Exp}(n)\). \(E(T-\theta)^k=k!/n^k\). Use \(e^{n(T-\theta)}\) or an incomplete expansion: estimating \(\theta^r\) is messy for non-integer \(r\); for integer \(r\) expand \((T-c)^r\) and solve the triangle. \(r=1\): UMVUE \(T-1/n\).

(c) Gumbel type truncated to \((\theta,b)\). \(X_{(1)}\) is sufficient. Compute \(ET^r\) from the density of \(T\) and divide.

Exercise 7.56

NoteStem (abridged)

\(E(h\mid T)\) is UMVUE.

TipSolution

Rao–Blackwell \(\Rightarrow\) \(\phi(T)\) is unbiased with variance no larger than that of \(h\). Theorem 7.3.23 \(\Rightarrow\) an unbiased estimator based on a complete sufficient statistic is the unique UMVUE.

Exercise 7.57

NoteStem (abridged)

\(h(p)=P(\sum_{1}^n X_i>X_{n+1})\). An unbiased indicator; UMVUE.

TipSolution

(a) \(ET=h(p)\).

(b) Conditional on \(S=\sum_{1}^{n+1}X_i=s\), \(X_{n+1}\sim\mathrm{Hypergeometric/Bin}(s,1/(n+1))\) because the \(X_i\) are iid Bernoulli. \(E(T\mid S=s)=P(S-X_{n+1}>X_{n+1}\mid S=s)=P(X_{n+1}<s/2\mid S=s)\). \(X_{n+1}\mid S=s\sim\mathrm{binomial}(s,1/(n+1))\)? Exchangeability: \(P(X_{n+1}=k\mid S=s)=\binom{s}{k}\binom{n}{s-k}/\binom{n+1}{s}\) only for \(k\in\{0,1\}\). Bernoulli: \(P(X_{n+1}=1\mid S=s)=s/(n+1)\). Hence \(\phi(s)=1\) if \(s-1>1\) i.e. \(s>2\) and one averages over \(X_{n+1}=1\)\(T=I(\sum_1^n X_i>X_{n+1})=I(S-X_{n+1}>X_{n+1})=I(S>2X_{n+1})\). \(E(T\mid S=s)=P(X_{n+1}<s/2\mid s)\). \(s=0\): 0; \(s=1\): \(P(X_{n+1}=0)=n/(n+1)\) (\(0<0.5\)); \(s\ge 2\): both values of \(X_{n+1}\in\{0,1\}\) are \(<s/2\) if \(s>2\); \(s=2\): \(P(X_{n+1}=0)=n/(n+1)\) (need \(0<1\) true, \(1<1\) false).

Exercise 7.58

NoteStem (abridged)

Three-point law: MLE; unbiased \(T\); improvement.

TipSolution

(a) \(L(\theta|x)=(\theta/2)^{|x|}(1-\theta)^{1-|x|}\). \(\hat\theta=0\) if \(x=0\); \(\hat\theta=1\) if \(|x|=1\).

(b) \(ET=2P(X=1)=\theta\).

(c) \(|X|\) is complete sufficient. \(E(T\mid |X|)=I(|X|=1)\) (because \(T=2\) only when \(X=1\), and given \(|X|=1\) one has \(X=\pm 1\) each with probability \(1/2\), so \(E(T\mid |X|=1)=1\)). \(\delta=|X|\) is unbiased (\(E|X|=\theta\)), \(\mathrm{Var}=\theta(1-\theta)<\mathrm{Var}T=4\cdot(\theta/2)(1-\theta/2?)\): \(T\in\{0,2\}\), \(\mathrm{Var}T=4\cdot(\theta/2)(1-\theta/2)\) is larger.

Exercise 7.59

NoteStem (abridged)

Normal, UMVUE of \(\sigma^p\).

TipSolution

\((n-1)S^2/\sigma^2\sim\chi^2_{n-1}\). \(E(S^p)=\sigma^p E(\chi^2_\nu/\nu)^{p/2}=\sigma^p \frac{\Gamma((\nu+p)/2)}{\Gamma(\nu/2)}(2/\nu)^{p/2}\). Hence

\[ \widehat{\sigma^p}=S^p\cdot\frac{\Gamma(\nu/2)}{\Gamma((\nu+p)/2)}\Bigl(\frac\nu2\Bigr)^{p/2},\qquad\nu=n-1. \]

When \(\mu\) is unknown, \(S^2\) is the relevant component of the complete sufficient statistic (independent of \(\bar X\)).

Exercise 7.60

NoteStem (abridged)

gamma\((\alpha,\beta)\), \(\alpha\) known, UMVUE of \(1/\beta\).

TipSolution

\(\sum X_i\sim\mathrm{gamma}(n\alpha,\beta)\) is complete sufficient. \(E(1/\sum X_i)=1/(\beta(n\alpha-1))\) (\(n\alpha>1\)). UMVUE \(=(n\alpha-1)/\sum X_i\).

Exercise 7.61

NoteStem (abridged)

Log-likelihood of \(S^2\sim\sigma^2\chi^2_\nu/\nu\) and Stein loss.

TipSolution

Density \(f(s^2|\sigma^2)\propto (\sigma^2)^{-\nu/2}(s^2)^{\nu/2-1}\exp(-\nu s^2/(2\sigma^2))\). \(\log L=K_1 s^2/\sigma^2-K_2\log(s^2/\sigma^2)+K_3\) (absorbing constants). Same shape as \(L(\sigma^2,a)=a/\sigma^2-1-\log(a/\sigma^2)\): as a function of \(a=s^2\) the likelihood differs from Stein loss only by an affine term.

Exercise 7.62

NoteStem (abridged)

Normal mean, squared error: risk of linear estimators; Bayes risk.

TipSolution

(a) \(a\bar X+b\): \(Ea\bar X+b=a\theta+b\), \(\mathrm{Var}=a^2\sigma^2/n\).

(b) \(\delta^\pi=(1-\eta)\bar X+\eta\mu\), \(\eta=\sigma^2/(n\tau^2+\sigma^2)\). Plug into (a): \(a=1-\eta\), \(b=\eta\mu\).

(c) Integrate \(R(\theta,\delta^\pi)\) against \(\theta\sim n(\mu,\tau^2)\) to get \(\tau^2\eta\).

Exercise 7.63

NoteStem (abridged)

\(X\sim n(\mu,1)\). Risk curves for priors \(n(0,1)\) and \(n(0,10)\).

TipSolution

\(n=1\), \(\sigma^2=1\). \(\eta=1/(1+\tau^2)\), \(\delta^\pi=(1-\eta)X\). \(R(\mu,\delta^\pi)=(1-\eta)^2+\eta^2\mu^2\).

\(\tau^2=1\): \(\eta=1/2\), \(R=0.25+0.25\mu^2\).
\(\tau^2=10\): \(\eta=1/11\), \(R=(10/11)^2+(1/11)^2\mu^2\approx 0.826+0.0083\mu^2\).

The tight prior has smaller risk near \(\mu\approx 0\) and rises faster away from 0.

Exercise 7.64

NoteStem (abridged)

Independent coordinates, additive loss, independent priors \(\Rightarrow\) the component Bayes rules assemble into the vector Bayes rule.

TipSolution

The posterior factors. Posterior expected loss \(\sum_i E[L(\theta_i,a_i)\mid X_i]\). Minimizing termwise is the collection of \(\delta_i^{\pi_i}\).

Exercise 7.65

NoteStem (abridged)

LINEX loss.

TipSolution

(a) Small \(c\) is nearly quadratic; large \(c\) heavily penalizes overestimation. The curve is steeper on the positive half-line.

(b) Log of the posterior expectation of \(e^{-c\theta}\): \(\delta=-c^{-1}\log E(e^{-c\theta}\mid X)\).

(c) Flat prior, posterior \(n(\bar X,\sigma^2/n)\). \(E(e^{-c\theta}\mid x)=\exp(-c\bar x+c^2\sigma^2/(2n))\), \(\delta=\bar X-c\sigma^2/(2n)\).

(d) Under LINEX the posterior risk of \(\delta_B\) is smaller than that of \(\bar X\) (by definition).

(e) Under squared error \(\bar X\) is the posterior mean and beats \(\delta_B\).

Exercise 7.66

NoteStem (abridged)

Jackknife the bias of \(\hat p^2\).

TipSolution

(a) \(E(\bar X)^2=p^2+p(1-p)/n\).

(b) \(T_n=\bar X_n^2\), \(T_{n,(i)}=\bar X_{(i)}^2\), \(\bar X_{(i)}=(n\bar X-X_i)/(n-1)\).

\[ JK=n\bar X^2-\frac{n-1}n\sum_i\bar X_{(i)}^2. \]

Expanding gives \(\frac{n}{n-1}\bar X^2-\frac{1}{n(n-1)}\sum X_i^2\), an equivalent form of \(\frac{n}{n-1}(\bar X^2-\overline{X^2}/n)\). In fact \(JK=\frac{n}{n-1}\bigl((\sum X_i)^2-\sum X_i^2\bigr)/n^2\cdot n?\) Computation: \(E\,JK=p^2\).

(c) For Bernoulli, \(X_i^2=X_i\), and the unbiased estimator of \(\sum_{i\neq j}X_i X_j\) is exactly \(n(n-1)\widehat{p^2}\). The jackknife gives \(\frac{n\bar X(n\bar X-1)}{n(n-1)}\), i.e. \(\binom n2^{-1}\sum_{i<j}X_iX_j\), which is unbiased.

(d) This is a function of the complete sufficient \(\sum X_i\), hence UMVUE.

Exercise 7.67

NoteStem (abridged)

Prove Theorem 10.1.5: if \(W_n\) is consistent for \(\theta\), \(a_n\to 1\), \(b_n\to 0\), then \(U_n=a_n W_n+b_n\) is consistent for \(\theta\).

TipSolution

For any \(\varepsilon>0\),

\[ P(|U_n-\theta|\ge\varepsilon)=P\bigl(|a_n(W_n-\theta)+(a_n-1)\theta+b_n|\ge\varepsilon\bigr). \]

Take \(n\) large enough that \(|a_n-1||\theta|+|b_n|<\varepsilon/2\) and \(|a_n|\le 2\). Then

\[ P(|U_n-\theta|\ge\varepsilon)\le P\bigl(|a_n|\,|W_n-\theta|\ge\varepsilon/2\bigr)\le P\bigl(|W_n-\theta|\ge\varepsilon/4\bigr)\to 0. \]

(Equivalently: convergence in probability is preserved by the continuous map \((w,a,b)\mapsto aw+b\) at \((\theta,1,0)\).)