---
title: Punxsutawney Phil and His 2-Sample T-test
description: Although a polar vortex hit most of the northern United States last week, thousands of visitors did converge on Punxsutawney, Pennsylvania to see if Punxsutawney Phil would see his shadow. Let’s look at a 2-sample t-test to see if Phil can be Punxsutawney’s chief advisor on how quickly winter ends.
image: https://blog.minitab.com/hubfs/B2BML%20-%20NEW%20FILE%20MANAGER%20STRUCTURE/Blog%20Images/Imported_Blog_Media/groundhog-hero-2.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

# Punxsutawney Phil and His 2-Sample T-test

 Minitab Blog Editor  |  2/4/2019

 Topics: [Minitab Statistical Software](https://blog.minitab.com/en/blog/tag/minitab-statistical-software), [holidays](https://blog.minitab.com/en/blog/tag/holidays), [Hypothesis Testing](https://blog.minitab.com/en/blog/tag/hypothesis-testing)

- [Share](https://www.linkedin.com/shareArticle?mini=true&url=https://blog.minitab.com/en/blog/quality-data-analysis-and-statistics/punxsutawney-phil-and-his-2-sample-t-test)
- [Share](https://www.facebook.com/sharer.php?u=https://blog.minitab.com/en/blog/quality-data-analysis-and-statistics/punxsutawney-phil-and-his-2-sample-t-test)

Although a polar vortex hit most of the northern United States last week, thousands of visitors did converge on Punxsutawney, Pennsylvania this past Saturday to see if their famous groundhog Punxsutawney Phil would see his shadow.

For those unfamiliar with the legend, here's the idea: If Punxsutawney Phil sees his shadow after coming out of his hole, he will retreat and we will be forced to endure six more weeks of winter. If he doesn’t see his shadow, then we will be graced with an early spring. He's only been correct 39 percent of the time according to [Stormfax Almanac](http://www.stormfax.com/ghogday.htm), but this year he *did not* see his shadow, so here's hoping he's right and we do get our early spring!

Let’s look at a [2-sample t-test](https://support.minitab.com/en-us/minitab/18/help-and-how-to/statistics/basic-statistics/how-to/2-sample-t/before-you-start/overview/) to see if Phil has what it takes to be Punxsutawney’s chief advisor on how quickly their winter ends. 

> ---
> 
> *Editor's note: This data was originally collected and published on The Minitab Blog in February 2012.*
> 
> ---

The data I obtained is a list of average temperatures for years when Phil saw his shadow and for when he didn’t. Each value represents Pennsylvania’s average temperature for a two-month period, from February to March. 

**Data Table For Average Temperatures (Fahrenheit)\***

| Temps/No Shadow | Temps/Shadow |
| --- | --- |
| 32.15 | 33.3 |
| 28.6 | 33.8 |
| 33.25 | 31.55 |
| 35.8 | 33.3 |
| 32.15 | 30.8 |
| 37.4 | 33.25 |
| 32.3 | 30.7 |
| 32.8 | 36.25 |
| 34.65 | 32.7 |
| 32 | 36.9 |
| 29.35 | 38.15 |
| 31.15 | 29.9 |
| 39.42 | 29.5 |
| 38.22 | 28.55 |
| \* | 33.05 |

*\*Unfortunately, I was only able to obtain 14 temperatures for when he didn’t see his shadow.*

## Hypothesis Testing with the 2-Sample T-test

My goal here is to determine if there is any evidence that the difference between the two sample means is greater than zero.

**The null hypothesis:** The true mean average temperature (Feb-Mar) for the years when Phil sees his shadow and the years when he does not *are equal*.

**The alternative hypothesis:** The true mean average temperature(Feb-Mar) for the years when he does not see his shadow *is greater* than the true average mean temperature for when he does.

To analyze this in [Minitab Statistical Software](http://www.minitab.com/products/minitab), let’s go to **Stat \> Basic Statistics \> 2-Sample t**. That will bring up the following dialog box: 

![pic1](https://blog.minitab.com/hs-fs/hubfs/B2BML%20-%20NEW%20FILE%20MANAGER%20STRUCTURE/Blog%20Images/Imported_Blog_Media/pic1-8-Jul-05-2025-11-56-39-1676-PM.png?width=438&height=384&name=pic1-8-Jul-05-2025-11-56-39-1676-PM.png "pic1")

We'll also want to check our settings using the "Options" button: 

![pic2](https://blog.minitab.com/hs-fs/hubfs/B2BML%20-%20NEW%20FILE%20MANAGER%20STRUCTURE/Blog%20Images/Imported_Blog_Media/pic2-15-Jul-05-2025-11-56-38-1343-PM.png?width=309&height=181&name=pic2-15-Jul-05-2025-11-56-38-1343-PM.png "pic2")

After filling out these dialogs as shown above and hitting OK, I obtain these results:

![two\_sample\_t\_test](https://blog.minitab.com/hs-fs/hubfs/B2BML%20-%20NEW%20FILE%20MANAGER%20STRUCTURE/Blog%20Images/Imported_Blog_Media/two_sample_t_test-Jul-05-2025-11-56-40-1295-PM.jpg?width=600&name=two_sample_t_test-Jul-05-2025-11-56-40-1295-PM.jpg)

## Interpreting the Results of the 2-Sample T-test

Because our p-value is greater than our alpha value (0.05), we fail to reject the null hypothesis. We do not have enough evidence to say that Pennsylvania, on average, is warmer during those two months when Phil doesn’t see his shadow.

“With great power, comes great responsibility,” a great man named Uncle Ben Parker once said. But Uncle Ben forgot to tell Spider Man that, when it comes to statistics, having greater power also increases the chance of detecting a difference if there really is one.  

Statistically speaking, power equals 1- b, where b is the probability of making a Type II error (failing to reject the null hypothesis when it is false). One way that I could have increased the power of this 2-sample t-test would have been to increase the sample size for each sample. Unfortunately, I was restricted by how many times it was reported that the groundhog did or did not see his shadow.

Even with more data and increased statistical power, though, a reliable assessment of Phil's weather forecasting ability may be difficult to achieve. For example, let's hope the organizers of the Punxsutawney’s Groundhog Day place their audience in a location that doesn’t bias the results in any way. If I crawled out of my hole and saw thousands of people around me, there is no way I’d stay above ground!

## You Might Also Like

<https://blog.minitab.com/en/blog/confidence-in-every-calculation-how-minitab-supports-fda-regulated-validation?hsLang=en>

[Confidence in Every Calculation: How Minitab Supports FDA-Regulated Validation](https://blog.minitab.com/en/blog/confidence-in-every-calculation-how-minitab-supports-fda-regulated-validation?hsLang=en)

[Minitab Solution Center](https://blog.minitab.com/en/blog/tag/minitab-solution-center)  | 4 Minute Read

<https://blog.minitab.com/en/blog/seedling-series-3-simplifying-your-data-story-with-minitab?hsLang=en>

[Seedling Series #3: Simplifying Your Data Story with Minitab](https://blog.minitab.com/en/blog/seedling-series-3-simplifying-your-data-story-with-minitab?hsLang=en)

[Minitab Statistical Software](https://blog.minitab.com/en/blog/tag/minitab-statistical-software)  | 3 Minute Read

<https://blog.minitab.com/en/blog/4-solutions-minitab-can-help-with-in-agriculture?hsLang=en>

[4 Solutions Minitab Can Help with in Agriculture](https://blog.minitab.com/en/blog/4-solutions-minitab-can-help-with-in-agriculture?hsLang=en)

[Minitab Connect](https://blog.minitab.com/en/blog/tag/minitab-connect)  | 3 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