- #1
blah900
- 4
- 0
Homework Statement
Z is a random variable.
P(X=a) = p1
P(X=b) = p2
P(X=c) = p3
P(X=d) = p4
Find the variance.
Homework Equations
Var(X) = E(X2) - E(X)2
The Attempt at a Solution
Okay so for the E(X2), I am currently very confused.
My professor gave us this formula where
[tex]E(X^2) = \sum^{n}_{i=1}E(X_i^2) + \sum^{n}_{i{\neq}j}E(X_iX_j) [/tex]
The way I know it would just be the first portion and thus would become:
[tex]a^2p_1+b^2p_2+c^2p_3+d^2p_4[/tex]
However, doing it the professors way would become
[tex]a^2p_1+b^2p_2+c^2p_3+d^2p_4 + ab(2p_1p_2) + ac(2p_1p_3) + ad(2p_1p_4) + bc(2p_2p_3) + bd(2p_2p_4) + cd(2p_3p_4)[/tex]
Which one is right? And when do I know when to use which case?
Last edited: