Docsity

Assignment 2 for Statistical Inference Course: Jeffreys Prior and Stein Effect - Prof. Bri, Assignments of Statistics

Toggle sidebar
bg1
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
iyiand 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

Partial preview of the text

Download Assignment 2 for Statistical Inference Course: Jeffreys Prior and Stein Effect - Prof. Bri and more Assignments Statistics in PDF only on Docsity!

ST740 – Assignment 2 – Due 9/

  1. Let θ be a univariate parameter and pJ (θ) ∝ I(θ)^1 /^2 be 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 y 1 , ..., 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 θˆFi = yi and the empirical Bayes estimate θˆiEB =

( 1 − ∑K−^2 i y^2 i

) yi and the corresponding losses

LF^ =

∑ i(θi^ −^ θˆ F i )

(^2) /K and LEB (^) = ∑ i(θi^ −^ ˆθ EB i )

(^2) /K. To estimate the frequentist risk of the two estimates, compute the mean of the M losses. Repeat this experiment for several values of c and plot the risk by c for both estimates to show that the MLE is inadmissible. Turn in both commented computer code (no more than 2 pages) and the risk plots.