Expectation (mean): the average value of a random variable.
- Discrete: E[X]=∑xx⋅p(x)
- Continuous: E[X]=∫x⋅f(x)dx
- Linearity: E[aX+bY]=aE[X]+bE[Y] (always, even if dependent)
Variance: measures spread around the mean.
Var(X)=E[(X−μ)2]=E[X2]−(E[X])2
- Var(aX)=a2Var(X)
- For independent X,Y: Var(X+Y)=Var(X)+Var(Y)
Standard deviation: σ=Var(X) — same units as X.
Covariance: measures linear co-movement.
Cov(X,Y)=E[(X−μX)(Y−μY)]=E[XY]−E[X]E[Y]
- Cov(X,X)=Var(X)
- Independent ⇒ Cov=0 (but not the converse!)
Covariance matrix for vector X: Σij=Cov(Xi,Xj) — always positive semi-definite. This is what Principal Component Analysis (PCA) eigendecomposes.
Correlation: ρ(X,Y)=σXσYCov(X,Y)∈[−1,1] — normalized covariance.
See also: Random Variables, Key Probability Distributions