One-Page Reference Tables
Machine Learning & Data Science Formulas Cheat-Sheet
Supervised & Unsupervised Algorithms Master Matrix
| Algorithm | Loss / Objective | Key Hyperparameter | Bias-Variance Effect | Feature Scaling Required? |
|---|---|---|---|---|
| OLS Linear Regression | — | High bias if non-linear | ❌ Not for exact | |
| Ridge () / Lasso () | / | Bias , Variance | ✅ Yes (penalizes scale) | |
| Logistic Regression | Binary Cross-Entropy (Log-Loss) | Regularization | Linear log-odds boundary | ✅ Yes (with regularization) |
| Soft-Margin SVM | , RBF | Large Low bias, High variance | ✅ Yes (margin & RBF distance) | |
| -Nearest Neighbors | Majority vote / Local mean | Neighbors | Small High variance; Large High bias | ✅ Yes (Euclidean/Minkowski) |
| Decision Tree / Random Forest | Entropy IG or Gini | Max depth, trees | Bagging reduces Variance () | ❌ No (monotonic invariant) |
| Gradient Boosting (XGBoost) | Additive stagewise | Learning rate , trees | Sequentially reduces Bias | ❌ No (tree base learners) |
| PCA | Maximize s.t. | Top eigenvectors | Retains variance | ✅ Yes (standardize -score first!) |
Statistical Inference & Classification Metrics Quick Reference
- MLE vs MAP: , whereas (Gaussian prior Ridge; Laplace prior Lasso!).
- Confusion Matrix Rates: , , , .