DSM-101 Probability & Statistics — full course recap, S1–S10 (Majumdar) + S11–S20 (Arshad)
S1 · S2 — Majumdar
Conceptual framing; not examined directly, but it's the vocabulary for everything after.
| Frequentist | Bayesian | |
|---|---|---|
| Probability is | relative frequency over an infinite ensemble of identical experiments | degree of belief of an observer, given their information |
| Nature | objective | subjective (observer-dependent, but grounded in data) |
| Output | a point value per parameter (best-fit $m, c$) | a distribution (posterior) per parameter, with widths |
| One-off events | breaks down (needs hypothetical ensemble) | fine (life on Mars, Drake equation) |
| New data | refit; estimate may jump (bias–variance) | update; old posterior becomes new prior |
| People | Boole, Venn, Fisher, von Mises | Bayes, Laplace, Keynes, Jeffreys, Cox, Jaynes |
Majumdar's pictures of the inverse problem:
Why the Bayesian answer differs — "you always have more prior information than you think":
S3 · S7 · S8 · S10 (2nd half) — Majumdar
Write the conditional probability you want, expand it with Bayes, and never drop the prior.
The prior is what intuition forgets (Majumdar, S7–S8, S10):
Pick a lecture problem or drag the sliders. The bar shows 10,000 people split by truth, then by evidence.
both = 1/4 ("I care how you got it, not the number")
stick 1/3 · switch 2/3 (1000-run simulation in class: 34% vs 68%)
≈ 0.889 — not 0.0004
≈ 0.393 — most flags are false alarms (base rate again)
3/4
S3 (end) · S4 · S5 (1st half) — Majumdar
We only ever hold a finite sample; statistics compress it and estimate the population.
Majumdar's pictures:
S11 · S12 (10 Sep) · S13 (1st half) · S15 doubt session — Arshad
Read a CDF, classify the variable, recover the PMF/PDF, find unknown constants, transform.
Arshad's framing: counting → discrete (accidents, items); measuring → continuous (speed, blood pressure, sugar level). Uncountably many points can't each carry positive probability, or the total would be infinite — so continuous variables get probability only on intervals. Transformations exist because we record weight but want BMI.
P(1)=1/2, P(5)=1/4, P(9)=1/4 · discrete
mixed: P(X=2)=1/2, other 1/2 spread over [1,2)
5/8 both ways
k = 5/4
k = 1/4
0: 1/7 · 1: 2/7 · 4: 5/14 · 9: 3/14 (sums to 1)
1/(2√y) on (0,1) · e^(−√y)/(2√y) on (0,∞)
f = x/2 on (0,2) · P = 0.5
mixed · P(X=1) = 1/2
k = 6 · Y: 0→0.3, 1→0.3, 4→0.4
S4 (moments, Majumdar) · S13 (2nd half) · S14 (1st half) — Arshad
Check the mean exists, get moments from the MGF, and identify a distribution by its MGF.
Caution: in the S13 lecture $\mu_3>0$ was called "left-skewed". The standard convention (and the one textbooks use) is that positive skew means the tail points right. Go by the sign.
Moments are the minimum set of numbers that pin down a distribution (Majumdar). A Gaussian needs only $(\mu,\sigma)$ — only $\sigma$ once centred; every other shape is a "distortion of the Gaussian" measured by skewness, kurtosis and higher moments. Arshad on kurtosis: calling someone "tall" needs a reference, and the normal curve is that reference.
E|X| = ∞ → no mean (even though the PMF is symmetric)
E(X) = 0
E = np · Var = np(1−p)
N(5, 16) · Poisson(1)
Bin(10,.3): 3, 2.1 · Poisson(4): 4, 4 · P(Y=0) ≈ 0.0183
2/3 · 1/18 ≈ 0.0556
S5 (2nd half) · S6 (Majumdar) · S14 (2nd half) · S15 · S16 (1st half) — Arshad
Pick the model from the situation, then use its PMF/PDF and MGF (with its domain).
| Distribution | Support · PMF / PDF | MGF (domain) | Mean · Var | Use when |
|---|---|---|---|---|
| Bernoulli$(p)$ | $\{0,1\}$ · $p^x(1-p)^{1-x}$ | $1-p+pe^t$, all $t$ | $p$ · $pq$ | one yes/no trial = Bin(1,p) |
| Binomial$(n,p)$ | $0..n$ · $\binom nx p^xq^{n-x}$ | $(pe^t+q)^n$, all $t$ | $np$ · $npq$ | # successes in $n$ independent identical trials; $n$ moderate |
| Poisson$(\lambda)$ | $0,1,2,\dots$ · $\dfrac{e^{-\lambda}\lambda^x}{x!}$ | $e^{\lambda(e^t-1)}$, all $t$ | $\lambda$ · $\lambda$ | rare events, huge $n$: accidents, calls, ER patients. Over time $t$: use $\lambda t$ |
| Geometric | $0,1,\dots$ · $q^xp$ (failures before 1st success) | $\dfrac{p}{1-qe^t}$, $t<-\ln q$ | $q/p$ · $q/p^2$ | attempts until first success; memoryless |
| ↳ trials | $1,2,\dots$ · $pq^{y-1}$, $\;Y=X+1$ | $\dfrac{pe^t}{1-qe^t}$, $t<-\ln q$ | $1/p$ · $q/p^2$ | counts the successful trial too: mean shifts by 1, variance doesn't (S15) |
| Uniform$(a,b)$ | $(a,b)$ · $\dfrac1{b-a}$ | $\dfrac{e^{bt}-e^{at}}{t(b-a)}$, $t\ne0$; $M(0)=1$ | $\frac{a+b}2$ · $\frac{(b-a)^2}{12}$ | simulation; probabilities are rectangle areas $\frac{d-c}{b-a}$ |
| ↳ $U(0,1)$ | $(0,1)$ · $1$, $\;F(x)=x$ | $\dfrac{e^t-1}{t}$, $t\ne0$ | $\frac12$ · $\frac1{12}$ | standard uniform, $a=0,b=1$; the input to the probability integral transform |
| Exponential$(\lambda)$ | $(0,\infty)$ · $\lambda e^{-\lambda x}$ | $\dfrac{\lambda}{\lambda-t}$, $t<\lambda$ | $1/\lambda$ · $1/\lambda^2$ | lifetimes / waiting times; $F=1-e^{-\lambda x}$; Var = mean². Course uses this rate form. |
| ↳ $\theta=1/\lambda$ | $(0,\infty)$ · $\dfrac1\theta e^{-x/\theta}$ | $\dfrac1{1-\theta t}$, $t<1/\theta$ | $\theta$ · $\theta^2$ | mean form: same distribution, textbook parameter; check which one a question uses (S16) |
| ↳ Laplace | ℝ · $\tfrac12e^{-|x|}$ | $\dfrac1{1-t^2}$, $|t|<1$ | $0$ · $2$ | double exponential: two-sided version of the exponential; odd-function trick gives $E X=0$, and $E|X|=\Gamma(2)=1$ (S13) |
| Gamma$(\alpha,\lambda)$ beyond notes | $(0,\infty)$ · $\dfrac{\lambda^\alpha x^{\alpha-1}e^{-\lambda x}}{\Gamma(\alpha)}$ | $\left(\dfrac{\lambda}{\lambda-t}\right)^{\alpha}$, $t<\lambda$ | $\alpha/\lambda$ · $\alpha/\lambda^2$ | waiting time to the $\alpha$-th event; sum of $\alpha$ independent Exp$(\lambda)$. $\Gamma(\alpha)=(\alpha-1)!$, $\Gamma(\tfrac12)=\sqrt\pi$ |
| ↳ special cases | $\alpha=1$: Exp$(\lambda)$ · $\alpha=2,\lambda=1$: MGF $(1-t)^{-2}$, the $Y$ marginal in S20 · scale form $\theta=1/\lambda$: $\dfrac{x^{\alpha-1}e^{-x/\theta}}{\Gamma(\alpha)\theta^\alpha}$, mean $\alpha\theta$ · $\chi^2_k=$ Gamma$(\tfrac k2,\tfrac12)$ | |||
| Beta$(\alpha,\beta)$ beyond notes | $(0,1)$ · $\dfrac{x^{\alpha-1}(1-x)^{\beta-1}}{B(\alpha,\beta)}$, $\;B=\dfrac{\Gamma(\alpha)\Gamma(\beta)}{\Gamma(\alpha+\beta)}$ | no closed form (not used) | $\dfrac{\alpha}{\alpha+\beta}$ · $\dfrac{\alpha\beta}{(\alpha+\beta)^2(\alpha+\beta+1)}$ | proportions and probabilities on $(0,1)$; the usual Bayesian prior for a coin's $p$ |
| ↳ special cases | $\alpha=\beta=1$: $U(0,1)$ (the flat parent in the Seeing Theory CLT demo, S9) · $\alpha=\beta$: symmetric about $\tfrac12$ · $\alpha<\beta$: mass near 0, right-skewed | |||
| Normal$(\mu,\sigma^2)$ | ℝ · $\dfrac{1}{\sigma\sqrt{2\pi}}e^{-\frac12(\frac{x-\mu}\sigma)^2}$ | $e^{\mu t+\frac12\sigma^2t^2}$, all $t$ | $\mu$ · $\sigma^2$ | measurements, sums of many influences (CLT); see module 7 |
| ↳ $N(0,1)$ | ℝ · $\dfrac1{\sqrt{2\pi}}e^{-z^2/2}$, $\;Z=\dfrac{X-\mu}\sigma$ | $e^{t^2/2}$, all $t$ | $0$ · $1$ | standard normal: parameter-free, so one table serves all; $\Phi(-z)=1-\Phi(z)$ |
Family links: Bernoulli = Bin$(1,p)$ · sum of $n$ Bernoullis = Bin$(n,p)$ · Bin → Poisson ($np=\lambda$) → Normal · Exp = Gamma$(1,\lambda)$ · sum of $\alpha$ Exps = Gamma$(\alpha,\lambda)$ · $U(0,1)$ = Beta$(1,1)$. Rows tagged beyond notes aren't in the lecture notes (sessions 13, 16 and 17 have no notes); they're standard results, added on request.
Pictures from the lectures:
Bars: Bin(n,p). Hollow dots: Poisson(np). Curve: Normal(np, npq). Small p → Poisson wins; large npq → Normal wins.
Poisson(60), not Poisson(6)
0.1054, 0.2231, 0.3567, 0.5108, 0.6931
= P(X ≥ t), independent of k
≈ 0.00248 · ≈ 0.0174
5 · 0.4096 · 0.4096
e^(−0.6) ≈ 0.549 both times
≈ 0.2335 · positively skewed (right tail)
S6 (end) · S9 · S10 (1st half) — Majumdar · S16 (2nd half) · S17 (1st half) — Arshad
Standardise, use Φ, and first ask: is this one value, a mean of $n$, or a sum of $n$?
| You're asked about… | Centre | Spread | Standardise | Lecture case |
|---|---|---|---|---|
| one value $X$ | $\mu$ | $\sigma$ | $\frac{x-\mu}{\sigma}$ | one teacher < $50,000 → 0.386 |
| mean $\bar X$ of $n$ | $\mu$ | $\sigma/\sqrt n$ (standard error) | $\frac{\bar x-\mu}{\sigma/\sqrt n}$ | mean of 100 teachers → 0.0019 |
| sum $\sum X_i$ of $n$ | $n\mu$ | $\sqrt n\,\sigma$ | $\frac{y-n\mu}{\sigma\sqrt n}$ | 50 customers in 90–110 min → 0.8427 |
| $\sum a_iX_i$ (independent normals) | $\sum a_i\mu_i$ | variance $\sum a_i^2\sigma_i^2$ | exact, no CLT needed | $X_1-X_2$: means subtract, variances add |
Why Gaussians are everywhere (Majumdar, S9–S10):
Each draw averages sample size values from the parent (faint amber) and adds one mean to the histogram. Teal = CLT prediction N(μ, σ²/n).
(a) ≈ 0.386 · (b) ≈ 0.0019
≈ 0.8427
≈ 0.4332
μ=2 · μ=4, σ free · no valid normal
1/2
≈ 0.8186 · ≈ 0.0228
≈ 0.1587
≈ 0.866
μ = 10, σ = 3
S17 (2nd half) — Arshad
Bounds for when you know only the mean (and maybe the variance), not the distribution.
Arshad's caveat: these bounds are for "very limited information". If you know the distribution, compute the exact probability — the bound can be loose (0.52 vs an exact 0.20 below).
≤ 0.658 · ≥ 0.75
bound ≈ 0.52 · exact 0.20 (not sharp)
≤ 0.4 · ≥ 0.75
S18 · S19 · S20 (22–24 Sep) — Arshad
Two measurements on one outcome, $(X,Y):\Omega\to\mathbb{R}^2$. Everything univariate gets a joint version, plus one new question: do the two move together?
Take the whole quadrant under $(x_2,y_2)$, remove the strip below and the strip to the left, then add back the corner removed twice. What's left is $P(x_1<X\le x_2,\;y_1<Y\le y_2)$, and no rectangle may have negative probability. In 1-D this collapses to "non-decreasing", which is why it's new.
From Arshad's framing (S18–S19):
Each cell shows p(x,y), with pX(x)·pY(y) underneath. Row sums give pX, column sums give pY. Red numbers mark joint ≠ product; the outlined cell is the first one, and one is enough to prove dependence.
Independence in three moves (S19):
c = 1/6 · pX = (3/6, 2/6, 1/6) · pY = (1/6, 2/6, 3/6)
−1 < 0 → a rectangle with negative probability, so G is not a joint CDF
1/16
f_Y(y) = −ln y on (0,1)
f_X = (2/π)√(1−x²) · Y|X=x ~ U(−√(1−x²), √(1−x²)) · P = 1/4
only (c) is independent
Cov = 0, yet Y is a function of X: zero covariance ⇏ independence
E[XY] = 3 · Cov = 3 − 1·2 = 1 > 0 (Y tends to rise with X)
(a) 1/4 · (b) X ~ N(0,2), Y degenerate at 1, independent
(a) PMF on {−1, 0, 2, 6}, E[X] = 13/6 · (b) Bin(2, 1/3)
7/9
a = 1/6 · b = 1/3
c = 1 · independent · 1/4
19
X ~ N(2,4), Y ~ N(3,1) · 1/4
f = 2 · 1/4 · Cov = 1/36
a = 0.2 · b = 0.3