Average Risk Optimality
[116/0%]Verify the expressions for and in Example 1.3.
Give examples of pairs of values for which the beta density is
decreasing,
increasing,
increasing for and decreasing for , and
decreasing for and increasing for .
In Example 1.5, if has the improper prior density , show that the posterior density of given is proper, provided .
In Example 1.5, find the Jeffreys prior for and the associated Bayes estimator .
For the estimator of Problem 1.4,
calculate the bias and maximum bias;
calculate the expected squared error and compare it with that of the UMVU estimator.
In Example 1.5, find the Bayes estimator of when has the prior .
For the situation of Example 1.5, the UMVU estimator of is (see Example 2.3.1 and Problem 2.3.1).
Compare the estimator of Problem 1.6 with the UMVU estimator .
Compare the expected squared error of the estimator of for the Jeffreys prior in Example 1.5 with that of .
In analogy with Problem 1.2, determine the possible shapes of the gamma density .
Let be iid according to the Poisson distribution and let have a gamma distribution .
For squared error loss, show that the Bayes estimator of has a representation analogous to (1.1.13).
What happens to as (i) , (ii) , or both?
For the situation of the preceding problem, solve the two parts corresponding to Problem 1.5(a) and (b).
In Problem 1.9, if has the improper prior density (corresponding to 0 ), under what circumstances is the posterior distribution proper?
Solve the problems analogous to Problems 1.9 and 1.10 when the observations consist of a single random variable having a negative binomial distribution , has the beta prior , and the estimand is
and
.
Referring to Example 1.5, suppose that has the binomial distribution and the family of prior distributions for is the family of beta distributions .
Show that the marginal distribution of is the beta-binomial distribution with mass function
Show that the mean and variance of the beta-binomial is given by
[Hint: For part (b), the identities and are helpful.]
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 be the number of successes in Bernoulli trials with success probability .
Suppose that the number of Bernoulli trials performed is a prespecifed number , so that we have the binomial sampling model, , . Calculate the Bayes risk of the Bayes estimator (1.1.12) and the UMVU estimator of .
Suppose that the number of Bernoulli trials performed is a random variable . The value was obtained when a prespecified number, , of successes was observed so that we have the negative binomial sample model, , . Calculate the Bayes risk of the Bayes estimator and the UMVU estimator of .
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?
Show that the estimator (2.2.4) tends in probability
to as ,
to as , and
to as .
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 , where , and let , .
Show that , so is unbiased.
Show that is a proper density.
Show that , and hence the posterior mean, is unbiased.
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 and . The Bayes estimator under squared error loss is . Show that the Bayes risk of can be written
where is the bias of .
Verify the estimator (2.2.10).
In Example 2.6, verify that the posterior distribution of is .
In Example 2.6 with , show that the posterior distribution given the 's of is Student's -distribution with degrees of freedom.
In Example 2.6, show that the posterior distribution of is symmetric about when the joint prior of and is of the form , where is an arbitrary probability density on .
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 is the Bayes estimator under every even loss function.
Let and be independently distributed according to distributions and , respectively. Suppose that and are real-valued and independent according to some prior distributions and . If, with squared error loss, is the Bayes estimator of on the basis of , and is that of on the basis of ,
show that is the Bayes estimator of on the basis of ;
if and is the Bayes estimator of on the basis of , show that is the Bayes estimator of on the basis of .
For the density (2.2.13) and improper prior , show that the posterior distribution of continues to be improper.
In Example 2.7, obtain the Jeffreys prior distribution of .
Show that for the prior of part (a), the posterior distribution of is proper.
Verify the Bayes estimator (2.2.14).
Let and .
Show that is the limit of the Bayes estimators , where is . Hence, is both generalized Bayes and a limit of Bayes estimators.
For the prior measure , show that the generalized Bayes estimator is .
For , show that there is no sequence of proper priors for which .
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.
For the situation of Example 2.8, verify that is a generalized Bayes estimator.
If and , show that is generalized Bayes under the improper prior .
For the situation of Example 3.1:
Verify that the Bayes estimator will only depend on the data through .
Show that can be expressed as
where is a chi-squared random variable with 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.)
Let be iid from where is known.
Verify that the conjugate prior for the natural parameter is equivalent to an inverted gamma prior on .
Using the prior in part (a), find the Bayes estimator under the losses (i) and (ii) .
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)?
Corollary 3.3 states: if has the density and has prior density , the Bayes estimator of under the loss is given by
Prove Corollary 3.3.
Verify the calculation of the Bayes estimator in Example 3.4.
Using Stein's identity (Lemma 1.5.15), show that if of (3.3.7), then
If , independent with known, calculate and its expected value.
Apply the results of part (a) to the situation where , independent. Does it lead to an unbiased estimator of ? [Note: For part (b), squared error loss on the natural parameter leads to the loss for estimation of .]
If
evaluate and show that it is an unbiased estimator of .
For the situation of Example 3.6:
Show that if is a Bayes estimator of , then is a Bayes estimator of , and hence .
Show that the risk of the Bayes estimator of is given by
where .
If , a fixed constant, then the minimum risk is attained at .
If has the distribution of (1.5.1) show that, similar to Theorem 3.2, .
Use Stein's identity (Lemma 1.5.15) to show that if of (3.3.18), then
If are iid from a gamma distribution , where the shape parameter is known, use part (a) to find an unbiased estimator of .
If the are iid from a beta distribution, can the identity in part (a) be used to obtain an unbiased estimator of when is known, or an unbiased estimator of when is known?
For the natural exponential family of (3.3.7) and the conjugate prior of (3.3.19) establish that:
and var , where the expectation is with respect to the sampling density .
and , where the expectation is with respect to the prior distribution.
[The results in part (b) enable us to think of as a prior mean and as a prior sample size.]
For each of the following situations, write the density in the form (3.7), and identify the natural parameter. Obtain the Bayes estimator of using squared loss and the conjugate prior. Express your answer in terms of the original parameters.
binomial ,
Poisson, and
, known.
For the situation of Problem 3.9, if are iid as and the prior is the conjugate , then the posterior distribution is .
If 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 for constants and .
If and var , then no matter what the distribution of the 's, the mean squared error is
If is unbounded, then no estimator of the form can have finite mean squared error for .
Can a conjugate-prior Bayes estimator in an exponential family have finite mean squared error?
This problem shows why conjugate-prior Bayes estimators are considered "non-robust."
For the situation of Example 4.2:
Show that the Bayes rule under a beta prior is equivariant.
Show that the Bayes rule under any prior that is symmetric about is equivariant.
The Bayes estimator of in Example 4.7 is given by (4.22).
The Bayes estimator of in Example 4.5 is given by (4.22).
The Bayes estimators of and in Example 4.9 are given by (4.31) and (4.32). (Recall Corollary 1.2.)
For each of the following situations, find a group that leaves the model invariant and determine left- and right-invariant measures over . The joint density of and and the estimand are
, estimand ;
, estimand ;
unknown; estimand .
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.
For each of the situations of Problem 4.5:
Determine the measure over induced by the right-invariant Haar measure over ;
Determine the Bayes estimator with respect to the measure found in part (a), and show that it coincides with the MRE estimator.
In Example 4.9, show that the estimator
is equivariant under scale changes; that is, it satisfies for all values of for which the integrals in exist.
If is a left-invariant measure over , show that defined by is right invariant, where .
There is a correspondence between Haar measures and Jeffreys priors in the location and scale cases.
Show that in the location parameter case, the Jeffreys prior is equal to the invariant Haar measure.
Show that in the scale parameter case, the Jeffreys prior is equal to the invariant Haar measure.
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).]
For the model (3.3.23), find a measure in the 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.
A measure over a group is said to be right invariant if it satisfies and left invariant if it satisfies . Note that if is commutative, the two definitions agree.
If the elements are real numbers and group composition is , the measure defined by (i.e., Lebesgue measure) is both left and right invariant.
If the elements are the positive real numbers, and composition of and is multiplication of the two numbers, the measure defined by is both left and right invariant.
If the elements are pairs of real numbers , , corresponding to the transformations , group composition by (1.4.8) is
Of the measures defined by
the first is right but not left invariant, and the second is left but not right invariant.
The four densities defining the measures of Problem 4.12 and , ) are the only densities (up to multiplicative constants) for which has the stated invariance properties in the situations of these problems.
For the model (3.3.1), let be a single-prior Bayes posterior and be a hierarchical Bayes posterior. Show that , where .
For the situation of Problem 5.1, show that:
;
;
and hence that will tend to have a larger variance than .
For the model (3.3.3), show that:
The marginal prior of , unconditional on , is given by
which for and is Student's -distribution with degrees of freedom.
The marginal posterior of is given by
Albert and Gupta (1985) investigate theory and applications of the hierarchical model
Show that
[Note that and are not expressible in a simple form.]
Unconditionally on , the 's have conditional covariance
Ignoring the prior distribution of , show how to construct an empirical Bayes estimator of . (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.]
Analogous to Problem 1.7.9, establish that for any random variable , and ,
For the hierarchy
show that .
If , where and are known, then
[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.]
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
If, in addition, we specify that Uniform , show that the Bayes estimator of under squared error loss is given by (3.5.13), the UMVU predictor of .
Referring to Example 6.6:
Using the prior distribution for given in (5.6.27), show that the mode of the posterior distribution is , and hence the empirical Bayes estimator based on this does not equal the hierarchical Bayes estimator (5.6.29).
Show that if we estimate using its posterior expectation , then the resulting empirical Bayes estimator is equal to the hierarchical Bayes estimator.
The method of Monte Carlo integration allows the calculation of (possibly complicated) integrals by using (possibly simple) generations of random variables.
To calculate , generate a sample , iid, from . Then, as .
If it is difficult to generate random variable from , then generate pairs of random variables
Then, as . [Show that if is generated according to and , then .]
If it is difficult to generate as in part (b), then generate
for and .
Show that:
-
for each is a Markov chain. If it is also an ergodic Markov chain , as , where has the stationary distribution of the chain.
-
If the stationary distribution of the chain is , then
as .
This is the basic theory behind the Gibbs sampler. For each , we have generated independent random variables , where is distributed according to . It is also the case that for each and large is approximately distributed according to , 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.
To understand the convergence of the Gibbs sampler, let , and define
Show that the function that solves is , the marginal distribution of .
Write down the analogous integral equation that is solved by .
Define a sequence of functions recursively by where is arbitrary but satisfies . Show that
and, hence, converges to .
[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).]
A direct Monte Carlo implementation of substitution sampling is provided by the data augmentation algorithm (Tanner and Wong 1987). If we define
then from Problem 5.9, as .
To calculate using Monte Carlo integration:
-
Generate .
-
Generate, for each .
-
Calculate . Then, as , and hence the data augmentation algorithm converges.
To implement (a)(i), we must be able to generate a random variable from a mixture distribution. Show that if , then the algorithm
-
Select with probability
-
Generate produces a random variable with distribution .
Hence, show how to implement step (a)(i) by generating random variables from . Tanner and Wong (1987) note that this algorithm will work even if , which yields the approximation
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).
Successive substitution sampling can be implemented via the Gibbs sampler in the following way. From Problem 5.8(c), we want to calculate
Show that as .
Given , a Monte Carlo approximation to is
where and as .
Hence, as .
This is the Gibbs sampler, which is usually implemented with .
For the situation of Example 5.6, show that
Discuss when equality might hold in (b). Can you give an example?
Show that for the hierarchy (5.5.1), the posterior distributions and satisfy
and, hence, are stationary points of the Markov chains in (5.5.13).
Starting from a uniform random variable , it is possible to construct many random variables through transformations.
Show that .
Show that , where are iid as .
Let . Write as a function of .
Let , an integer. Write as a function of , iid as .
Starting with a 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 :
-
Generate , independent.
-
Calculate where .
-
If , set , otherwise return to i).
Show that the algorithm will generate .
Starting with , show how to generate .
Show how to generate a gamma random variable with a noninteger shape parameter.
Consider the normal hierarchical model
where , are known.
Show that the posterior distribution of is
where and .
Find an expression for the Kullback-Leibler information and show that it is a decreasing function of .
The original proof of Theorem 5.7 (Goel and DeGroot 1981) used Rényi's entropy function (Rényi 1961)
where and are densities, is a dominating measure, and is a constant, .
Show that satisfies and .
Show that Theorem 5.7 holds if is used instead of .
Show that , and provide another proof of Theorem 5.7.
The Kullback-Leibler information, (5.5.25), is not symmetric in and , and a modification, called the divergence, remedies this. Define , the divergence between and , to be . Show that, analogous to Theorem 5.7, .
Goel and DeGroot (1981) define a Bayesian analog of Fisher information [see (2.5.10)] as
the information that has about the posterior distribution. As in Theorem 5.7, show that , again showing that the influence of is less than that of .
Each of spores has a probability of germinating. Of the spores that germinate, each has probability of bending in a particular direction. If bends in the particular direction, a probability model to describe this process is the bivariate binomial, with mass function
Show that the Jeffreys prior is .
If is considered a nuisance parameter, the reference prior is
Compare the posterior means under both the Jeffreys and reference priors. Is one more appropriate?
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.]
Let be a family of probability densities. The Kullback-Leibler information for discrimination between two densities in can be written
Recall that the gradient of is and the Hessian is .
If integration and differentiation can be interchanged, show that
where is the Fisher information of .
George and McCulloch (1993) argue that choosing is an appealing least informative choice of priors. What justification can you give for this?
For the model (3.3.1), show that , where the Bayes estimator minimizes and the empirical Bayes estimator minimizes .
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 is a true posterior.
From the hierarchy
define the joint distribution of and to be , where is obtained by substituting for in .
Show that, for this joint density, the formal Bayes estimator is equivalent to the empirical Bayes estimator from the hierarchical model.
If and are proper densities, then . However, need not be finite.
For the model (6.3.1), the Bayes estimator minimizes and the empirical Bayes estimator, , minimizes . Show that .
For the situation of Example 6.1:
Show that
and, hence, establish (6.6.4).
Verify that the marginal MLE of is and that the empirical Bayes estimator is given by (6.6.5).
Referring to Example 6.2:
Show that the Bayes risk, , of the Bayes estimator (6.6.7) is given by
Show that the Bayes risk of the unbiased estimator is given by
Theorem 6.3 states: for the situation of Corollary 3.3 (if has the density and has prior density , the Bayes estimator of under squared error loss is ), with prior distribution , suppose is the MLE of based on . Then, the empirical Bayes estimator is
Extend Theorem 6.3 to the case of Theorem 3.2; that is, if has density (3.3.7) and has prior density , then the empirical Bayes estimator is
where is the marginal distribution of X and is the marginal MLE of .
For of (1.5.2), show that for any prior distribution that is dependent on a hyperparameter , the empirical Bayes estimator is given by
where .
If X has the distribution of (1.5.1), show that a similar formulas holds, that is,
where is the Jacobian of and is the gradient vector of , that is, .
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 . Evaluate the expressions as far as possible.
, independent; .
, independent, .
Strawderman (1992) shows that the James-Stein estimator can be viewed as an empirical Bayes estimator in an arbitrary location family. Let , with and var . Let the prior be , the -fold convolution of with itself. [The convolution of with itself is . The -fold convolution is .] Equivalently, let , iid, , and .
Show that the Bayes rule against squared error loss is . Note that is a prior parameter.
Show that is an unbiased estimator of , and hence that an empirical Bayes estimator of is given by .
Show for the hierarchy of Example 3.4, where and are known but is unknown, that:
The empirical Bayes estimator of , based on the marginal MLE of , is .
The Bayes risk, under sum-of-squared-errors loss, of the empirical Bayes estimator from part (a) is
The minimum risk of the empirical Bayes estimator is attained when all are equal. [Hint: Show that .]
For of (5.5.8), show that as , the Bayes estimator under a prior.
Show that the empirical Bayes of (6.6.5) has bounded mean squared error.
Show that a variation of , of part (a), , also has bounded mean squared error.
For , 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 for small values of , they always have larger mean squared error for larger values of .]
For the hierarchy (5.5.7), with and , evaluate the Bayes risk of the Bayes estimator (5.5.8) for , and 10.
Calculate the Bayes risk of the estimator of Problem 6.12(b). Find a value of 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).
Referring to Example 6.6, show that the empirical Bayes estimator is also a hierarchical Bayes estimator using the prior .
The Taylor series approximation to the estimator (5.5.8) is carried out in a number of steps. Show that:
Using a first-order Taylor expansion around the point , we have
where the remainder, , satisfies as .
The remainder in part (a) also satisfies
The numerator and denominator of (5.5.8) can be written
and
which yields (5.6.32).
For the situation of Example 6.7:
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)?
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)?
Show that if has a bounded second derivative, then
where is the unique minimum of , and constant as . [Hint: Expand both and in Taylor series around , 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).
For the hierarchical model (5.5.1), the posterior mean can be approximated by
where and is the mode of , the posterior distribution of .
If is the normal distribution with mean and variance , then .
Show that the situation in part (c) arises from the hierarchy
Apply the Laplace approximation (5.6.33) to obtain an approximation to the hierarchical Bayes estimator of Example 6.6.
Compare the approximation from part (a) with the empirical Bayes estimator (5.6.24). Which is a better approximation to the hierarchical Bayes estimator?
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).
Verify (6.6.37), that under squared error loss
For , and , determine whether or is more robust, according to (6.6.37).
Is there an estimator of the form that you would consider more robust, in the sense of (6.6.37), than either estimator in part (b)?
[In part (b), for fixed and , calculate the Bayes risk of and for a number of pairs.]
Establish (6.6.39) and (6.6.40) for the class of priors given by (6.6.38).
Show that the Bayes estimator based on in (6.6.38), under squared error loss, is given by (6.6.41).
For the situation of Example 7.1:
The empirical Bayes estimator of , using an unbiased estimate of , is
the James-Stein estimator.
The empirical Bayes estimator of , using the marginal MLE of , is
which resembles the positive-part Stein estimator.
Corollary 7.2 states: let , and let the estimator be of the form , where is differentiable. If for , then
Establish Corollary 7.2. Be sure to verify that the conditions on are sufficient to allow the integration-by-parts argument. [Stein develops these representations in the normal case.]
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 has the density
The Bayes estimator of , under squared error loss, is
Show that the risk of has unbiased estimator
[Hint: Theorem 3.5 and Problem 3.4.]
Show that the risk of the empirical Bayes estimator
of Theorem 6.3 has unbiased estimator
Use the results of part (b) to derive an unbiased estimator of the risk of the positivepart Stein estimator of (7.7.10).
Verify (7.7.9), the expression for the Bayes risk of . (Problem 3.12 may be helpful.)
A general version of the empirical Bayes estimator (7.7.3) is given by
where is a positive constant.
Use Corollary 7.2 to verify that
Show that the Bayes risk, under , is given by
and is minimized by choosing .
For the model
Show that:
The empirical Bayes estimator, using an unbiased estimator of , is the Stein estimator
If , the Bayes risk, under squared error loss, of is , where is the Bayes risk of the Bayes estimator.
If , the Bayes risk of is infinite. [Hint: Show that if .
For the model
the Bayes risk of the ordinary Stein estimator
is uniformly larger than its positive-part version
Theorem 7.5 holds in greater generality than just the normal distribution. Suppose is distributed according to the multivariate version of the exponential family of (33.7),
and a multivariate conjugate prior distribution [generalizing (3.19)] is used.
Show that .
If in the prior distribution (see 3.19), show that , where and .
If , the estimator would be modified to . Establish a result similar to part (b) for this estimator.
For the model (7.7.15), show that the marginal distribution of is negative binomial ; that is,
with and var .
If are iid according to the negative binomial distribution in part (a), show that the conditional distribution of is the negative hypergeometric distribution, given by
with and var .
For the situation of Example 7.6:
Show that the Bayes estimator under the loss of (7.7.16) is given by (7.7.17).
Verify (7.7.19) and (7.7.20).
Evaluate the Bayes risks and . Which estimator, or , is more robust?
For the situation of Example 7.6, evaluate the Bayes risk of the empirical Bayes estimator (7.7.20) for and 1. What values of the unknown hyperparameter are least and which are most favorable to the empirical Bayes estimator?
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 , show that the Bayes estimator is
[Hint: Show that the Bayes estimator is and that
Prove the following: Two matrix results that are useful in calculating estimators from multivariate hierarchical models are
For any vector of the form .
If is an idempotent matrix (that is, ) and is a scalar, then
For the situation of Example 7.7:
Show how to derive the empirical Bayes estimator of (7.7.28).
Verify the Bayes risk of of (7.7.29).
For the situation of Example 7.8:
Show how to derive the empirical Bayes estimator of (7.7.33).
Verify the Bayes risk of , (7.7.34).
The empirical Bayes estimator (7.7.27) can also be derived as a hierarchical Bayes estimator. Consider the hierarchical model
where and are known.
Show that the Bayes estimator, with respect to squared error loss, is
where is the posterior mean of .
Establish that . [This can be done by evaluating the expectation directly, or by showing that the posterior distribution of is
Note that the 's are not independent a posteriori. In fact,
where .
Show that the empirical Bayes estimator (7.7.32) can also be derived as a hierarchical Bayes estimator, by appending the specification Uniform [that is, ] to the hierarchy (7.7.30).
Generalization of model (7.7.23) to the case of unequal is, perhaps, not as straightforward as one might expect. Consider the generalization
We also make the assumption that . Show that:
The above model is equivalent to
where and .
The Bayes estimator of , using squared error loss, is
The marginal distribution of is , and an empirical Bayes estimator of is
where and . [Without the assumption that , one cannot get a simple empirical Bayes estimator. If , the likelihood estimation can be used to get an estimate of to be used in the empirical Bayes estimator. This is discussed by Morris (1983a).]
(Empirical Bayes estimation in a general case). A general version of the hierarchical models of Examples 7.7 and 7.8 is
where and , of rank , are known and and are unknown. Under this model show that:
The Bayes estimator of , under squared error loss, is
Marginally, the distribution of is .
Under the marginal distribution in part (b),
and, hence, an empirical Bayes estimator of is
The Bayes risk of is , where is the risk of the Bayes estimator.
In a manner similar to the previous problem, we can derive hierarchical Bayes estimators for the model
where and , of rank , are known and is unknown.
The prior distribution of , unconditional on , is proportional to
where projects from to . [Hint: Establish that
to perform the integration on .]
Show that
where , and hence that the Bayes estimator is given by
where . [Hint: Establish that
where .]
Marginally, . This leads us to the empirical Bayes estimator
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 and 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 " 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.]
As noted by Morris (1983a), an analysis of variance-type hierarchical model, with unequal , will yield closed-form empirical Bayes estimators if the prior variances are proportional to the sampling variances. Show that, for the model
where and , of full rank , are known, is unknown, and , an empirical Bayes estimator is given by
with , and .
An entertaining (and unjustifiable) result which abuses a hierarchical Bayes calculation yields the following derivation of the James-Stein estimator. Let and .
Verify that conditional on , the posterior and marginal distributions are given by
Show that, taking , we have
and
and hence
Explain some implications of the result in part (b) and, why it cannot be true. [Try to reconcile it with (3.3.12).]
Why are the calculations in part (b) unjustified?