659
Views
4
CrossRef citations to date
0
Altmetric
Teacher’s Corner

From Black Box to Shining Spotlight: Using Random Forest Prediction Intervals to Illuminate the Impact of Assumptions in Linear Regression

, &
Pages 414-429 | Received 19 Feb 2022, Accepted 15 Jul 2022, Published online: 07 Oct 2022
 

Abstract

We introduce a pair of Shiny web applications that allow users to visualize random forest prediction intervals alongside those produced by linear regression models. The apps are designed to help undergraduate students deepen their understanding of the role that assumptions play in statistical modeling by comparing and contrasting intervals produced by regression models with those produced by more flexible algorithmic techniques. We describe the mechanics of each approach, illustrate the features of the apps, provide examples highlighting the insights students can gain through their use, and discuss our experience implementing them in an undergraduate class. We argue that, contrary to their reputation as a black box, random forests can be used as a spotlight, for educational purposes, illuminating the role of assumptions in regression models and their impact on the shape, width, and coverage rates of prediction intervals.

Supplementary Materials

Supplementary materials include 1) additional examples from the simulation app, illustrating different scenarios involving violations of model assumptions, 2) full results from the student response survey, and 3) instructions for the lab activity accompanying the labs.

Acknowledgments

We acknowledge and thank two anonymous reviewers, an associate editor and an editor, whose suggestions helped us strengthen the apps and the article.

Disclosure Statement

The authors report there are no competing interests to declare.

Log in via your institution

Log in to Taylor & Francis Online

PDF download + Online access

  • 48 hours access to article PDF & online version
  • Article PDF can be downloaded
  • Article PDF can be printed
USD 61.00 Add to cart

Issue Purchase

  • 30 days online access to complete issue
  • Article PDFs can be downloaded
  • Article PDFs can be printed
USD 106.00 Add to cart

* Local tax will be added as applicable

Related Research

People also read lists articles that other readers of this article have read.

Recommended articles lists articles that we recommend and is powered by our AI driven recommendation engine.

Cited by lists all citing articles based on Crossref citations.
Articles with the Crossref icon will open in a new tab.