Skip to content

Mathematics · Ch 8 — Measures of Dispersion

Variance

8.2.1

Variance

The variance of a variable X, denoted Var(X)\text{Var}(X) or σ2\sigma^2, is defined as the arithmetic mean of the squares of the deviations of all the observations from their own arithmetic mean: Var(X)=σ2=1n∑i=1n(xi−xˉ)2\text{Var}(X) = \sigma^2 = \frac{1}{n}\sum_{i=1}^{n}(x_i - \bar{x})^2 Working directly with this definition means computing every deviation (xi−xˉ)(x_i-\bar{x}) and squaring it, which can be tedious. A more convenient computational formula is obtained by expanding the square: Var(X)=1n∑i=1n(xi2−2xixˉ+xˉ2)=1n∑xi2−2xˉ⋅1n∑xi+xˉ2⋅1n∑1\text{Var}(X) = \frac{1}{n}\sum_{i=1}^{n}(x_i^2 - 2x_i\bar{x} + \bar{x}^2) = \frac{1}{n}\sum x_i^2 - 2\bar{x}\cdot\frac{1}{n}\sum x_i + \bar{x}^2\cdot\frac{1}{n}\sum 1 Since 1n∑xi=xˉ\frac{1}{n}\sum x_i = \bar{x} and 1n∑1=1\frac{1}{n}\sum 1 = 1 (there are n terms, each equal to 1, divided by n), this becomes Var(X)=1n∑xi2−2xˉ2+xˉ2=1n∑xi2−xˉ2\text{Var}(X) = \frac{1}{n}\sum x_i^2 - 2\bar{x}^2 + \bar{x}^2 = \frac{1}{n}\sum x_i^2 - \bar{x}^2 So the two formulas σ2=1n∑(xi−xˉ)2\sigma^2 = \frac{1}{n}\sum(x_i-\bar{x})^2 and σ2=1n∑xi2−xˉ2\sigma^2 = \frac{1}{n}\sum x_i^2 - \bar{x}^2 are math …