Adapting the Linear Model Framework for Non-Linear Patterns
The Linearity Assumption
\[ Y = \beta_0 + \beta_1X + \epsilon \]
When Straight Lines Don’t Fit
Link Functions Make Non-Linear Data Linear
The link function connects the linear predictor to the outcome:
\[ \log\left(\frac{p}{1-p}\right) = \beta_0 + \beta_1X \]
Left side: log-odds (can be any value)
Right side: linear predictor (can be any value)
Transform back to get probability: \(p = \frac{1}{1 + e^{-(\beta_0 + \beta_1X)}}\)
This is logistic regression.
The Family of Link Functions
Binary outcomes → Logit link → Logistic regression
Count data → Log link → Poisson regression
Continuous positive → Log link → Log-linear models
Proportions → Logit link → Beta regression
All follow the same pattern: transform, fit linear model, transform back.
\[ \log(\text{E}[Y]) = \beta_0 + \beta_1X \]
Key Takeaways
Contact:
Code & Slides:
/NHS-South-Central-and-West/code-club
… And don’t forget to give us your feedback.
SAT // Beyond Linearity // November, 2025