Docsity

Solutions to Assignment #2 - Statistical Inference | STA 7346, Assignments of Statistics

Toggle sidebar
bg1
1.5.10: In a Bernoulli sequence of trials with success probability p, let X+m
be the number of trials required to achieve msuccesses.
(a) Show that the distribution of X, the negative binomial distribution, is as
given in Table 5.1
Solution: X+mbe the number of trials required to achieve msuccesses.
The (X+m)th is a success,m−1 of the previous X+m−1 trials are successes.
Then
P(X=x) = pµx+m−1
m−1pm−1(1 −p)xI{0,1,···}(x)
=µx+m−1
m−1pm(1 −p)xI{0,1,···}(x)
(b) Verify that the negative binomial probabilities add up to 1 by expanding
³1
p−q
p´−m=pm(1 −q)−m
Solution:
1 = pm(1 −q)−m=pm
+∞
X
x=0 µ−m
x(−q)x
=pm
+∞
X
x=0 µm+x−1
x(−1)x(−q)x
=
+∞
X
x=0 µm+x−1
xpmqx=
+∞
X
x=0
P(X=x)
(c) Show that the distribution of (a) constitute a one-parameter exponential
family.
Solution:
P(X=x) = µx+m−1
m−1pm(1 −p)xI{0,1,···}(x)
=µx+m−1
m−1I{0,1,···}(x) exp[xlog(1 −p)−(−mlog p)]
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15

Partial preview of the text

Download Solutions to Assignment #2 - Statistical Inference | STA 7346 and more Assignments Statistics in PDF only on Docsity!

1.5.10: In a Bernoulli sequence of trials with success probability p, let X +m be the number of trials required to achieve m successes.

(a) Show that the distribution of X, the negative binomial distribution, is as given in Table 5. 1

Solution: X + m be the number of trials required to achieve m successes. The (X +m)th is a success,m−1 of the previous X +m−1 trials are successes. Then

P (X = x) = p

x + m − 1 m − 1

pm−^1 (1 − p)xI{ 0 , 1 ,··· }(x)

x + m − 1 m − 1

pm(1 − p)xI{ 0 , 1 ,··· }(x)

(b) Verify that the negative binomial probabilities add up to 1 by expanding ( 1 p −^

q p

)−m = pm(1 − q)−m

Solution:

1 = pm(1 − q)−m^ = pm

∑^ +∞

x=

−m x

(−q)x

= pm

∑^ +∞

x=

m + x − 1 x

(−1)x(−q)x

∑^ +∞

x=

m + x − 1 x

pmqx^ =

∑^ +∞

x=

P (X = x)

(c) Show that the distribution of (a) constitute a one-parameter exponential family.

Solution:

P (X = x) =

x + m − 1 m − 1

pm(1 − p)xI{ 0 , 1 ,··· }(x)

x + m − 1 m − 1

I{ 0 , 1 ,··· }(x) exp[x log(1 − p) − (−m log p)]

so the distribution constitute a one-parameter exponential family.

(d) Show that the moment generating function of X is MX (u) = pm/(1 − qeu)m.

Solution: From part (c) we know η = log(1 − p) A(η) = −m log p = −m log(1 − eη). By Theorem 1.5.10,

MX (u) = e−m^ log(1−e

η+u) /e−m^ log(1−e

η (^) ) = (1 − eη+u)−m/(1 − eη)−m = (1 − elog(1−p))m/(1 − elog(1−p)+u)m = pm/(1 − qeu)m

(e) Show that E(X) = mq/p and var(X) = mq/p^2

Solution: M ′ X (u) =^ p m(−m)(1 − qeu)−m− (^1) (−qeu). E(X) = M ′ X (0) = pm(−m)(1 − q)−m−^1 (−q) = mq/p.

M

′′ X (u) =^ mqp

m[eu(1 − qeu)−m− (^1) + eu(−m − 1)(1 − qeu)−m− (^2) (−qeu)]. EX (^2) =

M ′′ X (0) =^ mqp m[(1 − q)−m− (^1) + (−m − 1)(1 − q)−m− (^2) (−q)] = mq p^2 (m^ −^ mp^ + 1). var(X) = EX^2 − (EX)^2 = mqp 2 (m − mp + 1) − m

(^2) q 2 p^2 =^

mq p^2.

(f) Show that the first four cumulants of X are k^1 = mq/p, k^2 = mq/p^2 , k^3 = mq(1 + q)/p^3 , k^4 = mq(1 + 4q + q^2 )/p^4.

1.5.19: Using lemma 5.15:

(a) Derive the form of the identity for X ∼ Gamma(a, b) and use it to verify the moments of (5.44).

Solution:

fX (x) =

Γ(a)ba^

xa−^1 e−x/bIR+ (x) = x−^1 exp{alog(x) − x/b − log(Γ(a)ba)}

Note that this distribution belongs to the exponential family, with T 1 (x) = log(x), T 2 (x) = x, η 1 = a, η 2 = − 1 /b and h(x) = x−^1 IR+ (x) = x−^1. Also, T 1 ′(x) = x−^1 , T 2 ′(x) = 1 and h′(x) = −x−^2 and note that x−^1 exp{alog(x) − x/b} = exp{(a − 1)log(x) − x/b} → 0 as x → 0. By Lemma 5.15 (Stein’s identity), for any differentiable function g with E|g′(X)| < ∞,

E

{[

h′(x) h(x)

∑^2

i=

ηiT (^) i′ (x)

]

g(X)

= −Eg′(X) (1)

Note that

h′(X) h(X)

−X−^2

X−^1

= −X−^1

so (1) reduces to

E

{[

a − 1 X

b

]

g(X)

= −Eg′(X) (2)

To find EX take g(X) = X, which is clearly differentiable and has finite expectation, then (2) reduces to

E

[

a − 1 −

X

b

]

EX = ab

To find EX^2 take g(X) = X^2 , which is clearly differentiable and has finite expectation, (2) reduces to

E

[

(a − 1)X −

X^2

b

]

= −E(2X)

EX^2 = ab^2 + a^2 b^2

Therefore,

V arX = EX^2 − (EX)^2 = ab^2 + a^2 b^2 − (ab)^2 = ab^2

To find EX^3 take g(X) = X^3 , which is clearly differentiable and has finite expectation, then (2) reduces to

E

[

(a − 1)X^2 −

X^3

b

]

= −E(3X^2 )

Solving for EX^3 we get,

EX^3 = b^3 a(a + 2) + b^3 a^2 (a + 2) = 2 ab^3 + a^3 b^3 + 3a^2 b^3

Therefore,

E(X − ab)^3 = E(X^3 − 3 X^2 ab + 3Xa^2 b^2 − a^3 b^3 ) = (2ab^3 + a^3 b^3 + 3a^2 b^3 ) − 3(ab^2 + a^2 b^2 )ab + 3(ab)a^2 b^2 − a^3 b^3 = 2 ab^3

To find EX^4 , take g(X) = X^4 , which is clearly differentiable and has finite expectation, then (2) reduces to

E

[

(a − 1)X^3 −

X^4

b

]

= −E(4X^3 )

Solving for EX^4 we get,

EX^4 = b(a + 3)(2ab^3 + a^3 b^3 + 3a^2 b^3 ) = 6 ab^4 + 11a^2 b^4 + 6a^3 b^4 + a^4 b^4

E [(a − 1)(X − 1) + (b − 1)X] = −E(2X − 1) EX(a − 1 + b − 1 + 2) = a EX =

a a + b

To find EX^2 take g(X) = X^2 (X − 1) which is clearly differentiable and has finite expectation, (3) reduces to

E

[

(a − 1)(X − 1)X + (b − 1)X^2

]

= −E(3X^2 − 2 X)

EX^2 =

a(a + 1) (a + b)(a + b + 1)

Therfore,

V arX = EX^2 − (EX)^2 =

a(a + 1) (a + b)(a + b + 1)

a a + b

)^2

ab (a + b)^2 (a + b + 1)

1.6.7: Let X 1 , · · · , Xm and Y 1 , · · · , Yn are independently distributed ac- cording to N (ξ, σ^2 ) and N (η, τ 2 ), respectively. Find the minimal sufficient statistics for these cases:

(a) ξ, η, σ, τ are arbitrary: −∞ < ξ, η < +∞, 0 < σ, τ.

Solution: From Casella and Berger’s book: A statistics T (X) is minimal sufficient if (^) ff (^ (XX′) (^) ) is constant in θ ⇐⇒ T (X) = T (X ′ ).

f (X) f (X′^ )

∏m i=1(2πσ (^2) )− 1 / (^2) exp

−(xi−ξ)

2 2 σ^2

n i=1(2πτ^ (^2) )− 1 / (^2) exp

−(yi−η)

2 2 τ 2

∏m i=1(2πσ (^2) )− 1 / (^2) exp

−(x

′ i−ξ)^2 2 σ^2

n i=1(2πτ^ (^2) )− 1 / (^2) exp

−(y

′ i −η)^2 2 τ 2

(∗) = exp

[

2 σ^2

x ′ 2 i −^

x^2 i ) +

2 τ 2

y ′ 2 i −^

y i^2 )

ξ σ^2

xi −

x

′ i) +^

η τ 2

yi −

y

′ i)

]

This is constant in θ ⇐⇒

x ′ 2 i =^

x^2 i ,

y ′ 2 i =^

y^2 i ,

xi =

x ′ i,^

∑ yi^ = y ′ i. Therefor (

xi,

x^2 i ,

yi,

y^2 i ) is minimal sufficient statistics.

(b) σ = τ and ξ, η, σ are arbitrary.

Solution: If σ = τ then

(∗) = exp

[

2 σ^2

x ′ 2 i −^

x^2 i +

y ′ 2 i −^

y^2 i )

ξ σ^2

xi −

x

′ i) +^

η τ 2

yi −

y

′ i)

]

This is constant in θ ⇐⇒

x ′ 2 i +

y ′ 2 i =^

x^2 i +

y^2 i ,

xi =

x ′ i,^

∑ yi^ = y ′ i. Therefor (

xi,

yi,

x^2 i +

y i^2 ) is minimal sufficient statistics.

(c) ξ = η and ξ, σ, τ are arbitrary.

1.6.16: Let X 1 , X 2 ,... , Xn be iid according to a distribution from a family P. Show that T is minimal sufficient in the following cases:

(a) P = {U (0, θ), θ > 0 } ; T = X(n)

Solution: Let x and y be any two sample points. Now,

pθ(x) pθ(y)

θ−n^

∏n i=1 I(0,θ)(xi) θ−n^

∏n i=1 I(0,θ)(yi)

=

I(x(n),∞)(θ) I(y(n),∞)(θ)

Note that the numerator and denominator are positive for the same values of θ and the ratio is a constant function of θ if and only if T (x) = x(n) = y(n) = T (y). It follows by Theorem 6.1.4 of Casella and Berger’s book that T = X(n) is minimal sufficient for θ.

(b) P = {U (θ 1 , θ 2 ) ,−∞ < θ 1 < θ 2 < ∞}; T = (X(1), X(n)).

Solution: Let x and y be any two sample points and let θ = (θ 1 , θ 2 ). Now,

pθ(x) pθ(y)

(θ 2 − θ 1 )−n^

∏n i=1 I(θ 1 ,θ 2 )(xi) (θ 2 − θ 1 )−n^

∏n i=1 I(θ^1 ,θ^2 )(yi)

=

I(−∞,x(1))(θ 1 )I(x(n),∞)(θ 2 ) I(−∞,y(1))(θ 1 )I(y(n),∞)(θ 2 )

Note that the numerator and denominator are positive for the same values of θ and the ratio is a constant function of θ if and only if x(1) = y(1) and x(n) = y(n) that is, if and only if T (x) = (x(1), x(n)) = (y(1), y(n)) = T (y). It follows by Theorem 6.1.4 of Casella and Berger’s book that T = (X(1), X(n)) is minimal sufficient for θ = (θ 1 , θ 2 ).

(c)P = {U (θ − 12 , θ + 12 ),−∞ < θ < ∞}; T = (X(1), X(n)).

Solution: Let x and y be any two sample points. Now,

pθ(x) pθ(y)

∏n ∏i=1^ I(θ−^12 ,θ+^12 )(xi) n i=1 I(θ−^12 ,θ+^12 )(yi)

=

I(x(n)− 12 ,x(1)+ 12 )(θ) I(y(n)− 12 ,y(1)+ 12 )(θ)

Note that the numerator and denominator are positive for the same values of θ and the ratio is a constant function of θ if and only if x(1) + 12 = y(1) + (^12) and x(n) − 12 = y(n) − 12 if and only if x(1) = y(1) and x(n) = y(n), if and only if T (x) = (x(1), x(n)) = (y(1), y(n)) = T (y). It follows by Theorem 6.1.4 of Casella and Berger’s book that T = (X(1), X(n)) is minimal sufficient for θ.

1.7.5: Prove or disprove by counterexample each of the following statements. If φ is convex on (a, b) so is

(i) eφ(x)

Solution: We know that ex^ is a convex function over R, and so it is neces- sarily convex in the interval (a, b). So for all γ ∈ (0, 1) and x, y ∈ (a, b)

eγx+(1−γ)y^ ≤ γex^ + (1 − γ)ey^ (4)

Since φ is convex. Then for all γ ∈ (0, 1) and x, y ∈ (a, b)

φ(γx + (1 − γ)y) ≤ γφ(x) + (1 − γ)φ(y) (5)

Exponentiating (5) we get,

eφ(γx+(1−γ)y)^ ≤ eγφ(x)+(1−γ)φ(y) ≤ γeφ(x)^ + (1 − γ)eφ(y)^ using (4)

Hence, eφ(x)^ is convex.

(i) logφ(x)

Solution: For a counter example let us take φ(x) = x^2 on (0, 1) which is convex for all x ∈ (0, 1),(show this!). Now, for all x ∈ (0, 1)

d^2 dx^2

logφ(x) =

x^2

Hence, logφ(x) is not a convex function on (0, 1).

1.7.16:(a) If f : <p^ −→ < is superharmonic, then ϕ(f (·)) is also super- harmonic, where ϕ : < −→ < is a twice-differentiable increasing concave function.

Solution: ∑p

i=

∂^2

∂x^2 i

ϕ(f (x)) =

∑^ p

i=

∂xi

∂ϕ ∂f

∂f ∂xi

∑^ p

i=

∂ϕ ∂f

∂^2 f ∂x^2 i

∂^2 ϕ ∂f 2

∂f ∂xi

∂ϕ ∂f

∑^ p

i=

∂^2 f ∂x^2 i

∂^2 ϕ ∂f 2

∑^ p

i=

∂f ∂xi

Thus ϕ(f (·)) is also superharmonic.

(b) If h is superharmonic, then h∗(x) =

g(x − y)h(y)dy is also superhar- monic, where g(·) is a density.

Solution: Let y = x + t then h∗(x) =

g(−t)h(x + t)dt. We know h(x)

is superharmonic, then ∂

(^2) h(x) ∂x^2 i^ ≤^ 0.^ Also,^ g(·) is a density, then^ g(−t)^ ≥^ 0.

So ∂

(^2) h∗(x) ∂x^2 i^ =^

g(−t)∂

(^2) h(x+t) ∂x^2 i^ dt^ ≤^ 0.^ Then^

∑p i=

∂^2 h∗(x) ∂x^2 i^ ≤^ 0.^ That means h∗(x) =

g(x − y)h(y)dy is also superharmonic.

(c) If hγ is superharmonic, then so is h∗(x) =

hγ (y)dG(γ), where G(γ) is a distribution function.

Solution: ∑p

i=

∂^2

∂x^2 i

h∗(x) =

∑^ p

i=

∂^2

∂x^2 i

hγ (x)dG(γ)

∫ (^) ∑p

i=

∂^2

∂x^2 i

hγ (x)dG(γ)

≤ 0

So h∗(x) =

hγ (y)dG(γ) is superharmonic.

1.8.17: Variance stabilizing transformations are transformations for which the resulting statistics has an asymptotic variance that is independent of the parameters of interest. For each of the following case, find the asymptotic dis- tribution of the transformed statistics and show that it is variance stabilizing.

(a) Tn = (^) n^1

∑n i=1 Xi,^ Xi^ ∼^ P oisson(λ),^ h(Tn) =^

Tn.

Solution: By CLT,

√ n(Tn^ −^ λ)^ −→^ N^ (0, λ).^ Then by Theorem 1.8.12, n[h(Tn) − h(λ)] −→ N (0, λ(h

′ (λ))^2 ), where h

′ (λ) = 2 √^1 λ. So

n[h(Tn) −

h(λ)] −→ N (0, λ (^41) λ ) = N (0, 1 /4) and 1/4 does not depend on λ so the trans- formation is variance stabilizing.

(b) Tn = (^1) n

∑n i=1 Xi,^ Xi^ ∼^ Bernoulli(p),^ h(Tn) = arcsin^

Tn.

Solution: By CLT,

n(Tn − p) −→ N (0, p(1 − p)). Then by Theorem 1.8.12,

n[h(Tn) − h(p)] −→ N (0, p(1 − p)(h ′ (p))^2 ), where h ′ (p) = 1 2

p(1−p)

So

n[h(Tn) − h(p)] −→ N (0, p(1 − p) (^4) p(1^1 −p) ) = N (0, 1 /4) and 1/4 does not depend on λ so the transformation is variance stabilizing.

2.1.10:Let Xp× 1 satisfy E(X) = Bψ and V ar(X) = I, where Bp×r is known and ψr× 1 is unknown. Let D = {δ(X) : δ(X) = a′X, for some vector a}.

(a) For a known vector c, show that the estimators in D that are unbiased estimators of c′ψ satisfy a′B = c′.

Solution: Let cr× 1 be a known vector. Consider any unbiased estimator δ(X) = a′X of c′ψ that belongs to D. Since δ(X) = a′X is an unbiased estimator of c′ψ, then Ea′X = c′ψ for all ψ. Note that

c′ψ = Ea′X = a′EX = a′Bψ for all ψ ⇒ (a′B − c′)ψ = 0 for all ψ ⇒ a′B − c′^ = 0 ⇒ a′B = c′

Thus the estimators in D that are unbiased estimators of c′ψ satisfy a′B = c′.

(b) Let Dc = {δ(X) : δ(X) = a′X, a′B = c′} be the class of linear unbiased estimators of c′ψ. Show that the BLUE of c′ψ, the linear unbiased estimator with minimum variance, is δ∗(X) = a∗′X where a∗′^ = a′B(B′B)−^1 B′^ and a∗′B = c′^ with variance V ar(δ∗) = c′(B′B)−^1 c.

Solution: Let δ(X) = a′X any estimator in Dc. Since a ∈ Rp, there exists vectors a 1 , a 2 such that a = a 1 + a 2 with a 1 ∈ C(B) and a 2 ∈ C(B)⊥, moreover ||a||^2 = ||a 1 ||^2 + ||a 2 ||^2 , and a 1 = P a where P = B(B′B)−^1 B′^ is the orthogonal projection onto C(B). Note that

V ar(δ(X)) = V ar(a′a) = a′V arXa = a′Ia = a′a

= ||a||^2 = ||a 1 ||^2 + ||a 2 ||^2 ≥ ||a 1 ||^2 = ||P a||^2 = (P a)′(P a) = (P a)′I(P a) = (P a)′V arX(P a) = V ar((P a)′X).

Thus, V ar((P a)′X) ≤ V ar(δ(X)) for all δ(X) ∈ Dc. Let a∗^ = P a, so δ∗(X) = a∗′X = (P a)′X has minimum variance with the following three

Since V ar(U 0 ) ≥ 0 then V ar(δ∗) ≤ V ar(δ) and since δ was an arbitrary es- timator in Dc, it follows that V ar(δ∗) ≤ V ar(δ) for all δ ∈ Dc, thus δ∗^ ∈ Dc satisfies V ar(δ∗) = minδ∈Dc V ar(δ).

(e) Show that the results here can be directly extended to the case of V ar(X) = Σ where Σp× p is a known matrix, by considering the transformed problem with X∗^ = Σ−^1 /^2 X and B∗^ = Σ−^1 /^2 B.

Solution: Note that B p∗×r is a known matrix and

EX∗^ = E(Σ−^1 /^2 X) = Σ−^1 /^2 EX = Σ−^1 /^2 Bψ = B∗ψ V ar(X∗) = V ar(Σ−^1 /^2 X) = Σ−^1 /^2 V arXΣ−^1 /^2 = Σ−^1 /^2 ΣΣ−^1 /^2 = I

So, now we can proceed exactly as we did in parts (a-d), in other order these results can be extended to the case of V arX = Σ and Σp× p is a known matrix.

2.1.17: If T has the binomial distribution b(p, n) with n > 3, use Method 1 to find UMVU estimator of p^3.

Solution: Let δ(T ) be the UMVU estimator of p^3. Epδ(T ) =

∑n t=

(n t

pt(1− p)n−tδ(t) = p^3. Let ρ = (^1) −pp then p = (^) 1+ρρ , p = (^) 1+^1 ρ.

So we have:

∑n t=

(n t

( (^) 1+ρρ )t( (^) 1+^1 ρ )n−tδ(t) = ( (^) 1+ρρ )^3 =⇒

∑n t=

(n t

ρtδ(t) =

ρ^3 (1+ρ)n−^3 =⇒

∑n t=

(n x

ρtδ(t) =

∑n− 3 y=

(n− 3 y

ρy+3^ =

∑n t=

(n− 3 t− 3

ρt. It is clear

that both sides of equation are polynomial of ρ. So we need

(n t

δ(t) =

(n− 3 t− 3

for t = 3, · · · , n. That means (^) t!(nn−!t)! δ(t) = (^) (t−(3)!(n−3)!n−t)!. So δ(t) = (^) nt((nt−−1)(1)(tn−−2)2)

for t = 3, · · · , n and δ(t) = 0 for t = 0, 1 , 2.