Linear and Logistic Regression Models
Choosing Linear or Logistic Regression
Regression connects a response variable to one or more predictors. The model must match the kind of response. Linear regression is appropriate when the response is quantitative and can reasonably vary along a continuous scale.
It models the conditional mean as a straight-line combination of predictors:
A fitted linear value is not automatically sensible for a binary outcome because it can fall below zero or above one.
Logistic regression for yes-or-no outcomes
For a binary response, logistic regression models the probability (p) of one outcome through its log-odds:
The logistic transformation keeps predicted probabilities between zero and one. It commonly produces an S-shaped relation: probabilities change slowly near the lower and upper limits and most rapidly in the middle.
The coefficient β1 is not a direct probability increase. For a one-unit increase in (x), it changes the log-odds by β1 and multiplies the odds by eβ1. This distinction matters: the same odds multiplier can correspond to different probability changes at different starting probabilities.
Worked mini-example
If a binary disease outcome is modelled with a positive predictor coefficient, larger predictor values increase the log-odds and therefore increase the fitted probability. To calculate a particular probability, first evaluate the linear expression, then convert from log-odds using p=1/(1+e−η), where η is the linear expression.
Qualitative model outputs. A and B label curves rather than particular fitted values.
Fitted outcome probability by predictor level
A linear model can be useful for a continuous biological response such as mass or concentration. Its slope represents an additive change in the fitted mean for one predictor unit. Logistic models answer a different question: how a predictor changes the chance of one coded outcome while respecting probability bounds.
Common mistake: interpreting a logistic coefficient as an additive probability change. It is additive on the log-odds scale; the probability response is curved and bounded.
The graph shows a bounded S-shaped fitted probability. Which statement about this shape is correct?
Qualitative model outputs. A and B label curves rather than particular fitted values.
Fitted outcome probability by predictor level
For a logistic model, β1=0.40 for predictor (x). Which is the correct interpretation of a one-unit increase in (x), holding other predictors fixed?