---
title: Beware of Phantom Degrees of Freedom that Haunt Your Regression Models!
description: Beware of Phantom Degrees of Freedom that Haunt Your Regression Models!
image: https://blog.minitab.com/hubfs/B2BML%20-%20NEW%20FILE%20MANAGER%20STRUCTURE/Blog%20Images/Imported_Blog_Media/demon1-3.gif
---

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

# Beware of Phantom Degrees of Freedom that Haunt Your Regression Models!

![Beware of Phantom Degrees of Freedom that Haunt Your Regression Models!](https://blog.minitab.com/hubfs/B2BML%20-%20NEW%20FILE%20MANAGER%20STRUCTURE/Blog%20Images/Imported_Blog_Media/demon1-3.gif)

---

Written by **Minitab Blog Editor**

Published **October 29 2015**

As Halloween approaches, you are probably taking the necessary steps to protect yourself from the various [ghosts](https://blog.minitab.com/blog/adventures-in-statistics/how-to-be-a-ghost-hunter-with-a-statistical-mindset?hsLang=en), goblins, and witches that are prowling around. Monsters of all sorts are out to get you, unless they’re sufficiently bribed with candy offerings!

I’m here to warn you about a ghoul that all statisticians and data scientists need to be aware of: phantom degrees of freedom. These phantoms are really sneaky. You can be out, fitting a regression model, looking at your output, and thinking everything is fine. Then, whammo, these phantoms get you! They suck the explanatory and predictive power right out of your regression model but, deviously, leave all of the output looking just fine. Now that’s truly spooky!

In this blog post, I’ll show you how these phantoms work and how to avoid their dastardly deeds!

## What Are Normal Degrees of Freedom in Regression Models?

I’ve written previously about the [dangers of overfitting your regression model](https://blog.minitab.com/blog/adventures-in-statistics/the-danger-of-overfitting-regression-models?hsLang=en). An overfit model is one that is too complicated for your data set.

You can learn only so much from a data set of a given size. A degree of freedom is a measure of how much you’ve learned. Your model uses these degrees of freedom with every parameter that it estimates. If you use too many, you’re overfitting the model. The end result is that the [regression coefficients, p-values](https://blog.minitab.com/blog/adventures-in-statistics/how-to-interpret-regression-analysis-results-p-values-and-coefficients?hsLang=en), and [R-squared](https://blog.minitab.com/blog/adventures-in-statistics/regression-analysis-how-do-i-interpret-r-squared-and-assess-the-goodness-of-fit?hsLang=en) can all be misleading.

You can detect overfit models by looking at the number of observations per parameter estimate and assessing the [predicted R-squared](https://blog.minitab.com/blog/adventures-in-statistics/multiple-regession-analysis-use-adjusted-r-squared-and-predicted-r-squared-to-include-the-correct-number-of-variables?hsLang=en). However, these methods won’t necessarily detect the misbegotten effects of summoning an excessive number of *phantom* degrees of freedom!

In the degrees of freedom (DF) column in the ANOVA table below, you can see that this regression model uses 3 degrees of freedom out of a total of 28. It appears that this model is fine. Or is it? *\<Cue evil laugh!\>*

![Analysis of variance table for a regression model](https://blog.minitab.com/hubfs/B2BML%20-%20NEW%20FILE%20MANAGER%20STRUCTURE/Blog%20Images/Imported_Blog_Media/anova_table-2-Jul-05-2025-11-41-23-4931-PM.png)

## What Are Phantom Degrees of Freedom?

Phantom degrees of freedom are devilish because they latch onto you through the manner in which you settle on the final model. They are not detectable in the output for the final model even as they haunt your regression models.

![Guy surrounded by demons](https://blog.minitab.com/hubfs/B2BML%20-%20NEW%20FILE%20MANAGER%20STRUCTURE/Blog%20Images/Imported_Blog_Media/demons-Jul-05-2025-11-41-24-7655-PM.jpg)   
*The dangers of invoking too many phantom degrees of freedom!*

Every time your incantation adds or removes predictors from a model based on a statistical test, you invoke a phantom degree of freedom because you’re learning something from your data set. However, even when you summon many phantom degrees of freedom during the model selection process, they are not evident in [Minitab’s](http://www.minitab.com/en-us/products/minitab/) output for the final model. That is what makes them phantoms.

When you invoke too many phantoms, your regression model becomes haunted. This occurs because you’re performing many statistical tests, and every statistical test has a false positive rate. When you try many different models, you're bound to find variables that appear to be significant but are correlated only by chance. These relationships are nothing more than ghostly apparitions!

To protect yourself from this type of bewitching, you need to understand the environment that these phantoms inhabit. Phantom degrees of freedom have the strongest powers when you have a small-to-moderate sample size, many potential predictors, correlated predictors, and when the light of knowledge does not illuminate your conception of the true model.

In this scenario, you are likely to fit many possible models, adding and removing different predictors, and testing curvature and interaction terms in an attempt to conjure an answer out of the darkness. Perhaps you use an automatic incantation procedure like [stepwise or best subsets regression](https://blog.minitab.com/blog/adventures-in-statistics/regression-smackdown-stepwise-versus-best-subsets?hsLang=en). If you have [multicollinearity](https://blog.minitab.com/blog/adventures-in-statistics/what-are-the-effects-of-multicollinearity-and-when-can-i-ignore-them?hsLang=en), the parameter estimates are particularly unhinged.

The ANOVA table we saw above appears to be perfectly normal, but it could be haunted. To divine the truth, you must understand the entire ritual that incited the final model to materialize. If you start out with 20 variables, a sample size of 29, and fit many models to see what works, you could conjure a possessed model beguiling you to accept false conclusions.

In fact, this method of dredging through data to see what sticks casts such a diabolical spell that it can manifest a statistically significant regression model with a high R-squared *[from completely random data](https://blog.minitab.com/blog/adventures-in-statistics/four-tips-on-how-to-perform-a-regression-analysis-that-avoids-common-problems?hsLang=en)*! Beware—this is the environment that the phantoms inhabit!

## How to Protect Yourself from the Phantom Degrees of Freedom

To protect yourself from phantom degrees of freedom, information and advance planning are your best talismans. Use the following rites to shine the light of truth on your research and to guide yourself out of the darkness:

- Conduct prior research about the important variables and their relationships to help you specify the best regression model without the need for data mining.
- Collect a large enough sample size to support the level of model complexity that you will need.
- Avoid data mining and keep track of how many phantom degrees of freedom that you raise before arriving at your final model.

For more information about avoiding haunted models, read my post about [How to Choose the Best Regression Model](https://blog.minitab.com/blog/adventures-in-statistics/how-to-choose-the-best-regression-model?hsLang=en).

Happy Halloween!

 

*"Buer." Licensed under Public Domain via [Commons.](https://en.wikipedia.org/wiki/Buer_(demon)#/media/File:Buer.gif)*

[Back to Top of Page](https://blog.minitab.com/en/blog/adventures-in-statistics-2/beware-of-phantom-degrees-of-freedom-that-haunt-your-regression-models#main-content)

Keep up with us

On this page

Published

 October 29 2015

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-pl?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.