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:

E(Y∣x)=β0+β1x.E(Y\mid x)=\beta_0+\beta_1x.

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:

log⁡ ⁣(p1−p)=β0+β1x.\log\!\left(\frac{p}{1-p}\right)=\beta_0+\beta_1x.

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β_1 is not a direct probability increase. For a one-unit increase in (x), it changes the log-odds by β1β_1 and multiplies the odds by eβ1e^{\beta_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−η)p=1/(1+e^{-\eta}), where ηη is the linear expression.

Qualitative model outputs. A and B label curves rather than particular fitted values.

Qualitative model outputs. A and B label curves rather than particular fitted values.

Fitted outcome probability by predictor level

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.

A study uses hours of sleep to predict whether a student passes a course, coded pass or fail. Which model is the most appropriate starting choice?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

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.

Qualitative model outputs. A and B label curves rather than particular fitted values.

Fitted outcome probability by predictor level

Fitted outcome probability by predictor level

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

For a logistic model, β1=0.40β_1=0.40 for predictor (x). Which is the correct interpretation of a one-unit increase in (x), holding other predictors fixed?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors