Docsity

Solved Problems - Statistical Inference | STA 7346, Assignments of Statistics

Toggle sidebar
bg1
1 Problem 2.2.5
It follows that (X, S 2)is complete and sufficient for the normal family. Since δ=X2−S2
n(n−1) is
a function of (X, S 2), it is UMVU for ξ2if it is unbiased for ξ2.
⇒X∼N(ξ, σ2/n), S 2/σ2∼χ2
n−1
⇒E(X) = ξ, and E(X2) = Var(X)+(E(X))2
=σ2/n +ξ2
Also that E(S2/σ2) = n−1, so E(S2) = σ2(n−1). So finally:
E(δ) = σ2/n +ξ2−1
n(n−1)σ2(n−1) = ξ2
Now we need to find Var(δ)
Var(δ) = Var(¯
X2) + 1
n2(n−1)2Var(S2)
=E(¯
X4)−ξ4−2
nξ2σ2+σ4(3 −n)
n2(n−1)
Now we can use Stein’s Identity to find E(¯
X4). E(¯
X4) = ξ4+6
nξ2σ2+3σ4
n2. Then finally we have
Var(δ) = 4
nξ2σ2+2σ4
n(n−1)
2 Problem 2.2.21
(a) Let X1, . . . , Xm∼Exp(a, b)and Y1, . . . , Yn∼Exp(a0, b0), independently. Then
fXY (x, y ) = 1
bmexp (−1
b
m
X
i=1
(xi−a))m
Y
i=1
I[a,∞](xi)1
b0nexp (−1
b0
n
X
j=1
(yj−a0))n
Y
j=1
I[a0,∞](yi)
=1
bmb0nexp (−m
bx(1) +−n
b0y(1) +−1
b
m
X
i=1
(x(i)−x(1)) + −1
b0
n
X
j=1
(y(j)−y(1)))
eam
b+a0n
b0I[a,∞](x(1))I[a0,∞](y(1))
m
Y
i=1
I[x(1),∞](xi)
n
Y
j=1
I[y(1),∞](yi).
By the factorization theorem,
T1=X(1), T2=
m
X
i=1
(Xi−X(1)), T3=Y(1), T4=
n
X
i=1
(Yi−Y(1))
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Solved Problems - Statistical Inference | STA 7346 and more Assignments Statistics in PDF only on Docsity!

1 Problem 2.2.

It follows that (X, S^2 ) is complete and sufficient for the normal family. Since δ = X 2 − S 2 n(n−1) is a function of (X, S^2 ), it is UMVU for ξ^2 if it is unbiased for ξ^2.

⇒ X ∼ N(ξ, σ^2 /n), S^2 /σ^2 ∼ χ^2 n− 1 ⇒ E(X) = ξ, and E(X^2 ) = Var(X) + (E(X))^2 = σ^2 /n + ξ^2

Also that E(S^2 /σ^2 ) = n − 1 , so E(S^2 ) = σ^2 (n − 1). So finally:

E(δ) = σ^2 /n + ξ^2 −

n(n − 1) σ^2 (n − 1) = ξ^2

Now we need to find Var(δ)

Var(δ) = Var( X¯^2 ) +

n^2 (n − 1)^2 Var(S^2 )

= E( X¯^4 ) − ξ^4 −

n ξ^2 σ^2 + σ^4 (3 − n) n^2 (n − 1)

Now we can use Stein’s Identity to find E( X¯^4 ). E( X¯^4 ) = ξ^4 + (^6) n ξ^2 σ^2 + 3 σ 4 n^2. Then finally we have Var(δ) = (^) n^4 ξ^2 σ^2 + (^) n(^2 nσ−^4 1)

2 Problem 2.2.

(a) Let X 1 ,... , Xm ∼ Exp(a, b) and Y 1 ,... , Yn ∼ Exp(a′, b′), independently. Then

fXY (x, y) =

bm^

exp

b

∑^ m

i=

(xi − a)

} (^) m ∏

i=

Ia,∞

b′n^

exp

b′

∑^ n

j=

(yj − a′)

} (^) n ∏

j=

Ia′,∞

bmb′n^ exp

−m b x(1) + −n b′^ y(1) +

b

∑^ m

i=

(x(i) − x(1)) +

b′

∑^ n

j=

(y(j) − y(1))

e amb + ab′n′ Ia,∞Ia′,∞

∏^ m

i=

Ix(1),∞

∏^ n

j=

Iy(1),∞.

By the factorization theorem,

T 1 = X(1), T 2 =

∑^ m

i=

(Xi − X(1)), T 3 = Y(1), T 4 =

∑^ n

i=

(Yi − Y(1))

are sufficient statistics. We then can show that the sufficient statistics are distributed as

T 1 ∼ Exp

a, b m

b T 2 ∼ Gamma(m − 1 , 1),

T 3 ∼ Exp

a′, b′ n

b′^ T 4 ∼ Gamma(n − 1 , 1).

It is shown in TPE that (T 1 , T 2 ) is complete for X and likewise, (T 3 , T 4 ) for Y. We need to show that they are complete at the same time. Assume we have a function g such that

Ea,b,a′,b′^ g(T 1 , T 2 , T 3 , T 4 ) = 0.

Define h to be h(t 1 , t 2 , a′, b′) = Ea′,b′^ g(t 1 , t 2 , T 3 , T 4 ).

Then, 0 = Ea,b,a′,b′ g(T 1 , T 2 , T 3 , T 4 ) = Ea,b h(T 1 , T 2 , a′, b′),

but since (T 1 , T 2 ) is complete, h(t 1 , t 2 , a′, b′) = 0 for almost everywhere. But this implies that Ea′,b′^ g(t 1 , t 2 , T 3 , T 4 ) = 0 except on some null set N 0. But (T 3 , T 4 ) is complete, so g(t 1 , t 2 , t 3 , t 4 ) = 0 almost everywhere, except on N 0. But since N 0 is a null set, we have g(t 1 , t 2 , t 3 , t 4 ) = 0 almost everywhere. Hence, T = (T 1 , T 2 , T 3 , T 4 ) is complete.

(b) Thus, the UMVUE’s must be functions of T. Note that

ET 1 = a + b m , and E

b

T 2

= m − 1.

We find similar expectations for ET 3 and ET 4 by replacing a, b, m with a′, b′, n, respectively. Define δ(T ) as

δ(T ) = T 3 −

n(n − 1)

T 4 − T 1 +

m(m − 1)

T 2.

Then,

Eδ(T ) = ET 3 −

n(n − 1)

ET 4 − ET 1 +

m(m − 1)

ET 2

a′^ + b′ n

n(n − 1) b′(n − 1) −

a + b m

m(m − 1) b(m − 1)

= a′^ + b′ n

b′ n − a − b m

b m = a′^ − a.

Hence, δ(T ) is an unbiased estimator of a′^ − a and is a function of only the complete sufficient statistics, so it is the UMVUE.

Note that

E

[

T 2

]

0

t

Γ(m − 1)

t b

)m− 2 e−^

tb d

t b

bΓ(m − 1)

0

t b

)m− 3 e−^

tb d

t b

bΓ(m − 1) Γ(m − 2) =

b(m − 2)

N(ξ, σ^2 ) ∼

2 πσ^2

exp

[

x − ξ σ

) 2 ]

= p(x)

log(p(x)) = log(2πσ^2 )−^1 /^2 −

x − ξ σ

, τ (θ) = ξ

∂ξ

log(p(x)) = (x − ξ) σ^2

⇒

∂^2

∂ξ^2 log(p(x)) = − 1 /σ^2 ⇒ −E

[

∂^2

∂ξ^2 log(p(x))

]

σ^2

(b)

∂σ^2

log(p(x)) = − 1 / 2 σ^2 +

(x − ξ)^2 (σ^2 )^2 ∂^2 ∂(σ^2 )^2 log(p(x)) =

σ^4

(x − ξ)^2 σ^6

−E

[

∂^2

∂(σ^2 )^2 log(p(x))

]

= −E

[

2 σ^4

(x − ξ)^2 σ^6

]

2 σ^4

σ^2 σ^6

2 σ^4

(c)

B(n, p) ∼ Cxn px(1 − p)n−x^ = p(x) log(p(x)) = log(Cxn ) + x log p + (n − x)log(1 − p) ∂ ∂p log(p(x)) = x/p − n − x 1 − p

Var

∂p log(p(x))

np(1 − p) p

n − np(1 − p) 1 − p

n p(1 − p)

(d)

P (λ) ∼ e−λλx x! = p(x) log(p(x)) = −λ + x log λ − log x! ∂ ∂λ log(p(x)) = −1 + x λ

Var

x λ

λ λ^2

λ

(e)

p(x) =

Γ(α)βα^ xα−^1 e−x/β

log(p(x)) = − log Γ(α) − α log β + (α − 1) log x − x/β ∂ ∂β

log(p(x)) = −α β

x β^2 ∂^2 ∂β^2

α β^2

2 x β^3

−E

[

∂^2

∂β^2

log(p(x))

]

= −E

[

α β^2

2 x β^3

]

α β^2

2 αβ β^3

α β^2

2 α β^2

α β^2

5 Problem 2.5.

(a) Let X be distributed from an arbitrary scale family with density (^1) θ f (xθ ), for θ > 0. Then,

I[θ] = E

[(

∂θ

− log θ + log f

X

θ

)}) 2 ]

= E

θ

(−X

θ^2

f ′^

(X

θ

f

(X

θ

(−1)^2

θ^2

E

(X

θ

f ′^

(X

θ

f

(X

θ

θ^2

(x θ

f ′^

(x θ

f

(x θ

θ f

(x θ

dx

θ^2

yf ′(y) f (y)

f (y) dy.

(b) Note that [h′(θ)]^2 =

[

d dθ log θ

] 2

[

θ

] 2

θ^2

Then,

I[log θ] = I[θ] [h′(θ)]^2

= θ^2 I[θ] =

yf ′(y) f (y)

f (y) dy,

which is independent of θ.

sqerf2=array(0,dim=c(reps,length(a))) for(i in 1:reps) { xone1=min(rexp(n,rate=1))-a xone2=min(rexp(n,rate=1))-a sqerf[i,]=(xone1-1/n)ˆ sqerf2[i,]=(xone2-1/n)ˆ2 } sqerfmean=apply(sqerf,2,mean) sqerf2mean=apply(sqerf2,2,mean) plot(a,sqerfmean,type="l",main="Squared Error Loss Same for MRE/UMVUE") lines(a,sqerf2mean,lty="dashed",col="red")

#Absolute Error n= a=seq(-3,3,.01) reps= abs1=array(0,dim=c(reps,length(a))) abs2=array(0,dim=c(reps,length(a))) for(i in 1:reps) { xone=min(rexp(n,rate=1))-a abs1[i,]=(abs(xone-1/n)) abs2[i,]=(abs(xone-log(2)/n)) } abs1m=apply(abs1,2,mean) abs2m=apply(abs2,2,mean) plot(a,abs1m,type="l",main="Absolute Loss, MRE (Red), UMVUE (Black)") lines(a,abs2m,lty="dashed",col="red")

#0-1 Error n= a=seq(-5,5,.25/2) k=pi reps= zero1=array(0,dim=c(reps,length(a))) zero2=array(0,dim=c(reps,length(a)))

for(i in 1:reps) { xone=min(rexp(n,rate=1))-a zero1[i,]=abs(xone-1/n) zero2[i,]=abs(xone-k)

for(j in 1:length(a)) { if (abs(zero1[i,j])>k) {zero1[i,j]=1} else {zero1[i,j]=0} if (abs(zero2[i,j])>k)

{zero2[i,j]=1} else {zero2[i,j]=0} } } zerom1=apply(zero1,2,mean) zerom2=apply(zero2,2,mean) plot(a,zerom1,type="l",main="0-1 Loss, MRE (Red), UMVUE (Black)") lines(a,zerom2, lty="dashed",col="red")

8 Problem 3.2.

(a) To estimate the attainable power, we have the following estimator and transformations:

δ(x) = c min{ 100 , x − 20 }, g(x) = 1000x, g¯(θ) = 1000θ.

For functional equivariance, we want g¯ (δ(x)) to estimate ¯g(θ). We see that

¯g (δ(x)) = 1000 δ(x) = 1000c min{ 100 , x − 20 } = c min{ 105 , 1000 x − 20 , 000 } = c min{ 105 , g(x) − 20 , 000 }

is the obvious estimator of ¯g(θ).

(b) For function invariance we want δ (g(x)) to also estimate ¯g(θ). Note that

δ (g(x)) = c min{ 100 , g(x) − 20 } = c min{ 100 , 1000 x − 20 }.

This is problematic though, because the measurement units no longer match during the calcula- tions. Now we have that 1000 x is measured in liters per sec, while 20 is in terms of m^3 per sec. Thus, δ (g(x)) is not a reasonable estimator and cannot be used.

9 Problem 3.2.

(a) Let G = {g : gX = aX, a > 0 } be the class of transformations. Suppose g 1 , g 2 ∈ G and g 1 X = a 1 X, g 2 X = a 2 X, a 1 , a 2 > 0 then g 2 ◦ g 1 (X) = a 2 a 1 X and a 1 a 2 > 0. So g 2 ◦ g 1 ∈ G. That means G is closed under composition. it is easy to check that g−^1 X = a−^1 X, a−^1 > 0 then g−^1 ∈ G. So G is a group.

(b) If δ(x) = φ(¯x/s)s^2 , we want to show δ(gX) = g∗δ(X). where g∗δ(X) = a^2 δ(X).

δ(gX) = φ(ax/as¯ )a^2 s^2 = a^2 φ(¯x/s)s^2 = a^2 δ(X)

Similarly, we have

E 1 , 1 δ 02 = Γ(β + 2r)Γ(α − 2 r) Γ(β)Γ(α)

Here, we need α > 2 r. Then the MRE is δ∗^ = (^) Γ(Γ(ββ+2+rr)Γ()Γ(αα−−r 2 )r) δ 0 = (^) Γ(Γ(ββ+2+rr)Γ()Γ(αα−−r 2 )r)

( Y

X

)r .

(b)

δ 0 =

(√^ ∑n ∑im=1^ Y^ i^2 i=1 X i^2

)r is equivariant for

( (^) τ σ

)r

. It is also a function of the CSS (

∑m i=1 X 2 i ,^

∑n i=1 Y^ 2 i ), so it is independent of Z by Basu’s Theorem. So E 1 , 1 [γ(δ 0 /w(Z))|Z] = E 1 , 1 [γ(δ 0 /w)] is mini- mized by some constant w∗. From (a) w∗^ = E^1 ,^1 δ

(^20) E 1 , 1 δ 0. We know that

∑m i=1 X 2 i ∼^ χ 2 m,^

∑n i=1 Y^ 2 i ∼^ χ 2 n. Then

E 1 , 1 δ 0 = E(

∑^ n

i=

Y (^) i^2 )r/^2 E(

∑^ m

i=

X i^2 )−r/^2 =

0

yr/2+n/^2 −^1 e−y/^2

2 −n/^2 Γ(n/2) dy×

0

xm/^2 −r/^2 −^1 e−x/^2

2 −m/^2 Γ(n/2) dx

Γ(n/2 + r/2)Γ(m/ 2 − r/2) Γ(n/2)Γ(m/2)

Similarly, we have

E 1 , 1 δ 02 = Γ(n/2 + r)Γ(m/ 2 − r) Γ(n/2)Γ(m/2)

Here, we need m > 2 r.

Then the MRE is δ∗^ = Γ(n/Γ(n/2+2+r/2)Γ(r)Γ(m/m/^22 −−r/r) 2)δ 0 = Γ(n/Γ(n/2+2+r/2)Γ(r)Γ(m/m/^22 −−r/r)2)

(√ (^) ∑n ∑im=1^ Y^ i^2 i=1 X^2 i

)r .

12 Additional Problem 1

We use the following R code to generate X 1 ,... , Xn from the logarithmic series distribution and we estimate the value of θ by MLE and UMVUE and the risk of these estimators. Note that we calculate the values of A(t, n) from the tth-coefficient of θ in the Taylor series expansion of [− log(1 − θ)]n. We fix n = 20 and can produces the first 150 coefficients of θ in Maple and input them to R.

> n <- 20 #number of values per sample > n1 <- 200 #number of theta values > n2 <- 300 #number of simulations per theta value > m <- 500 #number of partitions for MLE estimation > > # A was calculated using Maple’s Taylor function > A <- c(rep(0,19),1, 10, 54.167, 210.83, 660.42, 1768.8, ...............

  • .45248* 10ˆ11, .46760* 10ˆ11, .48306* 10ˆ11, .49887* 10ˆ11 ) >

> theta <- seq(0,1, length=(n1+2))[-(n1+2)] > theta <- theta[-1] > th.seq <- seq(0,1,length=(m+2))[-(m+2)] > th.seq <- th.seq[-1] > y <- 1: > cdf <- rep(0,50) > x <- rep(0,n) > T <- rep(0,n2) > theta.mle <- rep(0,n2) > theta.umvue <- rep(0,n2) > loss.mle <- rep(0,n2) > loss.umvue <- rep(0,n2) > Risk.mle <- rep(0,n1) > Risk.umvue <- rep(0,n1) > > for(j in 1:n1)

  • {

  • C <- -log(1-theta[j])

  • pdf <- (theta[j]ˆy)/(y*C)

  • for(i in y){ cdf[i] <- sum( pdf[1:i] ) }

  • for(k in 1:n2)

  • {

  • Generate X

  • U <- runif(n)

  • for(i in 1:n){ x[i] <-1+sum( cdf