How to Run a 2-Sample T Test in Minitab

When working with data sets in six sigma projects, often there will be a need to compare two groups to each other. A 2-sample T test in Minitab is a hypothesis test to study whether there is a statistically significant difference between the means of two populations. The 2-sample T test runs a comparison of two categories within the same categorical variable, which becomes valuable when trying to answer questions that involve understanding the effects of the addition of a program or change to a sample of subjects.

How to Run a 2-Sample t Test in Minitab

In this example, we will be using a 2-Sample t data file for Minitab. Clicking the previous link will download the file for your use. Once you have the file open in Minitab we will be comparing the price of gasoline between State A and State B. We will use a data set assuming that each data set is normally distributed with equal variances. The hypothesis will be:
Null Hypothesis (H0): μ1 = μ2
Alternative Hypothesis (Ha): μ1 ≠ μ2

Where μ1 is the mean of one population and μ2 is the mean of the other population of our interest.

Step 1: Click Stat → Basic Statistics → 2-Sample t.
2-Sample T Test in Minitab

A new window named “Two-Sample t for the Mean” pops up.

Step 2: Click in the blank box next to “Samples” and the “Gas Price” appears in the list box on the left.

2 Sample-T Test in Minitab

Select “Gas Price” as the “Samples.”

2-Sample T Test

Step 3: Click in the blank box next to “Sample IDs” and the “State” appears in the list box on the left.

Select “State” as the “Sample IDs.”

2-Sample T Test

Step 4: Click options.

Check the box that says “Assume Equal Variances”

2-Sample T Test

Click “OK” to save, and click “OK” again to run the test.

Results of our 2-Sample t Test in Minitab:

The study resutls of how to run a 2-sample t test in Minitab (when σ1 = σ2) appear automatically in the session window after clicking “OK.” Minitab's output is below. Take notice of a couple of important bits of information provided by the output. The mean of state A and state B, the number of data points for each state represented by 'N' as well as each standard deviation.

2-Sample T Test in Minitab

The key statistical output provided by Minitab when running a 2-sample t test is the P-Value. Since the p-value of the t-test (assuming equal variance) is 0.665, it's greater than the alpha level of 0.05. Therefore we fail to reject the null hypothesis which was (H0): μ1 = μ2. Our conclusion in this case is that the means of the two data sets are equal.

Join Our Community

Instant access to hundreds of "How to" articles, Tools, Templates, Roadmaps, Data-Files.. Everything Lean Six Sigma! Come on in! Welcome to our community of Lean Six Sigma certified professionals.


My Interest in This Content is More Closely Related to*
This field is for validation purposes and should be left unchanged.

About Lean Sigma Corporation

Lean Sigma Corporation is a trusted leader in Lean Six Sigma training and certification, boasting a rich history of providing high-quality educational resources. With a mission to honor and maintain the traditional Lean Six Sigma curriculum and certification standards, Lean Sigma Corporation has empowered thousands of professionals and organizations worldwide with over 5,300 certifications, solidifying its position and reputation as a go-to source for excellence through Lean Six Sigma methodologies.


  1. Mike on February 12, 2019 at 4:47 pm

    Best account I have seen of the 2 sample T test

  2. shahab on November 18, 2020 at 2:35 pm

    very helpful