01 / 21

Multicollinearity &
Confounding

Learn to recognize when predictor variables are entangled and when hidden variables distort the true relationship between cause and effect in regression models.

Biostatistics

Quick Refresher: Multiple Regression

In multiple regression we model an outcome \( Y \) as a linear function of several predictors:

Each coefficient \( \beta_j \) tells us how much \( Y \) changes per one-unit increase in \( X_j \), holding all other predictors constant. Problems arise when the predictors themselves are not independent of each other or when an unmeasured variable influences both \( X \) and \( Y \).

What Is Multicollinearity?

Multicollinearity occurs when two or more predictor variables in a regression model are highly correlated with each other. This makes it hard to isolate each predictor's individual effect on \( Y \).

\(X_1\)
\(X_2\)
Shared Variance
\(Y\)

When \(X_1\) and \(X_2\) overlap, we can't tell
which one truly drives Y

What Is Confounding?

A confounder is a variable \( Z \) that is associated with both the exposure \( X \) and the outcome \( Y \), distorting the apparent relationship between them.

\(Z\) (Confounder)
\(X\) (Exposure)
\(Y\) (Outcome)
Observed association (may be spurious)

Why It Matters in Biostatistics

Multicollinearity
Inflates standard errors of \( \hat{\beta} \), making coefficients unstable and confidence intervals wide. The model may still predict well, but you can't trust individual predictors.
Confounding
Produces biased coefficient estimates. If you omit the confounder, you may conclude \( X \) causes \( Y \) when it doesn't, leading to wrong clinical decisions.

Detecting Multicollinearity: VIF

The Variance Inflation Factor quantifies how much the variance of a coefficient is inflated due to correlation with other predictors. For predictor \( X_j \):

where \( R_j^2 \) is the \( R^2 \) from regressing \( X_j \) on all other predictors. A VIF near 1 means little collinearity. A VIF above 5 or 10 signals a problem.

VIF = 1
No correlation with other predictors. Ideal.
VIF = 5
\( R_j^2 = 0.80 \). Moderate concern: 80% of this predictor's variance is shared.
VIF = 10
\( R_j^2 = 0.90 \). Serious collinearity: coefficient estimates are unreliable.

Detecting Confounding

A variable \( Z \) is a confounder of the \( X \!\to\! Y \) relationship if all three criteria are met:

1
\( Z \) is associated with \( X \): the suspected confounder correlates with the exposure.
2
\( Z \) is associated with \( Y \): it is an independent cause or risk factor for the outcome.
3
\( Z \) is not on the causal pathway from \( X \) to \( Y \): it is not a mediator.

Key Distinction: Multicollinearity vs Confounding

Multicollinearity Confounding
What is correlated? Predictors with each other An omitted variable with both \( X \) and \( Y \)
Effect on \( \hat{\beta} \) Inflated variance (imprecise) Biased point estimate (inaccurate)
Overall model \( R^2 \) Usually still high May look fine but is misleading
Primary diagnostic VIF, correlation matrix DAGs, 10% change rule
Fix Remove/combine predictors, PCA Include confounder or randomise

Step-by-Step Diagnostic Checklist

1
Draw a DAG (Directed Acyclic Graph) showing assumed causal relationships among \( X \), \( Y \), and potential confounders \( Z \).
2
Compute a correlation matrix for all predictors. Flag pairs with \( |r| > 0.7 \).
3
Calculate VIF for each predictor. Values above 5 warrant investigation; above 10 require action.
4
Apply the 10% change rule for confounding: compare \( \hat{\beta}_X \) with and without \( Z \) in the model.
5
Decide on remedies: drop collinear predictors, combine them via PCA, or include confounders you initially omitted.

Example 1: Spotting Multicollinearity

A researcher models systolic blood pressure (\( Y \)) using three predictors:

\( X_1 \)
Body weight (kg)
\( X_2 \)
BMI (kg/m²)
\( X_3 \)
Age (years)

Example 2: Unmasking a Confounder

A study asks: does coffee drinking (\( X \)) cause heart disease (\( Y \))?

Smoking (\(Z\))
Coffee (\(X\))
Heart Disease (\(Y\))
Spurious link if Z is omitted

Example 3: Both at Once

Predicting hospital readmission (\( Y \)) with: length of stay (\( X_1 \)), number of procedures (\( X_2 \)), and patient age (\( X_3 \)).

1
Correlation check: \( r(X_1, X_2) = 0.85 \). Patients who stay longer tend to have more procedures: multicollinearity.
2
VIF check: \( \text{VIF}_{X_1} = 8.2 \), \( \text{VIF}_{X_2} = 7.9 \), \( \text{VIF}_{X_3} = 1.3 \). Confirms collinearity between \( X_1 \) and \( X_2 \).
3
Confounding check: Adding comorbidity score (\( Z \)) changes \( \hat{\beta}_{X_3} \) by 25%. Age's apparent effect was partly confounded by comorbidities.

Reading a Correlation Matrix

\(X_1\)
\(X_2\)
\(X_3\)
\(X_1\)
\(X_2\)
\(X_3\)
1.00 0.85 0.22 0.85 1.00 0.18 0.22 0.18 1.00

\( r = 0.85 \) signals strong multicollinearity between \( X_1 \) and \( X_2 \)

DAGs: Your Confounding Roadmap

A Directed Acyclic Graph (DAG) maps causal assumptions visually. Arrows show the direction of causation. Confounders create backdoor paths from \( X \) to \( Y \).

\(X\)
\(Y\)
\(Z\)
\(M\)
Direct causal path Backdoor Backdoor Mediator path

Common Mistakes

✕ Confusing Correlation with Confounding
Two predictors can be correlated (multicollinear) without either being a confounder. Confounding requires a variable to causally affect both \( X \) and \( Y \).
✕ Adjusting for a Mediator
If you want the total effect of \( X \) on \( Y \), adjusting for a mediator \( M \) is a mistake. It blocks the indirect pathway, causing you to measure only the direct effect.
✕ Dropping Predictors Blindly
Removing a collinear variable can introduce omitted-variable bias if that variable was also a confounder. Always check causal structure (DAG) first.

Summary at a Glance

Aspect Multicollinearity Confounding
Definition Predictors correlated with each other Omitted variable related to both \( X \) and \( Y \)
Threatens Precision (SE inflated) Accuracy (bias in \( \hat{\beta} \))
Diagnostic tool VIF, tolerance, correlation matrix DAGs, 10% change-in-estimate rule
Remedy Drop/combine predictors, ridge regression, PCA Include confounder, stratification, randomisation
Model \( R^2 \) hint High \( R^2 \) but non-significant individual \( \hat{\beta} \)'s \( R^2 \) may look fine; bias is hidden

Question 1 of 5

A regression model predicting lung capacity uses height and arm span as predictors. The VIF for both exceeds 10. What problem does this indicate?

Question 2 of 5

A researcher finds that alcohol consumption predicts depression (\( \hat{\beta} = 0.60 \)). After adding socioeconomic status to the model, \( \hat{\beta} \) drops to 0.25. What role does socioeconomic status most likely play?

Question 3 of 5

If \( R_j^2 = 0.80 \) when regressing predictor \( X_j \) on all other predictors, what is the VIF for \( X_j \)?

Question 4 of 5

In a DAG, smoking causes yellow fingers and lung cancer. A naive study finds a positive association between yellow fingers and lung cancer. Which statement is correct?

Question 5 of 5

A model has a high overall \( R^2 = 0.89 \), yet none of the individual regression coefficients are statistically significant. Which problem is most likely?