Correlation and Relationship Analysis
This tool calculates the correlation between two variables while controlling for the influence of a third variable.
See how to use the calculator with real-world scenarios.
A classic example. We expect a correlation between ice cream sales (X) and drownings (Y). But is it real, or is it due to a third variable, temperature (Z)?
X: 20, 22, 25, 28, 30, 32
Y: 5, 6, 7, 8, 9, 10
Z: 70, 75, 80, 85, 90, 95
Children with bigger shoe sizes (X) tend to have better reading ability (Y). But both are strongly influenced by age (Z). Let's control for age.
X: 5, 5.5, 6, 6.5, 7, 8, 9
Y: 20, 25, 35, 40, 50, 65, 80
Z: 6, 6, 7, 7, 8, 9, 10
Does working more hours (X) lead to higher income (Y)? Let's find out while controlling for the level of education (Z).
X: 35, 40, 42, 45, 50, 55, 60
Y: 45000, 55000, 60000, 65000, 75000, 80000, 90000
Z: 12, 16, 16, 14, 18, 16, 20
An example where an initial strong correlation disappears after controlling for a confounding variable.
X: 10, 15, 20, 25, 30, 35, 40
Y: 2, 3, 4, 5, 6, 7, 8
Z: 5, 6, 7, 8, 9, 10, 11