Summary Statistics and Independence
Probability and Distributions
Distributions are high-dimensional objects, but we often compress them into a few summary statistics. The expected value (mean) mathbb{E}[X] = sum_x x\, p(x) (or int x\, p(x)\, dx) gives the long-run average. Expectation is linear: mathbb{E}[aX + bY + c] = amathbb{E}[X] + bmathbb{E}[Y] + c — no inde
Mean, variance, covariance, and correlation summarize distributions.
No mean/variance/covariance → no preprocessing, no batchnorm, no Mahalanobis distance, no Gaussian model.
Distributions are high-dimensional objects, but we often compress them into a few summary statistics. The expected value (mean) (or ) gives the long-run average. Expectation is linear: — no independence required. This linearity is the single most-used identity in probabilistic ML.
The variance measures spread around the mean. Its square root is the standard deviation, measured in the same units as . Variance is not linear but satisfies — constants shift the mean but not the spread.
For two random variables, the covariance measures linear co-variation. Positive means they tend to move together; negative means oppositely; zero means no linear relationship. The normalized version is the correlation .
For multiple random variables bundled as a vector , the covariance matrix has entries . Diagonal entries are variances; off-diagonals are covariances. Covariance matrices are always symmetric positive semi-definite — a fact exploited heavily by PCA, Gaussian processes, and variational methods.
Independence implies zero covariance, but not conversely: zero correlation does not imply independence. Two variables can be perfectly dependent with zero correlation (e.g., with ). This is a constant source of bugs: if your model assumes independence based on zero correlation, you may miss crucial nonlinear relationships. In ML, we usually check with mutual information or other nonlinear measures when independence is a critical assumption.
Exercises
Put your understanding to the test. Score + streak + speed all count.
Confirm you've got it
3 quick questions. Get 2 right to mark this lesson complete.