Study Vault Search notes, aliases and full text
Graph
TopicProbability and Statistics used inMSIAI-written · not yet proofread

Random Variables and Distributions

Also Probability Basics · Probability Theory · Wahrscheinlichkeitsrechnung

How random variables are described by probabilities of events and by (joint, marginal, conditional) densities, and the standard distributions used in estimation, the uniform and the scalar and multivariate normal distribution.

Concepts#

  1. Random Variablethe object: a value-to-be, with probabilities of events start here
  2. Probability Density Functionthe description of a continuous random variable; joint, marginal, conditional
  3. Statistical Independencewhen joint probabilities and densities factorize
  4. Conditional Probabilityprobabilities and densities given an observed event or value
  5. Bayes' Theoremturning P(B∣A)P(B|A) into P(A∣B)P(A|B): prior to posterior
  6. Uniform Distributionthe simplest PDF, constant on an interval
  7. Normal Distributionthe Gaussian, fixed by mean and variance
  8. Multivariate Normal Distributionthe Gaussian for random vectors, fixed by mean vector and covariance matrix

How it fits together#

Events and densities say the same things at two levels. Every rule for events has a density counterpart, with P(⋅)P(\cdot) replaced by p(⋅)p(\cdot) and sums by integrals:

EventsDensities
jointP(A,B)=P(A∧B)P(A, B) = P(A \wedge B)pX,Y(x,y)p_{X,Y}(x, y)
marginal—pY(y)=∫pY,Z(y,z) dzp_Y(y) = \int p_{Y,Z}(y, z)\,\mathrm{d}z
conditionalP(A∣B)=P(A,B)P(B)P(A\vert B) = \frac{P(A, B)}{P(B)}p(x∣y)=p(x,y)p(y)p(x\vert y) = \frac{p(x, y)}{p(y)}
independenceP(A,B)=P(A)P(B)P(A, B) = P(A)P(B)p(x,y)=p(x)p(y)p(x, y) = p(x)p(y)
BayesP(A∣B)=P(B∣A)P(A)P(B)P(A\vert B) = \frac{P(B\vert A)P(A)}{P(B)}p(x∣y)=p(y∣x)p(x)p(y)p(x\vert y) = \frac{p(y\vert x)p(x)}{p(y)}

From the joint density everything else follows. The joint PDF determines the marginals (integrate out), the conditionals (divide by a marginal), and whether the variables are independent (does it factorize?). Bayes’ theorem is not an extra axiom: it is the product rule p(x,y)=p(x∣y)p(y)=p(y∣x)p(x)p(x, y) = p(x|y)p(y) = p(y|x)p(x) solved for p(x∣y)p(x|y).

Independence is a statement about the joint density, and it is stronger than it looks. It implies that conditioning changes nothing (p(x∣y)=p(x)p(x|y) = p(x)) and that expectations of products factorize, which is the step that makes noise cross terms vanish in estimator analyses (Moments of Random Variables). Mutually exclusive events are the opposite of independent ones: knowing one occurred rules the other out.

Scalar → vector. The Multivariate Normal Distribution has the same structure as the scalar one, with σ2\sigma^2 replaced by Σ\Sigma:

Scalar N(μ,σ2)\mathcal{N}(\mu, \sigma^2)Vector N(μ,Σ)\mathcal{N}(\mu, \Sigma)
normalization12πσ2\frac{1}{\sqrt{2\pi\sigma^2}}1det⁡(2πΣ)\frac{1}{\sqrt{\det(2\pi\Sigma)}}
exponent−(x−μ)22σ2-\frac{(x - \mu)^2}{2\sigma^2}−12(x−μ)⊤Σ−1(x−μ)-\frac12(x - \mu)^\top\Sigma^{-1}(x - \mu)
requirementσ>0\sigma > 0Σ≻0\Sigma \succ 0

In both cases the distribution is completely characterized by its first two moments. A diagonal Σ\Sigma makes the density factorize into scalar normals, i.e. independent components.

Uniform vs. normal. Both have a mean and a variance, but the uniform distribution is bounded (all mass on [a,b][a, b], variance (b−a)2/12(b-a)^2/12), while the normal one has unbounded support. For estimators this matters: with normal current noise a measured current can be (close to) zero, which is why the Simple Approach Estimator in MSI may not converge.

Notation conventions in MSI. Uppercase XX for the random variable, lowercase xx for its values, and the index on pXp_X, are dropped from script §2.4 on: xx denotes both and p(x)p(x) the density.

Key Formulas#

  • P(X∈[a,b])=∫abpX(x) dxP(X \in [a, b]) = \int_a^b p_X(x)\,\mathrm{d}x (Probability Density Function)
  • P(A∣B)=P(B∣A)P(A)P(B)P(A|B) = \frac{P(B|A)P(A)}{P(B)} (Bayes’ Theorem)
  • p(x)=1det⁡(2πΣ)exp⁡(−12(x−μ)⊤Σ−1(x−μ))p(x) = \frac{1}{\sqrt{\det(2\pi\Sigma)}}\exp\left(-\frac12(x - \mu)^\top\Sigma^{-1}(x - \mu)\right) (Multivariate Normal Distribution)

Lectures#

  • No write-up yet. MSI covers this material in script §2.1–2.3 (MSI Slides 02 (not published)), planned for the lectures of 2026-10-21 and 2026-10-28.

Search

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