Statistics How To

One Sample T Test: How to Run It, Step by Step

Hypothesis Testing > One Sample T Test

The one sample t test compares the mean of your sample data to a known value. For example, you might want to know how your sample mean compares to the population mean. You should run a one sample t test when you don’t know the population standard deviation or you have a small sample size. For a full rundown on which test to use, see: T-score vs. Z-Score.

Assumptions of the test (your data should meet these requirements for the test to be valid):

One Sample T Test Example

Sample question: your company wants to improve sales. Past sales data indicate that the average sale was $100 per transaction. After training your sales force, recent sales data (taken from a sample of 25 salesmen) indicates an average sale of $130, with a standard deviation of $15. Did the training work? Test your hypothesis at a 5% alpha level.

Step 1: Write your null hypothesis statement (How to state a null hypothesis). The accepted hypothesis is that there is no difference in sales, so:
H0: μ = $100.

Step 2: Write your alternate hypothesis. This is the one you’re testing. You think that there is a difference (that the mean sales increased), so:
H1: μ > $100.

Step 3: Identify the following pieces of information you’ll need to calculate the test statistic. The question should give you these items:

  1. The sample mean(x̄). This is given in the question as $130.
  2. The population mean(μ). Given as $100 (from past data).
  3. The sample standard deviation(s) = $15.
  4. Number of observations(n) = 25.

Step 4: Insert the items from above into the t score formula.
one sample t test

t = (130 – 100) / ((15 / √(25))
t = (30 / 3) = 10
This is your calculated t-value.

Step 5: Find the t-table value. You need two values to find this:

  1. The alpha level: given as 5% in the question.
  2. The degrees of freedom, which is the number of items in the sample (n) minus 1: 25 – 1 = 24.

Look up 24 degrees of freedom in the left column and 0.05 in the top row. The intersection is 1.711.This is your one-tailed critical t-value.

What this critical value means is that we would expect most values to fall under 1.711. If our calculated t-value (from Step 4) falls within this range, the null hypothesis is likely true.

Step 5: Compare Step 4 to Step 5. The value from Step 4 does not fall into the range calculated in Step 5, so we can reject the null hypothesis. The value of 10 falls into the rejection region (the left tail).

In other words, it’s highly likely that the mean sale is greater. The sales training was probably a success.

Want to check your work? Take a look at Daniel Soper’s calculator. Just plug in your data to get the t-statistic and critical values.


Need help with a homework or test question? With Chegg Study, you can get step-by-step solutions to your questions from an expert in the field. Your first 30 minutes with a Chegg tutor is free!

Statistical concepts explained visually - Includes many concepts such as sample size, hypothesis tests, or logistic regression, explained by Stephanie Glen, founder of StatisticsHowTo.

Comments? Need to post a correction? Please post a comment on our Facebook page.

Check out our updated Privacy policy and Cookie Policy