Study Vault Search notes, aliases and full text
Graph
ConceptProbability and Statistics used inMSIAI-written · not yet proofread

Variance

Also Standard Deviation · Varianz · Standardabweichung · Streuung

The variance σ²_X = E{(X − μ_X)²} measures how much a random variable varies around its mean; its square root σ_X is the standard deviation.

Know these firstExpected Value

Formula#

σX2=E{X2}−(E{X})2=E{X2}−μX2,i.e. E{X2}=σX2+μX2.\sigma_X^2 = \mathbb{E}\{X^2\} - (\mathbb{E}\{X\})^2 = \mathbb{E}\{X^2\} - \mu_X^2, \qquad \text{i.e. } \mathbb{E}\{X^2\} = \sigma_X^2 + \mu_X^2.
Proof

Expand the square and use linearity, with E{X}\mathbb{E}\{X\} a constant:

σX2=E{(X−E{X})2}=E{X2−2XE{X}+(E{X})2}=E{X2}−2E{X}E{X}+(E{X})2=E{X2}−(E{X})2.\begin{aligned} \sigma_X^2 &= \mathbb{E}\{(X - \mathbb{E}\{X\})^2\} = \mathbb{E}\{X^2 - 2X\mathbb{E}\{X\} + (\mathbb{E}\{X\})^2\} \\ &= \mathbb{E}\{X^2\} - 2\mathbb{E}\{X\}\mathbb{E}\{X\} + (\mathbb{E}\{X\})^2 = \mathbb{E}\{X^2\} - (\mathbb{E}\{X\})^2. \end{aligned}

Properties#

  • σX2≥0\sigma_X^2 \ge 0, with σX2=0\sigma_X^2 = 0 iff XX takes the value μX\mu_X with probability one.
  • Affine maps: Var⁡(a+bX)=b2σX2\operatorname{Var}(a + bX) = b^2\sigma_X^2. Shifting does not change the spread; scaling by bb scales σX\sigma_X by ∣b∣|b|.
  • Units: σX\sigma_X has the unit of XX, σX2\sigma_X^2 its square.
  • Generalizations: the variance is the Covariance of a variable with itself, σ(X,X)=σX2\sigma(X, X) = \sigma_X^2, and the diagonal of the Covariance Matrix.
  • Estimation from data: the Sample Variance S2S^2 estimates σ2\sigma^2 without bias. The variance of the Sample Mean of NN independent measurements is σ2/N\sigma^2/N.
  • Noise of a measurement: in MSI, the noise on the current and the voltage has variances σi2\sigma_i^2 and σu2\sigma_u^2, and 1N∑kni,k2→σi2\frac1N\sum_k n_{i,k}^2 \to \sigma_i^2 (Law of Large Numbers).

Example#

Sources#

  • MSI script pp. 14–15 (§2.2.1, definition and variance example), MSI Slides 02 > 2.2.1 Mean and Variance (not published)

Search

Type In
↑ ↓ move ↵ open ⇥ next section Ctrl↵ results page Prefix # to search text only