Statistical Learning and Model Evaluation
-
Conditional Probability, Base Rates, and Independence
Compute a posterior probability in a device-monitoring example and identify which products require an independence assumption.
-
Training, Validation, and Test Boundaries
Separate parameter fitting, model selection, and final measurement, and split examples at the unit where future generalization matters.
-
Data Leakage in Model Evaluation
Identify information a model would lack at prediction time and prevent preprocessing and grouping choices from exposing it during evaluation.
-
Cross-Validation and Model Selection Bias
Compare fold estimates computed for a fixed pipeline with nested evaluation after a hyperparameter search.
-
Bias and Variance Under Squared Error
Expand expected prediction error at a fixed input and isolate the contributions from mean error, training variation, and outcome noise.
-
Least Squares and the Geometry of Residuals
Derive the orthogonality condition for the best linear fit and explain how rank affects which coefficients are identifiable.
-
Ridge Regression and Directional Shrinkage
Derive how a squared coefficient penalty changes the normal equations and shrink poorly determined feature directions more strongly.
-
Lasso and Soft Thresholding
Solve a one-dimensional penalized regression and see how the absolute-value penalty can set a coefficient exactly to zero.
-
Logistic Regression and Log-Odds
Map a linear score to a probability and interpret what one coefficient means with other feature values held fixed.
-
Log Loss and Proper Probability Scoring
Show why expected log loss favors a true probability and distinguish a probability forecast from a hard decision.
-
Decision Tree Splits and Impurity Reduction
Compute the weighted impurity after a split and distinguish an informative split from one that merely creates a small pure branch.
-
Random Forests and Correlated Prediction Errors
Derive how averaging correlated predictors reduces variance and explain why random feature choices can strengthen an ensemble.
-
Gradient Boosting and Residual Fitting
Build an additive predictor by fitting the next weak learner to a loss-derived update and control the impact of each stage.
-
Kernel Matrices and Implicit Feature Maps
Represent inner products of expanded features without storing them explicitly and verify a small polynomial feature map.
-
Maximum-Margin Classification and Slack
Express distance to a separating hyperplane and see how slack trades margin width against violations.
-
Principal Components from Centered Data
Derive the first principal direction from projected variance and recover all components through the singular value decomposition.
-
K-Means and Alternating Minimization
Prove that assignment and centroid updates each lower or preserve the squared-distance objective, then interpret initialization sensitivity.
-
Cosine Similarity and Euclidean Ranking
Derive the distance relationship for normalized vectors and identify when a nearest-neighbor ranking changes with the metric.
-
Precision, Recall, and ROC Under Class Imbalance
Compute precision from true and false positive rates and explain why prevalence changes the picture even with the same ranking quality.
-
Probability Calibration and Reliability Curves
Compare mean forecast probability with observed frequency in a held-out bin and account for sample size and distribution change.