Hypothesis Test Results
Test Statistic
-
Z-score
P-value
-
Significance
Conclusion
-
At α = 0.05
Test Details
Hypothesis

Null Hypothesis (H₀): μ = 50

Alternative Hypothesis (H₁): μ ≠ 50

Test Information

Test Type: Z-test

Significance Level (α): 0.05

Degrees of Freedom: -

Critical Values

-

Calculation
Formula Used
z = (x̄ - μ₀) / (σ/√n)
Calculation Steps

Enter values and click "Calculate" to see the calculation steps.

Visualization
The graph shows the distribution, test statistic, and critical region(s)

Hypothesis Testing Calculator

Perform Z-tests and T-tests to evaluate hypotheses about population means

Quick Start

Pre-filled example is ready to go. Just click "Calculate" to see results.

How to Use
  • Select test type (Z or T)
  • Enter your data values
  • Choose significance level
  • Select alternative hypothesis
  • Click "Calculate"
About This Tool

This calculator helps you perform hypothesis tests about population means using either Z-tests (when population standard deviation is known or sample size is large) or T-tests (when population standard deviation is unknown and sample size is small).

Common uses: Academic research, business analytics, quality control, medical studies.

Statistics Learning Center

What This Calculator Teaches

This tool helps you master hypothesis testing – a core statistics concept used to make decisions about population parameters using sample data. You'll learn:

  • How to set up null and alternative hypotheses
  • When to use Z-test vs T-test
  • How to calculate and interpret test statistics
  • Understanding p-values and significance levels
  • Making statistical decisions from data

Concept in Simple Terms

Hypothesis testing is like being a detective. You start with an assumption (null hypothesis), collect evidence (sample data), and decide if there's enough evidence to reject your initial assumption. The p-value tells you how surprising your evidence would be if your initial assumption were true.

Input Field Meanings
Hypothesized Mean (μ₀): The population mean you're testing against (your initial assumption)
Sample Mean (x̄): The average from your actual sample data
Standard Deviation: Spread of your data (population σ for Z-test, sample s for T-test)
Sample Size (n): Number of observations in your sample
Significance Level (α): Your threshold for making mistakes (commonly 5%)
Step-by-Step Breakdown
  1. State Hypotheses: H₀: μ = μ₀ vs H₁: μ ≠ μ₀ (or <, >)
  2. Choose Test: Z-test if σ known or n > 30, T-test otherwise
  3. Calculate Standard Error: σ/√n or s/√n
  4. Compute Test Statistic: (x̄ - μ₀) ÷ Standard Error
  5. Find P-value: Probability of seeing your results if H₀ true
  6. Make Decision: Reject H₀ if p-value ≤ α

How to Interpret Results

Test Statistic

How many standard errors your sample mean is from μ₀

  • |Z| or |t| > 2: Usually significant
  • Further from 0 = stronger evidence
P-value

Probability of your evidence if H₀ true

  • p < 0.05: Significant evidence
  • p < 0.01: Strong evidence
  • p > 0.05: Insufficient evidence
Conclusion

Your statistical decision

  • Reject H₀: Evidence supports H₁
  • Fail to reject: No strong evidence against H₀
  • Never "accept" H₀ – just insufficient evidence

Visual Understanding Tips

The graph shows:

  • Blue Curve: The expected distribution if H₀ is true
  • Red Area: Critical region where we'd reject H₀
  • Green Dot: Your test statistic's position
  • If green dot falls in red area → Reject H₀
  • Two-tailed: Red areas on both ends
  • One-tailed: Red area on one end only

Common Student Mistakes

  • Using Z-test when T-test is appropriate (most common error)
  • Forgetting to check conditions (normal data, random sample)
  • Confusing p-value with probability H₀ is true
  • Saying "accept H₀" instead of "fail to reject H₀"
  • Choosing wrong tailed test for research question
  • Not reporting exact p-value (just "p < 0.05")
Learning Shortcuts
  • Z-test rule: n > 30 → Use Z-test even if σ unknown
  • Critical values: Z ≈ 1.96 (5% two-tailed), T ≈ 2.0 (df=30)
  • P-value memory: Z = 2.0 → p ≈ 0.045 (two-tailed)
  • Effect size: Test statistic ÷ √n ≈ Cohen's d
  • Quick check: If confidence interval doesn't contain μ₀, reject H₀
Exam Usage Notes
  • Always state H₀ and H₁ in symbols and words
  • Show your test statistic calculation
  • Report exact p-value, not just "p < 0.05"
  • Write conclusion in context of problem
  • Check assumptions: random sample, normal enough
  • Use correct notation: Z for Z-test, t for T-test

Beginner FAQ

Q: What's the difference between Z and T distributions?

A: T-distribution has thicker tails (more uncertainty) when sample size is small. As n increases, t approaches Z.

Q: Why can't we say "accept H₀"?

A: Because absence of evidence isn't evidence of absence. We might not have enough data to detect a real difference.

Q: What if my data isn't normal?

A: For n > 30, Central Limit Theorem helps. For smaller non-normal data, consider nonparametric tests.

Q: How do I choose α level?

A: Use 0.05 for general research, 0.01 for strict fields (medical), 0.10 for exploratory studies.

Q: What's a Type I vs Type II error?

A: Type I: False positive (reject true H₀). Type II: False negative (fail to reject false H₀).

Why This Formula Matters

Hypothesis testing is fundamental to scientific research, quality control, medical trials, and data-driven decision making. It provides an objective framework for determining if observed patterns are real or just random chance. Mastering this concept is essential for statistics exams and real-world data analysis.

Practice Tips
  • Start with the pre-filled example to see how it works
  • Try changing from Z to T-test with same data
  • Experiment with different α levels (0.01, 0.05, 0.10)
  • Switch between two-tailed and one-tailed tests
  • Make sample size very large to see Z/T convergence
  • Practice writing full conclusions in complete sentences
Accuracy Disclaimer

This calculator provides educational approximations. For formal research, use statistical software. Always verify assumptions and consult statistical guidelines for your field.

Update Notice

Educational content updated November 2025. Calculation algorithms remain unchanged.

Happy learning! Use this tool to build intuition before tackling exam problems.