Docsity

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

Toggle sidebar
bg1
Midterm 1 Solution - Pstat 120B Spring 2013
Question 1(25 points)
Let Y1, Y2, ..., Ynbe a random sample from an exponential distribution with parameter β, β > 0. This
means that the PDF fYi(y)of Yifor all iis given by:
fYi(yi) =
1
βe−yi/β0< yi
0otw.
Define the random variable Sas follows
S:=
n
X
i=1
Yi
a) Find an unbiased estimator ˆ
β1for βbased on S.
b) Show that the estimator ˆ
β1is consistent for β.
c) Find the the CDF FY(1) (y)and the PDF fY(1) (y)of the smallest order statistic Y(1) and give the
distribution of Y(1).
d) Find an unbiased estimator ˆ
β2for βbased on Y(1).
e) Compute the efficiency of ˆ
β1with respect to ˆ
β2and explain which is the better estimator.
f) Find the smallest sample size nin terms of βand asuch that
PY(1) ≤y> a
where 0< y and 0< a < 1.
g) Use the Central Limit Theorem to compute an approximate formula for
ˆq≈PS≤z.
h) Find the distribution of S as well as the PDF fS(s)of S.
i) Write an expression for the exact probability qthat
q=PS≤z.
Hint: The expression will be an integral.
1
pf3
pf4
pf5

Partial preview of the text

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

Midterm 1 Solution - Pstat 120B Spring 2013

Question 1(25 points)

Let Y 1 , Y 2 , ..., Yn be a random sample from an exponential distribution with parameter β, β > 0. This

means that the PDF fYi (y) of Yi for all i is given by:

fYi (yi) =

1 β e

−yi/β (^0) < yi

0 otw.

Define the random variable S as follows

S :=

∑^ n

i=

Yi

a) Find an unbiased estimator βˆ 1 for β based on S.

b) Show that the estimator βˆ 1 is consistent for β.

c) Find the the CDF FY(1) (y) and the PDF fY(1) (y) of the smallest order statistic Y(1) and give the

distribution of Y(1).

d) Find an unbiased estimator βˆ 2 for β based on Y(1).

e) Compute the efficiency of βˆ 1 with respect to βˆ 2 and explain which is the better estimator.

f) Find the smallest sample size n in terms of β and a such that

P

Y(1) ≤ y

> a

where 0 < y and 0 < a < 1.

g) Use the Central Limit Theorem to compute an approximate formula for

q ˆ ≈ P

S ≤ z

h) Find the distribution of S as well as the PDF fS (s) of S.

i) Write an expression for the exact probability q that

q = P

S ≤ z

Hint: The expression will be an integral.

Question 1 - Solution

a) βˆ 1 = Y¯ since

E[ Y¯ ] = E

[ 1

n

∑^ n

i=

Yi

]

= E[Y 1 ] = β

b) Lets compute the variance of βˆ 1 and let n ↗ ∞

Var

[ 1

n

∑^ n

i=

Yi

]

n^2 nVar[Y 1 ] = β^2 n ⇒ (^) nlim↗∞Var

[ ˆ

β 1

]

Since βˆ 1 is unbiased for β and nlim↗∞Var

[ ˆ

β 1

]

= 0 we can conclude that βˆ 1 is consistent.

c) First find the CDF FYi (y) of Yi

FYi (y) =

∫ (^) y

0

β e−x/β^ dx = 1 − e−y/β

and then we see that

FY(1) (y) = 1 − p[Y(1) > y] = 1 − P [Y 1 > y, Y 2 > y, , ..., Yn > y] = 1 −

P [Y 1 > y]

)n = 1 −

[

e−y/β

]n = 1 − e−yn/β^ ⇒

fY(1) (y) =

∂y FY(1) (y) = ny β e−yn/β^ , for 0 < y

We can recognize this as the CDF and PDF of an exponential random variable so Y(1) ∼ exp

(β /n

d) Since Y(1) ∼ exp

(β /n

we have E

[

Y(1)

]

= β/n and our unbiased estimator βˆ 2 becomes.

β^ ˆ 2 = nY(1)

e) To find the efficiency of βˆ 1 with respect to βˆ 2 we need to find Var

[ ˆ

β 2

]

Var

[ ˆ

β 2

]

= n^2 Var

[

Y(1)

]

= β^2

Note that the Var

[ ˆ

β 2

]

is constant as a function of n and hence is not at all a well-behaved estimator.

We thus have

eff( βˆ 1 , βˆ 2 ) =

Var

[ ˆ

β 2

]

Var

[ ˆ

β 1

] = n ≥ 1

Thus, βˆ 1 is by far the preferred estimator.

f) We compute

P

Y(1) ≤ y

= 1 − e−yn/β^ > a ⇒ n > − β y log

1 − a

Thus n is the smallest integer greater than − βy log

1 − a

g) By appealing to the Central Limit Theorem, we immediately have that

S (^) √− nβ nβ

→ Z, Z ∼ N (0, 1) ⇒

q ˆ ≈ P

S ≤ z

= P

( (^) S − nβ √ nβ

z − nβ √ nβ

≈ P

Z ≤

z − nβ √ nβ

= FZ

( (^) z − nβ √ nβ

c)

Var[θˆ 1 ] = Var

[ 2

Y¯ ]^ = 4

9 n

Var[Y 1 ] = θ

2 27 n

d)

FY(n) (y) = p[Y(n) ≤ y] = P [Y 1 ≤ y, Y 2 ≤ y, , ..., Yn ≤ y] =

P [Y 1 ≤ y]

)n

[ (^) y − θ θ

]n ⇒

fY(n) (y) =

∂y FY(n) (y) = n θ

[ (^) y θ

]n− 1

e) Z =

Y(n) θ −^1 ⇒^ Y(n)^ =^ θ(Z^ + 1)^ ⇒^

∂Y(n)

∂Z =^ θ^ and by the method of transformation:

fZ (z) = fY(n) (y(z))

∂Y(n) ∂Z

∣ =^

n θ

zn−^1 θ = nzn−^1 for 0 ≤ z ≤ 1 ⇒ Z ∼ beta(n, 1)

f) E[Z] = nn+1 and hence

E[Z] = E

[ (^) Y(n) θ

]

θ E[Y(n)] − 1 = n n + 1 ⇒ E[Y(n)] = 2 n + 1 n + 1 θ

and hence θˆ 2 = 2 nn+1+1 Y(n) is an unbiased estimator for θ.

g) Var[Z] = (n+1)n 2 (n+2) and hence

Var[Z] = Var

[ (^) Y(n) θ

]

θ^2 Var[Y(n)] ⇒ Var[Y(n)] = θ^2 n (n + 1)^2 (n + 2)

Var[θˆ 2 ] = Var

[ (^) n + 1 2 n + 1 Y(n)

]

[ (^) n + 1 2 n + 1

] (^2) nθ 2 (n + 1)^2 (n + 2)

nθ^2 (2n + 1)^2 (n + 2)

h)

eff(θˆ 1 , θˆ 2 ) =

Var[θˆ 2 ] Var[θˆ 1 ]

27 n^2 (2n + 1)^2 (n + 2)

< 1 for all n > 2

eff(ˆθ 1 , θˆ 2 ) = 1 for n = 1 but for all other sample sizes θˆ 2 has the smallest variance and is thus

preferred. Note that ˆθ 1 = θˆ 2 for n = 1.

Question 3 (25 points)

Let X be a Gamma distributed random variable with parameters αx and β, X ∼ Gamma(αx, β). Let Y

be a Gamma distributed random variable with parameters αy and β, Y ∼ Gamma(αy , β). Assume that

X and Y are independent and define the new random variables R and S as follows:

R =

X

X + Y

, and S = X + Y

a) Find the joint PDF fX,Y (X, Y ) of X and Y.

b) Use the ’Bivariate Transformation Method’ to find the joint PDF fR,S (R, S) of R and S and also find

the domain of R and S.

c) Are R and S independent? Hint: To answer this question it suffices to look only at the joint PDF

fR,S (R, S) of R and S and the domain of R and S.

d) Find the marginal PDF fR(R) of R and the marginal PDF fS (S) of S and identify the distribution

of R and S along with all relevant parameters. Hint: Look at the list of PDF’s in the back of the

book. You will be able to find both fR(R) and fS (S) here.

Question 3 - Solution

a) Since X and Y are independent, their joint PDF fX,Y (x, y) is

fX,Y (X, Y ) =

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

Γ(αy )βαy^ Xαy^ −^1 e−Y^ /β

b) To find the joint PDF fR,S (R, S) we first find the Jacobian.

R = XX+Y

S = X + Y

X = RS

Y = S(1 − R)

⇒ J =

∂X/∂S ∂Y/∂S

∂X/∂R ∂Y/∂R

 R^1 −^ R

S −S

 ⇒ det(J) = S

Then we insert R and S as functions of X and Y in fX,Y (x, y) and multiply by |det(S)| to get

fR,S (R, S) =c(RS)αx−^1

[

S(1 − R)

]αy − 1 e−S/β^ S = cRαx−^1 (1 − R)αy^ −^1 Sαx+αy^ −^1 e−S/β^ = ch(R)g(S), 0 ≤ R ≤ 1 , 0 ≤ S < ∞

c) Yes R and S are independent since their joint PDF factors into a function of S only and a function

of R only and the ranges of R and S are independent.

d) Since R and S are independent, the joint PDF of R and S, fR,S (R, S) is a product of the marginal

PDF’s fR(R) and fS (S) all we have to do to find the marginal distributions is to look at h(R) and

g(S). From here we conclude that R ∼ Beta(αx, αy ) and S ∼ Gamma(αx + αy , β)

Question 4(25 points)

Let Y 1 , Y 2 , ..., Yn be a random sample of size n and assume that Yi ∼ N(μ, 1), i = 1, ..., n where μ is known.

Let X 1 , X 2 , ..., Xn be another random sample also of size n and assume that Xi ∼ N(0, σ^2 ), i = 1, ..., n and

hence that Xi has variance σ^2 where also σ^2 is known. Assume that the two samples are independent.

a) Construct a random variable F which has an F distribution with n − 2 numerator degrees of freedom

and n − 1 denominator degrees of freedom. Hint: There is more than one possible answer but choose

which ever you like.

b) Using only the two variables X 1 and Y 1 , construct a random variable T , a function of X 1 and Y 1 ,

such that T follows a t-distribution. How many degrees of freedom does this t-distribution have?

Hint: There is more than one possible answer but choose which ever you like.

Let Y 1 , Y 2 , ..., Yn be a random sample of size n and assume that Yi ∼ Poisson(λ), i = 1, ..., n where λ is

unknown.

c) Use the MGF method to find the distribution of S =

∑n

i=1 Yi.

d) Find Var[Yi] using the MGF of Yi.

Let Y 1 , Y 2 , ..., Yn be a random sample of size n where each Yi has the following PDF fYi (y).

fYi (y) =

yσ

2 π

exp

− (log^ y^ −^ μ)

2 2 σ^2

, 0 < y

e) Find the distribution of the random variable Xi = log^ Yσi −μ.

f) Give the distribution of S =

∑n i=1 X

i^2.

f) Since Xi ∼ N (0, 1) and the Xi’s are independent S =

∑n i=1 X

2 i ∼^ χ (^2) (n)

g) By direct computation we get that

E

[

Yi

]

= − 2 p + 1 − p − q + 3q = 1 − 3 p + 2q ⇒ E

[ ∑n i=

Yi

]

= n

1 − 3 p + 2q

E

[

Y (^) i^2

]

= 4p + 1 − p − q + 9q = 1 + 3p + 8q ⇒ E

[ ∑n i=

Y (^) i^2

]

= n

1 + 3p + 8q

h) From the expected values above we get the following unbiased estimators

ˆq = 1 10

( ∑n i=1 Yi n

∑n i=1 Y^

2 i n

p ˆ = 1 15

∑n i=1 Yi n

∑n i=1 Y^

2 i n

i) Since Y ∼ Uni(−θ, θ) we have

fY (y) =

2 θ , −θ < y ≤ θ

FY (y) =

2 θ (y + θ), −θ < y ≤ θ

and we can get the CDF FX (x) as follows

FX (x) = P

X ≤ x

= P

− x^1 /^4 ≤ Y ≤ x^1 /^4

2 θ (x^1 /^4 + θ) −

2 θ (−x^1 /^4 + θ) = x^1 /^4 θ , 0 < x ≤ θ^4

j) We have that h(y) = y^2 is monotone for 0 < y and hence

X = Y 2 ⇒ Y =

X, 0 < Y ⇒

∂Y

∂X

X−^1 /^2

fX (x) =

x θ exp

x θ

x−^1 /^2

∣ =^1

θ e−x/θ^ , 0 < x

So in fact X ∼ exp(θ).