language-icon Old Web
English
Sign In

Algebraic formula for the variance

In probability theory and statistics, there are several algebraic formulae for the variance available for deriving the variance of a random variable. The usefulness of these depends on what is already known about the random variable; for example a random variable may be defined in terms of its probability density function or by construction from other random variables. The context here is that of deriving algebraic expressions for the theoretical variance of a random variable, in contrast to questions of estimating the variance of a population from sample data for which there are special considerations in implementing computational algorithms. In probability theory and statistics, there are several algebraic formulae for the variance available for deriving the variance of a random variable. The usefulness of these depends on what is already known about the random variable; for example a random variable may be defined in terms of its probability density function or by construction from other random variables. The context here is that of deriving algebraic expressions for the theoretical variance of a random variable, in contrast to questions of estimating the variance of a population from sample data for which there are special considerations in implementing computational algorithms. If the raw moments E(X) and E(X 2) of a random variable X are known (where E(X) is the expected value of X), then Var(X) is given by The result is called the König–Huygens formula in French-language literature and known as Steiner translation theorem in Germany. There is a corresponding formula for use in estimation of the variance from sample data, that can be of use in hand calculations. This is a closely related identity that is structured to create an unbiased estimate of the population variance However, use of these formulas can be unwise in practice when using floating point arithmetic with limited precision: subtracting two values having a similar magnitude can lead to catastrophic cancellation, and thus causing a loss of significance when E ⁡ ( X ) 2 ≫ Var ⁡ ( X ) {displaystyle operatorname {E} (X)^{2}gg operatorname {Var} (X)} .There several other numerically stable algorithms for calculating variance for use with floating point numbers. The computational formula for the population variance follows in a straightforward manner from the linearity of expected values and the definition of variance: This formula can be generalized for covariance, with two random variables Xi and Xj: as well as for the n by n covariance matrix of a random vector of length n: and for the n by m cross-covariance matrix between two random vectors of length n and m:

[ "Random function", "Random element", "Multivariate random variable", "Random variate", "One-way analysis of variance", "Direct material price variance", "Law of total variance", "Direct material usage variance" ]
Parent Topic
Child Topic
    No Parent Topic