Joshua B. answered 04/15/22
UC Berkeley Statistics Major Specializing in Mathematics
Hello!
First and foremost, the equation for variance is: Var(X) = E[ X2 ] - E[ X ]2
Our first step is to solve for E[ X2 ] which we can do by expanding E[ (X-2)2 ] which is E[ X3 - 6X2 + 12X - 8 ]
Using the rule of expectations, namely that: E[ X + Y ] = E[X] + E[Y] and E[ cX ] = cE[X] we attain
E[ X3 - 6X2 + 12X - 8 ] = E[ X3 ] -6 E[X2] + 12E[X] - 8
Furthermore, we know this is equal to 0.
E[ X3 ] - 6E[X2] + 12E[X] - 8 = 0.
We are given that E[X] = 2, and E[X3] = 9. What we can do is plug these values and use algebra to solve for E[X2]
9 - 6E[X2] + 24 - 8 = 0 ⇒ -6E[ X2 ] = -25 ⇒ E[ X2 ] = 25/6.
Now we can apply our formula for variance since we've solved for E[ X2 ].
Var(X) = E[ X2 ] - E[ X ]2 = 25/6 - 22 = 25/6 - 4
Further simplification yields that this is equal to 1/6.
Hope this helps!