Math · Introductory statistics · Worked example
Run a one-sample t-test
A filling machine should put
State the hypotheses
The claim is
Check the conditions
The bottles were sampled at random and measured independently. With
Compute
The standard error is
Predict before you find the p-value
With
Find the p-value
There are
Decide
A near miss
Suppose the same
Result
Your turn
1. One like the example
A random sample of
Show the answer and explanation
with degrees of freedom and , so fail to reject .
2. A variation
Before collecting any data, you suspect that a café’s large cup holds less than the
Show the answer and explanation
with degrees of freedom and a left-tail , so reject . The data give convincing evidence that the cups hold less than on average.
The suspicion points one way and came first, so
3. Somewhere new
Ten students take a reading test before and after a summer program. Their score changes, after minus before, have mean
Show the answer and explanation
Yes. with degrees of freedom and a right-tail , so reject : . The data give convincing evidence that scores rose on average. Without a group that skipped the program, the rise cannot be credited to the program.
Each student gives one change, so the ten changes are a single sample. Test their mean against
Keep exploring
In Statistics, Distributions with
Sources and scope
Authored study material. Tool results depend on the stated inputs and model assumptions.
- OpenIntro Statistics 4e (Diez, Çetinkaya-Rundel, Barr, CC BY-SA 3.0) — Chapter 5, §5.3 Hypothesis testing for a proportion
- OpenIntro Statistics 4e — Chapter 7, §7.1 One-sample means with the t-distribution
- OpenIntro Statistics 4e — Chapter 7, §7.2 Paired data
- OpenStax Introductory Statistics 2e — Null and alternative hypotheses
- OpenStax Introductory Statistics 2e — Outcomes and errors in hypothesis testing
- NIST/SEMATECH e-Handbook — Statistical tests
Try it, then study it
Open the example in its tool to check steps or change values, then review the key terms as flashcards.
Find the p-value in Statistics CheckYour existing work stays on this device. Examples open as editable copies.