Docsity

Midterm 2 Solution - Probability and Statistics | PSTAT 120B, Exams of Probability and Statistics

Toggle sidebar
bg1
Midterm 2 Solution - Pstat 120B Spring 2013
Question 1(40 points)
Let Y1, Y2, ..., Ynbe a random sample from a Gamma distribution with parameters α > 0, β > 0, where α
is a known parameter. This means that the PDF fYi(y)of Yiis given by:
fYi(yi) =
1
Γ(α)βαyα−1
ie−yi/β0< yi
0otw.
a) Write the log-likelihood function l(β|y1, ..., yn, α)for βgiven the data and αfor this sample.
b) Find the ’Maximum Likelihood Estimator’ for βdenoted ˆ
βMLE and investigate if this estimator is
unbiased.
c) Find the variance of ˆ
βMLE denoted Varˆ
βMLE .
d) Show that the Cramer-Rao lower bound for unbiased estimation of βdenoted CRLB(β)is given by.
CRLB (β) = β2
nα
e) If possible at this point, decide if ˆ
βMLE is the M V UE (Minimum Variance Unbiased Estimator).
Please provide short but precise justification for your claim.
f) Based on β,ˆ
βMLE and CRLB(β), construct a random variable which tends to a standard normal
random variable Z. That is a random variable such that Z∼N(0,1).
Question 1(40 points) - Solution
a) The log-likelihood function l(β|y1, ..., yn, α)is given by.
l(β|y1, ..., yn, α) = −nlog(Γ(α)) −nα log(β) + (α−1)
n
X
i=1
log(Yi)−1
β
n
X
i=1
(Yi)
b) The log-likelihood function is a nice differentiable function defined for all β > 0, so we maximize it
using standard methods of calculus.
∂l(β)
∂β =−nα
β+1
β2
n
X
i=1
(Yi) = 0 ⇒ˆ
βMLE =¯
Y
α
To see if this estimator is unbiased for βwe compute its expectation.
Eˆ
βMLE =Eh¯
Y
αi=β
ˆ
βMLE is thus unbiased.
c) The variance of ˆ
βMLE is given by.
Varˆ
βMLE = Var¯
Y
α=Var(Y1)
(nα)2=nαβ2
(nα)2=β2
nα
pf3
pf4

Partial preview of the text

Download Midterm 2 Solution - Probability and Statistics | PSTAT 120B and more Exams Probability and Statistics in PDF only on Docsity!

Midterm 2 Solution - Pstat 120B Spring 2013

Question 1(40 points)

Let Y

1

, Y

2

, ..., Y

n

be a random sample from a Gamma distribution with parameters α > 0 , β > 0 , where α

is a known parameter. This means that the PDF f

Y i

(y) of Y

i

is given by:

f Y i

(y i

1

Γ(α)β α

y

α− 1

i

e

−y i /β

0 < y i

0 otw.

a) Write the log-likelihood function l(β|y

1 , ..., y n

, α) for β given the data and α for this sample.

b) Find the ’Maximum Likelihood Estimator’ for β denoted

β M LE

and investigate if this estimator is

unbiased.

c) Find the variance of

β M LE

denoted Var

β M LE

d) Show that the Cramer-Rao lower bound for unbiased estimation of β denoted CRLB(β) is given by.

CRLB(β) =

β

2

nα

e) If possible at this point, decide if

β M LE

is the M V U E (Minimum Variance Unbiased Estimator).

Please provide short but precise justification for your claim.

f) Based on β,

β M LE

and CRLB(β), construct a random variable which tends to a standard normal

random variable Z. That is a random variable such that Z ∼ N (0, 1).

Question 1(40 points) - Solution

a) The log-likelihood function l(β|y

1 , ..., y n

, α) is given by.

l(β|y 1 , ..., y n , α) = −n log(Γ(α)) − nα log(β) + (α − 1)

n ∑

i=

log(Y i

β

n ∑

i=

(Y

i

b) The log-likelihood function is a nice differentiable function defined for all β > 0 , so we maximize it

using standard methods of calculus.

∂l(β)

∂β

nα

β

β

2

n ∑

i=

(Y

i

β M LE

Y

α

To see if this estimator is unbiased for β we compute its expectation.

E

[

β M LE

]

= E

[

Y

α

]

= β

β M LE

is thus unbiased.

c) The variance of

β M LE

is given by.

Var

β M LE

= Var

Y

α

Var(Y 1

(nα)

2

nαβ

2

(nα)

2

β

2

nα

d) To find the Cramer-Rao lower bound use the second derivative of the log-likelikelihood function

and then compute I

n (β) = −E

[

∂

2 l(β)

∂β

2

]

2

l(β)

∂β

2

nα

β

2

β

3

n ∑

i=

Y

i

⇒ −E

[

2

l(β)

∂β

2

]

nα

β

2

⇒ CRLB(β) =

β

2

nα

The variance Var

β M LE

of

β M LE

is equal to the Cramer-Rao lower bound and hence

β M LE

attains

the bound.

e) Since

β M LE

attains the Cramer-Rao lower bound it must be the M V U E because it is unbiased and

no other unbiased estimator for β can have a variance lower than that of the Cramer-Rao lower

bound.

f) We know that MLE’s are asymptotically normal and that their asymptotic variance is given by

the Cramer-Rao lower bound. Thus we have that the following Random variable converges to Z in

distribution.

β − β

1 /I n (β)

β − β

CRLB(β)

¯ Y

α

− β

β

2

/nα

→ Z, Z ∼ N (0, 1)

Question 2(40 points)

Let Y

1

, Y

2

, ..., Y

n

be a random sample from a distribution where the PDF f

Y i

(y) of Y

i

, i = 1, ..., n is given

by

f Y i

(y) =

e

−(y i −θ)

θ ≤ y i

0 otw.

a) Find the CDF F

Y i

(y) of Y

i

and draw a diagram of f

Y i

(y) and F

Y i

(y). Hint: Dont forget that the

range of Y depends on θ

b) Find the likelihood function L(θ|y

1 , ..., y n

) and the ’Maximum Likelihood Estimator’ for θ denoted

θ M LE

c) Find the CDF F

Y (1)

(y) and PDF f

Y (1)

(y) of Y

(1)

d) Compute the bias of

θ M LE

. What will happen to the bias as n ↗ ∞.

e) Find a sufficient statistic for θ. Is there a connection between

θ M LE

and the sufficient statistic?. Is

this in accordance with what you would expect given what we know about MLE’s?. Please Explain.

f) Does the distribution of Y

i

belong to the exponential family of distributions?.

Question 2(40 points) - Solution

a) The CDF of Y

i

can be found directly by integration.

F

Y i

(y) =

y

θ

e

−(x−θ)

dx = 1 − e

−(y−θ)

for θ ≤ y

Question 3(40 points) - Solution

a) The likelihood function L(λ|y

1 , ..., y n

) is given by

L(λ|y 1 , ..., y n

n ∏

i=

e

−λ λ

y i

y i

= e

−nλ

n ∏

i=

y i

− 1

λ

∑ n

i=

y i

b) To find

λ M LE

, we find and maximize l(λ|y

1 , ..., y n

) with respect to λ.

l(λ|y 1 , ..., y n ) = −nλ −

n ∑

i=

ln y i

  • ln λ

n ∑

i=

y i

∂l(λ)

∂λ

= −n +

λ

n ∑

i=

y i

λ M LE

Y

c) By the invariance property of MLE’s, we know that the MLE of any one-to-one function of an MLE

is also an MLE. Since f (λ) = e

−λ

is a one-to-one function we have that

e

−λ M LE = e

−

¯ Y

d) To find

λ M M E

we will need to solve

Y = E

[

Y

i

]

But since we have for Poisson distribution that E[Y ] = λ, we get.

λ M M E

Y

e) From the likelihood function and the factorization, we can immediately see that sufficient statistic

U is given as U =

n

i=

y i

, since we have that.

L(λ|y 1 , ..., y n ) = e

−nλ

n ∏

i=

y i

− 1

λ

∑ n

i=

y i = c(λ)h(y 1 , ..., y n )g(U, λ)

f) By rewriting L(λ|y

1 , ..., y n

) as follows

L(λ|y 1 , ..., y n ) = e

−nλ

n ∏

i=

y i

− 1

exp

λ ln

n ∑

i=

y i

we see that U

n

i=

y i

is also complete sufficient for estimation of λ and since

Y is based on U and

unbiased, we conclude that

Y is the MVUE.

g) To show that

λ =

Y is consistent, we note that

λ =

Y is consistent it suffices to show that

lim

n↗∞

V ar

[

Y

]

But this easily follows since

Var

Y =

λ

n

→ 0 as n ↗ ∞