Study Vault Search notes, aliases and full text
Graph
LectureMSIAI-written · not yet proofread

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.

Script ch. 2.0–2.3.1Pages 13–16Held Source msi

2.1Random Variables and Probabilities#

msi, PDF page 13
msi, PDF page 13

The section introduces a Random Variable XX as a description of an experiment’s outcomes. XX has no value itself and only takes values xx. 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 P(A∣B)=P(A,B)/P(B)P(A|B) = P(A,B)/P(B) it derives Bayes’ Theorem, which updates the a-priori P(A)P(A) to the a-posteriori P(A∣B)P(A|B). The antique-store example turns P(A)=0.1P(A) = 0.1 into P(A∣B)=2/3P(A|B) = 2/3 (Script pp. 13–14).

2.2Scalar Random Variables and Probability Density Functions#

msi, PDF page 14
msi, PDF page 14

A real random variable is described by its Probability Density Function pXp_X. Probabilities are integrals of it, P(X∈[a,b])=∫abpX(x) dxP(X \in [a,b]) = \int_a^b p_X(x)\,\mathrm{d}x. Independence and conditioning carry over from events to joint and conditional PDFs (Script p. 14).

2.2.1Mean and Variance#

The expectation operator E{f(X)}=∫f(x) pX(x) dx\mathbb{E}\{f(X)\} = \int f(x)\,p_X(x)\,\mathrm{d}x defines the mean (Expected Value) and the Variance σX2=E{(X−μX)2}\sigma_X^2 = \mathbb{E}\{(X-\mu_X)^2\}. The worked example shows σX2=E{X2}−μX2\sigma_X^2 = \mathbb{E}\{X^2\} - \mu_X^2 (Script pp. 14–15).

2.2.2Simple Example: Uniform Distribution#

For the Uniform Distribution on [a,b][a,b], integrating the PDF gives the mean (a+b)/2(a+b)/2 and the variance (b−a)2/12(b-a)^2/12 (Script p. 15).

2.2.3The Normal Distribution#

The Normal Distribution N(μ,σ2)\mathcal{N}(\mu, \sigma^2) 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 σ(Y,Z)\sigma(Y,Z) measures how YY and ZZ vary together, in the product of their units. The Correlation ρ(Y,Z)=σ(Y,Z)/(σYσZ)\rho(Y,Z) = \sigma(Y,Z)/(\sigma_Y\sigma_Z) is its unitless version in [−1,1][-1,1] (Script pp. 15–16).

2.3Multidimensional Random Variables#

msi, PDF page 16
msi, PDF page 16

Stacking scalar random variables gives a random vector X∈RnX \in \mathbb{R}^n with a joint PDF. Expectations become integrals over Rn\mathbb{R}^n (Script p. 16).

2.3.1Mean and Covariance Matrix#

The mean μX∈Rn\mu_X \in \mathbb{R}^n is a vector. The variance generalises to the Covariance Matrix ΣX=cov(X)=E{(X−μX)(X−μX)⊤}\Sigma_X = \mathrm{cov}(X) = \mathbb{E}\{(X-\mu_X)(X-\mu_X)^\top\}, which holds all variances and covariances. The vector analogue of §2.2.1 is cov(X)=E{XX⊤}−μXμX⊤\mathrm{cov}(X) = \mathbb{E}\{XX^\top\} - \mu_X\mu_X^\top (Script p. 16). §2.3.2 (multidimensional normal distribution) follows in VL03.

Concepts#

Search

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