*38*

AÂ **two sample t-test**Â is used to test whether or not the means of two populations are equal.

This tutorial explains how to conduct a two sample t-test on a TI-84 calculator.

**Example: Two Sample t-test on a TI-84 Calculator**

Researchers want to know if a new fuel treatment leads to a change in the average mpg of a certain car. To test this, they conduct an experiment in which 12 cars receive the new fuel treatment and 12 cars do not. For the control group, the mean mpg is 21 mpg and the standard deviation is 2.73 mpg. For the treatment group, the mean mpg is 22.75 mpg and the standard deviation is 3.25 mpg.

Use this data to perform a two sample t-test to determine if the average mpg is different between the two groups.

**Step 1: Select 2-SampTTest.**

PressÂ Stat. Scroll over to TESTS. Scroll down to 2-SampTTest and press ENTER.

**Step 2: Fill in the necessary info.**

The calculator will ask for the following information:

**Inpt:Â**Choose whether you are working with raw data (Data) or summary statistics (Stats). In this case, we will highlight Stats and pressÂ ENTER.**x1:**The sample mean of the first group. We will type 21 and pressÂ Â ENTER.**Sx1:Â**The sample standard deviation of the first group. We will type 2.73 and pressÂ ENTER.**n1:Â**The sample size of the first group. We will type 12 and pressÂ ENTER.**x2:**The sample mean of the second group. We will type 22.75 and pressÂ Â ENTER.**Sx2:Â**The sample standard deviation of the second group. We will type 3.25 and pressÂ ENTER.**n2:Â**The sample size of the second group. We will type 12 and pressÂ ENTER.**Î¼1**:The alternative hypothesis to be used. Since we are performing a two-tailed test, we will highlight**Â â‰****Î¼2Â**and pressÂ ENTER. This indicates that our alternative hypothesis is Î¼1â‰ Î¼2.Â The other two options would be used for left-tailed tests (Î¼1Î¼2) .**Pooled:Â**Choose whether you want to pool the variances of the two groups or not. In most cases, we will choose no. Highlight no and pressÂ ENTER.

Lastly, highlight Calculate and pressÂ ENTER.

**Step 3: Interpret the results.**

Our calculator will automatically produce the results of the two sample t-test:

Here is how to interpret the results:

**Î¼**: This is the alternative hypothesis for the test._{1}â‰ Î¼_{2}**t=-1.42825817**: This is the t test statistic.Â**p=0.1676749174**: This is the p-value that corresponds to the test statistic.**df=21.36350678:Â**This is the degrees of freedom used to calculate the test statistic.**x**. This is the sample mean that we entered for the first group._{1}=21**x**ThisÂ is the sample mean that we entered for the second group._{2}=22.75:Â**Sx1=2.73**. This is the sample standard deviation that we entered for the first group.**Sx2=3.25**: This is the sample standard deviation that we entered for the second group.**n1=12:Â**This is the sample size we entered for the first group.**n2=12:Â**This is the sample size we entered for the second group.

Because the p-value of the test (0.1676749174) is not less than 0.05, we fail to reject the null hypothesis. This means we do not have sufficient evidence to say that the mean mpg is different between the two groups.