---
title: Snakes, Alcohol, and Checking the Residuals vs. Order Plot in Regression
description: Snakes, Alcohol, and Checking the Residuals vs. Order Plot in Regression
image: https://blog.minitab.com/hubfs/B2BML%20-%20NEW%20FILE%20MANAGER%20STRUCTURE/Blog%20Images/Imported_Blog_Media/snake-3.jpg
---

English

- [English](https://blog.minitab.com/en/?hsLang=en)
- [Français](https://blog.minitab.com/fr/?hsLang=en)
- [Deutsch](https://blog.minitab.com/de/?hsLang=en)
- [Português](https://blog.minitab.com/pt/?hsLang=en)
- [Español](https://blog.minitab.com/es/?hsLang=en)
- [日本語](https://blog.minitab.com/ja/?hsLang=en)
- [한국어](https://blog.minitab.com/ko/?hsLang=en)
- [中文（简体）](https://blog.minitab.com/zh/?hsLang=en)

- [![Icon Partners](https://blog.minitab.com/hubfs/WCM/Partners.png) Partners](https://www.minitab.com/en-us/company/partners/)
- [![Icon Contact](https://blog.minitab.com/hubfs/WCM/Contact.png) Contact](https://www.minitab.com/en-us/company/contact-us/)
- [![Icon Talk to Minitab](https://blog.minitab.com/hubfs/WCM/Phone.png) Talk to Minitab](https://www.minitab.com/en-us/talk-to-minitab/)
- [![Icon My Account](https://blog.minitab.com/hubfs/WCM/MyAcct.png) My Account](https://licensing.minitab.com/account/manage)

[![Minitab](https://blog.minitab.com/hubfs/WCM/minitab-corp-logo.svg)](https://www.minitab.com/en-us/)

- Products
  
  Back
  
  [Products](https://www.minitab.com/en-us/products/)
  
  [All Products](https://www.minitab.com/en-us/products/) 
    - [Minitab Solution Center](https://www.minitab.com/en-us/products/minitab-solution-center/)
    - [Minitab Statistical Software](https://www.minitab.com/en-us/products/minitab/)
    - [Minitab Connect](https://www.minitab.com/en-us/products/connect/)
    - [Minitab Model Ops](https://www.minitab.com/en-us/products/model-ops/)
    - [Minitab Education Hub](https://www.minitab.com/en-us/products/education-hub/)
    - [Minitab Engage](https://www.minitab.com/en-us/products/engage/)
    - [Minitab Workspace](https://www.minitab.com/en-us/products/workspace/)
    - [Real-Time SPC](https://www.minitab.com/en-us/products/real-time-spc/)
    - [Prolink Data Collection & SPC](https://www.minitab.com/en-us/products/prolink)
    - [Simul8 Discrete Event Simulation](https://info.minitab.com/en/new-to-simul8?hsLang=en)
    - [SPM](https://www.minitab.com/en-us/products/spm/)
- Solutions
  
  Back
  
  [Solutions](https://www.minitab.com/en-us/solutions/)
  
  [All Solutions](https://www.minitab.com/en-us/solutions/) 
    - [Analytics](https://www.minitab.com/en-us/solutions/analytics/)
    - [Statistics & Predictive Analytics](https://www.minitab.com/en-us/solutions/analytics/statistical-analysis-predictive-analytics/)
    - [Data Science & Machine Learning](https://www.minitab.com/en-us/solutions/analytics/data-science-machine-learning/)
    - [Business Analytics & Intelligence](https://www.minitab.com/en-us/solutions/analytics/business-analytics-intelligence/)
    - [Statistical Process Control](https://www.minitab.com/en-us/solutions/analytics/statistical-process-control/)
    - [Quality Analytics](https://www.minitab.com/en-us/solutions/analytics/quality-analytics/)
    - [Live Analytics](https://www.minitab.com/en-us/solutions/analytics/live-analytics/)
    - [Reliability & Life Data Analysis](https://www.minitab.com/en-us/solutions/analytics/reliability/)
    - [Discrete Event Simulation](https://info.minitab.com/en/new-to-simul8?hsLang=en)
    - [Process Mining](https://info.minitab.com/en/new-to-simul8?hsLang=en)
    - [Key Capabilities](https://www.minitab.com/en-us/solutions/key-capabilities/)
    - [Continuous Improvement](https://www.minitab.com/en-us/solutions/key-capabilities/continuous-improvement/)
    - [Data Integration & Data Prep](https://www.minitab.com/en-us/solutions/key-capabilities/data-integration-data-prep/)
    - [Diagramming & Mind Mapping](https://www.minitab.com/en-us/solutions/key-capabilities/diagramming-mind-mapping/)
    - [Digital Twins](https://info.minitab.com/en/new-to-simul8?hsLang=en)
    - [Model Deployment & ML Ops](https://www.minitab.com/en-us/solutions/key-capabilities/model-deployment-ml-ops/)
    - [Innovation & Project Management](https://www.minitab.com/en-us/solutions/key-capabilities/innovation-project-management/)
    - [Process Excellence: Detect, Correct & Prevent](https://www.minitab.com/en-us/solutions/key-capabilities/process-excellence/)
    - [Featured Industries](https://www.minitab.com/en-us/solutions/industry/)
    - [Academic](https://www.minitab.com/en-us/solutions/industry/academic/)
    - [Energy & Natural Resources](https://www.minitab.com/en-us/solutions/industry/energy-resources/)
    - [Government & Public Sector](https://www.minitab.com/en-us/solutions/industry/government/)
    - [Healthcare](https://www.minitab.com/en-us/solutions/industry/healthcare/)
    - [Insurance](https://www.minitab.com/en-us/solutions/industry/insurance/)
    - [Manufacturing & Industrial](https://www.minitab.com/en-us/solutions/industry/manufacturing-industrial/)
    - [Services](https://www.minitab.com/en-us/solutions/industry/service-industries/)
    - [Software & Technology](https://www.minitab.com/en-us/solutions/industry/software-technology/)
    - [Construction](https://www.minitab.com/en-us/solutions/industry/construction/)
    - [Featured Roles](https://www.minitab.com/en-us/solutions/role/)
    - [Engineering](https://www.minitab.com/en-us/solutions/role/engineering/)
    - [Business Analysis](https://www.minitab.com/en-us/solutions/role/business-analysts/)
    - [Information Technology](https://www.minitab.com/en-us/solutions/role/information-technology/)
    - [Supply Chain](https://www.minitab.com/en-us/solutions/role/supply-chain/)
    - [Customer Service & Contact Center](https://www.minitab.com/en-us/solutions/role/customer-service-contact-center/)
    - [Human Resources](https://www.minitab.com/en-us/solutions/role/human-resources/)
    - [Marketing](https://www.minitab.com/en-us/solutions/role/marketing/)
    - [Research and Development](https://www.minitab.com/en-us/solutions/role/research-and-development/)
- Resources & Services
  
  Back
  
  [Resources & Services](https://www.minitab.com/en-us/resources-services/)
  
  [All Resources & Services](https://www.minitab.com/en-us/resources-services/) 
    - [Resources](https://www.minitab.com/en-us/resources-services/resources/)
    - [Case Studies](https://www.minitab.com/en-us/resources-services/resources/case-studies/)
    - [eBooks & White Papers](https://www.minitab.com/en-us/resources-services/resources/ebooks-and-white-papers/)
    - [Blog](https://blog.minitab.com/blog/?hsLang=en)
    - [Data Sets](https://www.minitab.com/en-us/resources-services/resources/data-set/)
    - [Webinars & Events](https://www.minitab.com/en-us/resources-services/resources/events/)
    - [Education Hub](https://www.minitab.com/en-us/resources-services/resources/education-hub/)
    - [Services](https://www.minitab.com/en-us/resources-services/services/)
    - [Training](https://www.minitab.com/en-us/resources-services/services/training/)
    - [Deployment](https://www.minitab.com/en-us/resources-services/services/deployment/)
    - [Consulting](https://www.minitab.com/en-us/resources-services/services/statistical-consulting/)
    - [Self-Paced Learning](https://www.minitab.com/en-us/resources-services/services/self-paced-learning/)
    - [Continuing Education](https://www.minitab.com/en-us/resources-services/services/continuing-education/)
- Support
  
  Back
  
  [Support](https://www.minitab.com/en-us/support/)
  
  [Technical Support](https://www.minitab.com/en-us/support/) 
    - [Subscriptions & Activation](https://www.minitab.com/en-us/support/subscriptions-and-activation/)
    - [Minitab Quick Start](https://www.minitab.com/en-us/support/quick-start/)
    - [Training](https://www.minitab.com/en-us/resources-services/services/training/)
    - [Installation Support](https://www.minitab.com/en-us/support/installation/)
    - [Support Videos](https://www.minitab.com/en-us/support/videos/)
    - [Support Documentation](https://www.minitab.com/en-us/support/documents/)
    - [Software Updates](https://www.minitab.com/en-us/support/software-updates/)
    - [Product Downloads](https://www.minitab.com/en-us/support/downloads/)
    - [Support Policy](https://www.minitab.com/en-us/support/policy/)
- Company
  
  Back
  
  [Company](https://www.minitab.com/en-us/company/)
  
  [Company](https://www.minitab.com/en-us/company/) 
    - [About Us](https://www.minitab.com/en-us/company/our-company/)
    - [Leadership Team](https://www.minitab.com/en-us/company/leadership-team/)
    - [Partners](https://www.minitab.com/en-us/company/partners/)
    - [Careers](https://www.minitab.com/en-us/company/careers/)
    - [Contact](https://www.minitab.com/en-us/company/contact-us/)
    - [News](https://www.minitab.com/en-us/company/press-releases/)

[Try/Buy](https://www.minitab.com/en-us/try-buy/)

- [Statistics](https://blog.minitab.com/en/blog/tag/statistics)
- [Data Analysis](https://blog.minitab.com/en/blog/tag/data-analysis)
  
    - <https://www.minitab.com/en-us/>
- [Quality Improvement](https://blog.minitab.com/en/blog/tag/quality-improvement)

- [Subscribe](https://info.minitab.com/blog/subscribe?hsLang=en)

![Minitab](https://20853177.fs1.hubspotusercontent-na1.net/hubfs/20853177/minitab-corp-logo.svg?t=1755011311618)

## Notice

You are now leaving minitab.com.

 Click Continue to proceed to:

 Continue

 Go Back

# Snakes, Alcohol, and Checking the Residuals vs. Order Plot in Regression

[Kevin Rudy](https://blog.minitab.com/en/blog/author/kevin-rudy)  |  5/11/2012

 Topics: [Regression Analysis](https://blog.minitab.com/en/blog/tag/regression-analysis)

- [Share](https://www.linkedin.com/shareArticle?mini=true&url=https://blog.minitab.com/en/blog/the-statistics-game/snakes-alcohol-and-checking-the-residuals-vs-order-plot-in-regression)
- [Share](https://www.facebook.com/sharer.php?u=https://blog.minitab.com/en/blog/the-statistics-game/snakes-alcohol-and-checking-the-residuals-vs-order-plot-in-regression)

This past week, the History Channel premiered a new show called the "United Stats of America." No, that's not a typo. It's a show hosted by twin brothers who are both standup comedians and obsessed with statistics. Since I'm also obsessed with statistics (I'm still working on the standup comedy part), I thought I'd check it out to see if I could relate any of their stats to common applications of [Minitab Statistical Software](http://www.minitab.com/en-US/products/minitab/).

The show attempts to reveal some of the most interesting and surprising statistics in America. For example, only 8% of teenage boys use soap when they wash their hands. And once a year a meteor the size of a boulder hits the Earth with the descructive force of an atomic bomb (don't worry, 70% of the Earth is covered in water, so odds are you're okay). And on top of that, more Americans are killed by deer each year than snakes. In fact, snakes aren't nearly as dangerous as people think. Your odds of dying from a snake bite are about 1 in 50 million.

And the odds get even safer if you're sober.

Wait, did I just bring booze into this? Yes, yes I did. That's because 40% of people who are bitten by a snake *are also legally drunk*. So after I erased "Hike the Grand Canyon while drinking" from my bucket list, I thought about this stat and decided that it makes sense. If you're drunk, you're going to be slower and less aware, thus giving the snake a better opportunity to bite you. But this made me wonder, how much slower do you get while intoxicated? That sounded like a great question for Minitab's [regression analysis](http://www.minitab.com/en-us/Published-Articles/Advantages-of-Minitab-s-General-Regression-Tool/).

***NOTE:** The following experiment was made up by me for illustrative purposes. I didn't actually do any of this. But you can get my [purely illustrative data here](http://www.scribd.com/doc/93150780) if you want to follow along.*

On a clear summer morning, I gathered 40 people who knew their 100-yard-dash time. Then I randomly assigned each person a varying amount of alcohol to drink. When they were done, I recorded their Blood Alcohol Content (BAC) and made them run a 100-yard dash. I recorded the difference between the time they ran intoxicated and their regular 100-yard-dash time (Time Difference).  Here are the regression results.

![](https://blog.minitab.com/hubfs/B2BML%20-%20NEW%20FILE%20MANAGER%20STRUCTURE/Blog%20Images/Imported_Blog_Media/greg_bac_vs__difference-Jul-05-2025-11-26-16-0011-PM.jpg)

The p-value for BAC is less than 0.05 and our R-Squared value is 85.77%. I'd say we have a pretty good regression model! Of course, we're not done yet. There are assumptions to check! I recorded each runner one at a time and entered their data into Minitab in the order they were tested. So I should make a Residuals vs. Order plot to make sure the order of the runners didn't affect the results.

![](https://blog.minitab.com/hubfs/B2BML%20-%20NEW%20FILE%20MANAGER%20STRUCTURE/Blog%20Images/Imported_Blog_Media/residuals_vs_order_for_bac_w640.jpg)

The data should be randomly spread around 0. But wait, this plot doesn't look random at all!  Oops, I think I realized what happened. Remember when I said I did the experiment on a clear summer morning? Well, it took awhile to get through all 40 people, so that morning turned into a hot summer afternoon, which then turned into a cool summer evening. Runners that went early or late in the day didn't have to deal with the heat, so their times were faster than expected (negative residual) based on the model. The runners in the middle had to run in the heat, so their times were slower than expected (positive residual). We can plot the residuals versus the variable temperature to test this theory.

![](https://blog.minitab.com/hubfs/B2BML%20-%20NEW%20FILE%20MANAGER%20STRUCTURE/Blog%20Images/Imported_Blog_Media/residuals_from_time_difference_vs_temperature_w640.jpg)

Yep, the residuals definitely increase as temperature increases. So what do I do?  Well, one solution would be to redo the experiment somewhere with a constant temperature, like an indoor track. But if I don't have the time for that, I could also add temperature to the regression model.  Let's do that and see what happens.

![](https://blog.minitab.com/hubfs/B2BML%20-%20NEW%20FILE%20MANAGER%20STRUCTURE/Blog%20Images/Imported_Blog_Media/greg_bac_vs__difference_and_temperature-Jul-05-2025-11-26-13-7340-PM.jpg)

![](https://blog.minitab.com/hubfs/B2BML%20-%20NEW%20FILE%20MANAGER%20STRUCTURE/Blog%20Images/Imported_Blog_Media/residuals_vs_order_for_time_difference_good_w640.jpg)

All right, that looks much better! Our R-Squared value increased to 96.34% and our Residuals vs. Order plot looks good: the data are now randomly scattered around 0 with no patterns. 

So now that my fake experiment is concluded, I am actually wondering if anybody has ever done a real experiment like this. If not, do I have any volunteers?

*Photograph* * by Cotinis. * *Images licensed under Creative Commons Attribution-NoDervis 3.0.*

  

  

## You Might Also Like

<https://blog.minitab.com/en/blog/how-one-hotel-used-data-to-improve-guest-satisfaction?hsLang=en>

[How One Hotel Used Data to Improve Guest Satisfaction](https://blog.minitab.com/en/blog/how-one-hotel-used-data-to-improve-guest-satisfaction?hsLang=en)

[Brainstorm](https://blog.minitab.com/en/blog/tag/brainstorm)  | 9 Minute Read

<https://blog.minitab.com/en/blog/enhancing-accelerated-underwriting-efficiency-with-predictive-analytics?hsLang=en>

[Enhancing Accelerated Underwriting Efficiency with Predictive Analytics](https://blog.minitab.com/en/blog/enhancing-accelerated-underwriting-efficiency-with-predictive-analytics?hsLang=en)

[Regression Analysis](https://blog.minitab.com/en/blog/tag/regression-analysis)  | 3 Minute Read

<https://blog.minitab.com/en/blog/predictive-analytics-and-determining-patient-length-of-stay-at-time-of-admission?hsLang=en>

[Predictive Analytics and Determining Patient Length of Stay at Time of Admission](https://blog.minitab.com/en/blog/predictive-analytics-and-determining-patient-length-of-stay-at-time-of-admission?hsLang=en)

[Regression Analysis](https://blog.minitab.com/en/blog/tag/regression-analysis)  | 5 Minute Read

---

- [Careers](https://www.minitab.com/en-us/company/careers/)
- [Trust Center](https://www.minitab.com/en-us/trust-center/)
- [Suppliers](https://www.minitab.com/en-us/suppliers/)
- [Site Map](https://www.minitab.com/en-us/site-map/)

- [![linkedin](https://blog.minitab.com/hubfs/WCM/linkedin-1.png)](https://www.linkedin.com/company/minitab/)
- [![facebook](https://blog.minitab.com/hubfs/WCM/facebook.png)](https://www.facebook.com/Minitab/)
- [![youtube](https://blog.minitab.com/hubfs/WCM/youtube.png)](https://www.youtube.com/user/MinitabInc)
- [![instagram](https://blog.minitab.com/hubfs/WCM/instagram.png)](https://www.instagram.com/minitab/)

---

© 2025 Minitab, LLC. All Rights Reserved.

- [Terms of Use](https://www.minitab.com/en-us/legal/terms-of-use/)
- [Privacy Policy](https://www.minitab.com/en-us/legal/privacy-policy/)
- [Legal](https://www.minitab.com/en-us/legal/)

- Cookies Settings