One-sample t test calculator
A one-sample t test checks whether the mean of a single sample differs from a fixed reference value: a target specification, a published norm, or the theoretical value of 0 or 100%. DATAJIN reports the mean, the difference from the reference, its 95% confidence interval and the p-value.
No sign-up, nothing to install. Calculations run in your browser; the worksheets, results and charts you create are stored by AI Walay to improve DATAJIN.
When to use it
- Checking whether a production batch meets a target weight or concentration.
- Comparing class test scores to a national average.
- Testing whether a set of differences or changes is different from zero.
Assumptions
- Observations are independent.
- The data are roughly normally distributed, or the sample is large enough (about 30 or more) for the mean to be approximately normal.
How to run it in DATAJIN
- Enter your measurements in one column.
- Open Analyze and choose One-sample t test.
- Select the column, type the hypothesised mean and click Run.
Example: open the Old Faithful geyser dataset (Old Faithful eruption durations in minutes) and follow the steps above.
What you get
- Sample mean, hypothesised value and their difference
- 95% confidence interval of the mean
- t statistic, degrees of freedom and two-tailed p-value
How to interpret the result
A p-value below 0.05 means the sample mean differs significantly from the hypothesised value. If the hypothesised value lies outside the 95% confidence interval of the mean, the result is significant at the 5% level, and the interval tells you how large the difference plausibly is.
Frequently asked questions
What is the hypothesised mean?
It is the reference value you are comparing against, chosen before looking at the data: a specification, a population norm, or 0 when testing whether changes are different from zero.
What is the nonparametric alternative?
The Wilcoxon signed-rank test against a hypothesised median. In DATAJIN you can run it by putting the reference value in a second column and using the Wilcoxon matched-pairs test.