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.

Worked example · linear regression vs logistic regressionUpdated October 31, 2026

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.

Infographic for linear regression vs logistic regression: Identify outcome scale, then Choose a matching model, then Interpret coefficient scale, then Validate predictions.
Infographic: a practical sequenceKeep the question, design and assumptions in view from start to finish.
The outcome guides the model family: Numeric measurement, then Linear mean model, then Binary class, then Logistic probability model.
The outcome guides the model familyThis is a starting distinction; design and validation still matter.

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

  1. Classify the outcome as numeric, binary, count or ordered.
  2. Select a model family that respects that scale.
  3. Explain coefficients in their actual units or link scale.
  4. 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.

QuestionOutcomeCommon starting model
Predict scoreNumeric pointsLinear regression
Predict passPass or failLogistic 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.

Sources and next steps