t test Two Sample Assuming Equal Variances in Excel

home · products · services · search · view cart · contact  
 
  NAVIGATION        
 

Jay Arthur
888-468-1537
303-756-9144
KnowWare International, Inc.
DBA LifeStar

2253 S. Oneida
Ste 3D
Denver, CO 80224

We help people think!

Copyright © 2009



 

When to use a t Test - Two Sample Assuming Equal Variances

In the constant quest to reduce variation and improve products, companies need to evaluate different alternatives. A t test using two samples compares two sets of test data. It helps determine if the means (i.e., averages) are the same or different from each other. Excel offers several two sample t tests:

If data sets are independent of each other

If data sets are dependent on each other: when natural pairs of observations exist (e.g., using the same operator on a machine while comparing two different modes of operation.)

Consider the following example.

t test two sample

If you're producing rubber made with two different recipes, you might want to know if the tensile strengths are the same or different (Juran's QC Handbook 4th pg 23.74):

Define the null and alternate Hypothesis

  • The null hypothesis H0 is that the mean difference (1-x2) = 0
  • or in other words the means are the same

  • The alternative hypothesis Ha is that the mean difference <> 0

    or in other words the means are not the same

Conduct the Test

Now, conduct a test and enter the data into Excel:
t test two sample data for Excel

Conduct an F test to determine if variances are equal

Since the two recipes aren't "paired" or dependent in any way, the first step is to determine if the variances are equal to determine which t test to use. So, select the data with the mouse and click on the QI Macros Menu to select the F test:

f test menu in the QI Macros

The QI Macros will prompt for a significance level (default = 0.05):

t test two sample significance level

The f test macro will calculate the results:

f test two sample Excel-QI Macros example

Interpreting the F test results

If
Then
test statistic > critical value
(i.e. F > F crit)
Reject the null hypothesis
test statistic < critical value
(i.e. F < F crit)
Accept the null hypothesis
p value < a Reject the null hypothesis
p value > a Accept the null hypothesis

Since F < Fcrit (3.05567 < 6.38823) and p value > a ( .15241 > 0.05, we can accept the null hypothesis that the variances are equal. Now we can run the t test assuming equal variances.

Run t test Assuming Equal Variances

Now, select the data with the mouse and click on the QI Macros Menu to select the two sample t test:

t test two sample equal variances menu in the QI Macros

The QI Macros will prompt for a significance level (default = 0.95) and hypothesized difference in the means:

t test two sample significance
t test two sample mean difference

The t test two sample assuming equal variances macro will calculate the results:

t test two sample Excel-QI Macros example

Interpreting the t test two sample results

If
Then
test statistic > critical value
(i.e. t> tcrit)
Reject the null hypothesis
test statistic < critical value
(i.e. t< tcrit)
Accept the null hypothesis
p value < a Reject the null hypothesis
p value > a Accept the null hypothesis

Since the null hypothesis is that the mean difference (1-x2) = 0, this is a two-sided test. Therefore, use the two-tail values for your analysis.

Since the t statistic < t critical (.23727< 2.30601) and p value > a ( .81841> 0.05) , we can accept the null hypothesis that the means are the same.

Therefore we can say that the two recipes produce rubber with the same mean tensile strength at a 95% confidence level.

Excel Note:
Notice that both the F and t test results reversed the order of the recipes. For some unknown reason Excel requires the recipes with the largest variance and mean to be first to ensure correct calculations. The QI Macros reorganizes your data to ensure Excel performs the calculations correctly.

The t test - two sample assuming equal variances test is just one of the tests included in the QI Macros Statistical Process Control software. Other tests include:

Download the FREE 30-day Evaluation copy of the QI Macros Excel SPC Software for Six Sigma

QI Macros - Download with backup CD & User Guide (#230) $139 + S&H
QI Macros - Download Only - No Shipping or Customs Duties (#W230) $139
 

Download
FREE
30-Day Trial



QI Macros SPC Software for Excel

Or Buy It Now
for only $139!
Unconditional
90-Day
Money-Back
Guarantee

Add QI Macros Starter Kit - SPC Software plus training CD and tools book (#275) $197 plus S&H
Add SPC Simplified System - SPC Simplified Book and DVD, Plus SPC Software, Training Cd and Tools Example Book (#285) $297 plus S&H


 
home | products | services | search | sitemap | view cart | contact
QI Macros | Excel SPC Software | SPC Software Free Trial
Control Charts | c Chart | np Chart | p Chart | u Chart
ImR Chart | XmR Chart | XMedianR Chart | XbarR Chart | XbarS Chart | EWMA Chart
Anom Chart | Cusum Chart | Levey Jennings Chart | Moving Average Chart
Histograms | Pareto Chart | Scatter Plot | Run Chart
Box Whisker Plot | Dot Plot | Multivari Chart

Lean Six Sigma Training | Lean Six Sigma Training Denver
Lean Six Sigma Consulting | Lean Six Sigma Consulting Denver
Lean Six Sigma Training Systems | Do-It-Yourself Lean Six Sigma Training