Course contentsShow
← Data Science
Lesson 555 of 2,14514. Simple Linear RegressionFree lesson

When Regression Is and Isn't Appropriate

Recognizing data patterns that make linear regression suitable versus when alternatives are needed.

When Regression Is and Isn't Appropriate

You'll learn: How to recognize when linear regression is the right tool for your data and when you need a different approach.

Why This Matters

Just because you can fit a regression line to any two variables doesn't mean you should. Understanding when regression is appropriate helps you avoid misleading conclusions and choose better analysis methods.

When Regression IS Appropriate

Linear regression works well when:

  • The relationship is genuinely linear — your scatterplot shows points clustering around a straight line, not a curve
  • The five core assumptions are reasonably met — independence, linearity, homoscedasticity, normality of residuals, and zero conditional mean
  • You have continuous numerical data for both predictor and outcome
  • You want to model or predict one variable based on another

Think of regression like using a ruler to measure a straight edge. Perfect tool for the job.

When Regression ISN'T Appropriate

Avoid linear regression when:

  • The relationship is clearly non-linear — curved patterns, exponential growth, or thresholds (you might need polynomial regression or other transformations)
  • Your outcome is categorical — predicting "yes/no" or categories requires logistic regression or classification methods instead
  • Assumptions are severely violated — extreme outliers dominate, variance explodes as X increases, or observations aren't independent
  • You only care about association, not prediction — sometimes simple correlation is enough
  • You have no reason to believe X influences Y — remember correlation ≠ causation

If you try to fit a ruler to a circle, you'll get numbers, but they won't mean anything useful.

Key Takeaway: Linear regression is powerful but not universal — always check your scatterplot and verify assumptions before trusting the model. When patterns aren't linear or assumptions fail badly, explore transformations or alternative methods.