Math · Introductory statistics · Worked example
Run a one-sided t-test from raw data
Do students in this group sleep less than
State the hypotheses
The question asks only about less sleep, and it was asked before the data were collected. That makes
Find the mean
Start by summarizing the raw data, the mean first. The eight values add to
Find and check the conditions
The squared deviations from
Find the standard error
Divide
Find
The mean is
Find the p-value
There are
Decide
Result
Your turn
1. One like the example
A gardener wants evidence that a new fertilizer gives mean growth above
Show the answer and explanation
with degrees of freedom and a right-tail , so fail to reject .
The mean is
2. A variation
Test the sleep data two-sided instead,
Show the answer and explanation
It doubles to about , so is still not rejected.
3. Somewhere new
Suppose
Show the answer and explanation
with degrees of freedom and , so reject .
The standard error falls to
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.