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
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
- Descriptive & Exploratory Analysis: Foundational metrics of center and spread, robust statistics, and distributional diagnostics.
- Point Estimation & Sampling Distributions: Unbiasedness, consistency, Fisher information, Cramér-Rao lower bounds, Maximum Likelihood Estimation, and Bayesian MAP.
- Confidence Intervals & Resampling: Quantifying parameter uncertainty without parametric assumptions via the Non-Parametric Bootstrap and Jackknife.
- 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.
- 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.
- Descriptive Statistics & Data Summaries — Mean, median, trimmed mean, variance, IQR, MAD, skewness, kurtosis, and Q-Q plot diagnostics.
2Part II: Point Estimation & Sampling Distributions
Finite sample estimators, sampling distributions, likelihood theory, and Bayesian point estimation.
- Sampling Distributions & Standard Error — Bessel's correction, degrees of freedom, standard error of the mean, Student's t, Chi-square, and F distributions.
- Maximum Likelihood Estimation (MLE) — Likelihood functions, score equations, Fisher information matrix, Cramér-Rao lower bound, and asymptotic efficiency.
- Method of Moments & Bayesian MAP — Method of moments, conjugate priors (Beta-Binomial, Normal-Normal), MAP estimation, and L1/L2 regularization as priors.
3Part III: Confidence Intervals & Resampling Methods
Frequentist interval estimation, non-parametric bootstrap, and permutation testing.
- Confidence Intervals & Margin of Error — Frequentist interpretation, Z-intervals, Student's t-intervals, Wilson score interval, and sample size sizing.
- Resampling Methods: Bootstrap & Jackknife — Empirical distribution functions, non-parametric bootstrap, percentile/BCa intervals, jackknife variance, and permutation tests.
4Part IV: Hypothesis Testing & Experimentation
Statistical decision theory, parametric and non-parametric tests, and production A/B test engineering.
- Hypothesis Testing Foundations — Null and alternative hypotheses, p-values, Type I/II errors, statistical power, and Neyman-Pearson lemma.
- Parametric Tests: Z-Test, T-Test & ANOVA — One/two-sample tests, Welch's t-test, One/Two-Way ANOVA, Tukey HSD, and Benjamini-Hochberg FDR control.
- A/B Testing & Production Experimentation — Sample size power planning, Minimum Detectable Effect (MDE), CUPED variance reduction, and sequential testing.
- Non-Parametric Tests: Chi-Square & Rank Tests — Chi-square goodness-of-fit, test of independence, Mann-Whitney U, Wilcoxon signed-rank, and Kruskal-Wallis.
5Part V: Regression & Generalized Linear Models
Linear and generalized regression models, Ordinary Least Squares, and maximum likelihood classification.
- Linear Regression & Ordinary Least Squares — OLS closed-form solution, Gauss-Markov theorem (BLUE), residual diagnostics, homoscedasticity, and multicollinearity.
- Logistic Regression & Generalized Linear Models — GLM exponential family, logit link, Iteratively Reweighted Least Squares (IRLS), odds ratios, and ROC/AUC.