One statistical mistake appears in master's and doctoral theses more than any other:
using linear regression with a binary outcome variable (yes/no, patient/healthy, died/survived).
The cause is not a lack of intelligence on the researcher's part, but that nobody explained why this is a methodological error.
Choosing the wrong type of regression builds the whole analysis on an unsound foundation, so the table of numbers comes out without the numbers being sound.
The Key Difference: What Type Is Your Outcome Variable?
Linear Regression
For a continuous outcome variable, a connected number with no fixed limits:
- Blood pressure (mmHg).
- Cholesterol level.
- Fetal weight.
- Temperature.
It assumes: a normal distribution of the outcome variable, a linear relationship, and constant variance of the residuals (homoscedasticity).
Logistic Regression
For a binary outcome variable, with only two outcomes:
- Patient / not a patient.
- Passed / failed.
- Died / survived.
- Event occurred / did not occur.
Its output: an odds ratio for each variable, not a direct linear coefficient.
Why is linear regression not valid for a binary variable?
Because linear regression can produce predicted values above 1 or below 0, which makes no sense when the outcome variable represents the probability of an event.
Other Types You Should Know
Multinomial Logistic Regression
When the outcome variable has more than two values with no order between them (categorical):
Example: cancer type (A / B / C).
Ordinal Logistic Regression
When the outcome variable is ordered (an ordinal scale):
Example: disease severity (mild / moderate / severe).
Poisson Regression
When the outcome variable is a number of events (count data):
Example: the number of asthma attacks during the year.
Cox Regression (Proportional Hazards)
When studying the time until an event occurs (survival data):
Example: time to death or relapse.
The Deciding Question Before You Choose
"Is my outcome variable a continuous number, two outcomes, more than two categories, a count of events, or a time to an event?"
The answer to this question decides the type of regression directly.
There is no single regression that suits all data. There is a suitable regression for each type of data.
What Should You Do Now?
Identify the nature of your outcome variable and make sure the type of regression you use matches it.
If you are not sure, the Analysez AI team offers a review of your statistical methodology and identifies the suitable tests before you begin the analysis.