Classical ML
Models, evaluation, and the tradeoffs interviewers love
Fundamentals
Bias-variance tradeoff
coreExpected test error splits into , variance, and irreducible noise — knowing which term dominates tells you whether to add capacity or add data
12 minfundamentalsgeneralizationFeature scaling and preprocessing
introDistance-based, gradient-trained, and penalized models all silently assume features share a scale — know which models care, which transforms to use, and why the scaler must be fit on the training set only
8 minfundamentalspreprocessingL1 and L2 regularization
corePenalizing zeroes coefficients out, penalizing shrinks them smoothly — the geometry of corners explains why, and the choice changes how correlated features are handled
11 minfundamentalsregularizationOverfitting and generalization
coreA model is only as good as its error on data it never saw — how to detect memorization with learning curves, protect the test set, and spot leakage before production does
9 minfundamentalsgeneralization
Linear Models
Linear regression
coreOLS in interview form: the assumptions and which ones matter for prediction vs inference, reading coefficients without lying, catching multicollinearity with VIF, and knowing when is the wrong scoreboard
12 minlinear-modelsregressionLogistic regression
coreA linear model pushed through a sigmoid: coefficients are log-odds, is an odds ratio, and cross-entropy — not MSE — is the loss, for reasons every interviewer asks about
11 minlinear-modelsclassification
Classic Classifiers
KNN & Naive Bayes
coreThe two simplest strong baselines: k-nearest neighbors memorizes the data and votes at query time, while Naive Bayes multiplies per-feature evidence under a deliberately false independence assumption.
12 minknnnaive-bayesclassificationlazy-learningtext-classificationbaselinesSVMs & the Kernel Trick
coreMaximum-margin classification from hinge loss to the dual formulation, and why an algorithm that only touches inner products gets nonlinear boundaries almost for free via kernels.
12 minclassificationsvmkernelsmax-margin
Model Evaluation
Class imbalance
coreWhen positives are rare, default thresholds and ROC curves flatter the model — threshold tuning, class weights, resampling, and PR-AUC are the tools, and cost-sensitive framing is the principle that unifies them
10 minmodel-evaluationimbalanceClassification metrics
corePrecision, recall, F1, and ROC-AUC from one confusion matrix — what each number actually measures, why accuracy misleads, and how to read AUC as a ranking probability
11 minmodel-evaluationmetricsCross-validation
corek-fold, stratified, leave-one-out, time-series splits, and nested CV — which protocol estimates generalization honestly, and the leakage traps that make CV numbers lie
9 minmodel-evaluationvalidation
Trees & Ensembles
Decision trees and random forests
coreGreedy splits scored by Gini or entropy build an interpretable but high-variance learner; bagging plus feature subsampling turns a crowd of them into a forest whose variance shrinks like
12 mintreesensemblesGradient boosting
advancedFit a small tree to the current errors, add a shrunken copy, repeat — gradient descent in function space. The bias-killer to bagging's variance-killer, and the reason a learning rate exists in a tree model
12 minensemblesboosting