
ST740 – Assignment 2 – Due 9/15
1. Let θbe a univariate parameter and pJ(θ)∝I(θ)1/2be the Jefferys prior for θ. For
any 1-1 function g, the induced prior (using the transformation of variable formula)
for γ=g(θ) is p(γ)∝I(θ)1/2|dθ
dγ |. Show that p(γ) is the Jefferys prior for γ.
2. Assume y1, ..., yn
iid
∼Poisson(λ), λ > 0. Compute and plot the Jefferys prior for λ. Is
it uninformative? Compute and plot the induced prior for log(λ) (using the transfor-
mation of variables formula). Is it uninformative?
3. Show that the posterior median is the Bayes rule if θ∈ R and l(θ, d(y)) = |θ−d(y)|.
4. Assume θis discrete on the finite set θ∈ {θ1, ..., θn}. What is the Bayes Rule under
zero/one loss l(θ, d(y)) = I(θ6=d(y))?
5. Conduct a simulation study to verify the Stein effect. Assume K= 5 and (θ1, ..., θ5) =
(−c, −c/2,0, c/2, c) for some number c≥0. Generate M= 10,000 data sets from
the model yi∼N(θi,1), i= 1, ..., 5. For each data set, compute the MLE ˆ
θF
i=yi
and the empirical Bayes estimate ˆ
θEB
i=µ1−K−2
Piy2
i¶yiand the corresponding losses
LF=Pi(θi−ˆ
θF
i)2/K and LEB =Pi(θi−ˆ
θEB
i)2/K. To estimate the frequentist risk
of the two estimates, compute the mean of the Mlosses. Repeat this experiment for
several values of cand plot the risk by cfor both estimates to show that the MLE is
inadmissible. Turn in both commented computer code (no more than 2 pages) and the
risk plots.
1