Confidence Intervals &
Hypothesis Testing
Learn how to estimate population parameters using confidence intervals and test claims about data using hypothesis tests: all powered by your GDC.
What Is a Confidence Interval?
A confidence interval (CI) gives a range of plausible values for an unknown population parameter (like \(\mu\) or \(p\)), calculated from sample data. Instead of a single estimate, you get an interval that captures the true value with a stated level of confidence.
Anatomy of a Confidence Interval
Key Vocabulary
What Is Hypothesis Testing?
A hypothesis test is a formal procedure for deciding whether sample data provide enough evidence to reject a claim about a population parameter. You start with two competing statements and use data to decide between them.
Understanding the p-value
CI vs Hypothesis Test
| Confidence Interval | Hypothesis Test | |
|---|---|---|
| Goal | Estimate a range for the parameter | Decide whether to reject a claim |
| Output | An interval: \((\text{lower}, \text{upper})\) | A p-value and a decision |
| Uses | "How big is the effect?" | "Is there an effect at all?" |
| Connection | If the hypothesised value lies outside the CI, we reject \(H_0\) at the corresponding \(\alpha\) | |
One-Tailed vs Two-Tailed Tests
The \(z\)-Test for a Mean
In the IB, you will almost always use technology (GDC) to compute the test statistic and p-value directly. The formula above helps you understand what the calculator is doing.
Step-by-Step Procedure
Example 1: Confidence Interval
A sample of \(n = 36\) students scored a mean of \(\bar{x} = 72\) on a test, with \(s = 9\). Find a 95% confidence interval for the population mean \(\mu\).
Example 2: Hypothesis Test
A factory claims its bolts have a mean length of \(\mu = 5.00\) cm. A quality inspector measures \(n = 50\) bolts and finds \(\bar{x} = 5.08\) cm, \(s = 0.21\) cm. Test at the 5% significance level.
Example 3: One-Tailed Test
A nutritionist claims a diet reduces cholesterol. Before: \(\mu = 220\) mg/dL. After the diet, \(n = 25\) patients have \(\bar{x} = 212\), \(s = 18\). Test at \(\alpha = 0.05\).
Type I and Type II Errors
| \(H_0\) is true | \(H_0\) is false | |
|---|---|---|
| Do not reject \(H_0\) | Correct | Type II Error (\(\beta\)) |
| Reject \(H_0\) | Type I Error (\(\alpha\)) | Correct |
Common Mistakes
Question 1 of 5
A 95% confidence interval for a population mean is \((42.3,\; 51.7)\). What is the margin of error?
Question 2 of 5
A hypothesis test produces a p-value of 0.032. At the \(\alpha = 0.05\) significance level, what is the correct conclusion?
Question 3 of 5
Which of the following correctly interprets a 95% confidence interval?
Question 4 of 5
A researcher tests \(H_0\!: \mu = 100\) vs \(H_1\!: \mu > 100\) and gets a p-value of 0.08. She uses \(\alpha = 0.05\). A Type II error occurs if:
Question 5 of 5
Increasing the sample size \(n\) while keeping the confidence level constant will: