CLASSIFICATION · BEGINNER GUIDE
Linear vs Logistic Regression: Choose by Outcome Type
Choose linear regression for numeric outcomes and logistic regression for binary outcomes, then interpret the scale correctly.
Quick answer: Linear regression models a numeric conditional mean. Logistic regression models probability of a binary outcome through a link on log-odds. Choose by outcome and question, not by which model gives a smaller p-value.
What this method answers
A straight line can predict values below 0 or above 1, so it is usually unsuitable for a binary probability. Logistic regression keeps probabilities between 0 and 1, while its coefficients are on a log-odds scale.
Use linear regression for numeric measurements when its mean structure fits. Use logistic regression for two classes; use other generalized models for counts or ordered categories.
Before running a calculation, write down the population and the exact quantity you want to estimate. A method name alone does not define the question, the comparison or the assumptions.
Steps to follow
- Classify the outcome as numeric, binary, count or ordered.
- Select a model family that respects that scale.
- Explain coefficients in their actual units or link scale.
- Evaluate with metrics and validation splits suited to the use case.
Keep a record of exclusions, recoding decisions and software settings. That makes the analysis easier to check and repeat.
Worked example
A project predicts either exam score from study hours or pass/fail from study hours.
| Question | Outcome | Common starting model |
|---|---|---|
| Predict score | Numeric points | Linear regression |
| Predict pass | Pass or fail | Logistic regression |
If a logistic model predicts probability 0.72, a 0.50 threshold labels the case pass. The model output remains 0.72; the threshold is a separate decision rule.
Interpret the result carefully
A linear slope describes outcome-unit change in fitted mean per predictor unit. A logistic slope changes log-odds; its exponent is an odds ratio, not a probability-point change.
Limit to keep in mind: Neither model is automatically causal. Both need appropriate predictors and validation; logistic models also need checks for separation and calibration.
When reporting an analysis, include the sample size, estimate, units and uncertainty. Explain why the method fits the sampling and measurement design. Separate planned tests from exploratory checks, and avoid saying that association proves a cause.
Frequently asked questions
Can logistic regression predict more than two classes?
Multinomial extensions can model multiple classes; basic logistic regression is binary.
Can linear regression output probabilities?
It can return values outside 0–1 and does not model binary outcomes in the same way.
Is logistic regression only for causal research?
No. It supports prediction and association; causality requires suitable design.
Which model scores better?
There is no universal winner; compare on data held out from fitting and tuning.