Probability and Statistics
Canonical T1 reference spanning probability theory and statistical inference. Companion deep notes:
- probability-fundamentals — axioms, conditioning, expectation, CLT/LLN, inequalities.
- probability-distributions — distribution zoo with parameter / moment / use-case tables.
- hypothesis-testing-mle — frequentist testing and maximum likelihood theory.
- bayesian-inference — priors, posteriors, conjugacy.
- mcmc-sampling — Metropolis-Hastings, Gibbs, HMC, NUTS.
- variational-inference — VI as deterministic alternative to MCMC.
- gaussian-processes, markov-chains-and-hmm, stochastic-calculus, causal-inference.
1. At a glance
Probability is the mathematics of uncertainty; statistics is the inverse problem — given data sampled from some unknown distribution, infer that distribution (or features of it). The two are coupled: every statistical method is a probabilistic model plus an inference rule.
- Probability theory provides the calculus of random variables, distributions, expectations, limit theorems, and stochastic processes.
- Statistics uses that calculus to estimate parameters, test hypotheses, quantify uncertainty, build predictive models, and reason about cause.
Three interpretive lenses, all consistent with the same Kolmogorov axiomatisation:
- Frequentist — probability = long-run relative frequency. Parameters are fixed unknown constants; randomness is in the data.
- Bayesian — probability = degree of belief. Parameters carry distributions; randomness encodes epistemic uncertainty.
- Measure-theoretic / mathematical — probability is a special case of measure theory, with (see measure-theory-and-integration).
This note traces the path from axioms to inference to modern applied statistics. Routine derivations are sketched; the heavy lifting lives in the companion notes above.
2. Probability axioms (Kolmogorov 1933)
A probability space is a triple :
- — the sample space, the set of all possible outcomes.
- — a -algebra of subsets of , the events — closed under complement and countable union.
- — a probability measure satisfying:
- Non-negativity — for every .
- Normalisation — .
- Countable additivity (-additivity) — for pairwise disjoint , .
Kolmogorov’s Grundbegriffe (1933) put probability on the modern measure-theoretic foundation, dissolving century-old paradoxes (Bertrand’s, Borel-Kolmogorov) and unifying discrete and continuous treatments. Everything below — distributions, expectation, CLT, stochastic processes — follows from these three rules plus the measure-theoretic toolkit.
Derived rules.
- , .
- (inclusion-exclusion).
- Continuity — .
- Monotonicity — .
- Union bound (Boole) — .
Why the -algebra matters. In continuous sample spaces (e.g. ) you cannot consistently assign probability to every subset — Vitali’s construction (1905) builds non-measurable sets using the axiom of choice. Restricting to (e.g. the Borel sets generated by intervals) makes the theory consistent. See measure-theory-and-integration.
3. Random variables and distributions
A random variable is a measurable function — measurable meaning for every . The distribution (or law) of is the pushforward measure on Borel sets of .
Cumulative distribution function (CDF). . Right-continuous, non-decreasing, , . CDFs uniquely determine distributions.
Discrete random variable. takes countably many values; described by a probability mass function (PMF) with .
Continuous random variable. is absolutely continuous; described by a probability density function (PDF) with and . Note: is not a probability — it can exceed 1.
Mixed distributions (atoms + continuous part) and singular distributions (e.g. Cantor) exist but are rare in practice.
Multivariate random variables
For random vector :
- Joint CDF — .
- Joint PDF (continuous) — .
- Marginal PDF — (integrate out the other variables).
- Conditional PDF — .
4. Expectation, variance, moments
Expectation (mean) of :
- Discrete: .
- Continuous: .
- Lebesgue-theoretic: .
For any measurable : (LOTUS — Law Of The Unconscious Statistician).
Properties. Linearity: (no independence needed). For independent X, Y: .
Variance and standard deviation. . .
Covariance and correlation. . Correlation . Independence zero covariance; the converse fails (e.g. , — uncorrelated but not independent).
Moments and central moments. , . Higher moments:
- = skewness — asymmetry.
- = kurtosis — tail heaviness ( for Gaussian; “excess kurtosis” ).
5. Moment generating and characteristic functions
Moment generating function (MGF). when finite in a neighbourhood of 0. Then (hence the name). MGFs uniquely determine distributions (when they exist) and convert sums of independents to products: .
Characteristic function (CF). . Always exists (it’s a Fourier transform of the distribution). Uniqueness: distributions are determined by their CFs. Lévy’s continuity theorem — convergence of CFs at every implies convergence in distribution (the workhorse of CLT-style proofs).
6. Common distributions
See probability-distributions for the full reference; here are the canonical members.
Discrete
| Name | Support | PMF | Mean | Variance | Use |
|---|---|---|---|---|---|
| Bernoulli() | One coin flip / binary event | ||||
| Binomial() | Count of successes in trials | ||||
| Geometric() | Trials until first success | ||||
| Poisson() | Count of rare events in fixed time | ||||
| Negative binomial() | Trials until -th success; over-dispersed Poisson | ||||
| Hypergeometric | --- | Sampling without replacement |
Continuous
| Name | Support | Mean | Variance | Use | |
|---|---|---|---|---|---|
| Uniform | Maximum entropy on interval | ||||
| Exponential() | Memoryless waiting times | ||||
| Gamma() | Sum of exponentials; positive r.v. | ||||
| Beta() | --- | Distributions over probabilities | |||
| Normal() | CLT limit; default for noise | ||||
| Multivariate normal | Gaussian models everywhere | ||||
| Chi-squared() | --- | Sum of squared standard normals | |||
| Student’s | --- | 0 (if ) | (if ) | Heavy-tailed; mean of small Gaussian sample | |
| F | --- | --- | Ratio of variances; ANOVA | ||
| Cauchy | undefined | undefined | Pathological example; ratio of Gaussians | ||
| Dirichlet() | simplex | --- | Distributions over simplices | ||
| Pareto | (if ) | --- | Heavy-tailed; wealth, file sizes | ||
| Log-normal | --- | --- | Multiplicative processes | ||
| Weibull | --- | --- | --- | Reliability / survival |
7. Conditional probability and Bayes
For events with :
Multiplication rule. .
Independence. iff iff .
Law of total probability. For a partition of :
Bayes’ theorem (Bayes 1763, Laplace 1774).
The posterior equals the likelihood times the prior , normalised by the evidence . This is the engine of all Bayesian inference (Section 13).
Conditional expectation. — the best -measurable predictor of in sense. Satisfies the tower property and is the foundation of martingale theory (see stochastic-calculus).
8. Convergence
Random variables can converge in different senses, and the senses are nested:
- Almost sure (a.s.) convergence — . Strongest.
- Convergence in — .
- Convergence in probability — for every .
- Convergence in distribution — at every continuity point of . Weakest.
Implications: a.s. ⇒ probability ⇒ distribution; ⇒ probability. None of the reverse implications hold in general.
9. Law of large numbers and Central Limit Theorem
Two limit theorems form the bedrock of statistical inference.
Law of Large Numbers (LLN)
Let be i.i.d. with and mean . The sample mean satisfies:
- Weak LLN (Khinchin 1929) — in probability.
- Strong LLN (Kolmogorov 1933) — almost surely.
Sample averages converge to the true mean — the justification for estimating expectations by Monte Carlo.
Central Limit Theorem (CLT)
Let be i.i.d. with mean , variance . Then
Historical lineage. De Moivre (1733) for Bernoulli; Laplace (1810) for general i.i.d.; Lyapunov (1901) gave the first rigorous proof; Lindeberg (1922) and Lévy (1925) generalised. The Berry-Esseen theorem (1941) quantifies the rate: where .
Variants.
- Multivariate CLT — for vector-valued with covariance .
- Lindeberg-Feller CLT — for independent but not identically distributed summands, with the Lindeberg condition controlling individual contributions.
- Martingale CLT — for martingale differences (foundation of MLE asymptotic theory).
- Stable laws — when variance is infinite (heavy tails), CLT fails; the limit is an -stable distribution (Lévy 1925).
CLT explains why Gaussian noise is ubiquitous: any process whose noise is the sum of many small independent contributions is approximately Gaussian.
10. Concentration inequalities
Tail bounds without assuming exact distributions — the lifeblood of statistical learning theory and high-dimensional probability.
Markov. For : .
Chebyshev. . Universal but loose for Gaussian-like tails.
Jensen. for convex (reverse for concave). Hence , (AM-GM in disguise), and KL divergence .
Cauchy-Schwarz (probability form). .
Hoeffding (1963). For independent:
The workhorse of PAC learning, A/B test sample size, bandit regret bounds.
Chernoff bound. . The cleanest exponential tail bound when the MGF exists.
Bernstein, McDiarmid, Azuma-Hoeffding (martingale form) — refinements for variance-aware or dependent sums.
Sub-Gaussian / sub-exponential variables. is sub-Gaussian with parameter if . Gaussian + bounded variables are sub-Gaussian; many results in high-dimensional probability are stated for this class.
See the catalog at named-inequalities-catalog for many more.
11. Point estimation
Given data , estimate the unknown parameter .
Definitions.
- Estimator — any function .
- Bias — .
- Variance — .
- Mean squared error (MSE) — . The bias-variance trade-off.
- Consistency — in probability.
- Efficiency — variance achieves the Cramér-Rao lower bound (CRLB).
Maximum Likelihood Estimation (MLE)
Fisher (1922) formalised the dominant point estimation method. Given likelihood (or PMF), maximise:
Examples.
- Bernoulli(): (sample proportion).
- Normal(): , (biased; the unbiased divides by ).
- Poisson(): .
Asymptotic properties (under regularity conditions).
- Consistency — in probability.
- Asymptotic normality — where is the Fisher information.
- Efficiency — asymptotic variance achieves the Cramér-Rao lower bound .
- Functional invariance — .
The conditions exclude pathological cases (support depending on , boundary issues, identifiability failure). See hypothesis-testing-mle for proofs and exceptions.
Method of Moments (MoM)
Equate sample moments to population moments and solve. Easy to compute, often less efficient than MLE, but useful as initial values and for distributions where MLE is intractable. E.g. for Gamma(): set and , solve.
Maximum A Posteriori (MAP)
Bayesian point estimate: maximise the posterior. With prior :
A Gaussian prior is regularisation; a Laplace prior is (LASSO). Coincides with MLE when the prior is flat. MAP is not the posterior mean and is reparametrisation-non-invariant.
M-estimators
Generalise MLE: for some loss . Includes least squares (), MLE (), and Huber regression. Asymptotic theory parallels MLE (Huber 1964).
12. Confidence intervals and hypothesis testing
Confidence intervals
A -confidence interval for is a random interval with
The probability is over the data; is fixed. “95% CI” means: across repeated experiments, 95% of the constructed intervals contain . It does not mean the probability the specific interval contains is 95% — that’s a Bayesian credible interval (Section 13).
Wald CI from MLE asymptotics. .
Exact CIs exist for some distributions (e.g. Clopper-Pearson for Bernoulli, exact normal-theory CIs for Gaussian).
Hypothesis testing (Neyman-Pearson)
Decide between:
- — null hypothesis, the default / status-quo claim.
- — alternative, what we wish to demonstrate.
Asymmetry: we reject or fail to reject ; we never “accept” it.
Errors.
| true | true | |
|---|---|---|
| Don’t reject | OK | Type II () |
| Reject | Type I () | OK |
Significance level is the Type-I error rate we tolerate (conventionally 0.05). Power = .
Neyman-Pearson lemma (1933). For simple vs , the most powerful test of size rejects when the likelihood ratio for the threshold making the test size .
p-values. Probability under of seeing a test statistic at least as extreme as the observed value. Reject when . Common misuses: “the probability is true” (it is not); “the probability our result is due to chance” (also not). See the ASA statement (Wasserstein + Lazar 2016).
Classical tests.
| Test | Setting | Statistic |
|---|---|---|
| z-test | Single mean, known | |
| One-sample t-test | Single mean, unknown | |
| Two-sample t-test | Difference of means | --- |
| Welch’s t-test | Different variances | --- |
| Paired t-test | Matched pairs | --- |
| goodness-of-fit | Discrete distribution fit | |
| independence | Two categorical variables | --- |
| F-test | Equality of variances; ANOVA | |
| ANOVA | Multiple means | --- |
| Likelihood ratio test | Nested models | (Wilks) |
| Wald test | vs via Fisher information | --- |
| Score (Lagrange multiplier) test | Without fitting full model | --- |
For deeper treatment including LR/Wald/Score asymptotic equivalence under , see hypothesis-testing-mle.
Multiple testing correction. When testing hypotheses:
- Bonferroni — reject at each, controls family-wise error rate (FWER). Conservative.
- Holm-Bonferroni (1979) — sequential, strictly more powerful than Bonferroni at same FWER.
- Benjamini-Hochberg (1995) — controls false discovery rate (FDR); modern default for high-dimensional testing.
13. Bayesian inference
Treat as random with prior encoding pre-data belief. Given data :
The posterior combines likelihood and prior; inference consists of summarising the posterior (point estimates, credible intervals, posterior predictive).
Point summaries.
- Posterior mean — minimises squared error.
- Posterior median — minimises absolute error.
- Posterior mode (MAP) — Section 11.
Credible intervals. A credible interval satisfies . Direct probabilistic interpretation unlike frequentist CIs.
Conjugate priors
A prior is conjugate to a likelihood if the posterior belongs to the same family. The classical pairs:
| Likelihood | Prior | Posterior |
|---|---|---|
| Bernoulli / Binomial | Beta() | Beta() |
| Poisson() | Gamma() | Gamma() |
| Normal (known ) | Normal | Normal |
| Normal (unknown ) | Normal-Inverse-Gamma | Normal-Inverse-Gamma |
| Multinomial | Dirichlet | Dirichlet |
| Exponential | Gamma | Gamma |
| Uniform | Pareto | Pareto |
For non-conjugate problems, computation requires MCMC (mcmc-sampling: Metropolis-Hastings, Gibbs, HMC, NUTS) or variational inference (variational-inference: minimise KL to a tractable family).
Improper and informative priors
- Improper — (e.g. Jeffreys prior on scale). Often OK if posterior remains proper.
- Jeffreys prior — . Parametrisation-invariant.
- Empirical Bayes — estimate prior hyperparameters from data; sits between full Bayes and frequentist.
- Hierarchical Bayes — priors on hyperparameters; pooling across groups (multilevel models).
Bayesian vs frequentist — a brief comparison
| Aspect | Frequentist | Bayesian |
|---|---|---|
| Parameter | Fixed unknown | Random variable |
| Probability of | Undefined | Posterior |
| Inference unit | Test / CI | Posterior |
| Prior info | Not used (or via shrinkage) | Explicit in prior |
| Computation | Often closed-form | MCMC / VI / conjugacy |
| Long-run guarantees | Yes (frequency interpretation) | Coherent updating but no frequency guarantees |
| Sequential updating | Awkward (multiple-testing issues) | Natural (yesterday’s posterior = today’s prior) |
Modern practice frequently mixes the two: use Bayesian computation but evaluate with frequentist coverage; or run frequentist tests but interpret via likelihood ratios.
14. Regression and the linear model
Ordinary least squares (OLS). Model with . Estimator:
Under Gauss-Markov assumptions, OLS is BLUE (best linear unbiased estimator). Under additional normality, OLS = MLE.
Diagnostics.
- R² — fraction of variance explained.
- Residual plots — check linearity, homoscedasticity, normality.
- Cook’s distance — leverage and influence of single observations.
- VIF — variance inflation factor for multicollinearity.
Generalised linear models (GLM) (Nelder + Wedderburn 1972). for a link and a response from the exponential family.
| Response | Distribution | Link |
|---|---|---|
| Continuous | Normal | Identity (= OLS) |
| Binary | Bernoulli | Logit (= logistic regression) |
| Count | Poisson | Log (= Poisson regression) |
| Positive continuous | Gamma | Log or inverse |
| Ordinal | Multinomial | Cumulative logit (proportional odds) |
Fit by iteratively reweighted least squares (IRLS) — equivalent to Newton-Raphson on the log-likelihood.
Regularisation
Adding penalty to the loss controls overfitting:
- Ridge (, Hoerl + Kennard 1970) — . Closed-form . Shrinks but keeps all coefficients. Bayesian: Gaussian prior on .
- LASSO (, Tibshirani 1996) — . Induces sparsity (sets coefficients exactly to zero). Bayesian: Laplace prior.
- Elastic net (Zou + Hastie 2005) — . Best of both.
- Group LASSO, fused LASSO, total variation — structured regularisation.
Choice of : cross-validation, information criteria (AIC, BIC), Bayesian marginal likelihood.
15. Nonparametric methods
When parametric assumptions are too strong:
Density estimation.
- Histogram — simplest; bin width is the bias-variance knob.
- Kernel density estimator (KDE) — for kernel and bandwidth . Silverman’s rule of thumb for .
- Adaptive KDE, nearest-neighbour density — variable bandwidth.
Bootstrap (Efron 1979). Estimate the sampling distribution of by resampling with replacement from the data:
- Draw bootstrap samples .
- Compute on each.
- The empirical distribution of approximates the sampling distribution.
Gives standard errors, CIs (percentile, BCa, basic), tests. Foundational under mild conditions; can fail for heavy tails or boundary parameters. Block bootstrap for dependent data.
Permutation tests. Under exchangeability, recompute the test statistic on relabelled data. Exactly valid Type-I error; widely used in genomics and neuroimaging.
Other nonparametric tests.
| Test | Setting |
|---|---|
| Wilcoxon rank-sum / Mann-Whitney U | Two-sample location |
| Wilcoxon signed-rank | Paired location |
| Kruskal-Wallis | -sample location (ANOVA analogue) |
| Spearman rank correlation | Monotone relationship |
| Kendall’s | Concordance-based correlation |
| Kolmogorov-Smirnov | Equality of distributions |
| Anderson-Darling | Tail-sensitive K-S variant |
Nonparametric regression. Kernel regression (Nadaraya-Watson), local polynomial regression (Loess/Lowess), splines (smoothing, regression, P-splines), Gaussian processes (gaussian-processes).
16. Causal inference primer
Statistical association ≠ causation. Modern causal inference uses formal frameworks to identify causal effects from observational data when randomised trials are impossible.
Potential outcomes (Neyman-Rubin)
Each unit has potential outcomes under treatment and control; observe only one. The individual treatment effect is fundamentally unobservable for any single unit. The average treatment effect (ATE) is identifiable under assumptions.
Identification assumptions (the unconfoundedness story).
- SUTVA — no interference between units; well-defined treatment.
- Unconfoundedness / ignorability — . Treatment is as-if random given observed covariates.
- Overlap / positivity — for all relevant .
Under these, ATE is identified by:
- Stratification / regression adjustment on .
- Propensity score matching/weighting (Rosenbaum + Rubin 1983) — .
- Doubly robust estimation — combines outcome model and propensity model; consistent if either is correct.
Causal DAGs (Pearl 1995, 2000)
Directed acyclic graphs encode causal structure. The do-calculus identifies which observational quantities equal interventional ones; the back-door criterion characterises sufficient adjustment sets; the front-door handles certain unmeasured confounding.
Instrumental variables (IV)
When confounders are unobserved, an instrument that affects but only through identifies the effect:
Wright (1928) for econometrics. Identifies the local average treatment effect (LATE) among compliers (Imbens + Angrist 1994).
Regression discontinuity (RDD)
Treatment is assigned based on whether a running variable crosses a threshold. Compare units just above vs just below the cutoff — they are exchangeable in the limit. Thistlethwaite + Campbell (1960); modern theory in Hahn, Todd, Van der Klaauw (2001).
Difference-in-differences (DiD)
Two groups (treated, control), two time periods (pre, post). Under parallel trends in counterfactual untreated outcomes, the treatment effect is
Card + Krueger (1994) minimum wage study is the classic application. Recent literature (Goodman-Bacon 2021, Callaway + Sant’Anna 2021) re-examines staggered adoption settings.
Synthetic controls (Abadie + Gardeazabal 2003)
Construct a weighted combination of control units that matches the treated unit’s pre-treatment trajectory; treatment effect = post-treatment divergence. Useful for (single state / country / firm).
See causal-inference for the deeper treatment.
17. Decision theory
A unifying frame: pick action given data minimising risk for loss .
- Bayes risk ; minimiser is the Bayes estimator.
- Minimax risk ; conservative.
- Admissibility — no other estimator dominates uniformly.
Stein’s paradox (1956). In dimensions , the sample mean as an estimator of under squared loss is inadmissible — the James-Stein estimator dominates it. Foundational for shrinkage methods and empirical Bayes.
18. Information-theoretic statistics
- Entropy — (discrete) or (continuous, differential entropy).
- KL divergence — . Non-negative; zero iff a.s.; asymmetric. Maximum likelihood = minimising .
- Mutual information — . Symmetric, non-negative.
- Cross-entropy — . The standard loss for classification.
- Fisher information — second-derivative curvature of the log-likelihood; quantifies how informative data is about .
See information-theory for entropy, channel capacity, source coding.
19. Pitfalls and folklore
- “Statistically significant” ≠ practically important. from may correspond to a trivial effect size.
- Multiple testing inflates false discoveries. Pre-register, or correct (Bonferroni / BH).
- Correlation ≠ causation. Without randomisation or identification strategy, regression coefficients are not causal.
- Selection bias / survivorship. Sample design dictates what you can infer.
- Simpson’s paradox. Aggregated trend can reverse within subgroups; an omitted variable problem.
- Berkson’s paradox. Conditioning on a common effect induces spurious correlation between causes.
- The 80% power myth. Frequentist power depends on the alternative; “80% power” means little without specifying effect size.
- Confusing CI and credible interval. Frequentist CI is a property of the procedure; Bayesian credible interval is a property of given data.
- The base-rate fallacy. is not ; remember the prior. Medical test interpretation pitfall.
- Heavy tails break a lot. Sample mean is a bad estimator when variance is infinite; bootstrap can fail; CLT does not apply.
- Non-stationarity in time series. Most classical tests assume stationarity; check before applying.
- Validation test. With model selection, the validation set becomes part of the training procedure; reserve a true held-out set.
- MLE can be inconsistent or biased on small samples despite asymptotic optimality.
- Improper priors don’t always yield proper posteriors. Check before reporting.
20. Originators and key references
- Bernoulli (1713), De Moivre (1733), Laplace (1812) — early probability.
- Bayes (1763), Laplace (1774) — Bayes’ theorem.
- Gauss (1809), Legendre (1805) — least squares.
- Galton, Pearson (late 19th C) — correlation, regression.
- Fisher (1922, 1925, 1930s) — likelihood, MLE, ANOVA, design of experiments, p-values.
- Neyman + E. Pearson (1928, 1933) — hypothesis testing framework.
- Kolmogorov (1933) — measure-theoretic foundation.
- Wald (1939, 1947) — sequential analysis, decision theory.
- Stein (1956) — Stein’s paradox; foundation of shrinkage.
- Tukey (1962, 1977) — exploratory data analysis, multiple comparisons.
- Cox (1972) — Cox proportional hazards for survival data.
- Rubin (1974), Neyman (1923) — potential outcomes.
- Efron (1979) — bootstrap.
- Pearl (1995, 2000) — causal DAGs and do-calculus.
- Tibshirani (1996) — LASSO.
- Benjamini + Hochberg (1995) — false discovery rate.
21. Further reading
- Casella + Berger, Statistical Inference (2nd ed., 2002) — the standard graduate-level frequentist text.
- Wasserman, All of Statistics (2004), All of Nonparametric Statistics (2006) — compact and modern.
- Bishop, Pattern Recognition and Machine Learning (2006) — Bayesian + ML perspective.
- Gelman, Carlin, Stern, Dunson, Vehtari, Rubin, Bayesian Data Analysis (3rd ed., 2013) — the Bayesian bible.
- Hastie, Tibshirani, Friedman, Elements of Statistical Learning (2nd ed., 2009) — classic for predictive modelling.
- Imbens + Rubin, Causal Inference for Statistics, Social, and Biomedical Sciences (2015) — potential outcomes treatise.
- Pearl, Causality (2nd ed., 2009) — DAG-based causal inference.
- Murphy, Probabilistic Machine Learning (2022, 2023) — modern ML-flavoured probabilistic treatment.
- Billingsley, Probability and Measure (3rd ed., 1995) — measure-theoretic probability reference.
- Durrett, Probability: Theory and Examples (5th ed., 2019) — graduate probability with concrete examples.
22. Companion notes in this library
- probability-fundamentals — axioms, CLT/LLN, inequalities in depth.
- probability-distributions — reference of named distributions.
- hypothesis-testing-mle — frequentist testing.
- bayesian-inference — Bayesian theory.
- mcmc-sampling — sampling algorithms.
- variational-inference — VI / ELBO.
- gaussian-processes — nonparametric Bayes for functions.
- markov-chains-and-hmm — state-space discrete probability.
- stochastic-calculus — continuous-time stochastic processes.
- causal-inference — DAGs, IV, RDD, DiD.
- information-theory — entropy, KL, MI.
- measure-theory-and-integration — analytic foundation.
- _compare_probability-frameworks — Bayesian vs frequentist vs likelihoodist side-by-side.