• Skip to secondary menu
  • Skip to main content
  • Skip to primary sidebar
  • My Store
  • Glossary
  • Home
  • About Me
  • Contact Me

Statistics By Jim

Making statistics intuitive

  • Graphs
  • Basics
  • Hypothesis Testing
  • Regression
  • ANOVA
  • Probability
  • Time Series
  • Fun
  • Calculators

One Sample T Test: Definition, Using & Example

By Jim Frost Leave a Comment

What is a One Sample T Test?

Use a one sample t test to evaluate a population mean using a single sample. Usually, you conduct this hypothesis test to determine whether a population mean differs from a hypothesized value you specify. The hypothesized value can be theoretically important in the study area, a reference value, or a target.

For example, a beverage company claims its soda cans contain 12 ounces. A researcher randomly samples their cans and measures the amount of fluid in each one. A one-sample t-test can use the sample data to determine whether the entire population of soda cans differs from the hypothesized value of 12 ounces.

In this post, learn about the one-sample t-test, its hypotheses and assumptions, and how to interpret the results.

Related post: Difference between Descriptive and Inferential Statistics

One Sample T Test Hypotheses

A one sample t test has the following hypotheses:

  • Null hypothesis (H0): The population mean equals the hypothesized value (µ = H0).
  • Alternative hypothesis (HA): The population mean does not equal the hypothesized value (µ ≠ H0).

If the p-value is less than your significance level (e.g., 0.05), you can reject the null hypothesis. The difference between the sample mean and the hypothesized value is statistically significant. Your sample provides strong enough evidence to conclude that the population mean does not equal the hypothesized value.

Learn how this analysis compares to the Z Test.

Related posts: How to Interpret P Values and Null Hypothesis: Definition, Rejecting & Examples and Inferential Statistics Definition & Examples.

One Sample T Test Assumptions

For reliable one sample t test results, your data should satisfy the following assumptions:

Random Sample

Drawing a random sample from your target population helps ensure your data represent the population. Samples that don’t reflect that population tend to produce invalid results.

Related posts: Populations, Parameters, and Samples in Inferential Statistics and Representative Samples: Definition, Uses & Examples.

Continuous Data

One-sample t-tests require continuous data. These variables can take on any numeric value, and the scale can be split meaningfully into smaller increments. For example, temperature, height, weight, and volume are continuous data.

Read Comparing Hypothesis Tests for Continuous, Binary, and Count Data for more information..

Normally distributed data or your sample has more than 20 observations

This hypothesis test assumes your data follow the normal distribution. However, your data can be mildly skewed when the distribution is unimodal and your sample size is greater than 20 because of the central limit theorem.

Be sure to check for outliers because they can throw off the results.

Related posts: Central Limit Theorem, Skewed Distributions, and 5 Ways to Find Outliers.

Independent Observations

The one-sample t-test assumes that observations are independent of each other, meaning that the value of one observation does not influence or depend on another observation’s value. Violating this assumption can lead to inaccurate results because the test relies on the premise that each data point provides unique and separate information.

Example One Sample T Test

Let’s return to the 12-ounce soda can example and perform a one-sample t-test on the data. Imagine we randomly collected 30 cans of soda and measured their contents.

We want to determine whether the difference between the sample mean and the hypothesized value (12) is statistically significant. Download the CSV file that contains the example data: OneSampleTTest. Use my T Test Calculator to perform this analysis yourself. Just download and open the dataset in a spreadsheet. Then copy and paste the cells into my calculator!

Here is how a portion of the data appear in the worksheet.

Portion of the data for our example.

The histogram shows the data are not skewed, and no outliers are present.

Histogram for the one sample t test example.

Interpreting the Results

Here’s how to read and report the results for a one sample t test.

Statistical output for the one sample t test example.

The statistical output indicates that the sample mean (A) is 11.8013. Because the p-value (B) of 0.000 is less than our significance level of 0.05, the results are statistically significant. We reject the null hypothesis and conclude that the population mean does not equal 12 ounces. Specifically, it is less than that target value. The beverage company is underfilling the cans.

Learn more about Statistical Significance: Definition & Meaning.

The confidence interval (C) indicates the population mean for all cans is likely between 11.7358 and 11.8668 ounces. This range excludes our hypothesized value of 12 ounces, reaffirming the statistical significance. Learn more about confidence intervals.

To learn more about performing t-tests and how they work, read the following posts:

  • T Test Overview
  • Independent Samples T Test
  • Paired T Test
  • Running T Tests in Excel
  • T-Values and T-Distributions

Share this:

  • Tweet

Like this:

Like Loading…

Related

Filed Under: Hypothesis Testing Tagged With: analysis example, assumptions, choosing analysis, interpreting results

Reader Interactions

Comments and QuestionsCancel reply

Primary Sidebar

Meet Jim

I’ll help you intuitively understand statistics by focusing on concepts and using plain English so you can concentrate on understanding your results.

Read More...

Buy My Introduction to Statistics Book!

Cover of my Introduction to Statistics: An Intuitive Guide ebook.

Buy My Hypothesis Testing Book!

Cover image of my Hypothesis Testing: An Intuitive Guide ebook.

Buy My Regression Book!

Cover for my ebook, Regression Analysis: An Intuitive Guide for Using and Interpreting Linear Models.

Subscribe by Email

Enter your email address to receive notifications of new posts by email.

    I won't send you spam. Unsubscribe at any time.

    Buy My Thinking Analytically Book!

    Cover for my book, Thinking Analytically: An Guide for Making Data-Driven Decisions.

    Top Posts

    • F-table
    • Cronbach’s Alpha: Definition, Calculations & Example
    • Z-table
    • How To Interpret R-squared in Regression Analysis
    • Box Plot Explained with Examples
    • How to Interpret P-values and Coefficients in Regression Analysis
    • Cohens D: Definition, Using & Examples
    • Multicollinearity in Regression Analysis: Problems, Detection, and Solutions
    • X and Y Axis in Graphs
    • Interpreting Correlation Coefficients

    Recent Posts

    • Data Collection Methods: Step-By-Step Guide with Examples
    • ANOVA Calculator
    • Positive Predictive Value: Meaning, Formula, and Interpretation
    • Median Absolute Deviation Calculator
    • Median Absolute Deviation: Definition, Finding & Formula
    • Outlier Calculator

    Recent Comments

    • Skata na fas on Comparing Regression Lines with Hypothesis Tests
    • Jim Frost on Comparing Regression Lines with Hypothesis Tests
    • Skata na fas on Comparing Regression Lines with Hypothesis Tests
    • Skata na fas on Comparing Regression Lines with Hypothesis Tests
    • Jim Frost on Pareto Chart: Making, Reading & Examples

    Copyright © 2026 · Jim Frost · Privacy Policy

    %d