Docsity

Exam Period Problems Solution for Mathematical Statistics | STAT 710, Exams of Mathematical Statistics

Toggle sidebar
bg1
STAT 710 1st Exam Period Problems Solution
Department of Statistics, University of Wisocnsin
Spring 2007
Exercise 1 (#4.1). Show that the priors in the following cases are conjugate priors:
(i) X= (X1; :::; Xn)is a random sample from Nk(๎˜’; Ik),๎˜’2 Rk, and the prior is Nk(๎˜–0;๎˜†0);
(ii) X= (X1; :::; Xn)is a random sample from the binomial distribution with probability ๎˜’and size
k(a known positive integer), ๎˜’2(0;1), and the prior is the beta distribution with parameter (๎˜‹; ๎˜Œ);
(iii) X= (X1; :::; Xn)is a random sample from the uniform distribution on the interval (0;๎˜’ ),๎˜’ > 0,
and the prior has Lebesgue density bab๎˜’๎˜€(b+1)I(a;1)(๎˜’);
(iv) X= (X1; :::; Xn)is a random sample from the exponential distribution with Lebesgue density
๎˜’๎˜€1e๎˜€x=๎˜’I(0;1)(x),๎˜’ > 0, and the prior of ๎˜’๎˜€1is the gamma distribution with shape parameter ๎˜‹
and scale parameter ๎˜.
Solution. (i) Let T=Pn
i=1 Xiand A=nIk+ ๎˜†๎˜€1
0. The product of the density of Xand the prior
density is
CXexp ๎˜š๎˜€kT๎˜€n๎˜’k2
2๎˜€(๎˜’๎˜€๎˜–0)๎˜œ๎˜†๎˜€1
0(๎˜’๎˜€๎˜–0)
2๎˜›
=DXexp (๎˜€๎˜‚๎˜’๎˜€A๎˜€1(๎˜†๎˜€1
0๎˜–0+T)๎˜ƒ๎˜œA๎˜‚๎˜’๎˜€A๎˜€1(๎˜†๎˜€1
0๎˜–0+T)๎˜ƒ
2);
where CXand DXare quantities depending on Xbut not ๎˜’. Thus, the posterior distribution of ๎˜’
given Xis Nk๎˜€A๎˜€1(๎˜†๎˜€1
0๎˜–0+T); A๎˜€1๎˜.
(ii) Let T=Pn
i=1 Xi. The product of the density of Xand the prior density is
CX๎˜’T+๎˜‹๎˜€1(1 ๎˜€๎˜’)nk๎˜€T+๎˜Œ๎˜€1;
where CXdoes not depend on ๎˜’. Thus, the posterior distribution of ๎˜’given Xis the beta distribution
with parameter (T+๎˜‹; nk ๎˜€T+๎˜Œ).
(iii) Let X(n)be the largest order statistic. The product of the density of Xand the prior density is
๎˜’๎˜€nI(0;๎˜’)(X(n))bab๎˜’๎˜€(b+1)I(a;1)(๎˜’) = ๎˜’๎˜€(n+b+1) I(maxfX(n);ag;1)(๎˜’):
Thus, the posterior distribution of ๎˜’given Xhas the same form as the prior with areplaced by
maxfX(n); agand breplaced by b+n.
(iv) Let T=Pn
i=1 Xi. The product of the density of Xand the prior density is
CX๎˜’๎˜€(n+๎˜‹+1) exp ๎˜ˆ๎˜€(T+๎˜๎˜€1)=๎˜’๎˜‰;
where CXdoes not depend on ๎˜’. Thus, the posterior distribution of ๎˜’๎˜€1given Xis the gamma
distribution with shape parameter n+๎˜‹and scale parameter (T+๎˜๎˜€1)๎˜€1.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e

Partial preview of the text

Download Exam Period Problems Solution for Mathematical Statistics | STAT 710 and more Exams Mathematical Statistics in PDF only on Docsity!

STAT 710 1st Exam Period Problems Solution

Department of Statistics, University of Wisocnsin

Spring 2007

Exercise 1 (#4.1). Show that the priors in the following cases are conjugate priors: (i) X = (X 1 ; :::; Xn) is a random sample from Nk(; Ik),  2 Rk, and the prior is Nk( 0 ;  0 ); (ii) X = (X 1 ; :::; Xn) is a random sample from the binomial distribution with probability  and size k (a known positive integer),  2 (0; 1), and the prior is the beta distribution with parameter ( ; ); (iii) X = (X 1 ; :::; Xn) is a random sample from the uniform distribution on the interval (0; ),  > 0 , and the prior has Lebesgue density bab(b+1)I(a; 1 )(); (iv) X = (X 1 ; :::; Xn) is a random sample from the exponential distribution with Lebesgue density ^1 ex=I(0; 1 )(x),  > 0 , and the prior of ^1 is the gamma distribution with shape parameter and scale parameter. Solution. (i) Let T =

Pn i=1 Xi^ and^ A^ =^ nIk^ + 

1

  1. The product of the density of^ X^ and the prior density is

CX exp

kT nk^2 2

(  0 )^  0 1 (  0 )

= DX exp

 A^1 ( 0 1  0 + T )

A

 A^1 ( 0 1  0 + T )

where CX and DX are quantities depending on X but not . Thus, the posterior distribution of  given X is Nk

A^1 ( 0 1  0 + T ); A^1

(ii) Let T =

Pn i=1 Xi. The product of the density of^ X^ and the prior density is

CX T^ +^ ^1 (1 )nkT^ +^ ^1 ;

where CX does not depend on . Thus, the posterior distribution of  given X is the beta distribution with parameter (T + ; nk T + ). (iii) Let X(n) be the largest order statistic. The product of the density of X and the prior density is

nI(0;)(X(n))bab(b+1)I(a; 1 )() = (n+b+1)I(maxfX(n);ag; 1 )():

Thus, the posterior distribution of  given X has the same form as the prior with a replaced by maxfX(n); ag and b replaced by b + n. (iv) Let T =

Pn i=1 Xi. The product of the density of^ X^ and the prior density is

CX (n+^ +1)^ exp

(T + ^1 )= ;

where CX does not depend on . Thus, the posterior distribution of ^1 given X is the gamma distribution with shape parameter n + and scale parameter (T + ^1 )^1.

Exercise 2 (#4.2). In Exercise 1, ร–nd the posterior mean and variance for each case. Solution. (i) Since the posterior is a normal distribution,

E(j X) = ( 0 1  0 + T )A^1

and Var(j X) = A^1 ;

where T =

Pn i=1 Xi^ and^ A^ =^ nIk^ + 

1

(ii) Since the posterior is a beta distribution,

E(j X) =

T +

nk + +

and

Var(j X) = (T + )(nk T + ) (nk + + )^2 (nk + + + 1)

where T =

Pn i=1 Xi. (iii) A direct calculation shows that

E(j X) =

maxfX(n); ag(b + n) (b + n 1)

and

Var(j X) =

maxfX(^2 n); a^2 g(b + n) (b + n 1)^2 (b + n 2)

(iv) Let T =

Pn i=1 Xi. Then E(j X) =

T + ^1

  • n

and

Var(jX) =

(T + ^1 )^2

(n + 1)(n + 2)

(T + ^1 )^2

(n + )^2

Exercise 3 (#4.4). Let X = (X 1 ; :::; Xn) be a random sample from the uniform distribution on the interval (0; ), where  > 0 is unknown. Let the prior of  be the log-normal distribution with parameter ( 0 ; ^20 ), where  0 2 R and  0 > 0 are known constants. (i) Find the posterior density of log . (ii) Find the rth posterior moment of . (iii) Find a value that maximizes the posterior density of . Solution. (i) Let X(n) be the largest order statistic. The product of the density of X and the prior density is proportional to

1 n+^

exp

(log   0 )^2 2 ^20

I(X(n); 1 )():

Then the posterior density of # = log  given X is

1 p 2  0 CX

exp

(#  0 + n^20 )^2 2 ^20

I(log X(n); 1 )(#);

Then, the posterior mean is

(x) =

p(x)

Z p n p 2 

en(x) (^2) =(2 (^2) ) ()d

= x +

p(x)

Z p n p 2 

( x)en(x)

(^2) =(2 (^2) ) ()d

= x +

^2

n

p^0 (x) p(x)

= x +

^2

n

d log(p(x)) dx

(ii) From the result in part (i) of the solution,

p^00 (x) =

n^2 ^4

Z p n p 2 

( x)^2 en(x) (^2) =(2 (^2) ) ()d

n ^2 p(x):

Hence,

E[( x)^2 j X = x] =

^4

n^2

p^00 (x) p(x)

^2

n

and, therefore,

Var(j X = x) = E[( x)^2 j X = x]

E( xj X = x)

^4

n^2

p^00 (x) p(x)

^2

n

^2

n

p^0 (x) p(x)

^4

n^2

d^2 log p(x) dx^2

^2

n

(iii) If the prior is N ( 0 ; ^20 ), then the joint distribution of  and X is normal and, hence, the marginal distribution of X is normal. The mean of X conditional on  is . Hence the marginal mean of X is  0. The variance of X conditional on  is ^2 =n. Hence the marginal variance of X is ^20 + ^2 =n. Thus, p(x) is the density of N ( 0 ; ^20 + ^2 =n) if the prior is N ( 0 ; ^20 ). If the prior is a point mass at  1 , then

p(x) =

p n p 2 

en(x^1 ) (^2) =(2 (^2) ) ;

which is the density of N ( 1 ; ^2 =n). Therefore, p(x) is the density of the mixture distribution (1 )N ( 0 ; ^20 + ^2 =n) + N ( 1 ; ^2 =n), i.e.,

p(x) = (1 ) x  0 p ^20 + ^2 =n

x  1 p ^2 =n

where (x) = ex (^2) = 2 =

p 2 . Then

p^0 (x) = (1 )( 0 x) ^20 + ^2 =n

x  0 p ^20 + ^2 =n

( 1 x) ^2 =n

x  1 p ^2 =n

and (x) can be obtained using the formula in (i).

Exercise 5 (#4.8). Let X = (X 1 ; :::; Xn) be a random sample from P with discrete probability density f;j , where  2 (0; 1), j = 1; 2 , f; 1 is the Poisson distribution with mean , and f; 2 is the binomial distribution with size 1 and probability . Consider the estimation of  under the squared error loss. Suppose that the prior of  is the uniform distribution on (0; 1), the prior of j is P (j = 1) = P (j = 2) = 12 , and the joint prior of (; j) is the product probability of the two marginal priors. Show that the Bayes action is

(x) =

H(x)B(t + 1) + G(t + 1) H(x)B(t) + G(t)

where x = (x 1 ; :::; xn) is the vector of observations, t = x 1 +    + xn, B(t) =

R 1

t(1 )ntd,

G(t) =

R 1

tend, and H(x) is a function of x with range f 0 ; 1 g.

Note. Under the squared error loss, the Bayes action in an estimation problem is the posterior mean. Solution. The marginal density is

m(x) =

C(x) 2

Z 1

0

entd +

D(x) 2

Z 1

0

t(1 )ntd

C(x)G(t) + D(x)B(t) 2

where C(x) = (x 1!    xn!)^1 and D(x) = 1 if all components of x are 0 or 1 and is 0 otherwise. Then the Bayes action is

(x) =

C(x)

R 1

0 e

nt+1d + D(x) R^1 0 

t+1(1 )ntd 2 m(x)

= H(x)B(t + 1) + G(t + 1) H(x)B(t) + G(t)

where H(x) = D(x)=C(x) takes value 0 or 1.

Exercise 6 (#4.10). Let X be a sample from P,  2   R. Consider the estimation of  under the loss L(j aj), where L is an increasing function on [0; 1 ). Let (jx) be the posterior density (with respect to Lebesgue measure) of  given X = x. Suppose that (jx) is symmetric about (x) 2  and that (jx) is nondecreasing for   (x) and nonincreasing for   (x). Show that (x) is a Bayes action, assuming that all integrals involved are ร–nite. Solution. Without loss of generality, assume that (x) = 0. Then (jx) is symmetric about 0. Hence, the posterior expected loss for any action a is

(a) =

Z

L(j aj)(jx)d

=

Z

L(j  aj)(jx)d = (a):

For any a  0 and , deร–ne

H(; a) = [L(j + aj) L(j aj)][( + ajx) ( ajx)]:

(ii) Consider the prior with Lebesgue density (^) [((2 )]) 2 p ^1 (1 p) ^1 I(0;1)(). The Bayes action is

(x) = 1

R 1

0 (1^ ^ p)

x+ (^1) p (^1) dp R (^1) 0 (1^ ^ p) x+ (^2) p (^1) dp

(x+2 1) (x+ 1)( ) (x+2 ) (x+ )( ) = 1

x + 1 x + 2 1 = x + 2 1

Since lim ! 0 (x) =

If 1 g(x) =  0 (x);

 0 (x) is a limit of Bayes actions. (iii) Consider the improper prior density d dp = [p^2 (1 p)]^1. Then the posterior risk for action a is

Z (^1)

0

(p a)^2 (1 p)x^2 p^2 dp:

When x = 1, the above integral diverges to inร–nity and, therefore, any a is a Bayes action. When x > 1 , the above integral converges if and only if a = 0. Hence  0 is a Bayes action.

Exercise 8 (#4.13). Let X be a sample from P having probability density f(x) = h(x) expf^ x ()g with respect to  on Rp, where  2 Rp. Let the prior be the Lebesgue measure on Rp. Show that the generalized Bayes action under the loss L(; a) = kE(X) ak^2 is (x) = x when X = x with

R

f(x)d < 1. Solution. Let m(x) =

R

f(x)d and () = E(X). Similar to the case of univariate , the generalized Bayes action under loss k() ak^2 is (x) =

R

()f(x)d=m(x). Let Ac = (1; c 1 ]      (1; cp] for c = (c 1 ; :::; cp) 2 Rp. Note that fc(x) =

R

Ac

@f (x) @ d,^ c^ 2 R

p. Since m(x) = R fc(x)dc < 1 , limci!1;i=1;:::;p fc(x) = 0. Hence,

R (^) @f (x) @ d^ = 0. Since @f(x) @

x

f(x) = [x ()] f(x);

we obtain that x

R

f(x)d =

R

()f(x)d. This proves that (x) = x.

Exercise 9 (#4.14). Let (X 1 ; :::; Xn) be a random sample of random variables with the Lebesgue density

p 2 =e(x) (^2) = 2 I(; 1 )(x), where  2 R is unknown. Find the generalized Bayes action for estimating  under the squared error loss, when the (improper) prior of  is the Lebesgue measure on R. Solution. Let X be the sample mean and X(1) be the smallest order statistic. Then the product of the density of X 1 ; :::; Xn and the prior density is

 2 

n= 2 exp

X^ n

i=

(Xi )^2

I(; 1 )(X(1))

and, thus, the generalized Bayes action is

R X(1)

0 e n( X)^2 = (^2) d R (^) X(1) 0 e n( X)^2 = (^2) d

= X +

R X(1)

0 (^ ^ X)e n( X)^2 = (^2) d R (^) X(1) 0 e n( X)^2 = (^2) d

Let  be the cumulative distribution function of the standard normal distribution. Then

Z (^) X(1)

0

en( X)^2 = 2 d =

p 2 [(

p n(X(1) X)) (

p n X)] p n

and (^) Z X(1)

0

( X)en( X)^2 = 2 d =

p 2 [^0 (

p n X) ^0 (

p n(X(1) X))] n

Hence, the generalized Bayes action is

 = X +

^0 (

p n X) ^0 (

p n(X(1) X)) p n[(

p n(X(1) X)) (

p n X)]

Exercise 10 (#4.15). Let (X 1 ; :::; Xn) be a random sample from N (; ^2 ) and (; ^2 ) = ^2 I(0; 1 )(^2 ) be an improper prior for (; ^2 ) with respect to the Lebesgue measure on R^2. (i) Show that the posterior density of (; ^2 ) given x = (x 1 ; :::; xn) is (; ^2 jx) =  1 (j^2 ; x) 2 (^2 jx), where  1 (j^2 ; x) is the density of the normal distribution N (x; ^2 =n), x is the sample mean of xiรญs,  2 (^2 jx) is the density of !^1 , and! has the gamma distribution with shape parameter (n 1)= 2 and scale parameter [

Pn i=1(xi^ ^ x)

2 =2] 1.

(ii) Show that the marginal posterior density of  given x is f

(^) x 

, where  2 =

Pn i=1(xi^ ^ x)

(^2) =[n(n

1)] and f is the density of the t-distribution tn 1. (iii) Obtain the generalized Bayes action for estimating = under the squared error loss. Solution. (i) The posterior density (; ^2 jx) is proportional to

(n+2)^ exp

2 ^2

X^ n

i=

(xi x)^2

exp

( x)^2 2 ^2 =n

I(0; 1 )(^2 );

which is proportional to  1 (j^2 ; x) 2 (^2 jx). (ii) The marginal posterior density of  is

(jx) =

Z 1

0

(; ^2 jx)d^2

Z 1

0

(n+2)^ exp

n(x )^2 2 ^2

2 ^2

X^ n

i=

(xi x)^2

d^2

n 1

 x 

 2 #n= 2 :

Hence, (jx) is f (  x) with f being the density of the t-distribution tn 1.

Setting ^ 1 = EX 1 and ^ 2 = EX 12 , we obtain that

^ =

2^ 2 2^^21

^ 2 2^^21

and ^ =

(^ 1)^ 1

The empirical Bayes action is (^ n X + 1)=[^ (n + ^ 1)]:

Exercise 12 (#4.20). Let X = (X 1 ; :::; Xn) be a random sample from N (; ^2 ) with an unknown  2 R and a known ^2 > 0. Consider the prior j = N ( 0 ; ^20 ),  = ( 0 ; ^20 ), and the second-stage improper joint prior for  be the product of N (a; v^2 ) and the Lebesgue measure on (0; 1 ), where a and v are known. Under the squared error loss, obtain a formula for the generalized Bayes action in terms of a one-dimensional integral. Solution. Let x be the observed sample mean. From Exercise 2, the Bayes action when  is known is

(x; ) =

^2

n^20 + ^2

n^20 n^20 + ^2 x:

By formula (4.8) in Shao (2003), the Bayes action is Z (x; )f (jx)d;

where f (jx) is the conditional density of  given X = x. The joint density of (X; ; ) is

 1 p 2 

n 1 2  0 v exp

2 ^2

X^ n

i=

(xi )^2

(  0 )^2

2 ^20

( 0 )^2

2 v^2

Integrating out  in the joint density of (X; ; ) and using the identity

Z (^1)

exp

at^2 2 bt + c 2

dt =

r 2  a exp

b^2 2 a

c 2

for any a > 0 and real b and c, we obtain the joint density of (X; ) as

d  0

q n ^2 +^

1 ^20

exp

y 2 ^2

( 0 a)^2 2 v^2

^20

2 ^20

nx ^2 +^

 0 ^20

n ^2 +^

1 ^20

where y is the observed value of

Pn i=1 X 2 i and^ d^ = (2) (n+1)= (^2) nv (^1). This implies that

E( 0 j^20 ; x) =

a^20 (n^20 + ^2 ) n^20 v^2 x ^20 (n^20 + ^2 ) + n^20 v^2

Integrating out  0 in the joint density of (X; ) and using the previous identity again yields the joint density of (X; ^20 ) as

f (x; ^20 ) =

dey=(2 (^2) )

 0

q n ^2 +^

1 ^20

vu u t 1 v^2

^20

1 ^40 n ^2 +^

1 ^20

 exp

a v^2

nx ^20 ^2 n ^2 +^

1 ^20

v^2

^20

1 ^40 n ^2 +^

1 ^20

n^2 x^2 2 ^4 n ^2 +^

1 ^20

Then the generalized Bayes action is

Z (x; )f (jx)d =

R 1

0

h (^)  (^2) E( 0 j^20 ;x) n^20 +^2 +^

n^20 n^20 +^2 x

i f (^20 ; x)d^20 R (^1) 0 f^ ( 2 0 ; x)d 2 0

Exercise 13 (#4.21). Let X = (X 1 ; :::; Xn) be a random sample from the uniform distribution on (0; ), where  > 0 is unknown. Let () = bab(b+1)I(a; 1 )() be a prior density with respect to the Lebesgue measure, where b > 1 is known but a > 0 is an unknown hyperparameter. Consider the estimation of  under the squared error loss. (i) Show that the empirical Bayes method using the method of moments produces the empirical Bayes action (^a), where (a) = (^) b+b+nn 1 maxfa; X(n)g, ^a = 2(b bn1)

Pn i=1 Xi, and^ X(n)^ is the largest order statistic. (ii) Let h(a) = a^1 I(0; 1 )(a) be an improper Lebesgue prior density for a. Obtain explicitly the generalized Bayes action. Solution. (i) Note that EX 1 = E[E(X 1 j)] = E(=2) = ab=[2(b 1)]. Then a^ = 2(b bn1)

Pn i=1 Xi^ is the moment estimator of a. From Exercise 2, the empirical Bayes action is (^a). (ii) The joint density for (X; ; a) is

bab^1 (n+b+1)I(X(n); 1 )()I(0;)(a):

Hence, the joint density for (X; ) is

Z (^) 

0

bab^1 n(b+1)I(X(n); 1 )()da = (n+1)I(X(n); 1 )()

and the generalized Bayes action is R (^1) X(n) 

nd R (^1) X(n) 

(n+1)d =^

nX(n) n 1

Exercise 14 (#4.25). Let (X 1 ; :::; Xn) be a random sample from the exponential distribution on (0; 1 ) with scale parameter 1. Suppose that we observe T = X 1 +    + X, where  is an unknown positive integer. Consider the estimation of  under the loss function L(; a) = ( a)^2 = and the geometric distribution with mean p^1 as the prior for , where p 2 (0; 1) is known. (i) Show that the posterior expected loss is

E[L(; a)jT = t] = 1 +  2 a + (1 e)a^2 =;

where  = (1 p)t. (ii) Find the Bayes estimator of  and show that its posterior expected loss is 1 

P 1

m=1 e m.

(iii) Find the marginal distribution of (1 p)T , unconditional on . (iv) Obtain an explicit expression for the Bayes risk of the Bayes estimator in part (ii).

Note. A unique Bayes estimator under a given proper prior is admissible. Solution. (i) Let T = n X. Consider the uniform distribution on the interval (0; 1) as the prior for p. Then the Bayes estimator under the loss function (a p)^2 =[p(1 p)] is R (^1) 0 p

T (^) (1 p)nT (^1) dp R (^1) 0 p T (^1) (1 p)nT (^1) dp

T

n

= X:

Since the Bayes estimator is unique, X is an admissible estimator under the given loss function. (ii) From the result in (i), there does not exist an estimator U such that

E(U p)^2 p(1 p)

E( X p)^2 p(1 p)

for any p 2 (0; 1) and with strict inequality holds for some p. Since p 2 (0; 1), this implies that there does not exist an estimator U such that

E(U p)^2  E( X p)^2

for any p 2 (0; 1) and with strict inequality holds for some p. Hence X is an admissible estimator of p under the squared error loss.

Exercise 16 (#4.28). Let X = (X 1 ; :::; Xn) be a random sample from N (; 1),  2 R. Show that the sample mean X is an admissible estimator of  under the loss function L(; a) = j aj. Solution. Consider a sequence of priors, N (0; j), j = 1; 2 ; :::. From Exercise 1, the posterior mean under the jth prior is j = aj X, where aj = nj=(nj + 1). From Exercise 6, j is a Bayes estimator of . Let rT be the Bayes risk for an estimator T. Then, for any j, r (^) X  rj and

rj = E[E(jaj X j )] = aj E[E(j X a j 1 j )]  aj r (^) X ;

where the last inequality follows from Exercise 11 in Chapter 1 and the fact that given ,  is a median of X. Hence, 0  rj r (^) X  (aj 1)r (^) X = (nj + 1)^1 r (^) X ;

which implies that rj r (^) X converges to 0 at rate j^1 as j! 1. On the other hand, for any ร–nite

interval (a; b), the prior probability of  2 (a; b) is (b=

p j) (a=

p j), which converges to 0 at rate j^1 =^2 , where  is the cumulative distribution of N (0; 1). Thus, by Blythรญs theorem (e.g., Theorem 4.3 in Shao, 2003), X is admissble.

Exercise 17. Let X be an observation from the negative binomial distribution with a known size r and an unknown probability p 2 (0; 1). Show that (X + 1)=(r + 1) is an admissible estimator of p^1 under the squared error loss. Solution. It suยข ces to show that  0 (X) = (X + 1)=(r + 1) is admissible under the loss function p^2 (a p^1 )^2. The posterior distribution of p given X is the beta distribution with parameter (r + ; X r + ). Under the loss function p^2 (a p^1 )^2 , the Bayes estimator is

(X) =

E(pjX) E(p^2 jX)

X + + + 1

r + + 1

which has risk

R(p) = r(1 p) (r + + 1)^2

[( + + 1)p ( + 1)]^2 (r + + 1)^2

and Bayes risk

r = r ( + )(r + + 1)^2

2 ( + )^2 (r + + 1)^2

( + )^2 (r + + 1)^2

Also,  0 (X) has risk

R 0 (p) = r(1 p) + (1 p)^2 (r + 1)^2

and Bayes risk

r 0 = r ( + )(r + 1)^2

2 ( + )^2 (r + 1)^2

( + + 1)( + )^2 (r + 1)^2

Note that

(r 0 r ) = A + B + C;

where

A =

r

(r + 1)^2

(r + + 1)^2

2 r (r + 1)^3

if! 0 and! 0 ,

B =

(r + 1)^2

(r + + 1)^2

(r + 1)^3

if! 0 ,! 0 and =! 0 , and

C =

(r + 1)^2 ( + + 1)

(r + + 1)^2

[ ( + )(r + 1)][r + + 1 + ( + + 1)(r + 1)] ( + )( + + 1)(r + 1)^2 (r + + 1)^2

!

(r + 1)^2

if! 0 ,! 0 and =! 0. Therefore,

(r 0 r )! 0

if! 0 ,! 0 and =! 0. For any 0 < a < b < 1 , the prior probability of p 2 (a; b) is

Z (^) b

a

p ^1 (1 p) ^1 dp:

Note that a(a) = (a + 1)! 1 as a! 0. Hence,

 (^) ;!

Z (^) b

a

p^1 (1 p)^1 dp

as! 0 and! 0. From this and the proved result, (r 0 r )= (^) ;! 0 if! 0 ,! 0 and =! 0. By Blythรญs theorem,  0 (X) is admissible.

show that it is a consistent estimator of . Solution. Let X(j) be the jth order statistic. The joint density of X is

I(;+1)(X(1))I(;+1)(X(n)) = I(X(n) 1 ;X(1))():

Hence, the Bayes estimator is

(X) =

R X(1)

X(n) 1 ()d R (^) X(1) X(n) 1 ()d

Note that limn X(1) =  a.s. and limn X(n) =  + 1 a.s. Hence, almost surely, the interval (X(n) 1 ; X(1)) shinks to a single point  as n! 1. Since  is continuous, this implies that limn (X) =  a.s.

Exercise 20 (#4.36). Consider the linear model with observed vector X having distribution Nn(Z ; ^2 In), where Z is an n  p known matrix, p < n, 2 Rp, and ^2 > 0. (i) Assume that ^2 is known. Derive the posterior distribution of when the prior distribution for is Np( 0 ; ^2 V ), where 0 2 Rp^ is known and V is a known positive deร–nite matrix, and ร–nd the Bayes estimator of l^ under the squared error loss, where l 2 Rp^ is known. (ii) Show that the Bayes estimator in (i) is admissible and consistent as n! 1, assuming that the minimum eigenvalue of Z^ Z! 1. (iii) Repeat (i) and (ii) when ^2 is unknown and ^2 has the gamma distribution with shape para- meter and scale parameter , where and are known. (iv) In part (iii), obtain Bayes estimators of ^2 and l^ = under the squared error loss and show that they are consistent under the condition in (ii). Solution. (i) The product of the joint density of X and the prior is proportional to

n^ exp

kX Z k^2 2 ^2

exp

( 0 )^ V ^1 ( 0 )

2 ^2

Since

exp

kX Z k^2 2 ^2

= exp

SSR

2 ^2

exp

(^^ )^ Z^ Z(^^ )

2 ^2

where ^^ is the LSE of and SSR = kX Z ^^ k^2 , the product of the joint density of X and the prior is proportional to

exp

 (Z Z + V 1 ) 2  (V 1

0 +^ Z

 Z ^ )

2 ^2

which is proportional to

exp

( )^ (Z^ Z + V ^1 )( )

2 ^2

where  (^) = (Z (^) Z + V (^1) ) (^1) (V 1 0 +^ Z

 Z ^ ):

This shows that the posterior of is Np( ; ^2 (Z^ Z + V ^1 )^1 ). The Bayes estimator of l^ under the squared error loss is then l^ . (ii) Since the Bayes estimator l^ ^ is unique, it is admissble. If the minimum eigenvalue of Z^ Z! 1 as n! 1, then ^^ !p , lim n l^ (Z^ Z + V ^1 )^1 V ^1 0 = 0;

and lim n (Z^ Z + V ^1 )^1 Z^ Zl = l:

Hence, l^ ^ !p. (iii) Let! = ^2. Then the product of the joint density of X and the prior is proportional to

! ^1 e!=^ !n=^2 exp

!kX Z k^2 2

exp

!( 0 )^ V ^1 ( 0 )

which is proportional to (under the argument in part (i) of the solution),

!n=2+^ ^1 e!=^ exp

!SSR

exp

( )^ (Z^ Z + V ^1 )( )

2 ^2

Hence, the posterior of ( ; !) is p( j!)p(!) with p( j!) being the density of N ( ; !^1 (Z^ Z + V ^1 )^1 ) and p(!) being the density of the gamma distribution with shape parameter n=2 + and scale parameter ( ^1 + SSR=2)^1. The Bayes estimator of l^ is still l^ ^ and the proof of its admissibility and consistency is the same as that in part (ii) of the solution. (iv) From the result in part (iii) of the solution, the Bayes estimator of ^2 = !^1 is

Z (^1)

0

!^1 p(!)d! =

1 + SSR= 2

n=2 + 1

It is consistent since SSR=n !p ^2. Using

E( =) = E[E( =j)] = E[^1 E( j)]

and the fact that ^ does not depend on ^2 , we obtain the Bayes estimator of l^ = as

l^ 

Z 1

0

!^1 =^2 p(!)d! = l^ ^

(n=2 + + 1=2) (n=2 + )

p (^1) + SSR= 2 :

From the fact that

lim n

(n + + 1=2) p n(n + )

the consistency of the Bayes estimator follows from the consistency of l^ ^ and SSR=n.

Exercise 21 (#4.47). Let (X 1 ; :::; Xn) be a random sample of random variables with the Lebesgue density

p 2 =e(x) (^2) = 2 I(; 1 )(x), where  2 R is unknown. Find the MRIE (minimum risk invariant estimator) of  under the squared error loss. Note. See Sections 2.3.2 and 4.2 in Shao (2003) for deร–nition and discussion of invariant estimators. Solution. Let f (x 1 ; :::; xn) be the joint density of (X 1 ; :::; Xn). When  = 0,

f (X 1 t; :::; Xn t) =

n= 2 exp

X^ n

i=

(Xi t)^2

I(t; 1 )(X(1))

n= 2 e(n1)S (^2) = 2 en( Xt)^2 = 2 I(t; 1 )(X(1));

for any . Then E[T (T T 0 )] = 0. Since T 0 is an MRIE, from the previous proof we know that E[T 0 (T T 0 )] = 0. Then E(T T 0 )^2 = E[T (T T 0 )]E[T 0 (T T 0 )] = 0. Thus, T = T 0 a.s. and T is an MRIE.

Exercise 24 (#4.56). Let (X 1 ; :::; Xn) be a random sample from the uniform distribution on (0; ) and consider the estimation of  > 0. Show that the MRIE of  is 2 (n+1) 1 X(n) when the loss is L(; a) = j 1 a=j, where X(n) is the largest order statistic. Solution. By Basuรญs theorem, the scale invariant estimator X(n) is independent of Z = (Z 1 ; :::; Zn), where Zi = Xi=Xn, i = 1; :::; n 1 , and Zn = Xn=jXnj. By Theorem 4.8 in Shao (2003), the MRIE is X(n)=u, where u minimizes E 1 j 1 X(n)=uj over u > 0 and E 1 is the expectation under  = 1. If u  1 , then j 1 X(n)=uj = 1 X(n)=u  1 X(n) = j 1 X(n)j. Hence, we only need to consider 0 < u < 1. Since X(n) has Lebesgue density nxn^1 I(0;1)(x) when  = 1,

E 1 j(X(n)=u) 1 j = n

Z 1

0

x u

1 xn^1 dx

n u

Z (^) u

0

(u x)xn^1 dx + n u

Z 1

u

(x u)xn^1 dx

= un^

n n + 1 un^ +

n n + 1

1 un+ u (1 un)

=

n + 1 un^ +

n n + 1

u

which is minimized at u = 2(n+1) 1

. Thus, the MRIE is 2 (n+1) 1 X(n).

Exercise 25 (#4.59). Let (X 1 ; :::; Xn) be a random sample from the Pareto distribution with Lebesgue density  x(^ +1)I(; 1 )(x), where  > 0 is an unknown parameter and > 2 is known. Find the MRIE of  under the loss function L(; a) = (1 a=)^2. Solution. By Basuรญs theorem, the scale invariant estimator X(1) is independent of Z = (Z 1 ; :::; Zn), where X(1) is the smallest order statistic, Zi = Xi=Xn, i = 1; :::; n 1 , and Zn = Xn=jXnj. By Theorem 4.8 in Shao (2003), the MRIE is X(1)=u, where u minimizes E 1 (1 X(1)=u)^2 over u > 0 and E 1 is the expectation under  = 1. Since X(1) has Lebesgue density n x(n^ +1)I(1; 1 )(x) when  = 1,

E 1 (1 X(1)=u)^2 =

E 1 (X(1)^2 ) 2 uE 1 (X(1)) + u^2 u^2 = n (n 2)u^2

2 n (n 1)u

which is minimized at u = (n 1)=(n 2). Hence, the MRIE is equal to (n 2)X(1)=(n 1).

Exercise 26 (#4.62). Let (X 1 ; :::; Xn) be a random sample from the exponential distribution on (; 1 ) with scale parameter , where  2 R and  > 0 are unknown. (i) Find the MRIE of  under the loss L(; a) = j 1 a=jp^ with p = 1 or 2. (ii) Under the loss function L(; ; a) = (a )^2 =^2 , ร–nd the MRIE of . (iii) Compute the bias of the MRIE of  in (ii). Solution. Let X(1) = min 1 in Xi and T =

Pn i=1(Xi^ ^ X(1)).^ Then^ (X(1); T^ )^ is complete and suยข cient for (; ); X(1) and T are independent; T is location-scale invariant and T = has the

gamma distribution with shape parameter n 1 and scale parameter 1; and X(1) is location-scale invariant and has Lebesgue density n^1 en(x)=I(; 1 )(x). (i) Let W = (W 1 ; :::; Wn 1 ), where Wi = (Xi Xn)=(Xn 1 Xn), i = 1; :::; n 2 , and Wn 1 = (Xn 1 Xn)=jXn 1 Xnj. By Basuรญs theorem, T is independent of W. Hence, according to formula (4.28) in Shao (2003), the MRIE of  is T =u, where u minimizes E 1 j 1 T =ujp^ over u > 0 and E 1 is the expectation taken under  = 1. When p = 1,

E 1 j 1 T =uj =

u

Z (^) u

0

(u t)fn(t)dt +

Z 1

u

(t u)fn(t)dt

Z (^) u

0

fn(t)dt

u

Z (^) u

0

tfn(t)dt

u

Z 1

u

tfn(t)dt

Z 1

u

fn(t)dt;

where fn(t) denotes the Lebesgue density of the gamma distribution with shape parameter n 1 and scale parameter 1. The derivative of the above function with respect to u is

(u) =

u^2

Z (^) u

0

tfn(t)dt

Z 1

u

tfn(t)dt

The solution to (u) = 0 is u satisfying Z (^) u

0

tfn(t)dt =

Z 1

u

tfn(t)dt:

Since tfn(t) is proportional to the Lebesgue density of the gamma distribution with shape parameter n and scale parameter 1, u is the median of the gamma distribution with shape parameter n and scale parameter 1. When p = 2,

E 1 (1 T =u)^2 =

E 1 (T 2 ) 2 uE 1 (T ) + u^2 u^2

n(n 1) u^2

2(n 1) u

which is minimized at u = n. (ii) By Basuรญs theorem, (X(1); T ) is independent of W deร–ned in part (i) of the solution. By Theorem 4.9 in Shao (2003), an MRIE of  is X(1) uT , where u minimizes E 0 ; 1 (X(1) uT )^2 over u and E 0 ; 1 is the expectation taken under  = 0 and  = 1. Note that

E 0 ; 1 (X(1) uT )^2 = E 0 ; 1 (X(1)^2 ) 2 uE 0 ; 1 (X(1))E 0 ; 1 (T ) + u^2 E 0 ; 1 (T 2 )

=

n^2

2(n 1)u n

  • n(n 1)u^2 ;

which is minimized at u = n^2. Hence the MRIE of  is X(1) n^2 T. (iii) Note that

E(X(1) n^2 T ) =

n

(n 1) n^2

n^2

Hence, the bias of the MRIE in (ii) is =n^2.