---
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
---

- [Partners](https://www.minitab.com/en-us/company/partners/)
- [Contact](https://www.minitab.com/en-us/company/contact-us/)
- [Talk to Minitab](https://www.minitab.com/en-us/talk-to-minitab/)
- [My Account](https://licensing.minitab.com/account/manage)

<https://blog.minitab.com/?hsLang=en>

 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) [Scytec Data Collection & OEE](https://www.minitab.com/en-us/products/scytec-data-collection-and-oee/) [Minitab Simul8](https://www.minitab.com/en-us/products/simul8/) [SPM](https://www.minitab.com/en-us/products/spm/)

 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://www.minitab.com/en-us/products/simul8/)

[Key Capabilities](https://www.minitab.com/en-us/solutions/key-capabilities/) [Automated Data Collection](https://www.minitab.com/en-us/solutions/key-capabilities/automated-data-collection/) [Advanced Design of Experiments](https://www.minitab.com/en-us/solutions/key-capabilities/advanced-design-of-experiments-omars/) [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://www.minitab.com/en-us/solutions/key-capabilities/digital-twins/) [Innovation & Project Management](https://www.minitab.com/en-us/solutions/key-capabilities/innovation-project-management/) [Model Deployment & ML Ops](https://www.minitab.com/en-us/solutions/key-capabilities/model-deployment-ml-ops/) [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/) [Construction](https://www.minitab.com/en-us/solutions/industry/construction/) [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/) [Pharmaceuticals](https://www.minitab.com/en-us/solutions/industry/pharmaceuticals/) [Services](https://www.minitab.com/en-us/solutions/industry/service-industries/) [Software & Technology](https://www.minitab.com/en-us/solutions/industry/software-technology/)

[Featured Roles](https://www.minitab.com/en-us/solutions/role/) [Engineering](https://www.minitab.com/en-us/solutions/role/engineering/) [Business Analysts](https://www.minitab.com/en-us/solutions/role/business-analysts/) [Research & Development](https://www.minitab.com/en-us/solutions/role/research-and-development/) [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/)

 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

[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

[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/)

[Start a free trial](https://www.minitab.com/en-us/products/minitab/free-trial/)

[Start a free trial](https://www.minitab.com/en-us/products/minitab/free-trial/)

- [Partners](https://www.minitab.com/en-us/company/partners/)
- [Contact](https://www.minitab.com/en-us/company/contact-us/)
- [Talk to Minitab](https://www.minitab.com/en-us/talk-to-minitab/)
- [My Account](https://licensing.minitab.com/account/manage)

[← *Return to blog home*](https://blog.minitab.com/en/blog)

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

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

---

Written by **Kevin Rudy**

Published **May 11 2012**

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

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.*

  

  

[Back to Top of Page](https://blog.minitab.com/en/blog/the-statistics-game/snakes-alcohol-and-checking-the-residuals-vs-order-plot-in-regression#main-content)

Keep up with us

On this page

Published

 May 11 2012

Share

- Copy Link
- [Facebook](https://www.facebook.com/sharer/sharer.php?u=)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=)
- [Twitter](https://twitter.com/intent/tweet?url=)

[Minitab for manufacturing →](https://www.minitab.com/en-us/solutions/industry/manufacturing-industrial/)

## Discover More

### [![How to Increase Manufacturing Capacity](https://blog.minitab.com/hubfs/manufacturingcapacity.jpg) How to Increase Manufacturing Capacity MANUFACTURING](https://blog.minitab.com/en/blog/how-to-increase-manufacturing-capacity?hsLang=en)

### [![“Soft” Type II Savings: How To Bring Them to the P&L](https://blog.minitab.com/hubfs/SoftSavings_CI-CSuite.png) “Soft” Type II Savings: How To Bring Them to the P&L BANKING AND FINANCE](https://blog.minitab.com/en/blog/soft-type-ii-savings-how-to-bring-them-to-the-profit-and-losses?hsLang=en)

### [![What Causes Manufacturing Scrap? Common Causes and How to Diagnose Them](https://blog.minitab.com/hubfs/lilian-do-khac-EyqUxJuOb1Q-unsplash.jpg) What Causes Manufacturing Scrap? Common Causes and How to Diagnose Them MANUFACTURING](https://blog.minitab.com/en/blog/what-causes-manufacturing-scrap?hsLang=en)

1829 Pine Hall Rd, State College,  
PA 16801, United States  
+1 814-238-3280

Join our Newsletter

Stay in touch with the fast-paced analytics world. All insights, no fluff.

#### Industries

- [Academic](https://www.minitab.com/en-us/industries/academic/)
- [Energy & Natural Resources](https://www.minitab.com/en-us/industries/energy-natural-resources/)
- [Government & Public Sector](https://www.minitab.com/en-us/industries/government-public-sector/)
- [Healthcare](https://www.minitab.com/en-us/industries/healthcare/)
- [Insurance](https://www.minitab.com/en-us/industries/insurance/)
- [Manufacturing & Industrial](https://www.minitab.com/en-us/industries/manufacturing-industrial/)
- [Services](https://www.minitab.com/en-us/industries/services/)
- [Software & Technology](https://www.minitab.com/en-us/industries/software-technology/)
- [Construction](https://www.minitab.com/en-us/industries/construction/)

#### Solutions

- [Digital Transformation](https://www.minitab.com/en-us/solutions/digital-transformation/)
- [Quality Improvement](https://www.minitab.com/en-us/solutions/quality-improvement/)
- [AI-enabled Analytics](https://www.minitab.com/en-us/solutions/ai-enabled-analytics/)
- [Process Optimization](https://www.minitab.com/en-us/solutions/process-optimization/)
- [Risk Reduction](https://www.minitab.com/en-us/solutions/risk-reduction/)
- [Workforce Enablement](https://www.minitab.com/en-us/solutions/workforce-enablement/)
- [Research and Development](https://www.minitab.com/en-us/solutions/research-development/)

#### Company

- [Careers](https://www.minitab.com/en-us/company/careers/)
- [Legal](https://www.minitab.com/en-us/company/legal/)
- [Terms of Use](https://www.minitab.com/en-us/company/legal/terms-of-use/)
- Cookies Setting
- [Privacy Notice](https://www.minitab.com/en-us/company/legal/privacy-notice/)

 © 2026 Minitab. All rights reserved.