# A lesson about correlation and causation

Besides yesterday being Mothers’ Day yesterday, I had a lot of grant stuff to do, which means that this one will be a quickie. On Saturday, a reader sent me a link to one of the most useful sites I’ve ever encountered. I realize that over the weekend it’s spread around the skeptical blogosphere like the proverbial wildfire, which is unfortunate (for me) given that I’ve made it a personal rule that I don’t post on the weekend any more, barring amazing developments. Still, this one tempted me. It’s a website called Spurious Correlations, and it is exactly what it claims to be. Its usefulness wil become apparent quickly.

One of the key arguments—if not the key argument—made by antivaccinationists is that correlation of the onset of the “autism epidemic” (i.e., the large increase in prevalence of autism and autism-spectrum disorders beginning in the 1990s) with the expansion of the vaccine schedule is strong evidence of causation. In other words, correlation equals causation. Of course, correlation can equal causation, but you need to have a lot of other evidence to show that. Most correlations don’t equal causation, and that’s where Spurious Correlations comes in. It has thousands of such spurious correlations, complete with graphs, numbers, and even correlation coefficients, many of which are well about 0.9, which is considered a very strong correlation indeed. For example, on the front page right now is a correlation between U.S. spending on space, science, and technology and suicides by hanging, strangulation, and suffocation, and the correlation coefficient (r) is 0.992082 (for a perfect correlation, r=1.0; no correlation, pure randomness, r=0; negative numbers mean a negative correlation in which one variable’s increase is correlated with the other variable’s decrease):

Amusingly, you can look for your own spurious correlations. I wanted to look for more spurious correlations to autism, but I couldn’t find it. So instead I looked for things that correlate with per capita high fructose corn syrup consumption (because HFCS is considered evil in alt-med circles) and found it correlated with (among other things):

Clearly, if I ever go back to doing abdominal surgery I’ll have to be careful about operating on people who consume a lot of HFCS, and people who consume a lot of HFCS need to stay indoors during thunderstorms. Meanwhile, HFCS demonstrated strong negative correlations with (among other things):

Hmmm. Perhaps there is something to all that HFCS fearmongering. After all, as HFCS consumption falls, look at how there are more lawyers, more bomedical doctorates, and less suicide by hanging!

Ah, you ask, but what doesn’t correlate with HFCS consumption? Ask no more! Here they are:

I think that last one was messed up by the spike in deaths in 2005 due (clearly) to Hurricane Katrina. As for the rest, if you want to go hang gliding, work with agricultural machinery, or go canoeing or kayaking, drink those sugary drinks up!

Of course, the reason skeptics are suspicious of correlations is not because correlation never equals causation. It’s just that we realize that there really are lots of spurious correlations like this, far more than the average person realizes. A person who hasn’t taken the time to understand just how common such correlations are and how easy it is to mine various data to find them will find correlations compelling, particularly if they have a modicum of seeming plausibility, as the vaccine-autism link once did before so many studies demolished it. A skeptic, however, will realize that such a correlation is only a starting point that probably doesn’t mean anything but might. Further evidence, in the form of testing other data sets, doing controlled experiments (when they are possible to do), and other means of testing are essential to determine whether what is observed is just a spurious correlation as opposed to a correlation that really does imply causation. We also know that confounding factors can easily lead to the appearance of correlation, such as steady increases in two different variables over time that just happen to occur over the same time frame but have nothing to do with each other, such as, for example, computer or cell phone use and autism. This sort of spurious correlation can lead to other correlations, such as increasing wifi exposure and autism, given that the increase in computer and Internet use over the last 20 years has led to the proliferation of wifi hotspots and increasing exposure to radio waves from cell phones. The list goes on and on.

I really wanted to go into the data and see if, for instance, autism really does correlate with vaccination or whether brain cancer correlates with mobile phone use. More importantly, I wanted to find a bunch of ready-made spurious correlations for those two conditions for me to use to demonstrate the principle that just because there’s a correlation does not mean the relationship is causal, such as when I suggest that autism also correlates with Internet usage, home computer ownership, CD sales (at least until around 10 years ago, when CD sales started to take a nosedive and sales of downloadable digital music took off), and a variety of other conditions. Similarly, given that the incidence of brain cancers doesn’t appear to be significantly increasing—actually, quite the opposite, it appears to be decreasing—the suggestion that cell phone radiation causes brain cancer seems no more convincing that the long-refuted claim that vaccines cause autism, and that’s leaving aside the monumental physical and biological implausibility of the claim on the basis of simple physics alone.

Then I thought: Maybe that’s the point. If this website had the data for the sorts of things for which cranks often confuse correlation with causation, like cancer, autism, asthma, and autoimmune diseases (to name a few), then the site would risk going from being a useful tool to teach critical thinking skills by allowing readers to explore and find the most ridiculous spurious correlations they can, thus demonstrating that correlation is not the same thing as causation, no matter how much the human brain likes to grasp onto such correlations, to a site that cranks can data mine to support their favorite pet hypotheses. That, of course, would be bad. On the other hand, it would allow people with me to demonstrate all the other things that correlate with autism prevalence, thus allowing me to ask antivaccinationists why they think it’s vaccines that are the culprit rather than all the other things or that correlate with cancer, thus allowing me to ask why it has to be cell phones or any of the other bogeymen on whom cancer is blamed rather than all the other—heh, heh—spurious correlations. Of course, to cranks their correlations can’t be spurious and must be strong evidence of causation, while all those other correlations are obviously nonsense.

In any case, I think it would be a fun exercise if you, my readers, would play around with the Spurious Correlations site and find the most interesting or bizarre spurious correlations for use in educating people in critical thinking. And, remember, the per capita consumption of cheese in the US correlates strongly with the number of people who died by becoming tangled in their bedsheets (r=0.947091). So, please, people whatever you do, don’t eat cheese right before going to bed. Oh, and if you are unfortunate enough to be confined to a wheelchair, either temporarily or permanently, whatever you do, don’t you eat cheese either!

## Comments

1. #1 Julian Frost
Gauteng East Rand
May 12, 2014

I saw that website last night. I’m still grinning about the graphs. And it’s amazing how strong the correlations can be. A lot were over 90%.

2. #2 Renate
May 12, 2014

So, please, people whatever you do, don’t eat cheese right before going to bed. Oh, and if you are unfortunate enough to be confined to a wheelchair, either temporarily or permanently, whatever you do, don’t you eat cheese either!

I knew my aversion against cheese would be proven to be usefull someday.

3. #3 The Very Reverend Battleaxe of Knowledge
May 12, 2014

My introduction to this was many years ago when I got my first “scientific” calculator (A TI-35, maybe?). You could put a bunch of points into it and get correlation, least-squares best-fit line through them, etc. No matter how random a collection of points I put in I could never get a correlation below ~.75.

Ever since, I’ve been very skeptical about “correlations” that weren’t >.99. Now it looks like I have to be skeptical of those, too.

4. #4 Denice Walter
May 12, 2014

The rise in numbers of diagnosed autistics most likely also correlates with the rise in numbers of: fuel efficient vehicles, airport screening personnel and legalised same sex marriages.

Autism rates increased as the number of required vaccinations increased (1980-2000- yes, that equals more mercury) but continued to rise even after these compounds were eliminated ( less mercury). Plot THAT one.

Autism rates rose alarmingly after Pink Floyd stopped recording. They also rose after the demise of Freddie Mercury ( less mercury).

Confusing correlation with causation is the hallmark of quite a few websites which we all know and *love*:
– today John Stone continues to perseverate abour Brian Deer
– and Jake Crosby harasses the Lancet’s new administrator about un-retracting AJW’s infamous … study.
– TMR appears to recruiting new TMs as contributors.

The loudness of anti-vax groupies correlates inversely with the amount of time given to them by the media and correlates positvely with the number of years it’s been since AJW as regarded as anything but a farce by most …
Oh wait, those makes sense.

5. #5 Denice Walter
May 12, 2014

Pardonnez les typos , s.v.p.

6. #6 Eric Lund
May 12, 2014

Jake Crosby harasses the Lancet’s new administrator about un-retracting AJW’s infamous … study.

How does a journal retract a retraction without losing credibility? It implies that the journal was unduly pressured into either retracting the paper, or retracting the retraction. Either way, the truth starts to look political. Not that I expect Jake to understand this, but it should be self-evident to a journal editor.

7. #7 Helen Taffs
May 12, 2014

I have used the global warming vs number of pirates graph from the Church of the Flying Spaghetti Monster’s site to try and illustrate correlation vs causation. Unfortunately, the anti-science folks only read what supports their opinions and dismiss the rest as the gum’mint conspiracy to hold us in bondage to Big Pharma and so on.

8. #8 Denice Walter
May 12, 2014

@ Eric Lund:

The cited e-mail exchange between Jake and Prof Wedzicha is exactly what you’d expect- priceless.

For some unfathomable reason, he maintains that she is ” keeping it retracted for no given reason” DESPITE what her quite clear explanation.

Mark ‘reading English’ amongst Jake’s skills in need of immediate attention

9. #9 palindrom
May 12, 2014

Helen@7 — the hard-core denialists are so far down the rabbit hole of conspiracist ideation that no argument will persuade them.

All who follow this issue will rejoice in John Oliver’s snippet, linked from HotWhopper today. And if you don’t know the HotWhopper blog, you’ll probably really enjoy it.

10. #10 Narad
May 12, 2014

today John Stone continues to perseverate abour Brian Deer

I can scarcely imagine what thought-fragments coalesced to form this production:

“Who knows what is holding the court which originally said it would report back within six months ? … To the best of my knowledge there is still no date named.”

Not. How. It. Works.

11. #11 Eric Lund
May 12, 2014

For some unfathomable reason, he maintains that she is ” keeping it retracted for no given reason” DESPITE what her quite clear explanation.

I think we established some time ago that Mr. Crosby rejects our reality and prefers to substitute his own. In his version of reality, there is no valid reason for Wakefield et al. (1998) to have been retracted in the first place, and therefore cannot be a valid reason for keeping it retracted. It’s a perfectly logical position if you take his premises as axioms, which for obvious reasons most of us don’t. Therefore I don’t expect him to understand the situation.

12. #12 Denice Walter
May 12, 2014

Eric, he is under the impression that the GMC findings “against the Wakefiled et al paper were overturned by the High Court” ( links to Mitting about Walker-Smith).

Jake started on the new ombudsman in April.

Seriously. he’s working on a doctorate? HOW?

13. #13 Narad
May 12, 2014

Mark ‘reading English’ amongst Jake’s skills in need of immediate attention

And writing it:

“The judge found only one misleading statement in the paper, but it was not because investigations undertaken were unethical experiments described as gaining ethical approval in the paper according to the now-overturned findings on which the paper’s retraction was based.”

14. #14 Denice Walter
May 12, 2014

@ Narad:

Oh I know.

It appears that he has problems in assessing points of global import as well as their ramifications whenever he interprets material in this realm of inquiry.

He misses the central idea of Mitting.
What a clueless wonder he is!

15. #15 Mark Thorson
May 12, 2014

I’ve been wondering how much weight to give this paper. It looks to me like the conclusions the authors report may be due to the Texas sharpshooter fallacy.

http://www.cumc.columbia.edu/dept/sergievsky/pdfs/contributionofvascular.pdf

It’s not that there isn’t a plausible reason for cholesterol to be associated in some way with Alzheimer’s Disease. The highest genetic risk factor (the APOE4 allele) codes for an apolipoprotein involved with transport of cholesterol and fats. But I’m aware of other studies which seem to show a benefit to high total cholesterol in old age with regard to AD and/or dementia, so I wonder how seriously I should take this contradictory study.

16. #16 Eric Lund
May 12, 2014

Narad @13: I’ve read that quoted sentence several times now, and I’m still not sure what Crosby is trying to say. There was (according to the judge, who it goes without saying isn’t qualified to evaluate the scientific merit) one false or misleading statement in the paper, and it wasn’t the claim that the study had the required ethics approvals (which it didn’t). At least one of those two statements must be false. He also seems to think that the retraction was based on the judge’s finding, rather than the separate scientific investigation that had already taken place, and that the judicial finding in question applied to Wakefield, not just Walker-Smith (which IIRC was what happened: the appeals court found some technicality that let Walker-Smith off the hook). That’s some primo word salad there.

17. #17 Antaeus Feldspar
May 12, 2014

“The judge found only one misleading statement in the paper, but it was not because investigations undertaken were unethical experiments described as gaining ethical approval in the paper according to the now-overturned findings on which the paper’s retraction was based.”

There is a moment in the movie “Dracula: Sovereign of the Damned” where the lead characters realize that they can pinpoint the location of Dracula, because if they plot on a map the locations where he’s been attacking people, and join the points with lines, it forms the shape of a bat.

I mention this because I suspect that one might get a similar shape by trying to diagram that sentence of Jake’s.

18. #18 Narad
May 12, 2014

I mention this because I suspect that one might get a similar shape by trying to diagram that sentence of Jake’s.

I can never remember whether <pre> works.

(ROOT
(S
(S
(NP (DT The) (NN judge))
(VP (VBD found)
(NP
(NP (RB only) (CD one) (JJ misleading) (NN statement))
(PP (IN in)
(NP (DT the) (NN paper))))))
(, ,)
(CC but)
(S
(NP (PRP it))
(VP (VBD was)
(SBAR (RB not) (IN because)
(S
(NP
(NP (NNS investigations))
(VP (VBN undertaken)))
(VP (VBD were)
(NP
(NP (JJ unethical) (NNS experiments))
(VP (VBN described)
(PP (IN as)
(S
(VP (VBG gaining)
(NP
(NP (JJ ethical) (NN approval))
(PP (IN in)
(NP (DT the) (NN paper))))
(PP (VBG according)
(PP (TO to)
(NP
(NP (DT the) (JJ now-overturned) (NNS findings))
(SBAR
(WHPP (IN on)
(WHNP (WDT which)))
(S
(NP
(NP (DT the) (NN paper) (POS ‘s))
(NN retraction))
(VP (VBD was)
(VP (VBN based))))))))))))))))))
(. .)))

19. #19 Narad
May 12, 2014

Rats.

20. #20 Narad
May 12, 2014

The parser exhausted its search space limit (of 20000 passive edges); try non-exhaustive parsing or a shorter (or less ambiguous) sentence.”

21. #21 ann
May 12, 2014

Narad @13: I’ve read that quoted sentence several times now, and I’m still not sure what Crosby is trying to say.

After extensive lucubrations, I have concluded that it’s:

“The judge found the statement about ethics approval to be misleading, but not for the reasons stated in the GMC panel’s decision, on which the Lance’ts retraction of the paper was based.”

22. #22 herr doktor bimler
May 12, 2014

the lead characters realize that they can pinpoint the location of Dracula, because if they plot on a map the locations where he’s been attacking people, and join the points with lines, it forms the shape of a bat.s:

Clearly the inspiration for Borges’ “Death and the Compass”.

23. #23 Narad
May 12, 2014

Graphical tree. Pardon me while I run this past a friend who specializes in this sort of thing.

24. #24 Rick
May 12, 2014

Typo on the lightning correlation, a dash was hit instead of an equal sign. Normally I’d never comment on a minor typo, but it would imply negative correlation as-is.

“Deaths caused by lightning (r-0.805254)”

That site is a great find, very amusing to this stats geek.

25. #25 ann
May 12, 2014

Nice tree.
__________

Lucubrations sleeps with the fishes.***

***(It’s a Sicilian message. But it’s not directed toward anyone here.)

26. #26 Jessica S
May 12, 2014

I’m somewhat alarmed by how many people die by becoming tangled in their bedsheets! Who knew? Reminds me of a show we watched once, Dead Like Me, I think it was called? It was troubling how many ways a person can die in a “freak” accident.

27. #27 Ivan Ilyich
Oakland
May 12, 2014

There is a perfect correlation between giving a Space Shuttle a name beginning with “C” and catastrophic loss of the shuttle.

28. #28 ebohlman
http://turnipsandpotatoes.wordpress.com
May 12, 2014

Although it didn’t seem to be present on the site, I’ve always felt that the relationship between autism prevalence and the length of basketball shorts has never been properly explored.

29. #29 Orac
May 12, 2014

Typo on the lightning correlation, a dash was hit instead of an equal sign. Normally I’d never comment on a minor typo, but it would imply negative correlation as-is.

Nonsense. You’re being pedantic, and regular readers know what I think of pedants who nitpick typos. (Hint: It isn’t good.)

30. #30 Calli Arcale
http://fractalwonder.wordpress.com
May 12, 2014

Ivan — it gets creepier.

Not only did both C-named Shuttles perish, but NASA has a bizarre streak of bad luck in the month of January:

* The first crewed Apollo flight was AS-204, scheduled for February 27, 1967. However, a launch dress rehearsal with the capsule fully pressurized on January 27 resulted in a fire that killed all three crewmen.
* STS-51L, the final flight of Challenger, launched January 28, 1986 after numerous scrubs and other delays, and exploded 73 seconds into the flight killing all hands.
* STS-107, the final flight of Columbia, launched January 16, 2003 and was destroyed on reentry a couple of weeks later.

There have been a few other January flights that went off just fine, but even staunchly rational engineers talk sometimes of a “January curse”.

31. #31 Narad
May 13, 2014

STS-107, the final flight of Columbia, launched January 16, 2003 and was destroyed on reentry a couple of weeks later.

In February.

32. #32 Calli Arcale
http://fractalwonder.wordpress.com
May 13, 2014

Yes, but that actually makes it even creepier, Narad. If you look at the dates, January 27, January 28, and February 1 are within the space of just one week. Every year, NASA has a day of remembrance at the end of January or the beginning of February. It is perhaps somewhat convenient that the anniversaries of these deaths are so close to each other, but I’m told it makes for a very somber mood at NASA on that day.

33. […] saw this linked from Respectful Insolence yesterday and it’s just a hoot.  Most of us have probably heard the phrase […]

34. #34 rancidbrainmatter
May 13, 2014

You are too nasty about friendly notes on typos. It isn’t pedantic when the meaning could be altered. You come off like a spoilt brat. Yes, yes, it’s YOUR bloggy and you can do whatever you want with it. Good for you.

Why not just say, “oops, fixed it”. Many commenters correct their own typos, especially when meaning is affected (effected?–nah) as in when DW left the “g” off of “grapes”–although in that case the context was hilarious. Point is, she acknowledged it.

35. #35 Sander Greenland
UCLA
May 19, 2014

This site is all over the web. I think the deeper story here is gullibility to spurious statistical ‘facts’: Do you really think over 800 people died from getting tangled in their bedsheets in the U.S. in 2008, increasing 150% since 2000? It cites the CDC as the source of this factoid. However the CDC website and downloads I searched for show nothing on the topic. If it were true such deaths would compose over 1/2 % of all accidental deaths, equal or exceeding the number of maternal deaths in childbirth and the number of deaths from firearm accidents.

There are many other dubious plots at that site, spreading faster than real news.
Oh well, such is statistics in the age of Karl Rove. As Steven Wright (?) said, “67.3% of statistics are made up on the spot.”

New comments have been temporarily disabled. Please check back soon.