VL02 Probability and Statistics in a Nutshell
Script ch. 2.0–2.3.1, the probability toolkit of the course; events, conditional probability and Bayes' theorem, PDFs, mean, variance and covariance, the uniform and normal distributions, and the mean and covariance matrix of random vectors.
2.1Random Variables and Probabilities#

The section introduces a Random Variable as a description of an experiment’s outcomes. has no value itself and only takes values . It then gives the rules for probabilities of events: the sum for mutually exclusive events and the product for independent events. From the Conditional Probability it derives Bayes’ Theorem, which updates the a-priori to the a-posteriori . The antique-store example turns into (Script pp. 13–14).
2.2Scalar Random Variables and Probability Density Functions#

A real random variable is described by its Probability Density Function . Probabilities are integrals of it, . Independence and conditioning carry over from events to joint and conditional PDFs (Script p. 14).
2.2.1Mean and Variance#
The expectation operator defines the mean (Expected Value) and the Variance . The worked example shows (Script pp. 14–15).
2.2.2Simple Example: Uniform Distribution#
For the Uniform Distribution on , integrating the PDF gives the mean and the variance (Script p. 15).
2.2.3The Normal Distribution#
The Normal Distribution is named after its two parameters, which turn out to be exactly its mean and variance (Script p. 15).
2.2.4Covariance and Correlation#
Marginal PDFs come from integrating the joint PDF. The Covariance measures how and vary together, in the product of their units. The Correlation is its unitless version in (Script pp. 15–16).
2.3Multidimensional Random Variables#

Stacking scalar random variables gives a random vector with a joint PDF. Expectations become integrals over (Script p. 16).
2.3.1Mean and Covariance Matrix#
The mean is a vector. The variance generalises to the Covariance Matrix , which holds all variances and covariances. The vector analogue of §2.2.1 is (Script p. 16). §2.3.2 (multidimensional normal distribution) follows in VL03.
Concepts#
- Random Variable: describes outcomes, takes values but has none
- Conditional Probability: , also for PDFs
- Statistical Independence: product rule for events and joint PDFs
- Bayes’ Theorem: a-priori → a-posteriori probability
- Probability Density Function: describes a scalar random variable, integrates to probabilities
- Expected Value: the expectation operator, linear for affine functions
- Variance: spread around the mean,
- Uniform Distribution: first worked PDF example
- Normal Distribution: , parameters are mean and variance
- Covariance: joint variation of two variables
- Correlation: normalised covariance in
- Covariance Matrix: all variances and covariances of a random vector