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

Moments of Random Variables

Also Mean and Variance · Mean and Covariance · Momente

Expected value, variance, covariance, correlation and covariance matrix as summaries of random variables and vectors, how they transform under linear maps, and how independence simplifies them.

Concepts#

  1. Expected Valuethe linear operator E{⋅}\mathbb{E}\{\cdot\} behind all moments start here
  2. Variancethe spread of one variable
  3. Covariancethe joint spread of two variables
  4. Correlationcovariance normalized to [−1,1][-1, 1]
  5. Covariance Matrixall variances and covariances of a random vector
  6. Multivariate Normal Distributionthe distribution that is fully described by mean and covariance matrix

How it fits together#

One operator, three levels. All moments are expectations of products of centred variables:

LevelSecond momentShortcut formula
one variableσX2=E{(X−μX)2}\sigma_X^2 = \mathbb{E}\{(X - \mu_X)^2\}E{X2}−μX2\mathbb{E}\{X^2\} - \mu_X^2
two variablesσ(Y,Z)=E{(Y−μY)(Z−μZ)}\sigma(Y, Z) = \mathbb{E}\{(Y - \mu_Y)(Z - \mu_Z)\}E{YZ}−μYμZ\mathbb{E}\{YZ\} - \mu_Y\mu_Z
random vectorΣX=E{(X−μX)(X−μX)⊤}\Sigma_X = \mathbb{E}\{(X - \mu_X)(X - \mu_X)^\top\}E{XX⊤}−μXμX⊤\mathbb{E}\{XX^\top\} - \mu_X\mu_X^\top

Each row contains the one above it: σ(X,X)=σX2\sigma(X, X) = \sigma_X^2, and ΣX\Sigma_X has the variances on its diagonal and the covariances off it. All three shortcut formulas come from the same step: expand the product and pull the constant means out of E\mathbb{E} by linearity.

Linear maps transform the moments predictably, nonlinear maps don’t.

  • E{a+bX}=a+bμX\mathbb{E}\{a + bX\} = a + b\mu_X, Var⁡(a+bX)=b2σX2\operatorname{Var}(a + bX) = b^2\sigma_X^2, and in vector form E{QX}=QμX\mathbb{E}\{QX\} = Q\mu_X, cov⁡(QX)=QΣXQ⊤\operatorname{cov}(QX) = Q\Sigma_X Q^\top.
  • For nonlinear ff, E{f(X)}≠f(E{X})\mathbb{E}\{f(X)\} \ne f(\mathbb{E}\{X\}). The gap is the variance: E{X2}=μX2+σX2\mathbb{E}\{X^2\} = \mu_X^2 + \sigma_X^2. This one identity explains why the least squares and simple approach estimators in MSI are biased (a σi2\sigma_i^2 appears where the noise enters squared), see Resistance Estimation Example.

Independence ⇒ uncorrelated ⇒ products factorize. Independent variables have E{YZ}=μYμZ\mathbb{E}\{YZ\} = \mu_Y\mu_Z, hence zero covariance and correlation. This is the workhorse in computations with many measurements: in E{(∑kyk)2}\mathbb{E}\{(\sum_k y_k)^2\}, the NN squares contribute σ2+μ2\sigma^2 + \mu^2 each and the N(N−1)N(N-1) cross terms only μ2\mu^2, which gives the σ2/N\sigma^2/N variance of the Sample Mean. The converse fails: zero correlation only rules out linear dependence (except for jointly Gaussian variables).

Units and normalization. The covariance carries the product of the units, so its size is not comparable across pairs of variables. The Correlation divides by both standard deviations and lands in [−1,1][-1, 1], with ±1\pm 1 for exact linear relations.

Why matrices. For a parameter vector θ∈Rd\theta \in \mathbb{R}^d the uncertainty of an estimate is not one number: errors in different components can be correlated. The covariance matrix is symmetric positive semidefinite, and “smaller uncertainty” becomes the matrix inequality cov⁡(θ^A)≽cov⁡(θ^B)\operatorname{cov}(\hat\theta^A) \succcurlyeq \operatorname{cov}(\hat\theta^B) (Point Estimation).

Key Formulas#

  • σX2=E{X2}−μX2\sigma_X^2 = \mathbb{E}\{X^2\} - \mu_X^2 (Variance)
  • ρ(Y,Z)=σ(Y,Z)σYσZ∈[−1,1]\rho(Y, Z) = \frac{\sigma(Y, Z)}{\sigma_Y\sigma_Z} \in [-1, 1] (Correlation)
  • cov⁡(QX)=QΣXQ⊤\operatorname{cov}(QX) = Q\Sigma_X Q^\top (Covariance Matrix)

Lectures#

  • No write-up yet. MSI covers this material in script §2.2.1, §2.2.4 and §2.3 (MSI Slides 02 (not published)), planned for the lectures of 2026-10-21 and 2026-10-28.

Search

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