FORMULA SHEET • MODULE S.63 Reference Sections
OLS Regression, Regularization (Ridge/Lasso), Bayesian Updating & Bootstrap
Pearson correlation, Simple OLS normal equations and R², Confidence vs. Prediction bands, Multiple Linear Regression (XᵀX)⁻¹Xᵀy, Ridge (L₂) vs. Lasso (L₁) shrinkage geometry, Beta–Binomial conjugate updating, and Nonparametric Bootstrap.
Mathematical Rigor & Accuracy Notes
- Anscombe's Quartet Warning: Correlation and measure ONLY linear association; nonlinear curves, single high-leverage outliers, and bimodal clusters can match identical and OLS slopes, making residual plots non-negotiable.
- Standardize Before Applying Ridge or Lasso: Penalizing depends on feature scale (e.g., meters vs. millimeters), so always center and standardize predictors to unit variance before tuning .
- Credible Intervals vs. Confidence Intervals: A Bayesian credible interval literally satisfies conditional on prior + data, whereas frequentist confidence intervals refer to repeated sampling coverage.
- Bootstrap Resampling Assumptions: Efron's nonparametric bootstrap assumes the sample is representative and independent; it cannot repair biased sampling or capture extreme heavy tails in tiny samples ().
1. Pearson Correlation, Simple OLS & Uncertainty Bands
Pearson Correlation r & OLS Slope / Intercept
Coefficient of Determination R² & Sum-of-Squares Partition
Mean-Response Confidence Band vs. Individual Prediction Interval
Here ; the extra accounts for fresh observation noise , making Prediction Intervals permanently wider than mean bands.
2. Multiple Linear Regression, Diagnostics & Ridge / Lasso Geometry
Matrix Normal Equations & Orthogonal Hat Projection
Condition:Each column residual vector sits strictly orthogonal to : .
Adjusted R² & Variance Inflation Factor (Multicollinearity)
Comparison of OLS, Ridge (L₂) & Lasso (L₁) Regression
| Method | Objective Function | Constraint Geometry | Key Property |
|---|---|---|---|
| OLS () | Unconstrained projection | Unbiased if full rank; explodes under collinearity | |
| Ridge () | Smooth ball / circle | Closed form ; shrinks all weights smoothly | |
| Lasso () | Sharp diamond | RSS ellipses hit corners on axes exact sparse zeros |
3. Bayesian Conjugate Updating & Nonparametric Bootstrap
Continuous Bayes' Rule & Posterior Proportionality
Beta–Binomial Conjugate Updating & Precision Shrinkage
Posterior mean is a convex weighted blend of prior mean and MLE ; as , the data dominates.
Normal–Normal Updating & Nonparametric Bootstrap Resampling