Test a claim about a mean or a proportion and get the full write-up: hypotheses, test statistic, p-value, decision and a plain-English conclusion.
Reject H₀ when p < α
Hypothesis testing is a way of deciding whether data give real evidence against a claim, or whether the gap could easily be chance. You assume the claim (the null hypothesis, H₀) is true and ask how surprising your sample would be.
If the result would be very surprising, with a p-value below your chosen significance level α, you reject the claim in favour of the alternative, H₁. If not, you don't reject it. That's not the same as proving it true: it may just mean the sample was too small to tell.
The logic resembles a criminal trial. H₀ is "innocent", the data are the evidence, and α is the standard of proof. A not-guilty verdict means the evidence wasn't strong enough, not that innocence was proven.
The five-step procedure as taught in OpenStax Introductory Statistics, chapter 9. See Sources.
Always finish with a sentence about the real question, not just the symbols.
There's evidence the average box holds less than 500 g. The shortfall is small, about 2 g, which is a separate question from whether it's real.
Every decision can be wrong in one of two ways.
| Decision | H₀ actually true | H₀ actually false |
|---|---|---|
| Reject H₀ | Type I error (false alarm), chance α | Correct, chance = power |
| Don't reject H₀ | Correct, chance 1 − α | Type II error (missed effect), chance β |
The default claim being tested, usually “no difference” or “the stated value is right”. It always contains the equals sign.
0.05 is the common default. Use a smaller α, such as 0.01, when a false alarm would be costly.
A one-sample t-test for a mean with unknown σ, a z-test for a mean with known σ, and a one-proportion z-test for proportions.
Use the t-test calculator for two means, or the A/B test calculator for two proportions.
The chance a test detects a real effect of a given size. It rises with sample size and effect size; the power analysis calculator works it out.
No. It means the data are compatible with no effect, which can happen when the effect is real but the sample is too small to show it.
Yes, enter it. Some exploratory studies use 0.10, but the chance of a false alarm doubles compared with 0.05.
Because a reader wants to know about cereal boxes, not μ. Translating the decision back into the real question is the point of the test.
Related Tools