Probability and statistics

Var⁡[X]\operatorname{Var}[X] Variance

How spread out a random quantity is: the expected squared distance from its mean, σ².

In ML papers

Var⁡[X]=E[(X−μ)2]\operatorname{Var}[X] = \mathbb{E}\left[(X - \mu)^2\right] is the variance: the average squared distance from the mean. Its square root is the standard deviation σ\sigma. Initialization schemes (Xavier, He) choose weight variances so activations neither blow up nor vanish, and the dk\sqrt{d_k} in attention keeps a dot product's variance near 1.

How to type it

LaTeXShows
\operatorname{Var}[X]Var⁡[X]\operatorname{Var}[X]
\mathrm{Var}(X)Var(X)\mathrm{Var}(X)

A worked example

X∈{1,3}: μ=2, Var⁡[X]=(1−2)2+(3−2)22=1X \in \{1, 3\}: \ \mu = 2,\ \operatorname{Var}[X] = \tfrac{(1-2)^2 + (3-2)^2}{2} = 1

The standard deviation is also 11.

Equations that use it

Related

σ(z)\sigma(z)Sigma (lowercase)Cov⁡(X,Y)\operatorname{Cov}(X, Y)CovarianceEx∼p[f(x)]\mathbb{E}_{x \sim p}[f(x)]Expectationμ\muMu

Decode this example →