Course Outline

list High School / Advanced Statistics and Data Science I (ABC)

Book
  • High School / Advanced Statistics and Data Science I (ABC)
  • High School / Statistics and Data Science I (AB)
  • High School / Statistics and Data Science II (XCD)
  • College / Statistics and Data Science (ABC)
  • College / Advanced Statistics and Data Science (ABCD)
  • College / Accelerated Statistics and Data Science (XCDCOLLEGE)
  • Skew the Script: Jupyter

9.11 Limitations to Keep in Mind

Regression and correlation are powerful tools for modeling relationships between variables. But each must be used thoughtfully. It is important always to interpret the findings in context, and use everything else you know about the context to help you draw reasonable conclusions based on the data.

Correlation Does Not Imply Causation

Most important to bear in mind is that correlation does not imply causation, something you no doubt have heard before. Just the fact that an explanatory and outcome variable are correlated does not necessarily mean we understand what causes this variation. And in this sense, regression is no different from correlation.

A circle on the left is labeled Explanatory with an arrow pointing from it to a circle on the right labeled Outcome. A question mark lies in the middle of the path of the arrow.

There are many examples of this. Children’s shoe size is correlated with their scores on an achievement test, but neither variable causes the other. An increase in age of the child, a confounding variable, causes both shoe size and achievement to go up.

Three circles arranged in an inverted triangle. The bottom circle is labeled Age, and has an arrow pointing from it to the circle in the top left labeled Shoe Size, and another arrow pointing from it to the circle in the top right labeled Achievement.

Also keep in mind that a relationship can be bidirectional, meaning each variable has a causal effect on the other. Reading skills and writing skills tend to be highly correlated. It might be that reading a lot causes writing to improve. But it’s also plausible that practicing writing might help students improve their reading skills.

On the left, a circle is labeled as Reading with an arrow pointing from it to a circle on the right labeled as Writing. An arrow is also pointing from the Writing circle to the Reading circle.

As in all things, we should interpret statistics like the correlation coefficient and regression slope with common sense. The tendency to wear skimpy clothing is correlated with higher temperatures. In this case the relationship is real, but the causal direction must be sensibly interpreted. Hiking up the temperature might indeed cause people to shed their clothing. But taking off clothes is not going to cause the temperature to go up.

On the left, a circle labeled Temperature with an arrow pointing from it to a circle on the right labeled as Skimpy Clothes. A red arrow is also point from the Skimpy Clothes circle to the Temperature circle, but has an X over it to show that there is no causal connection in that direction.

Comic regarding correlation versus causation

Correlation. (n.d.). Retrieved from https://xkcd.com/552/

Thumb length measured in millimeters is going to be perfectly correlated with thumb length measured in centimeters. The points will be perfectly laid out on a straight line. But does spotting this relationship get us any closer to understanding the DGP that produces variation in thumb length? Of course not.

Disambiguating causal relationships and controlling for possible confounds is not achievable through statistical analysis alone. Statistics can help, and correlation can certainly suggest that there might be causation there. But research design is a necessary tool. Random assignment of equivalent objects to conditions that do and don’t receive some treatment is often required to figure out whether a particular relationship is causal or not.

Are All Lines Straight?

Another thing to point out is that the models we have considered in this chapter are linear models. We fit a straight line to a scatter of points, and then look to see how well it fits by measuring residuals around the regression line.

But sometimes a straight line is just not going to be a very good model for the relationship between two variables.

Take this graph from a study of the relationship of body weight to risk of death (from McGee DL, 2005, Ann Epidemiol 15:87 and Adams KF, 2006, N Engl J Med 355:763). Being underweight and being overweight both increase the risk of death, whereas being in the middle reduces that risk.

A line chart of the distribution of absolute risk of death and body mass index. The graph is roughly U-shaped.

If you ignored the shape of the relationship and overlaid a regression line, the line would probably be close to flat, indicating no relationship. But if you did that you would be missing an important systematic curvilinear relationship.

Before fitting a linear regression model, look at the relationship and see if a linear function would be a sensible model. If it isn’t, think about a different model. Mathematicians have lots of models to offer beyond just the simple straight line.

Do Regression Lines Go On Forever?

Comic about regression lines

Source of picture: (http://smbc-comics.com/comic/2011-08-05)

Finally, there is the problem of extrapolation. We have already pointed out from our regression of Thumb on Height that, according to the model, someone who is 0 inches tall would have a thumb length of -3.33 millimeters. Obviously, the regression model only works within a certain range, and it is risky to extend that range beyond where you have substantial amounts of data.

In general, common sense and a careful understanding of research methods must be applied to the interpretation of any statistical model.

Mid-Course Survey #2

You’re two-thirds through the book! Please tell us about your experience so far. (Estimated time: 5 minutes)

Responses