Computational formula for the variance
From Wikipedia, the free encyclopedia
In probability theory, the computational formula for the variance Var(X) of a random variable X is the formula
where E(X) is the expected value of X. Its applications in systolic geometry include Loewner's torus inequality.
This formula can be generalized for covariance:
as well as for the n by n covariance matrix of a random vector of length n:
and for the the n by m "cross-covariance" matrix between two random vectors of length n and m:
where expectations are taken elementwise and
and
are random vectors of respective lengths n and m (not necessarily equal).
[edit] Proof
The computational formula for the variance follows in a straightforward manner from the linearity of expected values and the definition:
This is often used to calculate the variance in practice.




![{}\operatorname{Var}(X)= (1/N)\sum\left\{\left[X_i - \operatorname{E}(X)\right]^2\right\}](../../../../math/9/7/f/97f53cb8ede8c1ab09512be03d706e83.png)





