Hypothesis Testing Calculator
Set up and test statistical hypotheses step by step. Calculate test statistic, find critical value, and make a decision for one-sample z-test or t-test with clear interpretation.
Formula & Reference
| Variable | Symbol | Formula | Units |
|---|---|---|---|
| Hypothesis Testing Calculator | — | Reject H0 if |test stat| > critical value | decision |
Step-by-Step Examples
Machine fills bags. Target μ=500g, σ=10g known. Sample: n=36, x̄=503g. Test at α=0.05.
- H0: μ=500, H1: μ≠500 (two-tailed)
- SE = 10/√36 = 10/6 = 1.667
- z = (503-500)/1.667 = 1.80
- Critical z = ±1.96 (α=0.05, two-tailed)
- |1.80| < 1.96: Fail to reject H0
- Bags are being filled correctly
H0: new method same as old (μ=75). Sample: n=25, x̄=80, s=12.
- SE = 12/√25 = 2.40
- t = (80-75)/2.40 = 2.08
- df = 24, critical t = ±2.064 (α=0.05)
- 2.08 > 2.064: Reject H0
- New method significantly better!
H0: μ ≤ 50. H1: μ > 50 (one-tailed). n=100, x̄=52, σ=15.
- z = (52-50)/(15/10) = 2/1.5 = 1.333
- Critical z (one-tailed, α=0.05) = 1.645
- 1.333 < 1.645: Fail to reject H0
Real-World Applications
Common Mistakes to Avoid
H0 and H1 must be specified BEFORE looking at data. Cherry-picking based on results inflates false positive rate (p-hacking).
Fail to reject H0 means insufficient evidence against H0. It does NOT prove H0 is true. Absence of evidence is not evidence of absence.
Running 20 tests at α=0.05 expects one false positive. Use Bonferroni correction (α/number of tests) or FDR correction for multiple comparisons.
Frequently Asked Questions
Related Math Calculators
Formula Explorer connections
Interpretation: This formula summarizes data, models uncertainty or supports inference about a population or random process. Assumption: The sampling design and distribution assumptions must match the data. Independence, sample size, outliers and measurement quality can materially affect interpretation.