Training Statistics Confidence Intervals and Hypothesis Tests
4 / 5

Confidence Intervals and Hypothesis Tests

24 min Statistics

Confidence Intervals and Hypothesis Tests

Descriptive statistics tell you about the data you have; statistical inference tells you about the larger population you cannot fully observe. If you measure the blood pressure of 100 patients, you know the sample mean exactly — but what you really want to know is the true average blood pressure for all patients like these. Inference bridges that gap by using sample data, combined with probability theory, to make rigorous statements about population parameters.

The two workhorses of inference are confidence intervals and hypothesis tests. A confidence interval takes a sample statistic and wraps a margin of error around it, producing a range that is likely to capture the true population parameter. A 95% confidence interval, for example, is constructed by a method that captures the true parameter 95% of the time across many repeated samples. The width of the interval depends on the sample size and the desired level of confidence — more data or less confidence yields a narrower interval, while less data or higher confidence yields a wider one.

Hypothesis testing takes a different approach: you start with a specific claim about the population (the null hypothesis, $H_0$) and ask whether the observed data are compatible with that claim. The p-value quantifies how surprising your sample would be if the null hypothesis were true. A very small p-value suggests the data are unlikely under $H_0$, giving you evidence to reject it in favor of an alternative hypothesis $H_a$. It is critical to remember that the p-value is not the probability that the null hypothesis is true — a common and consequential misinterpretation.

In this lesson you will learn the general form of a confidence interval, practice computing point estimates and margins of error, interpret p-values correctly, and see how confidence level and sample size trade off against interval precision. These concepts underpin virtually all applied statistics, from clinical trials to quality control to social science research.

Confidence Interval

A confidence interval gives a plausible range for a population parameter.

General Form

Estimate $\pm$ margin of error.

Hypothesis Test

Start with a null hypothesis $H_0$ and an alternative $H_a$. The p-value measures how surprising the data are if $H_0$ were true.

Interpretation

A small p-value is evidence against the null hypothesis. It is not the probability that the null is true.

Example 1

A 95% confidence interval for a mean is $(48,52)$. What is the point estimate?

  1. The midpoint is $50$.
Interactive Explorer: Confidence Interval
Standard error = 2.000
Margin of error = 3.920
Interval = (46.08, 53.92)
Width = 7.840

Practice Problems

1. What is the general form of a confidence interval?
2. What does a p-value measure?
3. If a 90% CI is $(10,14)$, what is the point estimate?
4. Does a larger confidence level usually make the interval wider or narrower?
5. What are the two competing hypotheses called?
Show Answer Key

1. Estimate $\pm$ margin of error

2. How surprising the sample is under the null hypothesis

3. $12$

4. Wider

5. Null hypothesis and alternative hypothesis