Fiveable

📊Honors Statistics Unit 9 Review

QR code for Honors Statistics practice questions

9.6 Hypothesis Testing of a Single Mean and Single Proportion

9.6 Hypothesis Testing of a Single Mean and Single Proportion

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
📊Honors Statistics
Unit & Topic Study Guides
Pep mascot

Hypothesis Testing for a Single Mean

Hypothesis testing gives you a structured way to decide whether sample data supports a specific claim about a population parameter. For means, you'll use either z-tests or t-tests depending on what you know about the population. For proportions, you'll use z-tests when certain conditions are met.

This section covers the full process: choosing the right test, setting up hypotheses, computing test statistics, and interpreting results in context.

Pep mascot
more resources to help you study

Hypothesis Tests for Population Mean

The first decision you need to make is which test statistic to use. That depends on two things: whether you know the population standard deviation (σ\sigma), and how large your sample is.

  • Use the z-statistic when σ\sigma is known or when the sample size is large (n30n \geq 30). With large samples, the Central Limit Theorem ensures the sampling distribution is approximately normal.
  • Use the t-statistic when σ\sigma is unknown and the sample is small (n<30n < 30). The t-distribution has heavier tails than the normal distribution, which accounts for the extra uncertainty from estimating σ\sigma with ss. Degrees of freedom are n1n - 1.

Here's the full testing procedure, step by step:

Step 1: State the hypotheses.

  • Null hypothesis (H0H_0): μ=μ0\mu = \mu_0 (the population mean equals some claimed value)
  • Alternative hypothesis (HaH_a): Choose based on the research question:
    • μ<μ0\mu < \mu_0 (left-tailed)
    • μ>μ0\mu > \mu_0 (right-tailed)
    • μμ0\mu \neq \mu_0 (two-tailed)

Step 2: Calculate the test statistic.

  • Z-test: z=xˉμ0σ/nz = \frac{\bar{x} - \mu_0}{\sigma / \sqrt{n}}
  • T-test: t=xˉμ0s/nt = \frac{\bar{x} - \mu_0}{s / \sqrt{n}}

In both formulas, xˉ\bar{x} is the sample mean, μ0\mu_0 is the hypothesized value, and nn is the sample size. The denominator is the standard error, which measures how much the sample mean typically varies from the true mean.

Step 3: Find the p-value or critical value.

  • The p-value is the probability of getting a test statistic as extreme as (or more extreme than) what you observed, assuming H0H_0 is true. Use a z-table, t-table, or calculator.
  • Alternatively, find the critical value that corresponds to your significance level (α\alpha) and compare it directly to your test statistic.

Step 4: Make your decision.

  • If the p-value α\leq \alpha, reject H0H_0. The data provides sufficient evidence to support HaH_a.
  • If the p-value >α> \alpha, fail to reject H0H_0. The data does not provide sufficient evidence to support HaH_a.

Failing to reject H0H_0 does not mean you've proven H0H_0 is true. It just means the sample didn't give you enough evidence to say otherwise.

Hypothesis tests for population mean, File:P-value in statistical significance testing.svg - Wikipedia

Statistical Power and Effect Size

Power is the probability of correctly rejecting H0H_0 when it's actually false. In other words, it's your test's ability to detect a real difference. Power depends on three things:

  • Sample size (nn): Larger samples give more power because they reduce the standard error.
  • Significance level (α\alpha): A larger α\alpha (say 0.10 vs. 0.05) increases power but also increases the risk of a Type I error.
  • Effect size: The bigger the true difference between the actual parameter and the hypothesized value, the easier it is to detect.

Effect size quantifies how large a difference is in standardized terms. For a single mean, a common measure is Cohen's dd:

d=xˉμ0sd = \frac{\bar{x} - \mu_0}{s}

This tells you the difference in units of standard deviations, which makes it easier to judge practical importance regardless of the original scale.

The Central Limit Theorem underpins all of this: as nn increases, the sampling distribution of xˉ\bar{x} approaches a normal distribution, no matter what the population distribution looks like. That's why z-tests work for large samples even when the population isn't normal.

Hypothesis tests for population mean, Introduction to Hypothesis Testing | Concepts in Statistics

Hypothesis Testing for a Single Proportion

Population Proportion Hypothesis Tests

Before running a proportion z-test, you need to verify three conditions:

  1. The sample was randomly selected from the population.
  2. The independence condition: the population is at least 10 times larger than the sample (the 10% rule).
  3. The success-failure condition: np010n \cdot p_0 \geq 10 and n(1p0)10n \cdot (1 - p_0) \geq 10, where p0p_0 is the hypothesized proportion. This ensures the sampling distribution of p^\hat{p} is approximately normal.

Note: the success-failure condition uses p0p_0 (the hypothesized value), not p^\hat{p}, because you're checking conditions under the assumption that H0H_0 is true.

Step 1: State the hypotheses.

  • H0H_0: p=p0p = p_0
  • HaH_a: p<p0p < p_0, p>p0p > p_0, or pp0p \neq p_0

Step 2: Calculate the test statistic.

z=p^p0p0(1p0)nz = \frac{\hat{p} - p_0}{\sqrt{\frac{p_0(1 - p_0)}{n}}}

Here, p^\hat{p} is the sample proportion (successes divided by nn), and the denominator is the standard error of the proportion under H0H_0.

Step 3: Find the p-value using the standard normal distribution.

Step 4: Compare and decide using the same logic as the mean test: reject H0H_0 if p-value α\leq \alpha, fail to reject if p-value >α> \alpha.

Interpreting Statistical Results

P-value interpretation

The p-value is not the probability that H0H_0 is true. It's the probability of observing data this extreme (or more so) if H0H_0 were true. A small p-value (typically 0.05\leq 0.05) means the observed result would be unlikely under H0H_0, so you reject it. A large p-value means the data is consistent with H0H_0.

Confidence interval interpretation

A confidence interval gives a range of plausible values for the population parameter. If you construct a 95% confidence interval, that means if you repeated the sampling process many times, about 95% of the resulting intervals would contain the true parameter.

You can connect confidence intervals to hypothesis tests: if the hypothesized value μ0\mu_0 (or p0p_0) falls inside the confidence interval, you would fail to reject H0H_0 at the corresponding significance level. If it falls outside, you would reject.

Drawing conclusions in context

  • Always state your conclusion in the context of the original problem. Don't just say "reject H0H_0." Say something like: "There is sufficient evidence at the α=0.05\alpha = 0.05 level to conclude that the mean battery life is less than 500 hours."
  • Consider practical significance alongside statistical significance. A result can be statistically significant but too small to matter in practice. For example, a drug that lowers blood pressure by 0.5 mmHg might be statistically significant with a huge sample, but clinically meaningless.
  • Acknowledge limitations: sampling bias, measurement error, and whether the sample truly represents the population all affect how much weight you should give the results.