Hypothesis Test Calculator

Standard deviation and sample size must be greater than 0

Share This Calculator

What is a Hypothesis Test Calculator?

A hypothesis test calculator performs statistical hypothesis testing to determine whether sample data provides sufficient evidence to reject a null hypothesis in favor of an alternative hypothesis.

This calculator performs one-sample Z-tests, calculating test statistics, p-values, and critical values to help you make statistical decisions based on your data.

Key Applications:

  • Quality control and manufacturing
  • Medical and pharmaceutical research
  • Market research and A/B testing
  • Academic research and studies
  • Business decision making

How It Works

1

Set Hypotheses

Define H₀ and H₁

2

Enter Data

Input sample statistics

3

Calculate

Compute test statistic

4

Compare

Check p-value vs α

📊
Decision

Z-Test Formula

z = (x̄ - μ) / (σ / √n)

Where x̄ is sample mean, μ is population mean

Decision Rule

If p-value < α, reject H₀

Otherwise, fail to reject H₀

Common Examples

Quality Control

H₀: μ = 100 (target weight)
Sample: x̄ = 98, σ = 5, n = 25
Test if product meets specs

Medical Research

H₀: μ = 120 (normal BP)
Sample: x̄ = 125, σ = 15, n = 30
Test treatment effectiveness

A/B Testing

H₀: μ = 0.05 (conversion rate)
Sample: x̄ = 0.07, σ = 0.02, n = 100
Test new design impact

Calculation Table

Test TypeFormulaWhen to UseAssumptions
One-Sample Z-Testz = (x̄ - μ) / (σ / √n)Known population σNormal distribution, σ known
Critical Value (α=0.05)±1.96 (two-tailed)Decision boundaryStandard normal distribution
P-ValueP(Z ≥ |z|)Probability of resultUnder null hypothesis
Decision Rulep < α → Reject H₀Statistical decisionSignificance level α

Frequently Asked Questions

1

What is hypothesis testing?

Hypothesis testing is a statistical method used to make decisions about population parameters based on sample data. It involves testing a null hypothesis (H₀) against an alternative hypothesis (H₁).

2

What's the difference between one-tailed and two-tailed tests?

A two-tailed test checks if the parameter is significantly different from the hypothesized value (≠). One-tailed tests check if it's significantly greater than (>) or less than (<) the hypothesized value.

3

What is a p-value?

The p-value is the probability of obtaining test results at least as extreme as the observed results, assuming the null hypothesis is true. If p-value < α, we reject the null hypothesis.

4

How do I choose the significance level?

Common significance levels are 0.05 (5%), 0.01 (1%), and 0.10 (10%). Choose 0.05 for general research, 0.01 for more stringent requirements, or 0.10 for exploratory analysis.

5

When should I use a Z-test vs T-test?

Use a Z-test when the population standard deviation is known and sample size is large (n ≥ 30). Use a T-test when the population standard deviation is unknown or sample size is small.

6

What does "fail to reject H₀" mean?

"Fail to reject H₀" means there's insufficient evidence to conclude the alternative hypothesis is true. It doesn't prove H₀ is true, just that we don't have enough evidence against it.

Quick Reference

📏1 meter
3.28 feet
⚖️1 kilogram
2.2 pounds
🌡️0°C
32°F
🥤1 liter
0.26 gallon