Hello,
I know that the formula of variance in probability theory is Var(X) = E(X2) - E2(X)
I was just wondering why is it like that, and i was wondering if i could use the steps of calculation of variance in statistics in probability theory as well. I checked and it seems to work, but I want to know if the analogy is correct.
So my thread of thoughts was this:
1. step mean
STAT: calculate the mean: x̄
PROB: calculate the expected value of X: E(X)
2. step deviances
STAT: deduct the mean from every value: xi - x̄
PROB: X - E(X)
3. squared deviances
STAT: (xi - x̄)2
PROB: (X - E(X))2
4. calculate the mean of the squared deviances
STAT: Summa ((xi - x̄)2) / N where N is sample size (Bessel correction is not important for me right now)
PROB: E( (X - E(X))2 )
5. sort equalation
STAT: done
PROB E( (X - E(X))2 ) = E( X2 - 2*X*E(X) + E2(X) )=
E( X2 ) - E( 2*X*E(X) ) + E( E2(X) )=
E( X2 ) - 2 E2(X) + E2(X) =
E(X2) - E2(X)
Done
So my question is: is the analogy correct, and i can take steps of statistics in prob. theory, or if a mathematitian saw my calculation/analogy, would they roll their eyes and frown at me?
Thank you very much for answering my question!
I know that the formula of variance in probability theory is Var(X) = E(X2) - E2(X)
I was just wondering why is it like that, and i was wondering if i could use the steps of calculation of variance in statistics in probability theory as well. I checked and it seems to work, but I want to know if the analogy is correct.
So my thread of thoughts was this:
1. step mean
STAT: calculate the mean: x̄
PROB: calculate the expected value of X: E(X)
2. step deviances
STAT: deduct the mean from every value: xi - x̄
PROB: X - E(X)
3. squared deviances
STAT: (xi - x̄)2
PROB: (X - E(X))2
4. calculate the mean of the squared deviances
STAT: Summa ((xi - x̄)2) / N where N is sample size (Bessel correction is not important for me right now)
PROB: E( (X - E(X))2 )
5. sort equalation
STAT: done
PROB E( (X - E(X))2 ) = E( X2 - 2*X*E(X) + E2(X) )=
E( X2 ) - E( 2*X*E(X) ) + E( E2(X) )=
E( X2 ) - 2 E2(X) + E2(X) =
E(X2) - E2(X)
Done
So my question is: is the analogy correct, and i can take steps of statistics in prob. theory, or if a mathematitian saw my calculation/analogy, would they roll their eyes and frown at me?
Thank you very much for answering my question!