Professional Documents
Culture Documents
Z ∞ Z 1 1
fX (x) dx = 3x2 dx = x3 =1
−∞ 0 0
1
• If x < 0, then fX (t) = 0 for all t ≤ x.
Z x Z x
FX (x) = fX (t) dt = 0 dt = 0
−∞ −∞
In a nutshell, FX is given by :
0 if x < 0
FX (x) = x3 if 0 ≤ x ≤ 1
1 if x > 1
Z ∞
E[X] = xfX (x) dx
−∞
Z 1
= 3x3 dx
0
1
3 4
= x
4 0
3
=
4
2
Answer. We can use the shortcut formula : Var(X) = E[X 2 ] − (E[X])2 .
Since the expectation was previously computed, we only need to calculate
E[X 2 ] :
Z ∞
E[X 2 ] = x2 fX (x) dx
−∞
Z1
= 3x4 dx
0
1
3
= x5
5 0
3
=
5
Therefore, we obtain :
2
3 3 3
Var(X) = − =
5 4 80
3
2 fX (x)
x
−2 −1 1 2
−1
Z ∞ Z −1 Z 0 Z 1 Z ∞
fX (x) dx = fX (x) dx + fX (x) dx + fX (x) dx + fX (x) dx
−∞ −∞ −1 0 1
Z 0 Z 1
=0+ (x + 1) dx + (1 − x) dx + 0
−1 0
0 1
x2 x2
= +x + x−
2 −1 2 0
1 1
= 0− −1 + 1− −0
2 2
=1
4
• If −1 ≤ x ≤ 0, then fX (t) = t + 1 for all −1 ≤ t ≤ x.
Z x
FX (x) = FX (−1) + fX (t) dt
−1
Z x
=0+ (t + 1) dt
−1
2 x
t
= +t
2 −1
x2
1
= +x− −1
2 2
x2 1
= +x+
2 2
1
= (x + 1)2
2
In a nutshell, FX is given by :
01
if x < −1
2
2 (x2 + 1) if −1≤x≤0
FX (x) =
− x2 + x + 1
2 if 0<x≤1
1 if x>1
5
(d) Graph the cumulative distribution function FX of X.
Answer.
2 FX (x)
x
−2 −1 1 2
−1