Mathematical Statistics & Data Inference

The mathematical science of empirical data inference, parameter estimation (MLE, MAP), confidence intervals, non-parametric bootstrapping, hypothesis testing, production A/B experimentation, and generalized linear models.

The Science of Empirical Inference

Where Probability Theory reasons deductively from a known generative model to unknown data outcomes ($\text{Model} \implies \text{Data}$), Mathematical Statistics reasons inductively in reverse: given observed, noisy, finite empirical samples, what is the underlying data-generating process ($\text{Data} \implies \text{Model}$)?
text
+-----------------------------------------------------------------------------------+
|                        PROBABILITY VS MATHEMATICAL STATISTICS                     |
+-----------------------------------------------------------------------------------+
|                                                                                   |
|  PROBABILITY THEORY (Deductive):                                                  |
|  [Known Generative Distribution P(X; theta)] ======> Predict Expected Samples    |
|                                                                                   |
|  MATHEMATICAL STATISTICS (Inductive / Inferential):                               |
|  [Observed Data Samples {x_1, x_2, ..., x_n}] =====> Infer Parameter theta,       |
|                                                      Test Hypotheses,             |
|                                                      Quantify Uncertainty         |
+-----------------------------------------------------------------------------------+

Core Pillars in Software Engineering & Data Systems

1. Controlled Experimentation & Production A/B Testing

Every modern software platform (Netflix, Google, Meta, Amazon) validates product changes, ranking algorithms, and backend architectures via statistical hypothesis testing. Engineers must compute Statistical Power ($1 - \beta$), size sample windows for a given Minimum Detectable Effect (MDE), prevent false discoveries using Variance Reduction (CUPED), and avoid the notorious peeking problem through Sequential Testing.

2. Machine Learning Parameter Estimation

Supervised and unsupervised machine learning algorithms are statistical estimators:
  • Training a neural network with cross-entropy loss is mathematically equivalent to Maximum Likelihood Estimation (MLE) on a categorical Bernoulli model.
  • Ridge ($L_2$) and Lasso ($L_1$) weight regularization are exact Maximum A Posteriori (MAP) estimators under Gaussian and Laplace Bayesian priors.
  • Feature selection relies on Variance Inflation Factors (VIF) and statistical significance tests.

3. Systems Observability & Robust Metrics

Production metrics (latencies, query durations) are heavily right-skewed and multimodal. Relying on the arithmetic mean ($O(\bar{x})$) masks critical system outages because extreme outliers dominate. Statistical literacy teaches engineers to employ robust location estimators (percentiles $p50, p95, p99$, Median Absolute Deviation), quantile-quantile plots, and non-parametric bootstrap resampling to monitor SLAs accurately.

Pedagogical Progression

  1. Descriptive & Exploratory Analysis: Foundational metrics of center and spread, robust statistics, and distributional diagnostics.
  2. Point Estimation & Sampling Distributions: Unbiasedness, consistency, Fisher information, Cramér-Rao lower bounds, Maximum Likelihood Estimation, and Bayesian MAP.
  3. Confidence Intervals & Resampling: Quantifying parameter uncertainty without parametric assumptions via the Non-Parametric Bootstrap and Jackknife.
  4. Hypothesis Testing & Experimentation: Rigorous statistical decision theory, Type I/II errors, $p$-values, parametric tests ($Z$, $t$, ANOVA), non-parametric rank tests, and production A/B testing with CUPED.
  5. Regression & Statistical Modeling: Ordinary Least Squares (OLS), the Gauss-Markov theorem, residual diagnostics, and Generalized Linear Models (Logistic Regression).

Learning Path

12 topics across 5 sections

1Part I: Descriptive Statistics & Exploratory Analysis

Measures of central tendency, dispersion metrics, robust statistics, and quantile-quantile diagnostics.

2Part II: Point Estimation & Sampling Distributions

Finite sample estimators, sampling distributions, likelihood theory, and Bayesian point estimation.

3Part III: Confidence Intervals & Resampling Methods

Frequentist interval estimation, non-parametric bootstrap, and permutation testing.

4Part IV: Hypothesis Testing & Experimentation

Statistical decision theory, parametric and non-parametric tests, and production A/B test engineering.

5Part V: Regression & Generalized Linear Models

Linear and generalized regression models, Ordinary Least Squares, and maximum likelihood classification.