Statistics Assignment Sample Solutions
Statistics Assignment Sample Solutions
Go To Answer Directly
info@statisticsassignmenthelper.com
Problem 1
Suppose that X, Y , and " are random variables with Y = + X + ".
Assume E (X) = 0, V ar (X) = 2 , " has a uniform distribution over 21 ; 21 ,
and Cov (X; ) = 0.
a. What is the distribution (pdf) of Y jX?
c. What is E (Y )? What is V ar (Y )?
Problem 2
a. Assume that X is distributed uniformly over the interval [0; 4].
Calculate the moment generating function of X. Use the MGF to …nd the
mean and variance of X.
c. Now Use
use the fact that X is distributed uniformly over the interval
[0; 4] to calculate the probability that X is outside the interval [0:5; 3:5]. Is
it higher or lower than the answer you got in part b?
Problem 3
Let X be distributed uniformly on the interval [0; 1].
a. Let Y = X 2 . Use the 1-step and 2-step methods to …nd the pdf of
Y.
https://www.statisticsassignmenthelper.com/
2 14.30 PROBLEM SET 4
Problem 4
Let X have the following distribution.
1 2 x
f (x) =
3 3
x 2 f0; 1; 2; :::g
X
Find the pdf of Y = X+1 .
Problem 5
Let X have the pdf f (x) = 12 (x + 1) for 1 x 1.
a. Let Y = X 2 . Use the 1-step and 2-step methods to …nd the pdf of
Y.
c. What is E (Y )? What is V ar (Y )?
1
d. What is E Y jX 2 ?
14.30 PROBLEM SET 4 - SUGGESTED ANSWERS
Problem 1
a. The distribution of Y jX is the distribution of + X + ", where
" is the only random variable and + X is …xed, call it C. Then, the
distribution of C + e is that of e , shifted by the value C; or U [C 21 ; C + 12 ]:
Thus Y jX U + X 21 ; + X + 21 :
V ar[Y ] = V ar[ + X + e]
2
= V ar[X] + V ar[e] + 2 Cov(X; e)
2 2 [0 + 0:5 (0 0:5)]2
= + +2 0
12
2 2 1
= +
12
or
V ar[Y ] = E(V ar(Y jX)) + V ar(E(Y jX))
1
= E( ) + V ar( + X)
12
1
= + 2 V ar[X]
12
1
= + 2 2
12
Problem 2
a. The moment generating function is de…ned as
MX (t) = E etX
Since X is distributed uniformly over [0; 4], we have
MX (t) = E etX
Z 4
1 tx
= e dx
0 4
1 4t
= e 1
4t
To …nd the mean, we need to take the …rst derivative of the MGF and
evaluate it at t = 0, using l’Hopital’s rule in the fourth line.
@ @ 1 4t
MX (t) j = e 1 j
@t t=0 @t 4t t=0
e4t e4t 1
= j
t 4t2 t=0
4te4t e4t + 1
= j
4t2 t=0
16te4t + 4e4t 4e4t
= j
8t t=0
= 2 = E (X)
Then, to …nd the variance, we will take the second derivative of the MGF
at t = 0,and
(again
thenmaking usesquare
subtract the of l’Hopital’s rule), and then subtract the square
14.30 PROBLEM SET 4 - SUGGESTED ANSWERS 3
R 0:5 1
R4 1 1 16
c. Pr (X 2
= (0:5; 3:5)) = 0 4 dx + 3:5 4 dx = 4 < 27 so we get a lower
Problem 3
a. As instructed, we will …nd the pdf of Y using both the 1-step and
2-step methods. Note that Y will take on values in [0; 1]. We begin with
the 2-step method by calculating the CDF:
FY (y) = Pr (Y y) = Pr X 2 y
p p
= Pr ( y X y)
p
= Pr (0 X y)
p p
= FX ( y) = y
1 1
fY (y) = y 2 for y 2 [0; 1]
2
= 0 elsewhere
4 14.30 PROBLEM SET 4 - SUGGESTED ANSWERS
@r 1 (y)
1
fY (y) = fX r (y) for y 2 [0; 1]
@y
p 1 1
fY (y) = fX ( y) y 2 for y 2 [0; 1]
2
1 1
= y 2 for y 2 [0; 1]
2
= 0 elsewhere
@r 1 (z)
1
fZ (z) = fX r (z) for z 2 [0; 1)
@z
z
z e
= fX e for z 2 [0; 1)
z
e
= for z 2 [0; 1)
= 0 elsewhere
Problem 4
X
Because Y = X+1 is a one-to-one transformation, we know that there will
be only one x value that corresponds to each valid y value.
X
fY (y) = Pr (Y = y) = Pr =y
X +1
y y
= Pr X = = fX
1 y 1 y
y
1 2 1 y
=
3 3
14.30 PROBLEM SET 4 - SUGGESTED ANSWERS 5
0
= 0
0+1
1 1
=
1+1 2
2 2
=
2+1 3
3 3
=
3+1 4
Problem 5
a. We will use the 1-step method, and so we must …rst divide the range
of X into segments for which the transformation function is monotone,
( 1; 0) and (0; 1) (we can ignore the endpoints of these intervals because
the probability that X equals a particular point is zero). We will use the
1-step method on each segment and then sum our results.
For the segment ( 1; 0), our transformation function is r (x) = x2 , and
p
the inverse function is r 1 (y) = y. The range of Y is (0; 1). So we
have
p 1 1
fY (y) = fX ( y) y 2 for y 2 (0; 1)
2
1 p 1
= (1 y) y 2 for y 2 (0; 1)
4
1 1
= y 2 1 for y 2 (0; 1)
4
= 0 elsewhere
Then, for the segment (0; 1), our transformation function is r (x) = x2 ,
p
and the inverse function is r 1 (y) = y. The range of Y is again (0; 1).
So we have
p 1 1
fY (y) = fX ( y) y 2 for y 2 (0; 1)
2
1 p 1
= (1 + y) y 2 for y 2 (0; 1)
4
1 1
= y 2 + 1 for y 2 (0; 1)
4
= 0 elsewhere
6 14.30 PROBLEM SET 4 - SUGGESTED ANSWERS
MY (t) = E etY
Z 1
1 1
= ety y 2 @y
0 2
which does not have a closed form.
1
d. We start by …nding the pdf of Y jX 2 . This will be the similar
to part a., except that our transformation function is monotonic over the
1
relevant range, and we will use the pdf of XjX 2 , which is just the pdf of
X over the relevant range scaled up by one over the probability that X is
in this range:
1
2 (x + 1) 1
fXjX 1 (x) = R1 1
for x 1 (and 0 elsewhere)
2
1 (x + 1) dx 2
2
2
x+1
= 1
x2
2 +x j
x= 21
8
= (x + 1)
7
Thus we can calculate
p 1 1 1
fY jX 1 (y) = fXjX 1 ( y) y 2 for y 2 ; 1 (and 0 elsewhere)
2 2 2 4
4 1
= 1+y 2
7
1
It is then straightforward to calculate E Y jX 2 :
Z 1
1 4y 1
E Y jX = 1 + y 2 dy
2 1 7
4
Z 1
4 1
= y + y 2 dy
7 1
4
4 y2 2 3 1
= + y2 j
7 2 3 y= 41
101
= 0:601
168