One-sample t-test using Minitab

The one-sample t-test is used to determine whether a sample comes from a population with a specific mean. This population mean is not always known, but is sometimes hypothesized.

For example, imagine that an academic was conducting research on the relationship between exam performance and revision time, but wanted to first check whether his 100 participants reflected the national average in terms of their academic ability, measured in terms of their GMAT score. The academic could use a one-sample t-test to compare the GMAT score of the 100 participants against the national average. Alternately, imagine that a lecturer believed her course required 10 hours of study time per week and wanted to determine whether students spent this amount of time studying. The lecturer could use a one-sample t-test to compare the weekly study time of a sample of 20 students to the suggested 10 hours.

In this guide, we show you how to carry out a one-sample t-test using Minitab, as well as interpret and report the results from this test. However, before we introduce you to this procedure, you need to understand the different assumptions that your data must meet in order for a one-sample t-test to give you a valid result. We discuss these assumptions next.

Minitab

Assumptions

A one-sample t-test has four assumptions. You cannot test the first two of these assumptions with Minitab because they relate to your study design and choice of variables. However, you should check whether your study meets these two assumptions before moving on. If these assumptions are not met, there is likely to be a different statistical test that you can use instead. Assumptions #1 and #2 are explained below:

Assumptions #3 and #4 relate to the nature of your data and can be checked using Minitab. You have to check that your data meets these assumptions because if it does not, the results you get when running a one-sample t-test might not be valid. In fact, do not be surprised if your data violates one or more of these assumptions. This is not uncommon. However, there are possible solutions to correct such violations (e.g., transforming your data) such that you can still use a one-sample t-test. Assumptions #3 and #4 are explained below:

In practice, checking for assumptions #3 and #4 will probably take up most of your time when carrying out a one-sample t-test. However, it is not a difficult task, and Minitab provides all the tools you need to do this.

In the section, Test Procedure in Minitab, we illustrate the Minitab procedure required to perform a one-sample t-test assuming that no assumptions have been violated. First, we set out the example we use to explain the one-sample t-test procedure in Minitab.

Minitab

Example

A researcher plans to conduct a study to determine how three different types of treatment affect depression. However, before the researcher carries out this study, he wants to make sure that the 40 participants taking part have depression scores that are considered to be 'normal'. Let's imagine that a score of 4.0 is considered to reflect 'normal' depression. Lower scores indicate less depression and higher scores indicate greater depression. Therefore, the depression of all 40 participants is measured and a one-sample t-test is used to determine whether this sample is representative of a normal population (i.e., whether the sample-estimated population mean score is significantly different from 4.0). The depression scores are recorded in the variable, Depression score .

Minitab

Setup in Minitab

In Minitab, we set up the dependent variable, Depression score , under column . Then, we entered the scores on the dependent variable (i.e., the depression score for each participant) into the column. This is illustrated below:

Data setup for the one-sample t-test in Minitab

Published with written permission from Minitab Inc.

Note: If you do not have all the data for your dependent variable, unlike our example above, but only the summarized data (i.e., the sample size, mean and standard deviation), you will need to set up your data differently.

Minitab

Test Procedure in Minitab

In this section, we show you how to analyze your data using a one-sample t-test in Minitab when the four assumptions in the previous section, Assumptions, have not been violated. Therefore, the three steps required to run a one-sample t-test in Minitab are shown below:

    Click Stat >Basic Statistics >1-Sample t. on the top menu, as shown below:

Main menu for the one-sample t-test in Minitab

Published with written permission from Minitab Inc.


You will be presented with the following 1-Sample t (Test and Confidence Interval) dialogue box:

Options box for the one-sample t-test in Minitab

Published with written permission from Minitab Inc.

Options box selected for the one-sample t-test in Minitab

Published with written permission from Minitab Inc.

Explanation: To transfer the dependent variable, Depression score , you first need to click inside the Samples in columns: box for the dependent variable to appear in the main left-hand box (e.g., C1 Depression score ). This will activate the button (it is usually faded: ). Next, select C1 Depression score and then either press the button or simply double-click on C1 Depression score . Note 1: By default, Minitab uses 95% confidence intervals, which equates to declaring statistical significance at the p < .05 level. If you want to change this, you can do so by first clicking on the button, which opens the 1-Sample t - Options dialogue box, as shown below:

Options box selected for the one-sample t-test in Minitab (highlighted)

To change the value of the confidence interval, simply click into the Confidence level: box – highlighted in red above – and change the value (e.g., a vale of 99.0 would equate to declaring statistical significance at the p < .01 level). Note 2: In addition to the procedure above, there is another method for carrying out a one-sample t-test in Minitab (highlighted in the red rectangle below).

Options box for the one-sample t-test in Minitab (highlighted)

This alternative method is useful if you only have the summarized data (e.g., the sample size, mean and standard deviation for your dependent variable), rather than all the scores.

  • Click on the button. The output that Minitab produces is shown below.
  • Minitab

    Output of the one-sample t-test in Minitab

    The Minitab output for the one-sample t-test is shown below:

    Output for the one-sample t-test in Minitab

    You will be presented with descriptive statistics including the sample size (the "N" column), mean (the "Mean" column), standard deviation (the "StDev" column) and the standard error of the mean ("SE Mean" column), as well as the 95% confidence interval (CI) of the mean ("95% CI"). Finally, the results of the one-sample t-test include the value of the known or hypothesized population mean you are comparing your sample data to (the Test of mu = 4 vs not = 4 row), the observed t-value (the "T" column) and the statistical significance (2-tailed p-value) of the one-sample t-test (the "P" column).

    In our example, you can see that the 'normal' depression score value was "4" (the Test of mu = 4 vs not = 4 row). The sample size (N) was 40, the mean depression score (Mean) was 3.723, with a standard deviation of 0.737, and the 95% confidence interval of the mean was 3.487 to 3.958. The observed t-value (T) was -2.38 and the statistical significance was .022. The degrees of freedom were 39, but this is not shown in the Minitab output (N.B., this is simply the sample size, N, minus 1; so 40 – 1, which is 39). Therefore, it can be concluded that the population means are statistically significantly different.

    Note: We present the output from the one-sample t-test above. However, since you should have tested your data for the assumptions we explained earlier in the Assumptions section, you will also need to interpret the Minitab output that was produced when you tested for them. This includes: (a) the boxplots you used to check if there were any significant outliers; and (b) the output Minitab produces for your Shapiro-Wilk test of normality to determine normality. Also, remember that if your data failed any of these assumptions, the output that you get from the one-sample t-test procedure (i.e., the output we discuss above) might no longer be valid, but you may be able to use another statistical test instead.

    Minitab

    Reporting the output of the one-sample t-test

    Based on the Minitab output above, we could report the results of this study as follows:

    A one-sample t-test was run to determine whether participants' depression score was different to normal, defined as a depression score of 4.0. Mean depression score (3.72, 95% CI, 3.49 to 3.96) was lower than the normal depression score of 4.0, a statistically significant difference, t(39) = -2.83, p = .022.

    Portions of information contained in this publication/book are printed with permission of Minitab Inc. All such material remains the exclusive property and copyright of Minitab Inc. All rights reserved.