Chapter 4

Average Risk Optimality

[116/0%]
Show
LaTeX
Problem 4.1.1

Verify the expressions for π(λ∣xˉ)\pi (\lambda \mid \bar{x}) and δk(xˉ)\delta^{k}(\bar{x}) in Example 1.3.

?
Problem 4.1.2

Give examples of pairs of values (a,b)(a, b) for which the beta density B(a,b)B(a, b) is

?
(a)

decreasing,

(b)

increasing,

(c)

increasing for p<p0p<p_{0} and decreasing for p>p0p>p_{0}, and

(d)

decreasing for p<p0p<p_{0} and increasing for p>p0p>p_{0}.

Problem 4.1.3

In Example 1.5, if pp has the improper prior density 1p(1−p)\frac{1}{p(1-p)}, show that the posterior density of pp given xx is proper, provided 0<x<n0<x<n.

?
Problem 4.1.4

In Example 1.5, find the Jeffreys prior for pp and the associated Bayes estimator δΛ\delta_{\Lambda }.

?
Problem 4.1.5

For the estimator δΛ\delta_{\Lambda } of Problem 1.4,

?
(a)

calculate the bias and maximum bias;

(b)

calculate the expected squared error and compare it with that of the UMVU estimator.

Problem 4.1.6

In Example 1.5, find the Bayes estimator δ\delta of p(1−p)p(1-p) when pp has the prior B(a,b)B(a, b).

?
Problem 4.1.7

For the situation of Example 1.5, the UMVU estimator of p(1−p)p(1-p) is δ′=[x(x−1)]/[n(n−1)]\delta^{\prime }=[x(x- 1)] /[n(n-1)] (see Example 2.3.1 and Problem 2.3.1).

?
(a)

Compare the estimator δ\delta of Problem 1.6 with the UMVU estimator δ′\delta^{\prime }.

(b)

Compare the expected squared error of the estimator of p(1−p)p(1-p) for the Jeffreys prior in Example 1.5 with that of δ′\delta^{\prime }.

Problem 4.1.8

In analogy with Problem 1.2, determine the possible shapes of the gamma density Γ(g,1/α),α,g>0\Gamma (g, 1 / \alpha ), \alpha , g>0.

?
Problem 4.1.9

Let X1,…,XnX_{1}, \ldots , X_{n} be iid according to the Poisson distribution P(λ)P(\lambda ) and let λ\lambda have a gamma distribution Γ(g,α)\Gamma (g, \alpha ).

?
(a)

For squared error loss, show that the Bayes estimator δα,g\delta_{\alpha , g} of λ\lambda has a representation analogous to (1.1.13).

(b)

What happens to δα,g\delta_{\alpha , g} as (i) n→∞n \rightarrow \infty, (ii) α→∞,g→0\alpha \rightarrow \infty , g \rightarrow 0, or both?

Problem 4.1.10

For the situation of the preceding problem, solve the two parts corresponding to Problem 1.5(a) and (b).

?
Problem 4.1.11

In Problem 1.9, if λ\lambda has the improper prior density dλ/λd \lambda / \lambda (corresponding to α=g=\alpha =g= 0 ), under what circumstances is the posterior distribution proper?

?
Problem 4.1.12

Solve the problems analogous to Problems 1.9 and 1.10 when the observations consist of a single random variable XX having a negative binomial distribution Nb(p,m)N b(p, m), pp has the beta prior B(a,b)B(a, b), and the estimand is

?
(a)

pp and

(b)

1/p1 / p.

Problem 4.2.1

Referring to Example 1.5, suppose that XX has the binomial distribution b(p,n)b(p, n) and the family of prior distributions for pp is the family of beta distributions B(a,b)B(a, b).

?
(a)

Show that the marginal distribution of XX is the beta-binomial distribution with mass function

(nx)Γ(a+b)Γ(a)Γ(b)Γ(x+a)Γ(n−x+b)Γ(n+a+b). \binom {n}{x} \frac{\Gamma (a+b)}{\Gamma (a) \Gamma (b)} \frac{\Gamma (x+a) \Gamma (n-x+b)}{\Gamma (n+a+b)}.
(b)

Show that the mean and variance of the beta-binomial is given by

E[X]=naa+b and  var X=n(aa+b)(ba+b)(a+b+na+b+1). \mathbb {E}\left[X\right]=\frac{n a}{a+b} \quad \text{ and } \quad \text{ var } X=n\left(\frac{a}{a+b}\right)\left(\frac{b}{a+b}\right)\left(\frac{a+b+n}{a+b+1}\right).

[Hint: For part (b), the identities E[X]=E[E[X∣p]]\mathbb {E}\left[X\right]=E[\mathbb {E}\left[X \mid p\right]] and var⁡X=var⁡[E[X∣p]]+E[var⁡(X∣p)]\operatorname {var} X=\operatorname {var}[\mathbb {E}\left[X \mid p\right]]+ E[\operatorname {var}(X \mid p)] are helpful.]

Problem 4.2.2

For the situation of Example 2.1, Lindley and Phillips (1976) give a detailed account of the effect of stopping rules, which we can illustrate as follows. Let XX be the number of successes in nn Bernoulli trials with success probability pp.

?
(a)

Suppose that the number of Bernoulli trials performed is a prespecifed number nn, so that we have the binomial sampling model, P(X=x)=(nx)px(1−p)n−x\mathbb {P}\left(X=x\right)=\binom {n}{x} p^{x}(1-p)^{n-x}, x=0,1,…,nx=0,1, \ldots , n. Calculate the Bayes risk of the Bayes estimator (1.1.12) and the UMVU estimator of pp.

(b)

Suppose that the number of Bernoulli trials performed is a random variable NN. The value N=nN=n was obtained when a prespecified number, xx, of successes was observed so that we have the negative binomial sample model, P(N=n)=(n−1x−1)px(1−p)n−x\mathbb {P}\left(N=n\right)=\binom {n-1}{x-1} p^{x}(1- p)^{n-x}, n=xn=x. Calculate the Bayes risk of the Bayes estimator and the UMVU estimator of pp.

(c)

Calculate the mean squared errors of all three estimators under each model. If it is unknown which sampling mechanism generated the data, which estimator do you prefer overall?

Problem 4.2.3

Show that the estimator (2.2.4) tends in probability

?
(a)

to θ\theta as n→∞n \rightarrow \infty,

(b)

to μ\mu as b→0b \rightarrow 0, and

(c)

to θ\theta as b→∞b \rightarrow \infty.

Problem 4.2.4

Bickel and Mallows (1988) further investigate the relationship between unbiasedness and Bayes, specifying conditions under which these properties cannot hold simultaneously. In addition, they show that if a prior distribution is improper, then a posterior mean can be unbiased. Let X∼1θf(x/θ),x>0X \sim \frac{1}{\theta } f(x / \theta ), x>0, where ∫0∞tf(t)dt=1\int_{0}^{\infty } t f(t) d t=1, and let π(θ)=1θ2dθ\pi (\theta )=\frac{1}{\theta^{2}} d \theta, θ>0\theta >0.

?
(a)

Show that E[X∣θ]=θ\mathbb {E}\left[X \mid \theta \right]=\theta, so XX is unbiased.

(b)

Show that π(θ∣x)=x2θ3f(x/θ)\pi (\theta \mid x)=\frac{x^{2}}{\theta^{3}} f(x / \theta ) is a proper density.

(c)

Show that E[θ∣x]=x\mathbb {E}\left[\theta \mid x\right]=x, and hence the posterior mean, is unbiased.

Problem 4.2.5

DasGupta (1994) presents an identity relating the Bayes risk to bias, which illustrates that a small bias can help achieve a small Bayes risk. Let X∼f(x∣θ)X \sim f(x \mid \theta ) and θ∼π(θ)\theta \sim \pi (\theta ). The Bayes estimator under squared error loss is δπ=E[θ∣x]\delta^{\pi }=\mathbb {E}\left[\theta \mid x\right]. Show that the Bayes risk of δπ\delta^{\pi } can be written

r(π,δπ)=∫Θ∫X[θ−δπ(x)]2f(x∣θ)π(θ)dxdθ=∫Θθb(θ)π(θ)dθ r\left(\pi , \delta ^{\pi }\right)=\int _{\Theta } \int _{\mathcal{X}}\left[\theta -\delta ^{\pi }(x)\right]^{2} f(x \mid \theta ) \pi (\theta ) d x d \theta =\int _{\Theta } \theta b(\theta ) \pi (\theta ) d \theta

where b(θ)=E[δπ(X)∣θ]−θb(\theta )=\mathbb {E}\left[\delta^{\pi }(X) \mid \theta \right]-\theta is the bias of δπ\delta^{\pi }.

?
Problem 4.2.6

Verify the estimator (2.2.10).

?
Problem 4.2.7

In Example 2.6, verify that the posterior distribution of τ\tau is Γ(r+g−1/2,1/(α+z))\Gamma (r+g-1 / 2,1 /(\alpha +z)).

?
Problem 4.2.8

In Example 2.6 with α=g=0\alpha =g=0, show that the posterior distribution given the XX 's of n(θ−Xˉ)/Z/(n−1)\sqrt{n}(\theta -\bar{X}) / \sqrt{Z /(n-1)} is Student's tt-distribution with n−1n-1 degrees of freedom.

?
Problem 4.2.9

In Example 2.6, show that the posterior distribution of θ\theta is symmetric about xˉ\bar{x} when the joint prior of θ\theta and σ\sigma is of the form h(σ)dσdθh(\sigma ) d \sigma d \theta, where hh is an arbitrary probability density on (0,∞)(0, \infty ).

?
Problem 4.2.10

Rukhin (1978) investigates the situation when the Bayes estimator is the same for every loss function in a certain set of loss functions, calling such estimators universal Bayes estimators. For the case of Example 2.6, using the prior of the form of Problem 2.9, show that Xˉ\bar{X} is the Bayes estimator under every even loss function.

?
Problem 4.2.11

Let XX and YY be independently distributed according to distributions PξP_{\xi } and QηQ_{\eta }, respectively. Suppose that ξ\xi and η\eta are real-valued and independent according to some prior distributions Λ\Lambda and Λ′\Lambda^{\prime }. If, with squared error loss, δΛ\delta_{\Lambda } is the Bayes estimator of ξ\xi on the basis of XX, and δΛ′′\delta_{\Lambda^{\prime }}^{\prime } is that of η\eta on the basis of YY,

?
(a)

show that δΛ′′−δΛ\delta_{\Lambda^{\prime }}^{\prime }-\delta_{\Lambda } is the Bayes estimator of η−ξ\eta -\xi on the basis of (X,Y)(X, Y);

(b)

if η>0\eta >0 and δΛ′∗\delta_{\Lambda^{\prime }}^{*} is the Bayes estimator of 1/η1 / \eta on the basis of YY, show that δΛ⋅δΛ′∗\delta_{\Lambda } \cdot \delta_{\Lambda^{\prime }}^{*} is the Bayes estimator of ξ/η\xi / \eta on the basis of (X,Y)(X, Y).

Problem 4.2.12

For the density (2.2.13) and improper prior (dσ/σ)⋅(dσA/σA)(d \sigma / \sigma ) \cdot \left(d \sigma_{A} / \sigma_{A}\right), show that the posterior distribution of (σ,σA)\left(\sigma , \sigma_{A}\right) continues to be improper.

?
Problem 4.2.13
?
(a)

In Example 2.7, obtain the Jeffreys prior distribution of (σ,τ)(\sigma , \tau ).

(b)

Show that for the prior of part (a), the posterior distribution of (σ,τ)(\sigma , \tau ) is proper.

Problem 4.2.14

Verify the Bayes estimator (2.2.14).

?
Problem 4.2.15

Let X∼N(θ,1)X \sim N(\theta , 1) and L(θ,δ)=(θ−δ)2L(\theta , \delta )=(\theta -\delta )^{2}.

?
(a)

Show that XX is the limit of the Bayes estimators δπn\delta^{\pi_{n}}, where πn\pi_{n} is N(0,1)N(0,1). Hence, XX is both generalized Bayes and a limit of Bayes estimators.

(b)

For the prior measure π(θ)=eaθ,a>0\pi (\theta )=e^{a \theta }, a>0, show that the generalized Bayes estimator is X+aX+a.

(c)

For a>0a>0, show that there is no sequence of proper priors for which δπn→X+a\delta^{\pi_{n}} \rightarrow X+a.

This example is due to Farrell; see Kiefer 1966. Heath and Sudderth (1989), building on the work of Stone (1976), showed that inferences from this model are incoherent, and established when generalized Bayes estimators will lead to coherent (that is, noncontradictory) inferences. Their work is connected to the theory of "approximable by proper priors," developed by Stein (1965) and Stone (1965, 1970, 1976), which shows when generalized Bayes estimators can be looked upon as Bayes estimators.

Problem 4.2.16
?
(a)

For the situation of Example 2.8, verify that δ(x)=x/n\delta (x)=x / n is a generalized Bayes estimator.

(b)

If X∼N(0,1)X \sim N(0,1) and L(θ,δ)=(θ−δ)2L(\theta , \delta )=(\theta -\delta )^{2}, show that XX is generalized Bayes under the improper prior π(θ)=1\pi (\theta )=1.

Problem 4.3.1

For the situation of Example 3.1:

?
(a)

Verify that the Bayes estimator will only depend on the data through Y=max⁡iXiY=\max_{i} X_{i}.

(b)

Show that E[Θ∣y,a,b]\mathbb {E}\left[\Theta \mid y, a, b\right] can be expressed as

E[Θ∣y,a,b]=1b(n+a−1)P(χ2(n+a−1)2<2/by)P(χ2(n+a)2<2/by) \mathbb {E}\left[\Theta \mid y, a, b\right]=\frac{1}{b(n+a-1)} \frac{P\left(\chi _{2(n+a-1)}^{2}<2 / b y\right)}{P\left(\chi _{2(n+a)}^{2}<2 / b y\right)}

where χv2\chi_{v}^{2} is a chi-squared random variable with vv degrees of freedom. (In this form, the estimator is particularly easy to calculate, as many computer packages will have the chi-squared distribution built in.)

Problem 4.3.2

Let X1,…,XnX_{1}, \ldots , X_{n} be iid from Gamma⁡(a,b)\operatorname {Gamma}(a, b) where aa is known.

?
(a)

Verify that the conjugate prior for the natural parameter η=−1/b\eta =-1 / b is equivalent to an inverted gamma prior on bb.

(b)

Using the prior in part (a), find the Bayes estimator under the losses (i) L(b,δ)=(b−δ)2L(b, \delta )= (b-\delta )^{2} and (ii) L(b,δ)=(1−δ/b)2L(b, \delta )=(1-\delta / b)^{2}.

(c)

Express the estimator in part (b)(i) in the form (3.3.9). Can the same be done for the estimator in part (b)(ii)?

Problem 4.3.3

Corollary 3.3 states: if X=(X1,…,Xp)X=(X_{1}, \ldots , X_{p}) has the density pη(x)=e∑i=1pηixi−A(η)h(x)p_{\eta }(x)=e^{\sum_{i=1}^{p} \eta_{i} x_{i}-A(\eta )} h(x) and η\eta has prior density π(η)\pi (\eta ), the Bayes estimator of η\eta under the loss L(η,δ)=∑(ηi−δi)2L(\eta , \delta )=\sum (\eta_{i}-\delta_{i})^{2} is given by

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

Prove Corollary 3.3.

(b)

Verify the calculation of the Bayes estimator in Example 3.4.

Problem 4.3.4

Using Stein's identity (Lemma 1.5.15), show that if Xi∼pηi(x)X_{i} \sim p_{\eta_{i}}(x) of (3.3.7), then

Eη[−∇log⁡h(X)]=η,R(η,−∇log⁡h(X))=∑i=1pEη[−∂2∂Xi2log⁡h(X)]. \begin{align} \mathbb {E}_{\eta }\left[-\nabla \log h(\mathbf{X})\right] & =\boldsymbol {\eta }, \\ R(\boldsymbol {\eta },-\nabla \log h(\mathbf{X})) & =\sum _{i=1}^{p} \mathbb {E}_{\eta }\left[-\frac{\partial ^{2}}{\partial X_{i}^{2}} \log h(\mathbf{X})\right]. \end{align}
?
Problem 4.3.5
?
(a)

If Xi∼Gamma⁡(a,b),i=1,…,pX_{i} \sim \operatorname {Gamma}(a, b), i=1, \ldots , p, independent with aa known, calculate −∇log⁡h(x)-\nabla \log h(\mathbf{x}) and its expected value.

(b)

Apply the results of part (a) to the situation where Xi∼N(0,σi2),i=1,…,pX_{i} \sim N\left(0, \sigma_{i}^{2}\right), i=1, \ldots , p, independent. Does it lead to an unbiased estimator of σi2\sigma_{i}^{2}? [Note: For part (b), squared error loss on the natural parameter 1/σ21 / \sigma^{2} leads to the loss L(σ2,δ)=(σ2δ−1)2/σ4L\left(\sigma^{2}, \delta \right)=\left(\sigma^{2} \delta -1\right)^{2} / \sigma^{4} for estimation of σ2\sigma^{2}.]

(c)

If

Xi∼tan⁡(aiπ)πxai(1−x)−1,0<x<1,i=1,…,p, independent,  X_{i} \sim \frac{\tan \left(a_{i} \pi \right)}{\pi } x^{a_{i}}(1-x)^{-1}, 0<x<1, \quad i=1, \ldots , p, \text{ independent, }

evaluate −∇log⁡h(X)-\nabla \log h(\mathbf{X}) and show that it is an unbiased estimator of a=(a1,…,ap)\mathbf{a}=\left(a_{1}, \ldots , a_{p}\right).

Problem 4.3.6

For the situation of Example 3.6:

?
(a)

Show that if δ\delta is a Bayes estimator of θ\theta, then δ′=δ/σ2\delta^{\prime }=\delta / \sigma^{2} is a Bayes estimator of η\eta, and hence R(θ,δ)=σ4R(η,δ′)R(\theta , \delta )=\sigma^{4} R\left(\eta , \delta^{\prime }\right).

(b)

Show that the risk of the Bayes estimator of η\eta is given by

pτ4σ2(σ2+τ2)2+(σ2σ2+τ2)2∑ai2 \frac{p \tau ^{4}}{\sigma ^{2}\left(\sigma ^{2}+\tau ^{2}\right)^{2}}+\left(\frac{\sigma ^{2}}{\sigma ^{2}+\tau ^{2}}\right)^{2} \sum a_{i}^{2}

where ai=ηi−μ/σ2a_{i}=\eta_{i}-\mu / \sigma^{2}.

(c)

If Σai2=k\Sigma a_{i}^{2}=k, a fixed constant, then the minimum risk is attained at ηi=μ/σ2+k/p\eta_{i}=\mu / \sigma^{2}+\sqrt{k / p}.

Problem 4.3.7

If X\mathbf{X} has the distribution pθ(x)p_{\theta }(\mathbf{x}) of (1.5.1) show that, similar to Theorem 3.2, E[Tη(θ)]=∇log⁡mπ(x)−∇log⁡h(x)\mathbb {E}\left[\mathcal{T} \boldsymbol {\eta }(\theta )\right]= \nabla \log m_{\pi }(\mathbf{x})-\nabla \log h(\mathbf{x}).

?
Problem 4.3.8
?
(a)

Use Stein's identity (Lemma 1.5.15) to show that if Xi∼pηi(x)X_{i} \sim p_{\eta_{i}}(x) of (3.3.18), then

Eη[−∇log⁡h(X)]=∑iηiEη[∂∂XjTi(X)]. \mathbb {E}_{\eta }\left[-\nabla \log h(\mathbf{X})\right]=\sum _{i} \eta _{i} \mathbb {E}_{\eta }\left[\frac{\partial }{\partial X_{j}} T_{i}(\mathbf{X})\right].
(b)

If XiX_{i} are iid from a gamma distribution Gamma⁡(a,b)\operatorname {Gamma}(a, b), where the shape parameter aa is known, use part (a) to find an unbiased estimator of 1/b1 / b.

(c)

If the XiX_{i} are iid from a beta (a,b)(a, b) distribution, can the identity in part (a) be used to obtain an unbiased estimator of aa when bb is known, or an unbiased estimator of bb when aa is known?

Problem 4.3.9

For the natural exponential family pη(x)p_{\eta }(x) of (3.3.7) and the conjugate prior π(η∣k,μ)\pi (\eta \mid k, \mu ) of (3.3.19) establish that:

?
(a)

E[X]=A′(η)\mathbb {E}\left[X\right]=A^{\prime }(\eta ) and var X=A′′(η)X=A^{\prime \prime }(\eta ), where the expectation is with respect to the sampling density pη(x)p_{\eta }(x).

(b)

E[A′(η)]=μ\mathbb {E}\left[A^{\prime }(\eta )\right]=\mu and var⁡[A(η)]=(1/k)E[A′′(η)]\operatorname {var}[A(\eta )]=(1 / k) \mathbb {E}\left[A^{\prime \prime }(\eta )\right], where the expectation is with respect to the prior distribution.

[The results in part (b) enable us to think of μ\mu as a prior mean and kk as a prior sample size.]

Problem 4.3.10

For each of the following situations, write the density in the form (3.7), and identify the natural parameter. Obtain the Bayes estimator of A′(η)A^{\prime }(\eta ) using squared loss and the conjugate prior. Express your answer in terms of the original parameters.

?
(a)

X∼X \sim binomial (p,n)(p, n),

(b)

X∼X \sim Poisson(λ)(\lambda ), and

(c)

X∼Gamma⁡(a,b)X \sim \operatorname {Gamma}(a, b), aa known.

Problem 4.3.11

For the situation of Problem 3.9, if X1,…,XnX_{1}, \ldots , X_{n} are iid as pη(x)p_{\eta }(x) and the prior is the conjugate π(η∣k,μ)\pi (\eta \mid k, \mu ), then the posterior distribution is π(η∣k+n,kμ+nxˉk+n)\pi \left(\eta \mid k+n, \frac{k \mu +n \bar{x}}{k+n}\right).

?
Problem 4.3.12

If X1,…,XnX_{1}, \ldots , X_{n} are iid from a one-parameter exponential family, the Bayes estimator of the mean, under squared error loss using a conjugate prior, is of the form aXˉ+ba \bar{X}+b for constants aa and bb.

?
(a)

If E[Xi]=μ\mathbb {E}\left[X_{i}\right]=\mu and var Xi=σ2X_{i}=\sigma^{2}, then no matter what the distribution of the XiX_{i} 's, the mean squared error is

E[(aXˉ+b)−μ]2=a2 var Xˉ+[(a−1)μ+b]2. E[(a \bar{X}+b)-\mu ]^{2}=a^{2} \text{ var } \bar{X}+[(a-1) \mu +b]^{2}.
(b)

If μ\mu is unbounded, then no estimator of the form aXˉ+ba \bar{X}+b can have finite mean squared error for a≠1a \neq 1.

(c)

Can a conjugate-prior Bayes estimator in an exponential family have finite mean squared error?

Remark.
?

This problem shows why conjugate-prior Bayes estimators are considered "non-robust."

Problem 4.4.1

For the situation of Example 4.2:

?
(a)

Show that the Bayes rule under a beta (α,α)(\alpha , \alpha ) prior is equivariant.

(b)

Show that the Bayes rule under any prior that is symmetric about 1/21 / 2 is equivariant.

Problem 4.4.2

The Bayes estimator of η\eta in Example 4.7 is given by (4.22).

?
Problem 4.4.3

The Bayes estimator of τ\tau in Example 4.5 is given by (4.22).

?
Problem 4.4.4

The Bayes estimators of η\eta and τ\tau in Example 4.9 are given by (4.31) and (4.32). (Recall Corollary 1.2.)

?
Problem 4.4.5

For each of the following situations, find a group GG that leaves the model invariant and determine left- and right-invariant measures over GG. The joint density of X=(X1,…,Xn)\mathbf{X}= \left(X_{1}, \ldots , X_{n}\right) and Y=(Y1,…,Yn)\mathbf{Y}=\left(Y_{1}, \ldots , Y_{n}\right) and the estimand are

?
(a)

f(x−η,y−ζ)f(\mathbf{x}-\eta , \mathbf{y}-\zeta ), estimand η−ζ\eta -\zeta;

(b)

f(x−ησ,y−ζτ)f\left(\frac{\mathbf{x}-\eta }{\sigma }, \frac{\mathbf{y}-\zeta }{\tau }\right), estimand τ/σ\tau / \sigma;

(c)

f(x−ητ,/,y−ζτ),τf\left(\frac{\mathbf{x}-\eta }{\tau }, /, \frac{\mathbf{y}-\zeta }{\tau }\right), \tau unknown; estimand η−ζ\eta -\zeta.

Problem 4.4.6

For each of the situations of Problem 4.5, determine the MRE estimator if the loss is squared error with a scaling that makes it invariant.

?
Problem 4.4.7

For each of the situations of Problem 4.5:

?
(a)

Determine the measure over Ω\Omega induced by the right-invariant Haar measure over Gˉ\bar{G};

(b)

Determine the Bayes estimator with respect to the measure found in part (a), and show that it coincides with the MRE estimator.

Problem 4.4.8

In Example 4.9, show that the estimator

τ^(x)=∬1vrf(x1−uv,…,xn−uv)dvdu∬1vr+1f(x1−uv,…,xn−uv)dvdu \hat{\tau }(\mathbf{x})=\frac{\iint \frac{1}{v^{r}} f\left(\frac{x_{1}-u}{v}, \ldots , \frac{x_{n}-u}{v}\right) d v d u}{\iint \frac{1}{v^{r+1}} f\left(\frac{x_{1}-u}{v}, \ldots , \frac{x_{n}-u}{v}\right) d v d u}

is equivariant under scale changes; that is, it satisfies τˉ(cx)=cτ^(x)\bar{\tau }(c \mathbf{x})=c \hat{\tau }(\mathbf{x}) for all values of rr for which the integrals in τ^(x)\hat{\tau }(\mathbf{x}) exist.

?
Problem 4.4.9

If Λ\Lambda is a left-invariant measure over GG, show that Λ∗\Lambda^{*} defined by Λ∗(B)=Λ(B−1)\Lambda^{*}(B)=\Lambda \left(B^{-1}\right) is right invariant, where B−1={g−1:g∈B}B^{-1}=\left\{ g^{-1}: g \in B\right\}.

?
Problem 4.4.10

There is a correspondence between Haar measures and Jeffreys priors in the location and scale cases.

?
(a)

Show that in the location parameter case, the Jeffreys prior is equal to the invariant Haar measure.

(b)

Show that in the scale parameter case, the Jeffreys prior is equal to the invariant Haar measure.

(c)

Show that in the location-scale case, the Jeffreys prior is equal to the left invariant Haar measure.

[Part c) is a source of some concern because, as mentioned in Section 4.4 (see the discussion following Example 4.9), the best-equivariant rule is Bayes against the rightinvariant Haar measure (if it exists).]

Problem 4.4.11

For the model (3.3.23), find a measure ν\nu in the (ξ,τ)(\xi , \tau ) plane which remains invariant under the transformations (3.3.24). The next three problems contain a more formal development of left- and right-invariant Haar measures.

?
Problem 4.4.12

A measure Λ\Lambda over a group GG is said to be right invariant if it satisfies Λ(Bg)=Λ(B)\Lambda (B g)=\Lambda (B) and left invariant if it satisfies Λ(gB)=Λ(B)\Lambda (g B)=\Lambda (B). Note that if GG is commutative, the two definitions agree.

?
(a)

If the elements g∈Gg \in G are real numbers (−∞<g<∞)(-\infty <g<\infty ) and group composition is g2⋅g1=g1+g2g_{2} \cdot g_{1}=g_{1}+g_{2}, the measure ν\nu defined by ν(B)=∫Bdx\nu (B)=\int_{B} d x (i.e., Lebesgue measure) is both left and right invariant.

(b)

If the elements g∈Gg \in G are the positive real numbers, and composition of g2g_{2} and g1g_{1} is multiplication of the two numbers, the measure ν\nu defined by ν(B)=∫B(1/y)dy\nu (B)=\int_{B}(1 / y) d y is both left and right invariant.

Problem 4.4.13

If the elements g∈Gg \in G are pairs of real numbers (a,b)(a, b), b>0b>0, corresponding to the transformations gx=a+bxg x=a+b x, group composition by (1.4.8) is

(a2,b2)⋅(a1,b1)=(a2+a1b2,b1b2). \left(a_{2}, b_{2}\right) \cdot \left(a_{1}, b_{1}\right)=\left(a_{2}+a_{1} b_{2}, b_{1} b_{2}\right).

Of the measures defined by

ν(B)=∬B1ydxdy and ν(B)=∬B1y2dxdy \nu (B)=\iint _{B} \frac{1}{y} d x d y \quad \text{ and } \quad \nu (B)=\iint _{B} \frac{1}{y^{2}} d x d y

the first is right but not left invariant, and the second is left but not right invariant.

?
Problem 4.4.14

The four densities defining the measures vv of Problem 4.12 and 4.13(dx,(1/y)dy4.13(d x,(1 / y) d y, (1/y)dxdy,(1/y2)dxdy(1 / y) d x d y,\left(1 / y^{2}\right) d x d y ) are the only densities (up to multiplicative constants) for which vv has the stated invariance properties in the situations of these problems.

?
Problem 4.5.1

For the model (3.3.1), let π(θ∣x,λ)\pi (\theta \mid x, \lambda ) be a single-prior Bayes posterior and π(θ∣x)\pi (\theta \mid x) be a hierarchical Bayes posterior. Show that π(θ∣x)=∫π(θ∣x,λ)⋅π(λ∣x)dλ\pi (\theta \mid x)=\int \pi (\theta \mid x, \lambda ) \cdot \pi (\lambda \mid x) d \lambda, where π(λ∣x)=∫f(x∣θ)π(θ∣λ)γ(λ)dθ/∬f(x∣θ)π(θ∣λ)γ(λ)dθdλ\pi (\lambda \mid x)=\int f(x \mid \theta ) \pi (\theta \mid \lambda ) \gamma (\lambda ) d \theta / \iint f(x \mid \theta ) \pi (\theta \mid \lambda ) \gamma (\lambda ) d \theta d \lambda.

?
Problem 4.5.2

For the situation of Problem 5.1, show that:

?
(a)

E[θ∣x]=E[E[θ∣x,λ]]\mathbb {E}\left[\theta \mid x\right]=E[\mathbb {E}\left[\theta \mid x, \lambda \right]];

(b)

var⁡(θ∣x)=E[var⁡(θ∣x,λ)]+var⁡[E[θ∣x,λ]]\operatorname {var}(\theta \mid x)=E[\operatorname {var}(\theta \mid x, \lambda )]+\operatorname {var}[\mathbb {E}\left[\theta \mid x, \lambda \right]];

and hence that π(θ∣x)\pi (\theta \mid x) will tend to have a larger variance than π(θ∣x,λ0)\pi \left(\theta \mid x, \lambda_{0}\right).

Problem 4.5.3

For the model (3.3.3), show that:

?
(a)

The marginal prior of θ\theta, unconditional on τ2\tau^{2}, is given by

π(θ)=Γ(a+12)2πΓ(a)ba1(1b+θ22)a+1/2, \pi (\theta )=\frac{\Gamma \left(a+\frac{1}{2}\right)}{\sqrt{2 \pi } \Gamma (a) b^{a}} \frac{1}{\left(\frac{1}{b}+\frac{\theta ^{2}}{2}\right)^{a+1 / 2}},

which for a=v/2a=v / 2 and b=2/vb=2 / v is Student's tt-distribution with vv degrees of freedom.

(b)

The marginal posterior of τ2\tau^{2} is given by

π(τ2∣xˉ)=[σ2τ2σ2+τ2]1/2e−12xˉ2σ2+τ21(τ2)a+3/2e−1/bτ2∫0∞[σ2τ2σ2+τ2]1/2e−12xˉ2σ2+τ21(τ2)a+3/2e−1/bτ2dτ2 \pi \left(\tau ^{2} \mid \bar{x}\right)=\frac{\left[\frac{\sigma ^{2} \tau ^{2}}{\sigma ^{2}+\tau ^{2}}\right]^{1 / 2} e^{-\frac{1}{2} \frac{\bar{x}^{2}}{\sigma ^{2}+\tau ^{2}}} \frac{1}{\left(\tau ^{2}\right)^{a+3 / 2}} e^{-1 / b \tau ^{2}}}{\int _{0}^{\infty }\left[\frac{\sigma ^{2} \tau ^{2}}{\sigma ^{2}+\tau ^{2}}\right]^{1 / 2} e^{-\frac{1}{2} \frac{\bar{x}^{2}}{\sigma ^{2}+\tau ^{2}}} \frac{1}{\left(\tau ^{2}\right)^{a+3 / 2}} e^{-1 / b \tau ^{2}} d \tau ^{2}}
Problem 4.5.4

Albert and Gupta (1985) investigate theory and applications of the hierarchical model

Xi∣θi∼b(θi,n),i=1,…,p, independent, θi∣η∼beta⁡[kη,k(1−η)],k known, η∼Uniform⁡(0,1). \begin{align} X_{i} \mid \theta _{i} & \sim b\left(\theta _{i}, n\right), \quad i=1, \ldots , p, \text{ independent, } \\ \theta _{i} \mid \eta & \sim \operatorname {beta}[k \eta , k(1-\eta )], k \text{ known, } \\ \eta & \sim \operatorname {Uniform}(0,1). \end{align}
?
(a)

Show that

E[θi∣x]=(nn+k)(xin)+(kn+k)E[η∣x],var⁡(θi∣x)=k2(n+k)(n+k+1)var⁡(η∣x). \begin{align} \mathbb {E}\left[\theta _{i} \mid \mathbf{x}\right] & =\left(\frac{n}{n+k}\right)\left(\frac{x_{i}}{n}\right)+\left(\frac{k}{n+k}\right) \mathbb {E}\left[\eta \mid \mathbf{x}\right], \\ \operatorname {var}\left(\theta _{i} \mid \mathbf{x}\right) & =\frac{k^{2}}{(n+k)(n+k+1)} \operatorname {var}(\eta \mid \mathbf{x}). \end{align}

[Note that E[η∣x]\mathbb {E}\left[\eta \mid \mathbf{x}\right] and var⁡(η∣x)\operatorname {var}(\eta \mid \mathbf{x}) are not expressible in a simple form.]

(b)

Unconditionally on η\eta, the θi\theta_{i} 's have conditional covariance

cov⁡(θi,θj∣x)=(kn+k)2var⁡(η∣x),i≠j. \operatorname {cov}\left(\theta _{i}, \theta _{j} \mid \mathbf{x}\right)=\left(\frac{k}{n+k}\right)^{2} \operatorname {var}(\eta \mid \mathbf{x}), \quad i \neq j.
(c)

Ignoring the prior distribution of η\eta, show how to construct an empirical Bayes estimator of θi\theta_{i}. (Again, this is not expressible in a simple form.)

[Albert and Gupta (1985) actually consider a more general model than given here, and show how to approximate the Bayes solution. They apply their model to a problem of nonresponse in mail surveys.]

Problem 4.5.5
?
(a)

Analogous to Problem 1.7.9, establish that for any random variable X,YX, Y, and ZZ,

cov⁡(X,Y)=E[cov⁡(X,Y)∣Z]+cov⁡[E[X∣Z],E[Y∣Z]]. \operatorname {cov}(X, Y)=E[\operatorname {cov}(X, Y) \mid Z]+\operatorname {cov}[\mathbb {E}\left[X \mid Z\right], \mathbb {E}\left[Y \mid Z\right]].
(b)

For the hierarchy

Xi∣θi∼f(x∣θi),i=1,…,p, independent ,Θi∣λ∼π(θi∣λ),i=1,…,p, independent ,Λ∼γ(λ), \begin{align} X_{i} \mid \theta _{i} & \sim f\left(x \mid \theta _{i}\right), \quad i=1, \ldots , p, \text{ independent }, \\ \Theta _{i} \mid \lambda & \sim \pi \left(\theta _{i} \mid \lambda \right), \quad i=1, \ldots , p, \text{ independent }, \\ \Lambda & \sim \gamma (\lambda ), \end{align}

show that cov⁡(Θi,Θj∣x)=cov⁡[E[Θi∣x,λ],E[Θj∣x,λ]]\operatorname {cov}\left(\Theta_{i}, \Theta_{j} \mid \mathbf{x}\right)=\operatorname {cov}\left[\mathbb {E}\left[\Theta_{i} \mid \mathbf{x}, \lambda \right], \mathbb {E}\left[\Theta_{j} \mid \mathbf{x}, \lambda \right]\right].

(c)

If E[Θi∣x,λ]=g(xi)+h(λ),i=1,…,p\mathbb {E}\left[\Theta_{i} \mid \mathbf{x}, \lambda \right]=g\left(x_{i}\right)+h(\lambda ), i=1, \ldots , p, where g(⋅)g(\cdot ) and h(⋅)h(\cdot ) are known, then

cov⁡(Θi,Θj∣x)=var⁡[E[Θi∣x,λ]]. \operatorname {cov}\left(\Theta _{i}, \Theta _{j} \mid \mathbf{x}\right)=\operatorname {var}\left[\mathbb {E}\left[\Theta _{i} \mid \mathbf{x}, \lambda \right]\right].

[Part (c) points to what can be considered a limitation in the applicability of some hierarchical models, that they imply a positive correlation structure in the posterior distribution.]

Problem 4.5.6

The one-way random effects model of Example 2.7 (see also Examples 3.5.1 and 3.5.5) can be written as the hierarchical model

Xij∣μ,αi∼N(μ+αi,σ2),j=1,…,n,i=1,…,s,αi∼N(0,σA2),i=1,…,s. \begin{align} X_{i j} \mid \mu , \alpha _{i} & \sim N\left(\mu +\alpha _{i}, \sigma ^{2}\right), \quad j=1, \ldots , n, \quad i=1, \ldots , s, \\ \alpha _{i} & \sim N\left(0, \sigma _{A}^{2}\right), \quad i=1, \ldots , s. \end{align}

If, in addition, we specify that μ∼\mu \sim Uniform (−∞,∞)(-\infty , \infty ), show that the Bayes estimator of μ+αi\mu +\alpha_{i} under squared error loss is given by (3.5.13), the UMVU predictor of μ+αi\mu +\alpha_{i}.

?
Problem 4.5.7

Referring to Example 6.6:

?
(a)

Using the prior distribution for γ(b)\gamma (b) given in (5.6.27), show that the mode of the posterior distribution π(b∣x)\pi (b \mid \mathbf{x}) is b^=(pxˉ+α−1)/(pa+β−1)\hat{b}=(p \bar{x}+\alpha -1) /(p a+\beta -1), and hence the empirical Bayes estimator based on this b^\hat{b} does not equal the hierarchical Bayes estimator (5.6.29).

(b)

Show that if we estimate b/(b+1)b /(b+1) using its posterior expectation E[b/(b+1)∣x]E[b /(b+1) \mid \mathbf{x}], then the resulting empirical Bayes estimator is equal to the hierarchical Bayes estimator.

Problem 4.5.8

The method of Monte Carlo integration allows the calculation of (possibly complicated) integrals by using (possibly simple) generations of random variables.

?
(a)

To calculate ∫h(x)fX(x)dx\int h(x) f_{X}(x) d x, generate a sample X1,…,XmX_{1}, \ldots , X_{m}, iid, from fX(x)f_{X}(x). Then, 1/m∑i=1mh(xi)→∫h(x)fX(x)dx1 / m \sum_{i=1}^{m} h\left(x_{i}\right) \rightarrow \int h(x) f_{X}(x) d x as m→∞m \rightarrow \infty.

(b)

If it is difficult to generate random variable from fX(x)f_{X}(x), then generate pairs of random variables

Yi∼fY(y),Xi∼fX∣Y(x∣yi). \begin{align} Y_{i} & \sim f_{Y}(y), \\ X_{i} & \sim f_{X \mid Y}\left(x \mid y_{i}\right). \end{align}

Then, 1/m∑i=1mh(xi)→∫h(x)fX(x)dx1 / m \sum_{i=1}^{m} h\left(x_{i}\right) \rightarrow \int h(x) f_{X}(x) d x as m→∞m \rightarrow \infty. [Show that if XX is generated according to Y∼fY(y)Y \sim f_{Y}(y) and X∼fX∣Y(x∣Y)X \sim f_{X \mid Y}(x \mid Y), then P(X≤a)=∫−∞afx(x)dx\mathbb {P}\left(X \leq a\right)=\int_{-\infty }^{a} f_{x}(x) d x.]

(c)

If it is difficult to generate as in part (b), then generate

Xmi∼fX∣Y(x∣Ymi−1),Ymi∼fY∣X(y∣Xmi). \begin{align} X_{m_{i}} & \sim f_{X \mid Y}\left(x \mid Y_{m_{i-1}}\right), \\ Y_{m_{i}} & \sim f_{Y \mid X}\left(y \mid X_{m_{i}}\right). \end{align}

for i=1,…,Ki=1, \ldots , K and m=1,…,Mm=1, \ldots , M.

(d)

Show that:

  1. for each m,{Xmi}m,\left\{ X_{m_{i}}\right\} is a Markov chain. If it is also an ergodic Markov chain Xmi→LXX_{m_{i}} \xrightarrow {\mathcal{L}} X, as i→∞i \rightarrow \infty, where XX has the stationary distribution of the chain.

  2. If the stationary distribution of the chain is fX(x)f_{X}(x), then

    1M∑m=1Mh(xmk)→∫h(x)fX(x)dx \frac{1}{M} \sum _{m=1}^{M} h\left(x_{m_{k}}\right) \rightarrow \int h(x) f_{X}(x) d x

    as K,M→∞K, M \rightarrow \infty.

Remark.
?

This is the basic theory behind the Gibbs sampler. For each kk, we have generated independent random variables Xmk,m=1,…,MX_{m_{k}}, m=1, \ldots , M, where XmkX_{m_{k}} is distributed according to fX∣Y(x∣ymk−)f_{X \mid Y}\left(x \mid y_{m_{k-}}\right). It is also the case that for each mm and large k,Xmkk, X_{m_{k}} is approximately distributed according to fX(x)f_{X}(x), although the variables are not now independent. The advantages and disadvantages of these computational schemes (one-long-chain vs. manyshort-chains) are debated in Gelman and Rubin 1992; see also Geyer and Thompson 1992 and Smith and Roberts 1992. The prevailing consensus leans toward one long chain.

Problem 4.5.9

To understand the convergence of the Gibbs sampler, let (X,Y)∼f(x,y)(X, Y) \sim f(x, y), and define

k(x,x′)=∫fX∣Y(x∣y)fY∣X(y∣x′)dy k\left(x, x^{\prime }\right)=\int f_{X \mid Y}(x \mid y) f_{Y \mid X}\left(y \mid x^{\prime }\right) d y
?
(a)

Show that the function h∗(⋅)h^{*}(\cdot ) that solves h∗(x)=∫k(x,x′)h∗(x′)dx′h^{*}(x)=\int k\left(x, x^{\prime }\right) h^{*}\left(x^{\prime }\right) d x^{\prime } is h∗(x)=fX(x)h^{*}(x)= f_{X}(x), the marginal distribution of XX.

(b)

Write down the analogous integral equation that is solved by fY(y)f_{Y}(y).

(c)

Define a sequence of functions recursively by hi+1(x)=∫k(x,x′)hi(x′)dxI′h_{i+1}(x)=\int k\left(x, x^{\prime }\right) h_{i}\left(x^{\prime }\right) d x_{I}^{\prime } where h0(x)h_{0}(x) is arbitrary but satisfies sup⁡x∣h0(x)h∗(x)∣<∞\sup_{x}\left|\frac{h_{0}(x)}{h^{*}(x)}\right|<\infty. Show that

∫∣hi+1(x)−h∗(x)∣dx<∫∣hi(x)−h∗(x)∣dx \int \left|h_{i+1}(x)-h^{*}(x)\right| d x<\int \left|h_{i}(x)-h^{*}(x)\right| d x

and, hence, hi(x)h_{i}(x) converges to h∗(x)h^{*}(x).

[The method of part (c) is called successive substitution. When there are two variables in the Gibbs sampler, it is equivalent to data augmentation (Tanner and Wong 1987). Even if the variables are vector-valued, the above results establish convergence. If the original vector of variables contains more than two variables, then a more general version of this argument is needed (Gelfand and Smith 1990).]

Problem 4.5.10

A direct Monte Carlo implementation of substitution sampling is provided by the data augmentation algorithm (Tanner and Wong 1987). If we define

hi+1(x)=∫[∫fX∣Y(x∣y)fY∣X(y∣x′)dy]hi(x′)dx′ h_{i+1}(x)=\int \left[\int f_{X \mid Y}(x \mid y) f_{Y \mid X}\left(y \mid x^{\prime }\right) d y\right] h_{i}\left(x^{\prime }\right) d x^{\prime }

then from Problem 5.9, hi(x)→fx(x)h_{i}(x) \rightarrow f_{x}(x) as i→∞i \rightarrow \infty.

?
(a)

To calculate hi+1h_{i+1} using Monte Carlo integration:

  1. Generate Xj′∼hi(x′),j=1,…,JX_{j}^{\prime } \sim h_{i}\left(x^{\prime }\right), \quad j=1, \ldots , J.

  2. Generate, for each xj′,Yjk∼fY∣X(y∣xj′),k=1,…,Kx_{j}^{\prime }, Y_{j k} \sim f_{Y \mid X}\left(y \mid x_{j}^{\prime }\right), k=1, \ldots , K.

  3. Calculate h^i+1(x)=1J∑j=1J1K∑k=1KfX∣Y(x∣yjk)\hat{h}_{i+1}(x)=\frac{1}{J} \sum_{j=1}^{J} \frac{1}{K} \sum_{k=1}^{K} f_{X \mid Y}\left(x \mid y_{j k}\right). Then, h^i+1(x)→hi+1(x)\hat{h}_{i+1}(x) \rightarrow h_{i+1}(x) as J,K→∞J, K \rightarrow \infty, and hence the data augmentation algorithm converges.

(b)

To implement (a)(i), we must be able to generate a random variable from a mixture distribution. Show that if fY(y)=∑i=1naigi(y),Σai=1f_{Y}(y)=\sum_{i=1}^{n} a_{i} g_{i}(y), \Sigma a_{i}=1, then the algorithm

  1. Select gig_{i} with probability aia_{i}

  2. Generate Y∼giY \sim g_{i} produces a random variable with distribution fYf_{Y}.

Hence, show how to implement step (a)(i) by generating random variables from fX∣Yf_{X \mid Y}. Tanner and Wong (1987) note that this algorithm will work even if J=1J=1, which yields the approximation

h^i+1(x)=1K∑k=1KfX∣Y(x∣yk), \hat{h}_{i+1}(x)=\frac{1}{K} \sum _{k=1}^{K} f_{X \mid Y}\left(x \mid y_{k}\right),

identical to the Gibbs sampler. The data augmentation algorithm can also be seen as an application of the process of multiple imputation (Rubin 1976, 1987, Little and Rubin 1987).

Problem 4.5.11

Successive substitution sampling can be implemented via the Gibbs sampler in the following way. From Problem 5.8(c), we want to calculate

hM=1M∑m=1Mk(x∣xmk)=1M∑m=1M∫fX∣Y(x∣y)fX∣Y(y∣xmk)dy. h_{M}=\frac{1}{M} \sum _{m=1}^{M} k\left(x \mid x_{m_{k}}\right)=\frac{1}{M} \sum _{m=1}^{M} \int f_{X \mid Y}(x \mid y) f_{X \mid Y}\left(y \mid x_{m_{k}}\right) d y.
?
(a)

Show that hM(x)→fX(x)h_{M}(x) \rightarrow f_{X}(x) as M→∞M \rightarrow \infty.

(b)

Given xmkx_{m_{k}}, a Monte Carlo approximation to hM(x)h_{M}(x) is

h^M(x)=1M∑m=1M1J∑j=1JfX∣Y(x∣ykj) \hat{h}_{M}(x)=\frac{1}{M} \sum _{m=1}^{M} \frac{1}{J} \sum _{j=1}^{J} f_{X \mid Y}\left(x \mid y_{k_{j}}\right)

where Ykj∼fY∣X(y∣xmk)Y_{k_{j}} \sim f_{Y \mid X}\left(y \mid x_{m_{k}}\right) and h^M(x)→hM(x)\hat{h}_{M}(x) \rightarrow h_{M}(x) as J→∞J \rightarrow \infty.

(c)

Hence, as M,J→∞,h^M(x)→fX(x)M, J \rightarrow \infty , \hat{h}_{M}(x) \rightarrow f_{X}(x).

Remark.
?

This is the Gibbs sampler, which is usually implemented with J=1J=1.

Problem 4.5.12

For the situation of Example 5.6, show that

?
(a)
E[1M∑i=1MΘi]=E[1M∑i=1ME[Θ∣x,τi]], \mathbb {E}\left[\frac{1}{M} \sum _{i=1}^{M} \Theta _{i}\right]=\mathbb {E}\left[\frac{1}{M} \sum _{i=1}^{M} \mathbb {E}\left[\Theta \mid \mathbf{x}, \tau _{i}\right]\right],
(b)
var⁡(1M∑i=1MΘi)≥var⁡(1M∑i=1ME[Θ∣x,τi]). \operatorname {var}\left(\frac{1}{M} \sum _{i=1}^{M} \Theta _{i}\right) \geq \operatorname {var}\left(\frac{1}{M} \sum _{i=1}^{M} \mathbb {E}\left[\Theta \mid \mathbf{x}, \tau _{i}\right]\right).
(c)

Discuss when equality might hold in (b). Can you give an example?

Problem 4.5.13

Show that for the hierarchy (5.5.1), the posterior distributions π(θ∣x)\pi (\theta \mid \mathbf{x}) and π(λ∣x)\pi (\lambda \mid \mathbf{x}) satisfy

π(θ∣x)=∫[∫π(θ∣x,λ)π(λ∣x,θ′)dλ]π(θ′∣x)dθ′π(λ∣x)=∫[∫π(λ∣x,θ)π(θ∣x,λ′)dθ]π(λ′∣x)dλ′ \begin{align} & \pi (\theta \mid \mathbf{x})=\int \left[\int \pi (\theta \mid \mathbf{x}, \lambda ) \pi \left(\lambda \mid \mathbf{x}, \theta ^{\prime }\right) d \lambda \right] \pi \left(\theta ^{\prime } \mid \mathbf{x}\right) d \theta ^{\prime } \\ & \pi (\lambda \mid \mathbf{x})=\int \left[\int \pi (\lambda \mid \mathbf{x}, \theta ) \pi \left(\theta \mid \mathbf{x}, \lambda ^{\prime }\right) d \theta \right] \pi \left(\lambda ^{\prime } \mid \mathbf{x}\right) d \lambda ^{\prime } \end{align}

and, hence, are stationary points of the Markov chains in (5.5.13).

?
Problem 4.5.14

Starting from a uniform random variable U∼Uniform⁡(0,1)U \sim \operatorname {Uniform}(0,1), it is possible to construct many random variables through transformations.

?
(a)

Show that −log⁡U∼exp⁡(1)-\log U \sim \exp (1).

(b)

Show that −∑i=1nlog⁡Ui∼Gamma⁡(n,1)-\sum_{i=1}^{n} \log U_{i} \sim \operatorname {Gamma}(n, 1), where U1,…,UnU_{1}, \ldots , U_{n} are iid as U(0,1)U(0,1).

(c)

Let X∼Exp⁡(a,b)X \sim \operatorname {Exp}(a, b). Write XX as a function of UU.

(d)

Let X∼Gamma⁡(n,β)X \sim \operatorname {Gamma}(n, \beta ), nn an integer. Write XX as a function of U1,…,UnU_{1}, \ldots , U_{n}, iid as U(0,1)U(0,1).

Problem 4.5.15

Starting with a U(0,1)U(0,1) random variable, the transformations of Problem 5.14 will not get us normal random variables, or gamma random variables with noninteger shape parameters. One way of doing this is to use the Accept-Reject Algorithm (Ripley 1987, Section 3.2), an algorithm for simulating X∼f(x)X \sim f(x) :

  1. Generate Y∼g(y),U∼U(0,1)Y \sim g(y), U \sim U(0,1), independent.

  2. Calculate ρ(Y)=1Mf(Y)g(Y)\rho (Y)=\frac{1}{M} \frac{f(Y)}{g(Y)} where M=sup⁡tf(t)/g(t)M=\sup_{t} f(t) / g(t).

  3. If U<ρ(Y)U<\rho (Y), set X=YX=Y, otherwise return to i).

?
(a)

Show that the algorithm will generate X∼f(x)X \sim f(x).

(b)

Starting with Y∼exp⁡(1)Y \sim \exp (1), show how to generate X∼N(0,1)X \sim N(0,1).

(c)

Show how to generate a gamma random variable with a noninteger shape parameter.

Problem 4.5.16

Consider the normal hierarchical model

X∣θ1∼n(θ1,σ12),θ1∣θ2∼n(θ2∣σ22),⋮θk−1∣θk∼n(θk,σk2) \begin{align} X \mid \theta _{1} & \sim n\left(\theta _{1}, \sigma _{1}^{2}\right), \\ \theta _{1} \mid \theta _{2} & \sim n\left(\theta _{2} \mid \sigma _{2}^{2}\right), \\ \vdots & \\ \theta _{k-1} \mid \theta _{k} & \sim n\left(\theta _{k}, \sigma _{k}^{2}\right) \end{align}

where σ12,i=1,…,k\sigma_{1}^{2}, i=1, \ldots , k, are known.

?
(a)

Show that the posterior distribution of θi(1≤i≤k−1)\theta_{i}(1 \leq i \leq k-1) is

π(θi∣x,θk)=N(αix+(1−αi)θk,τi2) \pi \left(\theta _{i} \mid x, \theta _{k}\right)=N\left(\alpha _{i} x+\left(1-\alpha _{i}\right) \theta _{k}, \tau _{i}^{2}\right)

where τi2=(Σ1iσj2)(Σi+1kσj2)/Σikσj2\tau_{i}^{2}=\left(\Sigma_{1}^{i} \sigma_{j}^{2}\right)\left(\Sigma_{i+1}^{k} \sigma_{j}^{2}\right) / \Sigma_{i}^{k} \sigma_{j}^{2} and αi=τi2/Σ1iσj2\alpha_{i}=\tau_{i}^{2} / \Sigma_{1}^{i} \sigma_{j}^{2}.

(b)

Find an expression for the Kullback-Leibler information K[π(θi∣x,θk),π(θi∣θk)]K\left[\pi \left(\theta_{i} \mid x, \theta_{k}\right), \pi \left(\theta_{i} \mid \theta_{k}\right)\right] and show that it is a decreasing function of ii.

Problem 4.5.17

The original proof of Theorem 5.7 (Goel and DeGroot 1981) used Rényi's entropy function (Rényi 1961)

Rα(f,g)=1α−1log⁡∫fα(x)g1−α(x)dμ(x), R_{\alpha }(f, g)=\frac{1}{\alpha -1} \log \int f^{\alpha }(x) g^{1-\alpha }(x) d \mu (x),

where ff and gg are densities, μ\mu is a dominating measure, and α\alpha is a constant, α≠1\alpha \neq 1.

?
(a)

Show that Rα(f,g)R_{\alpha }(f, g) satisfies Rα(f,g)>0R_{\alpha }(f, g)>0 and Rα(f,f)=0R_{\alpha }(f, f)=0.

(b)

Show that Theorem 5.7 holds if Rα(f,g)R_{\alpha }(f, g) is used instead of K[f,g]K[f, g].

(c)

Show that lim⁡α→1Rα(f,g)=K[f,g]\lim_{\alpha \rightarrow 1} R_{\alpha }(f, g)=K[f, g], and provide another proof of Theorem 5.7.

Problem 4.5.18

The Kullback-Leibler information, K[f,g]K[f, g] (5.5.25), is not symmetric in ff and gg, and a modification, called the divergence, remedies this. Define J[f,g]J[f, g], the divergence between ff and gg, to be J[f,g]=K[f,g]+K[g,f]J[f, g]=K[f, g]+K[g, f]. Show that, analogous to Theorem 5.7, J[π(λ∣x),γ(λ)]<J[π(θ∣x),π(θ)]J[\pi (\lambda \mid x), \gamma (\lambda )]<J[\pi (\theta \mid x), \pi (\theta )].

?
Problem 4.5.19

Goel and DeGroot (1981) define a Bayesian analog of Fisher information [see (2.5.10)] as

I[π(θ∣x)]=∫Ω[∂∂xπ(θ∣x)π(θ∣x)]2dθ \mathcal{I}[\pi (\theta \mid x)]=\int _{\Omega }\left[\frac{\frac{\partial }{\partial x} \pi (\theta \mid x)}{\pi (\theta \mid x)}\right]^{2} d \theta

the information that xx has about the posterior distribution. As in Theorem 5.7, show that I[π(λ∣x)]<I[π(θ∣x)]\mathcal{I}[\pi (\lambda \mid x)]<\mathcal{I}[\pi (\theta \mid x)], again showing that the influence of λ\lambda is less than that of θ\theta.

?
Problem 4.5.20

Each of mm spores has a probability τ\tau of germinating. Of the rr spores that germinate, each has probability ω\omega of bending in a particular direction. If ss bends in the particular direction, a probability model to describe this process is the bivariate binomial, with mass function

f(r,s∣τ,ω,m)=(mr)τr(1−τ)m−r(rs)ωs(1−ω)r−s. f(r, s \mid \tau , \omega , m)=\binom {m}{r} \tau ^{r}(1-\tau )^{m-r}\binom {r}{s} \omega ^{s}(1-\omega )^{r-s}.
?
(a)

Show that the Jeffreys prior is πJ(τ,ω)=(1−τ)−1/2ω−1/2(1−ω)−1/2\pi_{J}(\tau , \omega )=(1-\tau )^{-1 / 2} \omega^{-1 / 2}(1-\omega )^{-1 / 2}.

(b)

If τ\tau is considered a nuisance parameter, the reference prior is

πR(τ,ω)=τ−1/2(1−τ)−1/2ω−1/2(1−ω)−1/2. \pi _{R}(\tau , \omega )=\tau ^{-1 / 2}(1-\tau )^{-1 / 2} \omega ^{-1 / 2}(1-\omega )^{-1 / 2}.

Compare the posterior means E[ω∣r,s,m]\mathbb {E}\left[\omega \mid r, s, m\right] under both the Jeffreys and reference priors. Is one more appropriate?

(c)

What is the effect of the different priors on the posterior variance?

[Priors for the bivariate binomial have been considered by Crowder and Sweeting (1989), Polson and Wasserman (1990), and Clark and Wasserman (1993), who propose a reference/Jeffreys trade-off prior.]

Problem 4.5.21

Let F={f(x∣θ);θ∈Ω}\mathcal{F}=\left\{ f(x \mid \theta ) ; \theta \in \Omega \right\} be a family of probability densities. The Kullback-Leibler information for discrimination between two densities in F\mathcal{F} can be written

ψ(θ1,θ2)=∫f(x∣θ1)log⁡[f(x∣θ1)f(x∣θ2)]dx. \psi \left(\theta _{1}, \theta _{2}\right)=\int f\left(x \mid \theta _{1}\right) \log \left[\frac{f\left(x \mid \theta _{1}\right)}{f\left(x \mid \theta _{2}\right)}\right] d x.

Recall that the gradient of ψ\psi is ∇ψ={(∂/∂θi)ψ}\nabla \psi =\left\{ \left(\partial / \partial \theta_{i}\right) \psi \right\} and the Hessian is ∇∇ψ={(∂2/∂θi∂θj)ψ}\nabla \nabla \psi = \left\{ \left(\partial^{2} / \partial \theta_{i} \partial \theta_{j}\right) \psi \right\}.

?
(a)

If integration and differentiation can be interchanged, show that

∇ψ(θ,θ)=0 and det⁡[∇∇ψ(θ,θ)]=I(θ), \nabla \psi (\theta , \theta )=0 \quad \text{ and } \quad \operatorname {det}[\nabla \nabla \psi (\theta , \theta )]=I(\theta ),

where I(θ)I(\theta ) is the Fisher information of f(x∣θ)f(x \mid \theta ).

(b)

George and McCulloch (1993) argue that choosing π(θ)=(det⁡[∇∇ψ(θ,θ)])1/2\pi (\theta )=(\operatorname {det}[\nabla \nabla \psi (\theta , \theta )])^{1 / 2} is an appealing least informative choice of priors. What justification can you give for this?

Problem 4.6.1

For the model (3.3.1), show that δλ(x)∣λ=λ^=δλ^(x)\left.\delta^{\lambda }(x)\right|_{\lambda =\hat{\lambda }}=\delta^{\hat{\lambda }(x)}, where the Bayes estimator δλ(x)\delta^{\lambda }(x) minimizes ∫L[θ,d(x)]π(θ∣x,λ)dθ\int L[\theta , d(x)] \pi (\theta \mid x, \lambda ) d \theta and the empirical Bayes estimator δλ^(x)\delta^{\hat{\lambda }(x)} minimizes ∫L[θ,d(x)]π(θ∣x,λ^)dθ\int L[\theta , d(x)] \pi (\theta \mid x, \hat{\lambda }) d \theta.

?
Problem 4.6.2

This problem will investigate conditions under which an empirical Bayes estimator is a Bayes estimator. Expression (6.6.3) is a true posterior expected loss if π(θ∣x,λ^(x))\pi (\theta \mid \mathbf{x}, \hat{\lambda }(\mathbf{x})) is a true posterior.

From the hierarchy

X∣θ∼f(x∣θ),Θ∣λ∼π(θ∣λ), \begin{align} & X \mid \theta \sim f(x \mid \theta ), \\ & \Theta \mid \lambda \sim \pi (\theta \mid \lambda ), \end{align}

define the joint distribution of X\mathbf{X} and Θ\Theta to be (X,θ)∼g(x,θ)=f(x∣θ)π(θ∣λ^(x))(\mathbf{X}, \theta ) \sim g(\mathbf{x}, \theta )=f(\mathbf{x} \mid \theta ) \pi (\theta \mid \hat{\lambda }(\mathbf{x})), where π(θ∣λ^(x))\pi (\theta \mid \hat{\lambda }(\mathbf{x})) is obtained by substituting λ^(x)\hat{\lambda }(\mathbf{x}) for λ\lambda in π(θ∣λ)\pi (\theta \mid \lambda ).

?
(a)

Show that, for this joint density, the formal Bayes estimator is equivalent to the empirical Bayes estimator from the hierarchical model.

(b)

If f(⋅∣θ)f(\cdot \mid \theta ) and π(⋅∣λ)\pi (\cdot \mid \lambda ) are proper densities, then ∫g(x,θ)dθ<∞\int g(\mathbf{x}, \theta ) d \theta <\infty. However, ∬g(x,θ)dxdθ\iint g(\mathbf{x}, \theta ) d \mathbf{x} d \theta need not be finite.

Problem 4.6.3

For the model (6.3.1), the Bayes estimator δλ(x)\delta^{\lambda }(x) minimizes ∫L(θ,d(x))×π(θ∣x,λ)dθ\int L(\theta , d(x)) \times \pi (\theta \mid x, \lambda ) d \theta and the empirical Bayes estimator, δλ^(x)\delta^{\hat{\lambda }}(x), minimizes ∫L(θ,d(x))π(θ∣x,λ^(x))dθ\int L(\theta , d(x)) \pi (\theta \mid x, \hat{\lambda }(x)) d \theta. Show that δλ(x)∣λ=λ^(x)=δλ^(x)\left.\delta^{\lambda }(x)\right|_{\lambda =\hat{\lambda }(x)}=\delta^{\hat{\lambda }}(x).

?
Problem 4.6.4

For the situation of Example 6.1:

?
(a)

Show that

∫−∞∞e−n/2σ2(xˉ−θ)2e(−1/2)θ2/τ2dθ=2π(σ2τ2σ2+τ2)1/2e(−n/2)xˉ2/σ2+nτ2 \int _{-\infty }^{\infty } e^{-n / 2 \sigma ^{2}(\bar{x}-\theta )^{2}} e^{(-1 / 2) \theta ^{2} / \tau ^{2}} d \theta =\sqrt{2 \pi }\left(\frac{\sigma ^{2} \tau ^{2}}{\sigma ^{2}+\tau ^{2}}\right)^{1 / 2} e^{(-n / 2) \bar{x}^{2} / \sigma ^{2}+n \tau ^{2}}

and, hence, establish (6.6.4).

(b)

Verify that the marginal MLE of σ2+nτ2\sigma^{2}+n \tau^{2} is nxˉ2n \bar{x}^{2} and that the empirical Bayes estimator is given by (6.6.5).

Problem 4.6.5

Referring to Example 6.2:

?
(a)

Show that the Bayes risk, r(π,δπ)r\left(\pi , \delta^{\pi }\right), of the Bayes estimator (6.6.7) is given by

r(π,δπ)=kE[var⁡(pk∣xk)]=kab(a+b)(a+b+1)(a+b+n). r\left(\pi , \delta ^{\pi }\right)=k \mathbb {E}\left[\operatorname {var}\left(p_{k} \mid x_{k}\right)\right]=\frac{k a b}{(a+b)(a+b+1)(a+b+n)}.
(b)

Show that the Bayes risk of the unbiased estimator X/n=(X1/n,…,Xk/n)\mathbf{X} / n=\left(X_{1} / n, \ldots , X_{k} / n\right) is given by

r(π,X/n)=kabn(a+b+1)(a+b). r(\pi , \mathbf{X} / n)=\frac{k a b}{n(a+b+1)(a+b)}.
Problem 4.6.6

Theorem 6.3 states: for the situation of Corollary 3.3 (if X=(X1,…,Xp)X=(X_{1}, \ldots , X_{p}) has the density pη(x)=e∑iηixi−A(η)h(x)p_{\eta }(x)=e^{\sum_{i} \eta_{i} x_{i}-A(\eta )} h(x) and η\eta has prior density π(η)\pi (\eta ), the Bayes estimator of η\eta under squared error loss is E[ηi∣x]=∂∂xilog⁡m(x)−∂∂xilog⁡h(x)\mathbb {E}\left[\eta_{i} \mid x\right]=\frac{\partial }{\partial x_{i}} \log m(x)-\frac{\partial }{\partial x_{i}} \log h(x)), with prior distribution π(η∣λ)\pi (\eta \mid \lambda ), suppose λ^(x)\hat{\lambda }(x) is the MLE of λ\lambda based on m(x∣λ)m(x \mid \lambda ). Then, the empirical Bayes estimator is

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

Extend Theorem 6.3 to the case of Theorem 3.2; that is, if X\mathbf{X} has density (3.3.7) and η\boldsymbol {\eta } has prior density π(η∣γ)\pi (\boldsymbol {\eta } \mid \gamma ), then the empirical Bayes estimator is

E[∑ηi∂Ti(x)∂xj∣ x,γ^(x)]=∂∂xjlog⁡m(x∣γ^(x))−∂∂xjlog⁡h(x), \mathbb {E}\left[\left.\sum \eta _{i} \frac{\partial T_{i}(\mathbf{x})}{\partial x_{j}} \right\rvert \, \mathbf{x}, \hat{\gamma }(\mathbf{x})\right]=\frac{\partial }{\partial x_{j}} \log m(\mathbf{x} \mid \hat{\gamma }(\mathbf{x}))-\frac{\partial }{\partial x_{j}} \log h(\mathbf{x}),

where m(x∣γ)m(\mathbf{x} \mid \gamma ) is the marginal distribution of X and γ^(x)\hat{\gamma }(\mathbf{x}) is the marginal MLE of γ\gamma.

?
Problem 4.6.7
?
(a)

For pη(x)p_{\eta }(\mathbf{x}) of (1.5.2), show that for any prior distribution π(η∣λ)\pi (\eta \mid \lambda ) that is dependent on a hyperparameter λ\lambda, the empirical Bayes estimator is given by

E[∑i=1sηi∂∂xjTi(x)∣ x,λ^]=∂∂xjlog⁡mπ(x∣λ^(x))−∂∂xjlog⁡h(x). \mathbb {E}\left[\left.\sum _{i=1}^{s} \eta _{i} \frac{\partial }{\partial x_{j}} T_{i}(\mathbf{x}) \right\rvert \, \mathbf{x}, \hat{\lambda }\right]=\frac{\partial }{\partial x_{j}} \log m_{\pi }(\mathbf{x} \mid \hat{\lambda }(\mathbf{x}))-\frac{\partial }{\partial x_{j}} \log h(\mathbf{x}).

where mπ(x)=∫pθ(x)π(θ)dθm_{\pi }(\mathbf{x})=\int p_{\theta }(\mathbf{x}) \pi (\theta ) d \theta.

(b)

If X has the distribution pθ(x)p_{\theta }(\mathbf{x}) of (1.5.1), show that a similar formulas holds, that is,

E[Tη(θ)∣λ^]=∇log⁡mπ(x∣λ^)−∇log⁡h(x), \mathbb {E}\left[\mathcal{T} \eta (\theta ) \mid \hat{\lambda }\right]=\nabla \log m_{\pi }(\mathbf{x} \mid \hat{\lambda })-\nabla \log h(\mathbf{x}),

where T={∂Ti/∂xj}\mathcal{T}=\left\{ \partial T_{i} / \partial x_{j}\right\} is the Jacobian of T\mathcal{T} and ∇a\nabla a is the gradient vector of aa, that is, ∇a={∂a/∂xi}\nabla a=\left\{ \partial a / \partial x_{i}\right\}.

Problem 4.6.8

For each of the following situations, write the empirical Bayes estimator of the natural parameter (under squared error loss) in the form (6.6.12), using the marginal likelihood estimator of the hyperparameter λ\lambda. Evaluate the expressions as far as possible.

?
(a)

Xi∼N(0,σi2),i=1,…,pX_{i} \sim N\left(0, \sigma_{i}^{2}\right), i=1, \ldots , p, independent; 1/σi2∼Exponential⁡(λ)1 / \sigma_{i}^{2} \sim \operatorname {Exponential}(\lambda ).

(b)

Xi∼N(θi,1),i=1,…,pX_{i} \sim N\left(\theta_{i}, 1\right), \quad i=1, \ldots , p, independent, θi∼DE(0,λ)\theta_{i} \sim D E(0, \lambda ).

Problem 4.6.9

Strawderman (1992) shows that the James-Stein estimator can be viewed as an empirical Bayes estimator in an arbitrary location family. Let Xp×1∼f(x−θ)\mathbf{X}_{p \times 1} \sim f(x-\theta ), with E[X]=θ\mathbb {E}\left[\mathbf{X}\right]=\theta and var X=σ2I\mathbf{X}=\sigma^{2} I. Let the prior be θ∼f∗n\theta \sim f^{* n}, the nn-fold convolution of ff with itself. [The convolution of ff with itself is f∗2(x)=∫f(x−y)f(y)dyf^{* 2}(x)=\int f(x-y) f(y) d y. The nn-fold convolution is f∗n(x)=∫f∗(n−1)(x)(x−y)f(y)dyf^{* n}(x)=\int f *(n-1)(x)(x-y) f(y) d y.] Equivalently, let Ui∼f,i=0,⋯ ,nU_{i} \sim f, i=0, \cdots , n, iid, θ=∑1nUi\theta =\sum_{1}^{n} U_{i}, and X=U0+θ\mathbf{X}=U_{0}+\theta.

?
(a)

Show that the Bayes rule against squared error loss is nn+1x\frac{n}{n+1} \mathbf{x}. Note that nn is a prior parameter.

(b)

Show that ∣X∣2/(pσ2)|\mathbf{X}|^{2} /\left(p \sigma^{2}\right) is an unbiased estimator of n+1n+1, and hence that an empirical Bayes estimator of θ\theta is given by δEB=[1−(pσ2/∣x∣2)]x\delta^{E B}=\left[1-\left(p \sigma^{2} /|\mathbf{x}|^{2}\right)\right] \mathbf{x}.

Problem 4.6.10

Show for the hierarchy of Example 3.4, where σ2\sigma^{2} and τ2\tau^{2} are known but μ\mu is unknown, that:

?
(a)

The empirical Bayes estimator of θi\theta_{i}, based on the marginal MLE of θi\theta_{i}, is τ2σ2+τ2Xi+σ2σ2+τ2Xˉ\frac{\tau^{2}}{\sigma^{2}+\tau^{2}} X_{i}+ \frac{\sigma^{2}}{\sigma^{2}+\tau^{2}} \bar{X}.

(b)

The Bayes risk, under sum-of-squared-errors loss, of the empirical Bayes estimator from part (a) is

pσ2−2(p−1)2σ4p(σ2+τ2)+(p−1)(σ2σ2+τ2)2∑i=1pE[(Xi−Xˉ)2]. p \sigma ^{2}-\frac{2(p-1)^{2} \sigma ^{4}}{p\left(\sigma ^{2}+\tau ^{2}\right)}+(p-1)\left(\frac{\sigma ^{2}}{\sigma ^{2}+\tau ^{2}}\right)^{2} \sum _{i=1}^{p} \mathbb {E}\left[(X_{i}-\bar{X})^{2}\right].
(c)

The minimum risk of the empirical Bayes estimator is attained when all θi s\theta_{i} \mathrm{~ s} are equal. [Hint: Show that ∑i=1pE[(Xi−Xˉ)2]=∑i=1p(θi−θˉ)2+(p−1)σ2\sum_{i=1}^{p} \mathbb {E}\left[\left(X_{i}-\bar{X}\right)^{2}\right]=\sum_{i=1}^{p}\left(\theta_{i}-\bar{\theta }\right)^{2}+(p-1) \sigma^{2}.]

Problem 4.6.11

For E[Θ∣x]\mathbb {E}\left[\Theta \mid \mathbf{x}\right] of (5.5.8), show that as v→∞,E[Θ∣x]→[p/(p+σ2)]xˉv \rightarrow \infty , \mathbb {E}\left[\Theta \mid x\right] \rightarrow \left[p /\left(p+\sigma^{2}\right)\right] \bar{x}, the Bayes estimator under a N(0,1)N(0,1) prior.

?
Problem 4.6.12
?
(a)

Show that the empirical Bayes δEB(xˉ)=(1−σ2/max⁡{σ2,pxˉ2})xˉ\delta^{E B}(\bar{x})=\left(1-\sigma^{2} / \max \left\{ \sigma^{2}, p \bar{x}^{2}\right\} \right) \bar{x} of (6.6.5) has bounded mean squared error.

(b)

Show that a variation of δEB(xˉ)\delta^{E B}(\bar{x}), of part (a), δv(xˉ)=[1−σ2/(v+pxˉ2)]xˉ\delta^{v}(\bar{x})=\left[1-\sigma^{2} /\left(v+p \bar{x}^{2}\right)\right] \bar{x}, also has bounded mean squared error.

(c)

For σ2=τ2=1\sigma^{2}=\tau^{2}=1, plot the risk functions of the estimators of parts (a) and (b).

[Thompson (1968a, 1968b) investigated the mean squared error properties of estimators like those in part (b). Although such estimators have smaller mean squared error than xˉ\bar{x} for small values of θ\theta, they always have larger mean squared error for larger values of θ\theta.]

Problem 4.6.13
?
(a)

For the hierarchy (5.5.7), with σ2=1\sigma^{2}=1 and p=10p=10, evaluate the Bayes risk r(π,δπ)r\left(\pi , \delta^{\pi }\right) of the Bayes estimator (5.5.8) for v=2,5v=2,5, and 10.

(b)

Calculate the Bayes risk of the estimator δv\delta^{v} of Problem 6.12(b). Find a value of vv that yields a good approximation to the risk of the hierarchical Bayes estimator. Compare it to the Bayes risk of the empirical Bayes estimator of Problem 6.12(a).

Problem 4.6.14

Referring to Example 6.6, show that the empirical Bayes estimator is also a hierarchical Bayes estimator using the prior γ(b)=1/b\gamma (b)=1 / b.

?
Problem 4.6.15

The Taylor series approximation to the estimator (5.5.8) is carried out in a number of steps. Show that:

?
(a)

Using a first-order Taylor expansion around the point xˉ\bar{x}, we have

1(1+θ2/v)(v+1)/2=1(1+xˉ2/v)(v+1)/2−v+1vxˉ(1+xˉ2/v)(v+3)/2(θ−xˉ)+R(θ−xˉ) \begin{align} \frac{1}{\left(1+\theta ^{2} / v\right)^{(v+1) / 2}}= & \frac{1}{\left(1+\bar{x}^{2} / v\right)^{(v+1) / 2}} \\ & -\frac{v+1}{v} \frac{\bar{x}}{\left(1+\bar{x}^{2} / v\right)^{(v+3) / 2}}(\theta -\bar{x})+R(\theta -\bar{x}) \end{align}

where the remainder, R(θ−xˉ)R(\theta -\bar{x}), satisfies R(θ−xˉ)/(θ−xˉ)2→0R(\theta -\bar{x}) /(\theta -\bar{x})^{2} \rightarrow 0 as θ→xˉ\theta \rightarrow \bar{x}.

(b)

The remainder in part (a) also satisfies

∫−∞∞R(θ−xˉ)e−p2σ2(θ−xˉ)2dθ=O(1/p3/2) \int _{-\infty }^{\infty } R(\theta -\bar{x}) e^{-\frac{p}{2 \sigma ^{2}}(\theta -\bar{x})^{2}} d \theta =O\left(1 / p^{3 / 2}\right)
(c)

The numerator and denominator of (5.5.8) can be written

∫−∞∞1(1+θ2/ν)(ν+1)/2e−p2σ2(θ−xˉ)2dθ=2πσ2/p(1+xˉ2/ν)(ν+1)/2+O(1p3/2) \int _{-\infty }^{\infty } \frac{1}{\left(1+\theta ^{2} / \nu \right)^{(\nu +1) / 2}} e^{-\frac{p}{2 \sigma ^{2}}(\theta -\bar{x})^{2}} d \theta =\frac{\sqrt{2 \pi \sigma ^{2} / p}}{\left(1+\bar{x}^{2} / \nu \right)^{(\nu +1) / 2}}+O\left(\frac{1}{p^{3 / 2}}\right)

and

∫−∞∞θ(1+θ2/v)(v+1)/2e−p2σ2(θ−xˉ)2dθ=2πσ2/p(1+xˉ2/v)(v+1)/2[1−(v+1)/v(1+xˉ2/v)]xˉ+O(1p3/2) \begin{align} \int _{-\infty }^{\infty } & \frac{\theta }{\left(1+\theta ^{2} / v\right)^{(v+1) / 2}} e^{-\frac{p}{2 \sigma ^{2}}(\theta -\bar{x})^{2}} d \theta \\ & =\frac{\sqrt{2 \pi \sigma ^{2} / p}}{\left(1+\bar{x}^{2} / v\right)^{(v+1) / 2}}\left[1-\frac{(v+1) / v}{\left(1+\bar{x}^{2} / v\right)}\right] \bar{x}+O\left(\frac{1}{p^{3 / 2}}\right) \end{align}

which yields (5.6.32).

Problem 4.6.16

For the situation of Example 6.7:

?
(a)

Calculate the values of the approximation (5.6.32) for the values of Table 6.2. Are there situations where the estimator (5.6.32) is clearly preferred over the empirical Bayes estimator (5.6.5) as an approximation to the hierarchical Bayes estimator (5.5.8)?

(b)

Extend the argument of Problem 6.15 to calculate the next term in the expansion and, hence, obtain a more accurate approximation to the hierarchical Bayes estimator (5.5.8). For the values of Table 6.2, is this new approximation to (5.5.8) preferable to (5.6.5) and (5.6.32)?

Problem 4.6.17
?
(a)

Show that if b(⋅)b(\cdot ) has a bounded second derivative, then

∫b(λ)e−nh(λ)dλ=b(λ^)2πnh′′(λ^)e−nh(λ^)+O(1n3/2) \int b(\lambda ) e^{-n h(\lambda )} d \lambda =b(\hat{\lambda }) \sqrt{\frac{2 \pi }{n h^{\prime \prime }(\hat{\lambda })}} e^{-n h(\hat{\lambda })}+O\left(\frac{1}{n^{3 / 2}}\right)

where h(λ^)h(\hat{\lambda }) is the unique minimum of h(λ),h′′(λ)≠0h(\lambda ), h^{\prime \prime }(\lambda ) \neq 0, and nh(λ^)→n h(\hat{\lambda }) \rightarrow constant as n→∞n \rightarrow \infty. [Hint: Expand both b(⋅)b(\cdot ) and h(⋅)h(\cdot ) in Taylor series around λ^\hat{\lambda }, up to second-order terms. Then, do the term-by-term integration.] This is the Laplace approximation for an integral. For refinements and other developments of this approximation in Bayesian inference, see Tierney and Kadane 1986, Tierney, Kass, and Kadane 1989, and Robert 1994a (Section 9.2.3).

(b)

For the hierarchical model (5.5.1), the posterior mean can be approximated by

E[Θ∣x]=e−nh(λ^)[2πnh′′(λ^)]1/2E[Θ∣x,λ^]+O(1n3/2) \mathbb {E}\left[\Theta \mid x\right]=e^{-n h(\hat{\lambda })}\left[\frac{2 \pi }{n h^{\prime \prime }(\hat{\lambda })}\right]^{1 / 2} \mathbb {E}\left[\Theta \mid x, \hat{\lambda }\right]+O\left(\frac{1}{n^{3 / 2}}\right)

where h=1nlog⁡π(λ∣x)h=\frac{1}{n} \log \pi (\lambda \mid x) and λ^\hat{\lambda } is the mode of π(λ∣x)\pi (\lambda \mid x), the posterior distribution of λ\lambda.

(c)

If π(λ∣x)\pi (\lambda \mid x) is the normal distribution with mean λ^\hat{\lambda } and variance σ2=[−(∂2/∂λ2)×log⁡π(λ∣x)∣λ=λ^]−1\sigma^{2}=\left[-\left(\partial^{2} / \partial \lambda^{2}\right) \times \left.\log \pi (\lambda \mid x)\right|_{\lambda =\hat{\lambda }}\right]^{-1}, then E[Θ∣x]=E[Θ∣x,λ^]+O(1/n3/2)\mathbb {E}\left[\Theta \mid x\right]=\mathbb {E}\left[\Theta \mid x, \hat{\lambda }\right]+O\left(1 / n^{3 / 2}\right).

(d)

Show that the situation in part (c) arises from the hierarchy

Xi∣θi∼N(θi,σ2),θi∣λ∼N(λ,τ2),λ∼ Uniform (−∞,∞). \begin{align} X_{i} \mid \theta _{i} & \sim N\left(\theta _{i}, \sigma ^{2}\right), \\ \theta _{i} \mid \lambda & \sim N\left(\lambda , \tau ^{2}\right), \\ \lambda & \sim \text{ Uniform }(-\infty , \infty ). \end{align}
Problem 4.6.18
?
(a)

Apply the Laplace approximation (5.6.33) to obtain an approximation to the hierarchical Bayes estimator of Example 6.6.

(b)

Compare the approximation from part (a) with the empirical Bayes estimator (5.6.24). Which is a better approximation to the hierarchical Bayes estimator?

Problem 4.6.19

Apply the Laplace approximation (5.6.33) to the hierarchy of Example 6.7 and show that the resulting approximation to the hierarchical Bayes estimator is given by (5.6.32).

?
Problem 4.6.20
?
(a)

Verify (6.6.37), that under squared error loss

r(π,δ)=r(π,δπ)+E[(δ−δπ)2]. r(\pi , \delta )=r\left(\pi , \delta ^{\pi }\right)+\mathbb {E}\left[(\delta -\delta ^{\pi })^{2}\right].
(b)

For X∼binomial⁡(p,n),L(p,δ)=(p−δ)2X \sim \operatorname {binomial}(p, n), L(p, \delta )=(p-\delta )^{2}, and π={π:π=beta⁡(a,b),a>0, b>0}\pi =\left\{ \pi : \pi =\operatorname {beta}(a, b), a>0\text{, }b>0\right\}, determine whether p^=x/n\hat{p}=x / n or δ0=(a0+x)/(a0+b0+n)\delta^{0}=\left(a_{0}+x\right) /\left(a_{0}+b_{0}+n\right) is more robust, according to (6.6.37).

(c)

Is there an estimator of the form (c+x)/(c+d+n)(c+x) /(c+d+n) that you would consider more robust, in the sense of (6.6.37), than either estimator in part (b)?

[In part (b), for fixed nn and (a0,b0)\left(a_{0}, b_{0}\right), calculate the Bayes risk of p^\hat{p} and δ0\delta^{0} for a number of (a,b)(a, b) pairs.]

Problem 4.6.21
?
(a)

Establish (6.6.39) and (6.6.40) for the class of priors given by (6.6.38).

(b)

Show that the Bayes estimator based on π(θ)∈π\pi (\theta ) \in \pi in (6.6.38), under squared error loss, is given by (6.6.41).

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?