STATISTICS
Statistics guides
Worked examples for regression fits, association measures and prediction error metrics.
LINEAR REGRESSION
Linear regression worked example
Hand-calculate a least-squares line and compare with the calculator.
INTERPRETATION
R-squared vs correlation
What each measure reports and when they diverge.
PREDICTION ERROR
RMSE vs MAE
How an outlier affects each metric.
CLASSIFICATION
When to use logistic regression
Understand its probability output, use cases and limits with a small example.
PYTHON
Logistic regression with gradient descent
Follow the loss and parameter updates in a clear NumPy example.
MODEL CHOICE
Types of regression in machine learning
Choose between straight-line, curved, regularized and tree-based models.
MULTIPLE OUTCOMES
Multiple dependent variables and one predictor
See what this setup is called and how it differs from multiple linear regression.
OUTPUT EXPLAINED
How to read a linear regression summary
Interpret the main rows in an OLS summary without treating one statistic as the whole story.
New worked examples will appear here as they are published.