Back to the lessonPreparing the printout…

Mathematical Foundations for Data Science · Part III — Probability and Statistics

Topic 11 · Random Variables and Distributions

[video] Lecture video — Topic 11: Random Variables and Distributions — /api/lesson-media/videos/4d3653ff-a3ca-4f63-bf8e-bb93c553e599-1794892503731-46491fcc89fe6905.mp4

Flashcards · Random Variables and Distributions

Random variable — A function X from the sample space to the real numbers: one number per outcome.

Number of heads: TT → 0, HT → 1, TH → 1, HH → 2.

Probability mass function — p(x) = P(X = x) for a discrete variable; the values are probabilities and sum to 1.

Probability density function — f(x) ≥ 0 with P(a ≤ X ≤ b) = ∫ f over [a, b]; heights are not probabilities and can exceed 1.

Uniform(0, 0.5) has density 2.

Cumulative distribution function — F(x) = P(X ≤ x); nondecreasing, from 0 to 1; P(a < X ≤ b) = F(b) − F(a).

Binomial(n, p) — Number of successes in n independent trials with common p: P(K = k) = C(n, k) p^k (1 − p)^(n−k).

Bin(5, 0.2): P(K = 2) = 0.2048.

Poisson(λ) — Count of events per fixed exposure; P(X = x) = e^(−λ) λ^x / x!.

λ = 3: P(X = 0) = e^(−3) ≈ 0.0498.

Uniform(a, b) — Constant density 1/(b − a) on [a, b]; probability = interval length / (b − a).

Exponential(β) — Waiting time with scale (mean) β; P(X > t) = e^(−t/β).

β = 2: P(X > 2) = e^(−1) ≈ 0.3679.

Standardization — If X ~ N(μ, σ²) then Z = (X − μ)/σ ~ N(0, 1), and P(a ≤ X ≤ b) = Φ((b − μ)/σ) − Φ((a − μ)/σ).

N(100, 225): 100 → 0 and 130 → 2.

[markdown] content available only on the platform

Mathematical Foundations for Data Science · Topic 11 · Random Variables and Distributions · printed on November 20, 2026