Hypothesis Testing Formula

The Formula

z = \frac{\bar{x} - \mu_0}{\sigma / \sqrt{n}}

When to use: Think of a courtroom trial: the null hypothesis (H_0) is 'innocent until proven guilty.' You look at the evidence (data) and ask: 'Is this evidence so strong that it would be very unlikely if the defendant were truly innocent?' If yes, you reject the null hypothesis. If not, you don't have enough evidence to convict—but that doesn't prove innocence.

Quick Example

A company claims batteries last \mu = 500 hours. You test 36 batteries and get \bar{x} = 485, s = 40. z = \frac{485 - 500}{40 / \sqrt{36}} = \frac{-15}{6.67} \approx -2.25 Since |z| > 1.96, reject H_0 at \alpha = 0.05—evidence suggests batteries last less than claimed.

Notation

H_0: null hypothesis (the default claim). H_a: alternative hypothesis (what we suspect). \alpha: significance level (typically 0.05).

What This Formula Means

A systematic method to decide whether sample data provides enough evidence to reject a claim (null hypothesis) about a population parameter.

Think of a courtroom trial: the null hypothesis (H_0) is 'innocent until proven guilty.' You look at the evidence (data) and ask: 'Is this evidence so strong that it would be very unlikely if the defendant were truly innocent?' If yes, you reject the null hypothesis. If not, you don't have enough evidence to convict—but that doesn't prove innocence.

Formal View

z = \frac{\bar{x} - \mu_0}{\sigma / \sqrt{n}}; reject H_0 if |z| > z_{\alpha/2} (two-tailed) or equivalently if p-value < \alpha

Worked Examples

Example 1

medium
A school claims its students average 75 on standardized tests. A sample of n=36 gives \bar{x}=78 with \sigma=12. Test H_0: \mu=75 vs H_a: \mu>75 at \alpha=0.05.

Solution

  1. 1
    Calculate test statistic: z = \frac{\bar{x} - \mu_0}{\sigma/\sqrt{n}} = \frac{78 - 75}{12/\sqrt{36}} = \frac{3}{2} = 1.5
  2. 2
    Find p-value (one-tailed): P(Z > 1.5) = 1 - 0.9332 = 0.0668
  3. 3
    Compare to \alpha = 0.05: p = 0.0668 > 0.05
  4. 4
    Decision: Fail to reject H_0. Conclusion: insufficient evidence that the true mean exceeds 75.

Answer

z=1.5, p=0.067 > 0.05. Fail to reject H_0. Evidence is inconclusive.
Hypothesis testing follows a structured procedure: state hypotheses, calculate test statistic, find p-value, compare to α, state conclusion. Failing to reject H₀ does not prove H₀ is true — it means the data is insufficient to reject it.

Example 2

hard
A medication is claimed to reduce blood pressure by 10 mmHg on average. A clinical trial with n=49 patients shows \bar{x}=8.2 mmHg reduction, s=7 mmHg. Test H_0: \mu=10 vs H_a: \mu \neq 10 at \alpha=0.05.

Common Mistakes

  • Saying 'accept H_0' instead of 'fail to reject H_0'—we never prove the null hypothesis, we only fail to find evidence against it.
  • Choosing \alpha after seeing the data (p-hacking)—the significance level must be set before collecting data.
  • Confusing statistical significance with practical significance—a statistically significant result may be too small to matter in practice.

Why This Formula Matters

Hypothesis testing is how science decides if results are 'real.' Drug trials, A/B tests, quality control, and research studies all rely on it to distinguish genuine effects from random noise.

Frequently Asked Questions

What is the Hypothesis Testing formula?

A systematic method to decide whether sample data provides enough evidence to reject a claim (null hypothesis) about a population parameter.

How do you use the Hypothesis Testing formula?

Think of a courtroom trial: the null hypothesis (H_0) is 'innocent until proven guilty.' You look at the evidence (data) and ask: 'Is this evidence so strong that it would be very unlikely if the defendant were truly innocent?' If yes, you reject the null hypothesis. If not, you don't have enough evidence to convict—but that doesn't prove innocence.

What do the symbols mean in the Hypothesis Testing formula?

H_0: null hypothesis (the default claim). H_a: alternative hypothesis (what we suspect). \alpha: significance level (typically 0.05).

Why is the Hypothesis Testing formula important in Math?

Hypothesis testing is how science decides if results are 'real.' Drug trials, A/B tests, quality control, and research studies all rely on it to distinguish genuine effects from random noise.

What do students get wrong about Hypothesis Testing?

'Fail to reject H_0' does NOT mean 'H_0 is true'—it means there's not enough evidence against it. Absence of evidence is not evidence of absence.

What should I learn before the Hypothesis Testing formula?

Before studying the Hypothesis Testing formula, you should understand: sampling distribution, normal distribution, probability.