# One Sample t-Test in Excel

## QI Macros Add-in Conducts t Tests and Interprets Results

A one sample t-Test compares test data to a specific value. It helps determine if the sample is greater than, less than or equal to the value.

**Note: ** Excel does NOT do one-sample t-tests; QI Macros adds this functionality.

### One Sample t-Test Example

**QI Macros adds a new tab to Excel's menu. To conduct a t test using QI Macros follow these steps:**

Let's say you want to know if the life of a light bulb is greater than 2,500 hours. Take your sample and input the data in Excel.

- Click and drag over the data to select it
- Next click on QI Macros Menu, Statistical Tools and t-Test one sample:
- QI Macros will prompt for a confidence level (default = 0.95)

and a Test Mean (light bulb life is less than or equal to 2,500 hours)

The t-Test one sample macro will perform the calculations and interpret the results for you:

In this example, p-value = 0.00016 and alpha = 0.05 (1 - .95 the confidence level). Since p < .05 we Reject the Null Hypothesis. The Means are not the same.

### What's Cool about QI Macros Statistical Add-in for Excel?

**Interprets the Results for You:** QI Macros compares the p value to alpha and tells you what that means. In the above example, QI Macros tells you to "Reject the Null Hypothesis because p < 0.05 (Means are Different).

**Interactive Results**: QI Macros lets you change the confidence level and test mean to see what impact those changes have on your results. See areas outlined in red for cells that can be changed.

### Watch This Video to Learn More About Conducting t Tests in Excel

### Interpreting the t-Test One-Sample Results Manually

So we develop a null hypothesis (H0) that light bulb life is less than or equal to 2,500 hours and the alternate hypothesis (Ha) that bulb life is greater than 2,500 hours:

- H0 <= 2,500 hours
- Ha > 2,500 hours

Now, conduct a test of light bulb life and enter the data into Excel.

QI Macros automatically interprets the results for you. However, here is some guidance if you want to do that yourself.

Since the null hypothesi

If |
Then |

t-Test statistic > critical value (i.e. t> tcrit) |
Reject the null hypothesis |

t-Test statistic < critical value (i.e. t< tcrit) |
Cannot Reject the null hypothesis |

p value < a | Reject the null hypothesis |

p value > a | Cannot Reject the null hypothesis |

s is that bulb life is less than or equal to 2500, this is a one-sided test. Therefore, use the one-tail values for your analysis.

**Note:** The two-sided values would apply if our null hypothesis was that:

H0: mean = 2500 hours.)

Since the t statistic > t critical (4.904 > 1.76131) and p value < a ( 0.000116 < 0.05) , we can reject the null hypothesis that bulb life is less than or equal to 2500.

We can say that we are 95% confident that the bulb life is greater than 2,500 hours.

### Customer Service - Another t-Test One Sample Example

Let's say you want to know if wait times in a branch bank are not greater than three minutes at a 95% confidence level. Mystery shoppers routinely visit the branch and collect their wait time. This gives us the data we need to test the hypothesis:

- H0 <= 3 minutes
- Ha > 3 minutes

The one-sided p value < a (.039776 is less than 0.05 (1-0.95)), so we must reject the null hypothesis that bank wait times are less than or equal to 3 minutes.

We can say that we are 95% confident that wait times are greater than 3 minutes.

### Why Choose QI Macros Statistical Software for Excel?

### Affordable

- Only
**$279 USD**- less with quantity discounts - No annual fees
- Free Technical Support

### Easy to Use

- Works Right in Excel
- Interprets Results for You
- Accurate Results Without Worry

### Proven and Trusted

- 100,000 Users in 80 Countries
- Celebrating 20th Anniversary
- Five Star CNET Rating - Virus Free