Hypothesis Testing Calculator
Free hypothesis testing calculator. One-sample z/t, two-sample t, paired t, proportion tests. p-valu
Why This Statistical Analysis Matters
Why: Statistical calculator for analysis.
How: Enter inputs and compute results.
Hypothesis Testing — Comprehensive Tool
One-sample z/t, two-sample t, paired t, one/two-proportion z. Test stat, p-value, CI, decision, effect size.
Real-World Scenarios — Click to Load
Test Configuration
95% Confidence Interval
Red line = null value. CI includes null → not significant.
Distribution: Rejection Region & p-value
Effect Size vs Benchmarks
Calculation Breakdown
For educational and informational purposes only. Verify with a qualified professional.
Key Takeaways
- • One-sample z: z = (x̄ − μ₀) / (σ/√n). Use when σ is known.
- • One-sample t: t = (x̄ − μ₀) / (s/√n), df = n−1. Use when σ unknown.
- • Two-sample t: t = (x̄₁−x̄₂) / (sₚ√(1/n₁+1/n₂)), df = n₁+n₂−2.
- • Paired t: t = d̄ / (s_d/√n), df = n−1. For before/after or matched pairs.
- • One-proportion z: z = (p̂−p₀) / √(p₀(1−p₀)/n).
- • Two-proportion z: z = (p̂₁−p̂₂) / √(p̂(1−p̂)(1/n₁+1/n₂)).
- • Decision: Reject H₀ if p-value < α or |test stat| ≥ critical value.
- • Effect size: Cohen's d for means; h for proportions.
Did You Know?
Expert Tips
z vs t: The Decision Rule
Use z when σ is known. Use t when σ is estimated from your sample. For n > 120, the difference is negligible.
One-Tailed vs Two-Tailed
Only use one-tailed tests when the direction was specified BEFORE seeing data. Post-hoc switching inflates Type I error.
Interpreting Non-Significance
"Fail to reject H₀" does NOT mean H₀ is true. Check power — low power means you may lack sample size.
Paired vs Independent
Use paired t when observations are matched (before/after). Use two-sample t for independent groups. Paired designs have more power.
When to Use Each Test
| Test | When to Use |
|---|---|
| One-sample z | Known σ, or n large |
| One-sample t | Unknown σ, small/moderate n |
| Two-sample t | Compare two independent group means |
| Paired t | Before/after, matched pairs |
| One-proportion z | Test proportion vs p₀ |
| Two-proportion z | Compare two proportions (A/B) |
Frequently Asked Questions
When do I use z vs t?
Use z when σ is known. Use t when estimating σ from the sample.
What does p-value mean?
Probability of getting your result (or more extreme) if H₀ were true. Small p-value = evidence against H₀.
What is effect size?
Cohen's d for means, h for proportions. Tells you how big the effect is.
Why use confidence intervals?
CI gives the range of plausible values. If CI excludes the null value, the test is significant.
What is statistical power?
Power = P(reject H₀ when H₁ is true). Aim for 80% when planning studies.
Paired vs two-sample t?
Paired: same subjects measured twice. Two-sample: two independent groups.
What are Type I and Type II errors?
Type I (α): reject H₀ when true. Type II (β): fail to reject when H₁ true. Power = 1 − β.
Hypothesis Testing by the Numbers
Official Data Sources
Disclaimer: This calculator is for educational purposes. For research, verify assumptions and use established statistical software.
Related Calculators
Z-test Calculator
Performs z-tests: one-sample (σ known), two-sample, one-proportion, two-proportion. CI, effect size, power.
StatisticsT-Statistic Calculator
Compute t-statistic for one-sample, two-sample (pooled/Welch), and paired designs. p-value, critical value, decision, Cohen's d effect size.
StatisticsPower Analysis Calculator
Compute statistical power, required sample size, or minimum detectable effect size for t-tests, proportions, ANOVA, and correlation.
StatisticsP-Value Calculator
Compute p-values from test statistics for z, t, chi-square, and F distributions. One-tailed and two-tailed tests. Significance stars and decision rule.
StatisticsT-Test Calculator
Full-featured t-test. Raw data or summary stats. Assumptions check, effect size, power, confidence interval.
StatisticsConfidence Interval Calculator
Calculate confidence intervals for means, proportions, and differences. Z-intervals, t-intervals, and sample size planning.
Statistics