
Originally Posted by
The_Czar52
Sure,
The original CDF is .5(x^2-2x+2). I rewrote it as...
.5(x^2-2x+1+1) = .5(x^2-2x+1) + .5(1). This is of the form
c1(F_x1(x) + c2(F_x2(x) where c1,c2 are the weights and F_x1(x) and F_x2(x) are the continuous and discrete components of the CDF.
Now F_x1(x) = x^2-2x+1, 1<=x<2,
= 0, x<1
F_x2(x) = 1, x = 1,
= 0, x<1
Differentiating the continous CDF gives us the continuous PDF, f_x1(x)
f_x1(x) = 2x-2, 1<=x<2
And the discrete component equals 1 at x=1 and 0 elsewhere.
f_x2(x) = 1, x=1
Var(X) = E(X^2) - [E(X)]^2
To find the variance now we simply take the weighted average of E(X^2) and the weighted E(X)
E(X^2) = .5E(X_1^2) + .5E(X_2^2) = .5(17/6) + .5(1) = 23/12
E(X) = .5E(X_1) +.5E(X_2) =.5(5/3) + .5(1) = 4/3
Var(X) = 23/12 - (4/3)2 = 5/36 ~ .139
Hope this helps!
Bookmarks - Share