Hypothesis Testing Calculator

Run a one-sample z-test and get the decision.

z-statistic 2
Two-tailed p-value 0.0455
Decision at alpha 0.05 Reject H0

Formula: z = (mean - mu) / (sigma / sqrt(n))

Step-by-step with your numbers:
1. Values used:
2. Sample mean = 105
3. Null mean = 100
4. Population SD = 15
5. Sample size = 36
6.
7. z-statistic = 2
8. Two-tailed p-value = 0.0455
9. Decision at alpha 0.05 = Reject H0
Did we solve your problem today?

A z-test checks whether a sample mean differs significantly from a hypothesized value.

How the Math Works

The Hypothesis Testing Calculator uses the one-sample z-test formula z = (mean - mu) / (sigma / sqrt(n)) to compare a sample mean to a known population mean (mu). Here, the numerator represents the difference between the observed sample mean and the expected population mean, while the denominator calculates the standard error of the mean (sigma divided by the square root of the sample size n). This standardization converts the difference into a z-score, which indicates how many standard deviations the sample mean is from the population mean. The calculator then uses this z-score to determine whether the observed difference is statistically significant, providing a clear decision for hypothesis testing.

Practical Applications

To apply this calculation, users input their sample mean, the population mean (mu), the population standard deviation (sigma), and the sample size (n) into the calculator. These inputs are plug-and-play for the formula, which computes the z-score. Once the z-score is calculated, the tool compares it to a critical value (based on a chosen significance level) to decide whether to reject or fail to reject the null hypothesis. For example, a quality control manager might use this to test if a factory's product meets a specification (e.g., average battery life of 10 hours), ensuring decisions are grounded in statistical evidence rather than intuition alone.

Day-to-Day Use

This calculator simplifies complex statistical analysis in everyday scenarios. A fitness coach might use it to verify if a new workout program significantly improves client performance compared to industry averages. Similarly, a coffee shop owner could test if customer satisfaction scores have changed after altering their service process. By automating the z-test, the tool empowers non-statisticians to make data-driven choices—like adjusting processes, validating marketing campaigns, or even evaluating personal health goals—with confidence in their conclusions.

Worked example

mean 105, mu 100, sigma 15, n 36 gives z = 2, p about 0.046, reject H0.

FAQ

What is the null hypothesis?

The default claim of no effect or no difference being tested against.