◆ THE BLUEPRINT
The Problem with OLS
OLS fits a straight line through any data. It has no concept of a bounded response. The model will predict wherever the line goes.
What Goes Wrong
For binary data, predicted probabilities go above 1 or below 0. For counts, predicted counts go negative. These are nonsensical.
The GLM Fix
A GLM wraps the linear predictor in a link function that constrains predictions to the correct domain.
Link Functions & Their Inverses
Key Insight
OLS is a GLM with a normal distribution and identity link. The rest of this app explores what happens when you change the link.