1 of 37

Demonstrating causation

2 of 37

First, some reminders on

correlation

low correlation

high correlation

image adapted from Hyndman, R.J., & Athanasopoulos, G. (2021) Forecasting: principles and practice, 3rd edition, OTexts: Melbourne, Australia. OTexts.com/fpp3. Accessed on 20 Jul 2024.

3 of 37

One way to think about the strength of a correlation:

if you know the value of x, how accurately can you predict y?

low correlation

image adapted from Hyndman, R.J., & Athanasopoulos, G. (2021) Forecasting: principles and practice, 3rd edition, OTexts: Melbourne, Australia. OTexts.com/fpp3. Accessed on 20 Jul 2024.

high correlation

4 of 37

Correlations can also be

non-linear

image source: Hyndman, R.J., & Athanasopoulos, G. (2021) Forecasting: principles and practice, 3rd edition, OTexts: Melbourne, Australia. OTexts.com/fpp3. Accessed on 20 Jul 2024.

5 of 37

To demonstrate

causation

you need to:

1

2

3

rule out randomness

show the direction of causality

rule out confounds

6 of 37

1

rule out randomness

7 of 37

1

rule out randomness

(always an argument from probability)

8 of 37

Graph by Tyler Vigen (CC-BY-4.0)

9 of 37

Graph by Tyler Vigen (CC-BY-4.0)

10 of 37

11 of 37

Your correlation might be spurious if…

you searched through lots of variables looking for a correlation (Tyler Vigen’s database contains over 25,000 variables)

Graph by Tyler Vigen (CC-BY-4.0)

12 of 37

Your correlation might be spurious if…

your sample size is small

(here, n=6)

Graph by Tyler Vigen (CC-BY-4.0)

13 of 37

Your correlation might be spurious if…

you don’t account for outliers

(here, 2014 is an outlier

in both variables)

Graph by Tyler Vigen (CC-BY-4.0)

14 of 37

Your correlation might be artificially amplified if…

you use line charts.

Graph by Tyler Vigen (CC-BY-4.0)

15 of 37

1

rule out randomness

usually requires a randomized controlled study

and probability models typically only apply to random samples and randomized experiments

because making an argument from probability requires applying a probability model

16 of 37

source: xkcd

CC-BY-NC 2.5

17 of 37

source: xkcd

CC-BY-NC 2.5

18 of 37

source: xkcd

CC-BY-NC 2.5

19 of 37

source: xkcd

CC-BY-NC 2.5

20 of 37

source: xkcd

CC-BY-NC 2.5

21 of 37

2

rule out confounds

To demonstrate

causation

you need to:

(third variables that

affect both A and B)

22 of 37

violent crimes reported

ice cream consumption

correlation: 0.74

23 of 37

violent crimes reported

ice cream consumption

temperature

24 of 37

ruling out confounds requires

deep knowledge of the subject

violent crimes reported

ice cream consumption

temperature

careful study design

25 of 37

To demonstrate

causation

you need to:

3

show the direction of causality

26 of 37

3

show the direction of causality

getting hungry

eating

27 of 37

violent crimes

ice cream consumption

temperature

3

show the direction of causality

28 of 37

global warming

greenhouse gas emissions

3

show the direction of causality

29 of 37

global warming

greenhouse gas emissions

3

show the direction of causality

30 of 37

amount of grass

3

show the direction of causality

31 of 37

amount of grass

new grass seeding

increases

3

show the direction of causality

32 of 37

amount of grass

new grass seeding

increases

increases

3

show the direction of causality

33 of 37

amount of grass

new grass seeding

soil erosion

increases

increases

decreases

decreases

3

show the direction of causality

34 of 37

amount of grass

number of grazers

decreases

increases

3

show the direction of causality

35 of 37

amount of grass

new grass seeding

soil erosion

number of grazers

increases

decreases

increases

increases

decreases

decreases

3

show the direction of causality

36 of 37

show the direction of causality

amount of grass

new grass seeding

soil erosion

number of grazers

increases

decreases

increases

increases

decreases

decreases

hint: it’s usually part of a complex system

37 of 37

takeaway:

we can measure correlation

mathematically

but causation requires

logical / philosophical inference

(i.e. a deep understanding of complex systems,

data, experimental design, and statistics)