One-sample t test
Compare the sample mean with a hypothetical population mean and calculate p-value and degrees of freedom.
Calculate the result
Worked example
Problem
Run a two-sided t test for μ₀ = 10 using n = 16, a sample mean of 12, a sample standard deviation of 4, and α = 0.05.
For t = 2 with 15 degrees of freedom, the two-sided p-value is approximately 0.06395.
Compute t and degrees of freedom
Compare the p-value with α
Common mistake
Failure to reject does not prove equal means. The test assumes independent observations and an appropriate model for the mean.
