Menu

Correlation, Regression, and Causation

Lesson 5: Correlation, Regression, and Causation

What is correlation?

Correlation describes how two variables move together.

Coefficient (Pearson r)

Interpretation

+1Perfect positive linear relationship
+0.7 to +0.9Strong positive
+0.3 to +0.7Moderate positive
−0.3 to +0.3Weak or no linear relationship
−0.7 to −0.3Moderate negative
−1Perfect negative linear relationship

These bands are rough guides. What counts as "strong" depends on the field.

  • Positive: larger values of one go with larger values of the other.
  • Negative: larger values of one go with smaller values of the other.
  • Pearson measures linear relationships; Spearman measures monotonic (rank-based) relationships and is less sensitive to outliers.
  • r ≈ 0 does not rule out a non-linear relationship. Always look at a scatter plot.

Why correlation is not causation

Two variables can move together because:

Reason

Example

A causes BMore ad spend → more site visits
B causes A (reverse causation)Higher sales → bigger ad budget next month
A third variable causes both (confounding)Hot weather → more ice cream sales and more swimming incidents
CoincidenceTwo unrelated trends that both rise over time
Selection effectsOnly analysing customers who stayed

Simpson's paradox: a trend can appear in every subgroup but reverse when the groups are combined, because the group sizes differ. Always check relevant segments.

Regression basics

Regression estimates the relationship between an outcome (dependent variable) and one or more inputs (independent variables).

Simple linear regression: y = a + b·x

Term

Meaning

Example

yOutcomeSales
xInputAd spend
a (intercept)Expected y when x = 0Baseline sales
b (slope)Expected change in y per 1-unit change in x+₹3 sales per ₹1 spend
R²Share of variation in y explained by the model0.62 = 62%
  • Multiple regression includes several inputs, e.g., ad spend, price, and season.
  • The fitted relationship depends on assumptions (linearity, independent errors, no extreme influential points).
  • Regression alone does not establish causation.

Example

If ad spend and sales are correlated, more spend may be associated with more sales. But other factors could also drive sales:

  • Seasonality (festive periods)
  • Discounts running at the same time
  • Brand awareness built over years
  • Overall market demand

Stronger causal evidence requires:

  • A controlled experiment (A/B test with random assignment), or
  • A suitable causal design: difference-in-differences, regression discontinuity, or natural experiments

Key takeaways

  • Use correlation to find relationships worth investigating, not as proof of cause.
  • Always check context, confounders, study design, and whether the conclusion goes beyond the evidence.
  • Plot the data before trusting a coefficient.

Try it: Find two variables that might be correlated in a business dataset. List at least one third factor that could affect both.


Data Analytics Tutorial



Learn via Video Course

Data Analysis and Processing with Python using Pandas - Data Science Course Logo

Data Analysis and Processing with Python using Pandas - Data Science Course

5 hrs



Get in Touch For Details