1.7 Correlation

Correlation

  • A number between -1 and 1, denoted by \(\rho\) or \(r\)
  • The larger \(|r|\), the stronger the relationship
  • Only measures linear relationships

An array of 2x5 plots where the plots on the left have correlation 1.0 and -1.0, the plots in the second column have r=0.78 and r=-0.78, the plots in the third column have r=0.58 and r=-0.58, the plots in the fourth column have r=0.38 and r=-0.38, and the plots in the last column have r=0.12 and r=-0.12. In the first column, the points lie on straight lines of y = x and y = -x; as the correlation magnitude decreases, the points diffuse into a loose blob where there is only a slight positive/negative relationship between y and x with a lot more noise.

Correlation

  • A number between -1 and 1, denoted by \(\rho\) or \(r\)
  • The larger \(|r|\), the stronger the relationship
  • Only measures linear relationships

A collection of 13 plots of 142 points each. The first has a hole in the center; the second is a bullseye shape, the third is a circle-ish shape, the fourth is a dinosaur, the fifth is an array of about 9 blobs of data in a 3x3 grid, the sixth is a set of five horizontal lines, the seventh is a set of two thicker horizontal lines, the eighth is a set of five diagonal downward-slanting lines, the ninth is a set of five upward slanting lines, the tenth is a star shape, the eleventh is a set of five vertical lines, the twelfth is a set of two wider vertical lines, and the thirteenth is an x-shape. All of the plots have the same range of x and y, approximately the same means and standard deviations in x and y, and approximately the same correlation of -0.06. The plot is titled 'All of these datasets have about a -0.06 correlation'.

Correlation and Causation

A 3-panel stick-figure comic. In panel 1, the man says to a woman 'I used to think correlation implied causation.' The second panel shows him saying 'then I took a statistics class. Now I don't.' The third panel has the woman saying 'Sounds like the class helped.', with the man replying 'Well, maybe'.

Correlation doesn’t imply causation, but it does waggle its eyebrows suggestively and gesture furtively while mouthing ‘look over there’.

Causality Directions

RFK Jr cites paper in confirmation hearings (Jan 31, 2025) that claimed “[v]accinated children were significantly more likely than the unvaccinated to have been diagnosed” with autism and a variety of other neurodevelopmental disorders.

Dr. Cassidy’s evidence

“The title tells it all,” Cassidy said of the study, which was published in the journal Vaccine by researchers in Australia. “Vaccines are not associated with autism: An evidence-based meta-analysis of case-control and cohort studies.”

“You show me those scientific studies, and you and I can meet about it,” Kennedy said. “There are other studies as well, and I’d love to show those to you. There’s a study that came out last week of 47,000 9-year-olds in the Medicaid system in Florida — I think a Louisiana scientist called Mawson — that shows the opposite.”

RFK Jr.’s evidence

Causality Directions

What conspiracy theorists would like you to believe:

A causal diagram showing a positive causal association between vaccines and autism

Causality Directions

A valid point on the internet 🤯

A causal diagram showing a positive association between autism and science, and a causal association between science and childhood vaccines.

We can show causal relationships with vaccines, between randomized clinical trials and subsequent changes in life expectancy…

A causal diagram showing a positive association between childhood vaccines and adults.

Can’t We Fix This With Better Phrasing?

Samuel J. Gershman and Tomer D. Ullman “Causal Implicatures from Correlational Statements,” PLOS ONE 18, no. 5 (May 18, 2023): e0286067, https://doi.org/10.1371/journal.pone.0286067.

  • People infer causation from correlational statements, using the variable order as a directional indicator

    • Even with “X is associated with an increased risk of Y” language
    • Even when given the choice of non-causal interpretations, 47% of people still use causal interpretations

In summary, certain correlational statements are associated with an increased probability of causal implicature. To be clear, we are not implying that these correlational statements cause causal implicature, but rather that they are correlated with causal implicature. In other words, correlation does not imply causation, but it does sometimes “imply” causation.

Mental Strategies to Counter Correlation “Implies” Causation

Check the experimental design:

  • Random assignment of treatments \(\rightarrow\)
    Causal inferences are ok!

  • Representative sample of the population \(\rightarrow\)
    Generalization is ok!

If it’s not an experiment with random assignment,
consider other possible explanatory factors

  • Could causality run the other way?

  • Are there “lurking” variables that might explain some of the association?

A black cat lurking behind some grass. Only the tips of its ears are clearly visible.

Lurking variables are even more scary than lurking cats!

Spurious Correlation In-Class Activity

  1. Find a partner and grab a die.

  2. Roll a die 6 times each.

  3. Enter your results in the spreadsheet, along with your full name.
    The correlation between your results and your partners will be automatically calculated.

  4. Roll the die 6 additional times each.
    The correlation for all 12 data points your team generated will be automatically calculated.

  5. Are you surprised by the correlations?

  6. Return the die to the front.

  7. Answer the questions in the Canvas Survey.

Link to spreadsheet

Or see the Canvas activity 3.1.p Spurious Correlation

Spurious Correlation In-Class Activity Explained

Of 10,000 trials,

6 pairs: About 1.64% of trials have \(|r|\geq .9\)

12 pairs: About 0.00% of trials have \(|r|\geq .9\)

Spurious Correlations

Be suspicious if

  1. There aren’t many data points and/or data points have been cherry-picked in some way
  2. There are a large number of possible variables to compare
  3. Data were gathered from different places (not a deal-breaker, just reason for caution)

Example: 2008 Recession Economic Policy

Economists Reinhart and Rogoff published a paper, Growth in a Time of Debt (2010), arguing:

median growth rates for countries with public debt over 90 percent of GDP are roughly one percent lower than otherwise; average (mean) growth rates are several percent lower.

Issues:

  • Years of high debt and average growth were selectively excluded from the data set
  • Countries’ GDP growth rates were not properly weighted
  • Summary table excludes high-debt and average-growth countries

Read more (or listen to the podcast) and remember, friends don’t let friends use Excel for data analysis!

References

Gershman, Samuel J., and Tomer D. Ullman. “Causal Implicatures from Correlational Statements.” PLOS ONE 18, no. 5 (May 18, 2023): e0286067. https://doi.org/10.1371/journal.pone.0286067.