Section 4.7

Risk Comparisons

[20/0%]
Show
LaTeX
Problem 4.7.1

For the situation of Example 7.1:

?
(a)

The empirical Bayes estimator of θ\boldsymbol {\theta }, using an unbiased estimate of τ2/(σ2+τ2)\tau^{2} /\left(\sigma^{2}+\tau^{2}\right), is

δEB=(1−(p−2)σ2∣x∣2)x, \delta ^{\mathrm{EB}}=\left(1-\frac{(p-2) \sigma ^{2}}{|\mathbf{x}|^{2}}\right) \mathbf{x},

the James-Stein estimator.

(b)

The empirical Bayes estimator of θ\boldsymbol {\theta }, using the marginal MLE of τ2/(σ2+τ2)\tau^{2} /\left(\sigma^{2}+\tau^{2}\right), is

δEB=(1−pσ2∣x∣2)+x, \delta ^{\mathrm{EB}}=\left(1-\frac{p \sigma ^{2}}{|\mathbf{x}|^{2}}\right)^{+} \mathbf{x},

which resembles the positive-part Stein estimator.

Problem 4.7.2

Corollary 7.2 states: let X∼Np(θ,σ2I)X \sim N_{p}(\theta , \sigma^{2} I), and let the estimator δ\delta be of the form δ(x)=x−g(x)\delta (\mathbf{x})=\mathbf{x}-g(\mathbf{x}), where g(x)={gi(x)}g(\mathbf{x})=\left\{ g_{i}(\mathbf{x})\right\} is differentiable. If Eθ[∣(∂/∂xi)gi(X)∣]<∞\mathbb {E}_{\theta }\left[\left|(\partial / \partial x_{i}) g_{i}(X)\right|\right]<\infty for i=1,…,pi=1, \ldots , p, then

R(θ,δ)=Eθ[∣θ−δ(X)∣2]=pσ2+Eθ[∣g(X)∣2]−2σ2∑i=1pEθ[∂∂xigi(X)]. R(\theta , \delta )=\mathbb {E}_{\theta }\left[\left|\theta -\delta (X)\right|^{2}\right]=p \sigma ^{2}+\mathbb {E}_{\theta }\left[\left|g(X)\right|^{2}\right]-2 \sigma ^{2} \sum _{i=1}^{p} \mathbb {E}_{\theta }\left[\frac{\partial }{\partial x_{i}} g_{i}(X)\right].

Establish Corollary 7.2. Be sure to verify that the conditions on g(x)g(\mathbf{x}) are sufficient to allow the integration-by-parts argument. [Stein (1973,1981)(1973,1981) develops these representations in the normal case.]

?
Problem 4.7.3

The derivation of an unbiased estimator of the risk (Corollary 7.2) can be extended to a more general model in the exponential family, the model of Corollary 3.3, where X=X1,…,Xp\mathbf{X}=X_{1}, \ldots , X_{p} has the density

pη(x)=e∑i=1pηixi−A(η)h(x). p_{\boldsymbol {\eta }}(\mathbf{x})=e^{\sum _{i=1}^{p} \eta _{i} x_{i}-A(\boldsymbol {\eta })} h(\mathbf{x}).
?
(a)

The Bayes estimator of η\boldsymbol {\eta }, under squared error loss, is

E[ηi∣x]=∂∂xilog⁡m(x)−∂∂xilog⁡h(x). \mathbb {E}\left[\eta _{i} \mid \mathbf{x}\right]=\frac{\partial }{\partial x_{i}} \log m(\mathbf{x})-\frac{\partial }{\partial x_{i}} \log h(\mathbf{x}).

Show that the risk of E[η∣X]]\mathbb {E}\left[\eta \mid \mathbf{X}\right]] has unbiased estimator

∑i=1p[∂2∂xi2(log⁡h(x)−2log⁡m(x))+(∂∂xilog⁡m(x))2]. \sum _{i=1}^{p}\left[\frac{\partial ^{2}}{\partial x_{i}^{2}}(\log h(\mathbf{x})-2 \log m(\mathbf{x}))+\left(\frac{\partial }{\partial x_{i}} \log m(\mathbf{x})\right)^{2}\right].

[Hint: Theorem 3.5 and Problem 3.4.]

(b)

Show that the risk of the empirical Bayes estimator

E[ηi∣x,λ^]=∂∂xilog⁡m(x∣λ^(x))−∂∂xilog⁡h(x). \mathbb {E}\left[\eta _{i} \mid \mathbf{x}, \hat{\lambda }\right]=\frac{\partial }{\partial x_{i}} \log m(\mathbf{x} \mid \hat{\lambda }(\mathbf{x}))-\frac{\partial }{\partial x_{i}} \log h(\mathbf{x}).

of Theorem 6.3 has unbiased estimator

∑i=1p[∂2∂xi2(log⁡h(x)−2log⁡m(x∣λ^(x)))+(∂∂xilog⁡m(x∣λ^(x)))2] \sum _{i=1}^{p}\left[\frac{\partial ^{2}}{\partial x_{i}^{2}}(\log h(\mathbf{x})-2 \log m(\mathbf{x} \mid \hat{\lambda }(\mathbf{x})))+\left(\frac{\partial }{\partial x_{i}} \log m(\mathbf{x} \mid \hat{\lambda }(\mathbf{x}))\right)^{2}\right]
(c)

Use the results of part (b) to derive an unbiased estimator of the risk of the positivepart Stein estimator of (7.7.10).

Problem 4.7.4

Verify (7.7.9), the expression for the Bayes risk of δτ0\delta^{\tau_{0}}. (Problem 3.12 may be helpful.)

?
Problem 4.7.5

A general version of the empirical Bayes estimator (7.7.3) is given by

δc(x)=(1−cσ2∣x∣2)x, \delta ^{c}(\mathbf{x})=\left(1-\frac{c \sigma ^{2}}{|\mathbf{x}|^{2}}\right) \mathbf{x},

where cc is a positive constant.

?
(a)

Use Corollary 7.2 to verify that

Eθ[∣θ−δc(X)∣2]=pσ2+cσ4[c−2(p−2)]Eθ[1∣X∣2]. \mathbb {E}_{\theta }\left[\left|\boldsymbol {\theta }-\delta ^{c}(\mathbf{X})\right|^{2}\right]=p \sigma ^{2}+c \sigma ^{4}[c-2(p-2)] \mathbb {E}_{\theta }\left[\frac{1}{|\mathbf{X}|^{2}}\right].
(b)

Show that the Bayes risk, under Θ∼Np(0,τ2I)\Theta \sim N_{p}\left(0, \tau^{2} I\right), is given by

r(π,δc)=σ2[p+cσ2σ2+τ2(cp−2−2)] r\left(\pi , \delta ^{c}\right)=\sigma ^{2}\left[p+\frac{c \sigma ^{2}}{\sigma ^{2}+\tau ^{2}}\left(\frac{c}{p-2}-2\right)\right]

and is minimized by choosing c=p−2c=p-2.

Problem 4.7.6

For the model

X∣θ∼Np(θ,σ2I),θ∣τ2∼Np(μ,τ2I): \begin{align} \mathbf{X} \mid \boldsymbol {\theta } & \sim N_{p}\left(\boldsymbol {\theta }, \sigma ^{2} I\right), \\ \boldsymbol {\theta } \mid \tau ^{2} & \sim N_{p}\left(\mu , \tau ^{2} I\right): \end{align}

Show that:

?
(a)

The empirical Bayes estimator, using an unbiased estimator of τ2/(σ2+τ2)\tau^{2} /\left(\sigma^{2}+\tau^{2}\right), is the Stein estimator

δiJS(x)=μi+(1−(p−2)σ2Σ(xi−μi)2)(xi−μi). \delta _{i}^{\mathrm{JS}}(\mathbf{x})=\mu _{i}+\left(1-\frac{(p-2) \sigma ^{2}}{\Sigma \left(x_{i}-\mu _{i}\right)^{2}}\right)\left(x_{i}-\mu _{i}\right).
(b)

If p≥3p \geq 3, the Bayes risk, under squared error loss, of δJS\delta^{\mathrm{JS}} is r(τ,δJS)=r(τ,δτ)+2σ4/(σ2+τ2)r\left(\tau , \delta^{\mathrm{JS}}\right)=r\left(\tau , \delta^{\tau }\right)+ 2 \sigma^{4} /\left(\sigma^{2}+\tau^{2}\right), where r(τ,δτ)r\left(\tau , \delta^{\tau }\right) is the Bayes risk of the Bayes estimator.

(c)

If p<3p<3, the Bayes risk of δJS\delta^{\mathrm{JS}} is infinite. [Hint: Show that if Y∼χm2,E[1/Y]<∞⟺m<3]Y \sim \chi_{m}^{2}, \mathbb {E}\left[1 / Y\right]< \infty \Longleftrightarrow m<3].

Problem 4.7.7

For the model

X∣θ∼Np(θ,σ2I),θ∣τ2∼N(μ,τ2I) \begin{align} \mathbf{X} \mid \boldsymbol {\theta } & \sim N_{p}\left(\boldsymbol {\theta }, \sigma ^{2} I\right), \\ \boldsymbol {\theta } \mid \tau ^{2} & \sim N\left(\mu , \tau ^{2} I\right) \end{align}

the Bayes risk of the ordinary Stein estimator

δi(x)=μi+(1−(p−2)σ2Σ(xi−μi)2)(xi−μi) \delta _{i}(\mathbf{x})=\mu _{i}+\left(1-\frac{(p-2) \sigma ^{2}}{\Sigma \left(x_{i}-\mu _{i}\right)^{2}}\right)\left(x_{i}-\mu _{i}\right)

is uniformly larger than its positive-part version

δi+(x)=μi+(1−(p−2)σ2Σ(xi−μi)2)+(xi−μi). \delta _{i}^{+}(\mathbf{x})=\mu _{i}+\left(1-\frac{(p-2) \sigma ^{2}}{\Sigma \left(x_{i}-\mu _{i}\right)^{2}}\right)^{+}\left(x_{i}-\mu _{i}\right).
?
Problem 4.7.8

Theorem 7.5 holds in greater generality than just the normal distribution. Suppose X\mathbf{X} is distributed according to the multivariate version of the exponential family pη(x)p_{\eta }(x) of (33.7),

pη(x)=eη′x−A(η)h(x),−∞<xi<∞, p_{\eta }(\mathbf{x})=e^{\eta ^{\prime } \mathbf{x}-A(\eta )} h(\mathbf{x}), \quad -\infty <x_{i}<\infty ,

and a multivariate conjugate prior distribution [generalizing (3.19)] is used.

?
(a)

Show that E[X∣η]=∇A(η)\mathbb {E}\left[\mathbf{X} \mid \eta \right]=\nabla A(\eta ).

(b)

If μ=0\mu =0 in the prior distribution (see 3.19), show that r(τ,δ)≥r(τ,δ+)r(\tau , \delta ) \geq r\left(\tau , \delta^{+}\right), where δ(x)=[1−B(x)]x\delta (\mathbf{x})=[1-B(\mathbf{x})] \mathbf{x} and δ+(x)=[1−B(x)]+x\delta^{+}(\mathbf{x})=[1-B(\mathbf{x})]^{+} \mathbf{x}.

(c)

If μ≠0\mu \neq 0, the estimator δ(x)\delta (\mathbf{x}) would be modified to μ+δ(x−μ)\mu +\delta (\mathbf{x}-\mu ). Establish a result similar to part (b) for this estimator.

Problem 4.7.9
?
(a)

For the model (7.7.15), show that the marginal distribution of XiX_{i} is negative binomial (a,1/b+1)(a, 1 / b+1); that is,

P(Xi=x)=(a+x−1x)(bb+1)x(1b+1)a \mathbb {P}\left(X_{i}=x\right)=\binom {a+x-1}{x}\left(\frac{b}{b+1}\right)^{x}\left(\frac{1}{b+1}\right)^{a}

with E[Xi]=ab\mathbb {E}\left[X_{i}\right]=a b and var Xi=ab(b+1)X_{i}=a b(b+1).

(b)

If X1,…,XmX_{1}, \ldots , X_{m} are iid according to the negative binomial distribution in part (a), show that the conditional distribution of Xj∣∑1mXiX_{j} \mid \sum_{1}^{m} X_{i} is the negative hypergeometric distribution, given by

P(Xj=x∣∑1mXi=t)=(a+x−1x)((m−1)a+t−x−1t−x)(ma+t−1t) \mathbb {P}\left(X_{j}=x \mid \sum _{1}^{m} X_{i}=t\right)=\frac{\binom {a+x-1}{x}\binom {(m-1) a+t-x-1}{t-x}}{\binom {m a+t-1}{t}}

with E[Xj]=t/m\mathbb {E}\left[X_{j}\right]=t / m and var Xj=(m−1)t(ma+t)/m2(ma+1)X_{j}=(m-1) t(m a+t) / m^{2}(m a+1).

Problem 4.7.10

For the situation of Example 7.6:

?
(a)

Show that the Bayes estimator under the loss Lk(λ,δ)L_{k}(\lambda , \delta ) of (7.7.16) is given by (7.7.17).

(b)

Verify (7.7.19) and (7.7.20).

(c)

Evaluate the Bayes risks r(0,δ1)r\left(0, \delta^{1}\right) and r(1,δ0)r\left(1, \delta^{0}\right). Which estimator, δ0\delta^{0} or δ1\delta^{1}, is more robust?

Problem 4.7.11

For the situation of Example 7.6, evaluate the Bayes risk of the empirical Bayes estimator (7.7.20) for k=0k=0 and 1. What values of the unknown hyperparameter bb are least and which are most favorable to the empirical Bayes estimator?

?
Problem 4.7.12

Consider a hierarchical Bayes estimator for the Poisson model (7.7.15) with loss (7.7.16). Using the distribution (5.6.27) for the hyperparameter bb, show that the Bayes estimator is

(pxˉ+α−kpxˉ+pa+α+β−k)(a+xi−k). \left(\frac{p \bar{x}+\alpha -k}{p \bar{x}+p a+\alpha +\beta -k}\right)\left(a+x_{i}-k\right).

[Hint: Show that the Bayes estimator is E[λ1−k∣x]/E[λ−k∣x]\mathbb {E}\left[\lambda^{1-k} \mid \mathbf{x}\right] / \mathbb {E}\left[\lambda^{-k} \mid \mathbf{x}\right] and that

E[λr∣x]=Γ(pxˉ+pa+α+β)Γ(pxˉ+α+r)Γ(pxˉ+α)Γ(pxˉ+pa+α+β+r)Γ(a+xi+r)Γ(a+xi). \mathbb {E}\left[\lambda ^{r} \mid \mathbf{x}\right]=\frac{\Gamma (p \bar{x}+p a+\alpha +\beta ) \Gamma (p \bar{x}+\alpha +r)}{\Gamma (p \bar{x}+\alpha ) \Gamma (p \bar{x}+p a+\alpha +\beta +r)} \frac{\Gamma \left(a+x_{i}+r\right)}{\Gamma \left(a+x_{i}\right)}.
?
Problem 4.7.13

Prove the following: Two matrix results that are useful in calculating estimators from multivariate hierarchical models are

?
(a)

For any vector aa of the form a=(I−1sJ)b,1′a=Σai=0a=\left(I-\frac{1}{s} J\right) b, \mathbf{1}^{\prime } a=\Sigma a_{i}=0.

(b)

If BB is an idempotent matrix (that is, B2=IB^{2}=I ) and aa is a scalar, then

(I+aB)−1=I−a1+aB. (I+a B)^{-1}=I-\frac{a}{1+a} B.
Problem 4.7.14

For the situation of Example 7.7:

?
(a)

Show how to derive the empirical Bayes estimator δL\delta^{L} of (7.7.28).

(b)

Verify the Bayes risk of δL\delta^{L} of (7.7.29).

For the situation of Example 7.8:

(c)

Show how to derive the empirical Bayes estimator δEB2\delta^{\mathrm{EB}_{2}} of (7.7.33).

(d)

Verify the Bayes risk of δEB2\delta^{\mathrm{EB}_{2}}, (7.7.34).

Problem 4.7.15

The empirical Bayes estimator (7.7.27) can also be derived as a hierarchical Bayes estimator. Consider the hierarchical model

Xij∣ξi∼N(ξi,σ2),j=1,…,n,i=1,…,s,ξi∣μ∼N(μ,τ2),i=1,…,s,μ∼ Uniform (−∞,∞) \begin{align} X_{i j} \mid \xi _{i} & \sim N\left(\xi _{i}, \sigma ^{2}\right), \quad j=1, \ldots , n, \quad i=1, \ldots , s, \\ \xi _{i} \mid \mu & \sim N\left(\mu , \tau ^{2}\right), \quad i=1, \ldots , s, \\ \mu & \sim \text{ Uniform }(-\infty , \infty ) \end{align}

where σ2\sigma^{2} and τ2\tau^{2} are known.

?
(a)

Show that the Bayes estimator, with respect to squared error loss, is

E[ξi∣x]=σ2σ2+nτ2E[μ∣x]+nτ2σ2+nτ2xˉi \mathbb {E}\left[\xi _{i} \mid \mathbf{x}\right]=\frac{\sigma ^{2}}{\sigma ^{2}+n \tau ^{2}} \mathbb {E}\left[\mu \mid \mathbf{x}\right]+\frac{n \tau ^{2}}{\sigma ^{2}+n \tau ^{2}} \bar{x}_{i}

where E[μ∣x]\mathbb {E}\left[\mu \mid \mathbf{x}\right] is the posterior mean of μ\mu.

(b)

Establish that E[μ∣x]=xˉ=Σxij/ns\mathbb {E}\left[\mu \mid \mathbf{x}\right]=\bar{x}=\Sigma x_{i j} / n s. [This can be done by evaluating the expectation directly, or by showing that the posterior distribution of ξi∣x\xi_{i} \mid \mathbf{x} is

ξi∣ x∼N[σ2σ2+nτ2xˉ+nτ2σ2+nτ2xˉi,σ2σ2+nτ2(nτ2+σ2s)]. \xi _{i} \left\lvert \, \mathbf{x} \sim N\left[\frac{\sigma ^{2}}{\sigma ^{2}+n \tau ^{2}} \bar{x}+\frac{n \tau ^{2}}{\sigma ^{2}+n \tau ^{2}} \bar{x}_{i}, \frac{\sigma ^{2}}{\sigma ^{2}+n \tau ^{2}}\left(n \tau ^{2}+\frac{\sigma ^{2}}{s}\right)\right].\right.

Note that the ξi\xi_{i} 's are not independent a posteriori. In fact,

ξ∣ x∼Ns(nτ2σ2+nτ2M,nσ2τ2σ2+nτ2M), \boldsymbol {\xi } \left\lvert \, \mathbf{x} \sim N_{s}\left(\frac{n \tau ^{2}}{\sigma ^{2}+n \tau ^{2}} M, \frac{n \sigma ^{2} \tau ^{2}}{\sigma ^{2}+n \tau ^{2}} M\right)\right.,

where M=I+(σ2/nτ2)J]\left.M=I+\left(\sigma^{2} / n \tau^{2}\right) J\right].

(c)

Show that the empirical Bayes estimator (7.7.32) can also be derived as a hierarchical Bayes estimator, by appending the specification (α,β)∼(\alpha , \beta ) \sim Uniform (ℜ2)\left(\Re^{2}\right) [that is, π(α,β)=dαdβ,−∞<α,β<∞\pi (\alpha , \beta )=d \alpha d \beta ,-\infty <\alpha , \beta <\infty ] to the hierarchy (7.7.30).

Problem 4.7.16

Generalization of model (7.7.23) to the case of unequal nin_{i} is, perhaps, not as straightforward as one might expect. Consider the generalization

Xij∣ξi∼N(ξi,σ2),j=1,…,ni,i=1,…,s,ξi∣μ∼N(μ,τi2),i=1,…,s. \begin{align} X_{i j} \mid \xi _{i} & \sim N\left(\xi _{i}, \sigma ^{2}\right), \quad j=1, \ldots , n_{i}, \quad i=1, \ldots , s, \\ \xi _{i} \mid \mu & \sim N\left(\mu , \tau _{i}^{2}\right), \quad i=1, \ldots , s. \end{align}

We also make the assumption that τi2=τ2/ni\tau_{i}^{2}=\tau^{2} / n_{i}. Show that:

?
(a)

The above model is equivalent to

Y∼Ns(λ,σ2I),λ∼Ns(Zμ,τ2I) \begin{align} & \mathbf{Y} \sim N_{s}\left(\lambda , \sigma ^{2} I\right), \\ & \lambda \sim N_{s}\left(\mathbf{Z} \mu , \tau ^{2} I\right) \end{align}

where Yi=niXˉi,λi=niξiY_{i}=\sqrt{n_{i}} \bar{X}_{i}, \lambda_{i}=\sqrt{n_{i}} \xi_{i} and z=(n1,…,ns)′\mathbf{z}=\left(\sqrt{n_{1}}, \ldots , \sqrt{n_{s}}\right)^{\prime }.

(b)

The Bayes estimator of ξi\xi_{i}, using squared error loss, is

σ2σ2+τ2μ+τ2σ2+τ2xˉi. \frac{\sigma ^{2}}{\sigma ^{2}+\tau ^{2}} \mu +\frac{\tau ^{2}}{\sigma ^{2}+\tau ^{2}} \bar{x}_{i}.
(c)

The marginal distribution of YiY_{i} is Yi∼Ns(Zμ,(σ2+τ2)I)Y_{i} \sim N_{s}\left(\mathbf{Z} \mu ,\left(\sigma^{2}+\tau^{2}\right) I\right), and an empirical Bayes estimator of ξ\xi is

δiEB=xˉ+(1−(s−3)σ2Σni(xˉi−xˉ)2)(xˉi−xˉ) \delta _{i}^{E B}=\bar{x}+\left(1-\frac{(s-3) \sigma ^{2}}{\Sigma n_{i}\left(\bar{x}_{i}-\bar{x}\right)^{2}}\right)\left(\bar{x}_{i}-\bar{x}\right)

where xˉi=Σjxij/ni\bar{x}_{i}=\Sigma_{j} x_{i j} / n_{i} and xˉ=Σinixˉi/Σini\bar{x}=\Sigma_{i} n_{i} \bar{x}_{i} / \Sigma_{i} n_{i}. [Without the assumption that τi2=τ2/ni\tau_{i}^{2}=\tau^{2} / n_{i}, one cannot get a simple empirical Bayes estimator. If τi2=τ2\tau_{i}^{2}=\tau^{2}, the likelihood estimation can be used to get an estimate of τ2\tau^{2} to be used in the empirical Bayes estimator. This is discussed by Morris (1983a).]

Problem 4.7.17

(Empirical Bayes estimation in a general case). A general version of the hierarchical models of Examples 7.7 and 7.8 is

X∣ξ∼Ns(ξ,σ2I),ξ∣β∼Ns(Zβ,τ2I) \begin{align} & \mathbf{X} \mid \xi \sim N_{s}\left(\xi , \sigma ^{2} I\right), \\ & \xi \mid \boldsymbol {\beta } \sim N_{s}\left(\mathbf{Z} \boldsymbol {\beta }, \tau ^{2} I\right) \end{align}

where σ2\sigma^{2} and Zs×r\mathbf{Z}_{s \times r}, of rank rr, are known and τ2\tau^{2} and βr×1\boldsymbol {\beta }_{r \times 1} are unknown. Under this model show that:

?
(a)

The Bayes estimator of ξ\xi, under squared error loss, is

E[ξ∣x,β]=σ2σ2+τ2zβ+τ2σ2+τ2x. \mathbb {E}\left[\boldsymbol {\xi } \mid \mathbf{x}, \boldsymbol {\beta }\right]=\frac{\sigma ^{2}}{\sigma ^{2}+\tau ^{2}} z \boldsymbol {\beta }+\frac{\tau ^{2}}{\sigma ^{2}+\tau ^{2}} \mathbf{x}.
(b)

Marginally, the distribution of X∣β\mathbf{X} \mid \boldsymbol {\beta } is X∣β∼Ns(Zβ,(σ2+τ2)I)\mathbf{X} \mid \boldsymbol {\beta } \sim N_{s}\left(\mathbf{Z} \boldsymbol {\beta },\left(\sigma^{2}+\tau^{2}\right) I\right).

(c)

Under the marginal distribution in part (b),

E[(Z′Z)−1Z′x]=E[β^]=β,E[s−r−2∣X−Zβ^∣2]=1σ2+τ2, \begin{align} \mathbb {E}\left[\left(\mathbf{Z}^{\prime } \mathbf{Z}\right)^{-1} \mathbf{Z}^{\prime } \mathbf{x}\right] & =\mathbb {E}\left[\hat{\boldsymbol {\beta }}\right]=\boldsymbol {\beta }, \\ \mathbb {E}\left[\frac{s-r-2}{|\mathbf{X}-\mathbf{Z} \hat{\boldsymbol {\beta }}|^{2}}\right] & =\frac{1}{\sigma ^{2}+\tau ^{2}}, \end{align}

and, hence, an empirical Bayes estimator of ξ\xi is

δEB=Zβ^+(1−(s−r−2)σ2∣x−Zβ^∣2)(x−Zβ^). \delta ^{E B}=\mathbf{Z} \hat{\boldsymbol {\beta }}+\left(1-\frac{(s-r-2) \sigma ^{2}}{|\mathbf{x}-\mathbf{Z} \hat{\boldsymbol {\beta }}|^{2}}\right)(\mathbf{x}-\mathbf{Z} \hat{\boldsymbol {\beta }}).
(d)

The Bayes risk of δEB\delta^{E B} is r(τ,δτ)+(r+2)σ4/(σ2+τ2)r\left(\tau , \delta^{\tau }\right)+(r+2) \sigma^{4} /\left(\sigma^{2}+\tau^{2}\right), where r(τ,δτ)r\left(\tau , \delta^{\tau }\right) is the risk of the Bayes estimator.

Problem 4.7.18

In a manner similar to the previous problem, we can derive hierarchical Bayes estimators for the model

X∣ξ∼Ns(ξ,σ2I),ξ∣β∼Ns(Zβ,τ2I),β∼Uniform⁡(ℜr) \begin{align} \mathbf{X} \mid \boldsymbol {\xi } & \sim N_{s}\left(\boldsymbol {\xi }, \sigma ^{2} I\right), \\ \boldsymbol {\xi } \mid \boldsymbol {\beta } & \sim N_{s}\left(\mathbf{Z} \boldsymbol {\beta }, \tau ^{2} I\right), \\ \boldsymbol {\beta } & \sim \operatorname {Uniform}\left(\Re ^{r}\right) \end{align}

where σ2\sigma^{2} and Zs×r\mathbf{Z}_{s \times r}, of rank rr, are known and τ2\tau^{2} is unknown.

?
(a)

The prior distribution of ξ\boldsymbol {\xi }, unconditional on β\beta, is proportional to

π(ξ)=∫ℜrπ(ξ∣β)dβ∝e−12ξ′(I−H)ξτ2, \pi (\xi )=\int _{\Re ^{r}} \pi (\xi \mid \beta ) d \beta \propto e^{-\frac{1}{2} \frac{\xi ^{\prime }(I-H) \xi }{\tau ^{2}}},

where H=Z(Z′Z)−1Z′H=\mathbf{Z}\left(\mathbf{Z}^{\prime } \mathbf{Z}\right)^{-1} \mathbf{Z}^{\prime } projects from ℜs\Re^{s} to ℜr\Re^{r}. [Hint: Establish that

(ξ−Zβ)′(ξ−Zβ)=ξ′(I−H)ξ+[β−(Z′Z)−1Z′ξ]′Z′Z[β−(Z′Z)−1Z′ξ] \begin{align} (\xi -\mathbf{Z} \boldsymbol {\beta })^{\prime }(\boldsymbol {\xi }-\mathbf{Z} \boldsymbol {\beta })=\xi ^{\prime }(I-H) \boldsymbol {\xi } & \\ & +\left[\boldsymbol {\beta }-\left(\mathbf{Z}^{\prime } \mathbf{Z}\right)^{-1} \mathbf{Z}^{\prime } \boldsymbol {\xi }\right]^{\prime } \mathbf{Z}^{\prime } \mathbf{Z}\left[\boldsymbol {\beta }-\left(\mathbf{Z}^{\prime } \mathbf{Z}\right)^{-1} \mathbf{Z}^{\prime } \boldsymbol {\xi }\right] \end{align}

to perform the integration on β\boldsymbol {\beta }.]

(b)

Show that

ξ∣ x∼Ns(τ2σ2+τ2M,σ2τ2σ2+τ2M) \boldsymbol {\xi } \left\lvert \, \mathbf{x} \sim N_{s}\left(\frac{\tau ^{2}}{\sigma ^{2}+\tau ^{2}} M, \frac{\sigma ^{2} \tau ^{2}}{\sigma ^{2}+\tau ^{2}} M\right)\right.

where M=I+(σ2/τ2)HM=I+\left(\sigma^{2} / \tau^{2}\right) H, and hence that the Bayes estimator is given by

σ2σ2+τ2Hx+τ2σ2+τ2x \frac{\sigma ^{2}}{\sigma ^{2}+\tau ^{2}} H \mathbf{x}+\frac{\tau ^{2}}{\sigma ^{2}+\tau ^{2}} \mathbf{x}

where Zβ^=Hx\mathbf{Z} \hat{\boldsymbol {\beta }}=H \mathbf{x}. [Hint: Establish that

1τ2ξ′(I−H)ξ+1σ2(x−ξ)′(x−ξ)=σ2+τ2σ2τ2[(ξ−τ2σ2+τ2Mx)′M−1(ξ−τ2σ2+τ2Mx)]+1σ2+τ2x′(I−H)x \begin{align} & \frac{1}{\tau ^{2}} \xi ^{\prime }(I-H) \xi +\frac{1}{\sigma ^{2}}(\mathbf{x}-\xi )^{\prime }(\mathbf{x}-\xi ) \\ & = \frac{\sigma ^{2}+\tau ^{2}}{\sigma ^{2} \tau ^{2}}\left[\left(\xi -\frac{\tau ^{2}}{\sigma ^{2}+\tau ^{2}} M \mathbf{x}\right)^{\prime } M^{-1}\left(\xi -\frac{\tau ^{2}}{\sigma ^{2}+\tau ^{2}} M \mathbf{x}\right)\right] \\ & +\frac{1}{\sigma ^{2}+\tau ^{2}} \mathbf{x}^{\prime }(I-H) \mathbf{x} \end{align}

where M−1=I−σ2σ2+τ2HM^{-1}=I-\frac{\sigma^{2}}{\sigma^{2}+\tau^{2}} H.]

(c)

Marginally, X′(I−H)X∼(σ2+τ2)χs−r2\mathbf{X}^{\prime }(I-H) \mathbf{X} \sim \left(\sigma^{2}+\tau^{2}\right) \chi_{s-r}^{2}. This leads us to the empirical Bayes estimator

Hx+(1−(s−r−2)σ2x′(I−H)x)(x−Hx) H \mathbf{x}+\left(1-\frac{(s-r-2) \sigma ^{2}}{\mathbf{x}^{\prime }(I-H) \mathbf{x}}\right)(\mathbf{x}-H \mathbf{x})

which is equal to the empirical Bayes estimator of Problem 7.17(c).

[The model in this and the previous problem can be substantially generalized. For example, both σ2I\sigma^{2} I and τ2I\tau^{2} I can be replaced by full, positive definite matrices. At the cost of an increase in the complexity of the matrix calculations and the loss of simple answers, hierarchical and empirical Bayes estimators can be computed. The covariances, either scalar or matrix, can also be unknown, and inverted gamma (or inverted Wishart) prior distributions can be accommodated. Calculations can be implemented via the Gibbs sampler. Note that these generalizations encompass the "unequal nin_{i} " case (see Problem 7.16), but there are no simple solutions for this case. Many of these estimators also possess a minimax property, which will be discussed in Chapter 5.]

Problem 4.7.19

As noted by Morris (1983a), an analysis of variance-type hierarchical model, with unequal nin_{i}, will yield closed-form empirical Bayes estimators if the prior variances are proportional to the sampling variances. Show that, for the model

Xij∣ξi∼N(ξi,σ2),j=1,…,ni,i=1,…,sξ∣β∼Ns(Zβ,τ2D−1) \begin{align} X_{i j} \mid \xi _{i} & \sim N\left(\xi _{i}, \sigma ^{2}\right), \quad j=1, \ldots , n_{i}, \quad i=1, \ldots , s \\ \boldsymbol {\xi } \mid \boldsymbol {\beta } & \sim N_{s}\left(\mathbf{Z} \boldsymbol {\beta }, \tau ^{2} D^{-1}\right) \end{align}

where σ2\sigma^{2} and Zs×r\mathbf{Z}_{s \times r}, of full rank rr, are known, τ2\tau^{2} is unknown, and D=diag⁡(n1,…,ns)D=\operatorname {diag}\left(n_{1}, \ldots , n_{s}\right), an empirical Bayes estimator is given by

δEB=Zβ^+(1−(s−r−2)σ2(x‾−Zβ^)′D(x‾−Zβ^))(x‾−Zβ^) \delta ^{\mathrm{EB}}=\mathbf{Z} \hat{\boldsymbol {\beta }}+\left(1-\frac{(s-r-2) \sigma ^{2}}{(\overline{\mathbf{x}}-\mathbf{Z} \hat{\boldsymbol {\beta }})^{\prime } D(\overline{\mathbf{x}}-\mathbf{Z} \hat{\boldsymbol {\beta }})}\right)(\overline{\mathbf{x}}-\mathbf{Z} \hat{\boldsymbol {\beta }})

with x‾i=Σjxij/ni,x‾={xˉi}\overline{\mathbf{x}}_{i}=\Sigma_{j} x_{i j} / n_{i}, \overline{\mathbf{x}}=\left\{ \bar{x}_{i}\right\}, and β^=(Z′DZ)−1Z′Dx‾\hat{\boldsymbol {\beta }}=\left(\mathbf{Z}^{\prime } D \mathbf{Z}\right)^{-1} \mathbf{Z}^{\prime } D \overline{\mathbf{x}}.

?
Problem 4.7.20

An entertaining (and unjustifiable) result which abuses a hierarchical Bayes calculation yields the following derivation of the James-Stein estimator. Let X∼Np(θ,I)X \sim N_{p}(\boldsymbol {\theta }, I) and θ∣τ2∼Np(0,τ2I)\boldsymbol {\theta } \mid \tau^{2} \sim N_{p}\left(0, \tau^{2} I\right).

?
(a)

Verify that conditional on τ2\tau^{2}, the posterior and marginal distributions are given by

π(θ∣x,τ2)=Np(τ2τ2+1x,τ2τ2+1I)m(x∣τ2)=Np[0,(τ2+1)I] \begin{align} \pi \left(\boldsymbol {\theta } \mid \mathbf{x}, \tau ^{2}\right) & =N_{p}\left(\frac{\tau ^{2}}{\tau ^{2}+1} \mathbf{x}, \frac{\tau ^{2}}{\tau ^{2}+1} I\right) \\ m\left(\mathbf{x} \mid \tau ^{2}\right) & =N_{p}\left[0,\left(\tau ^{2}+1\right) I\right] \end{align}
(b)

Show that, taking π(τ2)=1,−1<τ2<∞\pi \left(\tau^{2}\right)=1,-1<\tau^{2}<\infty, we have

∬ℜpθπ(θ∣x,τ2)m(x∣τ2)dθdτ2=x(2π)p/2(∣x∣2)p/2−1[Γ(p−22)2(p−2)/2−Γ(p/2)2p/2∣x∣2] \begin{align} & \iint _{\Re p} \boldsymbol {\theta } \pi \left(\boldsymbol {\theta } \mid \mathbf{x}, \tau ^{2}\right) m\left(\mathbf{x} \mid \tau ^{2}\right) d \boldsymbol {\theta } d \tau ^{2} \\ & =\frac{\mathbf{x}}{(2 \pi )^{p / 2}\left(|\mathbf{x}|^{2}\right)^{p / 2-1}}\left[\Gamma \left(\frac{p-2}{2}\right) 2^{(p-2) / 2}-\frac{\Gamma (p / 2) 2^{p / 2}}{|\mathbf{x}|^{2}}\right] \end{align}

and

∬ℜpπ(θ∣x,τ2)m(x∣τ2)dθdτ2=1(2π)p/2(∣x∣2)p/2−1Γ(p−22)2(p−2)/2 \begin{align} & \iint _{\Re p} \pi \left(\boldsymbol {\theta } \mid \mathbf{x}, \tau ^{2}\right) m\left(\mathbf{x} \mid \tau ^{2}\right) d \boldsymbol {\theta } d \tau ^{2} \\ & =\frac{1}{(2 \pi )^{p / 2}\left(|\mathbf{x}|^{2}\right)^{p / 2-1}} \Gamma \left(\frac{p-2}{2}\right) 2^{(p-2) / 2} \end{align}

and hence

E[θ∣x]=(1−p−2∣x∣2)x. \mathbb {E}\left[\boldsymbol {\theta } \mid \mathbf{x}\right]=\left(1-\frac{p-2}{|\mathbf{x}|^{2}}\right) \mathbf{x}.
(c)

Explain some implications of the result in part (b) and, why it cannot be true. [Try to reconcile it with (3.3.12).]

(d)

Why are the calculations in part (b) unjustified?