Confidence Intervals for Differences in Population Means (College Board AP® Statistics): Study Guide

Naomi C

Written by: Naomi C

Reviewed by: Dan Finlay

Updated on

Two-sample t-interval for difference in population means

What is a confidence interval for the difference between two population means?

  • A confidence interval for the difference between two population means is

    • a symmetric range of values centered about the difference in sample means

    • designed to capture the actual value of the difference between two population means

  • Different samples generate different confidence intervals

    • e.g. a difference in sample means of 5 may have a confidence interval of (4.5, 5.5)

How do I calculate a confidence interval for the difference between two population means?

  • The confidence interval for the difference between two population means is given by

    • difference between sample means ±(critical value)(standard error of sample means of two populations)

  • Where:

    • The difference between the two sample means is calculated from the samples or is given to you

    • The critical value is the relevant t-value

      • The critical value, t*, depends on the confidence level and the degrees of freedom

      • The degrees of freedom are found by technology (a calculator)

      • With the t-table, a conservative choice is the smaller of n1−1 and n2−1

    • The standard error, s12n1+s22n2, estimates the standard deviation of the sampling distribution of x¯1−x¯2

Examiner Tips and Tricks

The general formula for confidence intervals (including a table of standard errors) is given in the exam: statistic ±(critical value)(standard error of statistic).

You will need to apply it appropriately using the difference between the sample means and the standard error of the difference of the sample means.

What are conditions for a confidence interval for a difference in population means?

  • When calculating a two-sample t-interval, check that

    • the data come from two independent random samples (or from random assignment of two treatments in an experiment)

    • if sampling without replacement, each sample size is at most 10% of its population size, n1≤0.1N1 and n2≤0.1N2

      • This is not needed when treatments are randomly assigned in an experiment

    • the sampling distribution of each sample mean is approximately normal

    • For each sample, this is true if any one of these holds:

      • the population is approximately normal

      • the sample size is large, n≥30

      • the sample data show no strong skewness and no outliers

What is the margin of error?

  • The margin of error is the half-width of the confidence interval

    • margin of error =(critical value)(standard error of the difference of the sample means)

  • The confidence interval is

    • difference in sample means±margin of error

  • The total width of a confidence interval is 2×margin of error

  • You may be given an interval and asked to calculate its margin of error

    • or another value, such as n

      • This involves forming and solving an equation

Examiner Tips and Tricks

You need to know that the width of a confidence interval increases as the confidence level increases, whereas it decreases as the sample sizes increase.

How do I interpret a confidence interval for a difference in population means?

  • You must conclude calculations of a confidence interval by referring to the context

    • Start by saying 'we can be C% confident that the interval from [lower limit] to [upper limit]...'

      • using the limits from the confidence interval

    • then end with it capturing the difference between the population means in context

      • e.g. 'captures the actual difference between the population means of the time taken by students from each school to run 100 m'

  • If both limits are negative, there is convincing evidence that μ1−μ2<0, i.e. μ1<μ2

  • If both limits are positive, there is convincing evidence that μ1>μ2

  • If the interval contains zero, see below

How do I use confidence intervals to justify a claim about a population mean difference?

  • If a difference in population means is claimed to be a specific value, check whether that value lies in your confidence interval

    • If it does, the claimed value is a plausible value for μ1−μ2

      • The interval does not give evidence against the claim, but it does not prove that the claim is true

    • If it does not, the interval gives convincing evidence that μ1−μ2 is different from the claimed value

  • Look out for confidence intervals for differences that contain zero

    • This means μ1−μ2=0 is a plausible value

    • So there is not convincing evidence of a difference between the population means

      • It does not show that μ1=μ2

Worked Example

Two independent farmers each claim to grow the longest eggplants. A random sample of 18 eggplants from the thousands grown at each farm is measured. The lengths of the eggplants on both farms are normally distributed. Those from farm A have a mean length of 8.1 inches with a standard deviation of 0.36 inches and the eggplants from farm B have a mean length of 7.9 inches with a standard deviation of 0.28 inches.

(a) Find the 95% confidence interval for μA−μB.

(b) Is there convincing statistical evidence that the mean lengths of eggplants from the two farms are different?

Answer:

(a)

State the type of interval being used and verify the conditions for the interval

The correct inference procedure is a two-sample t-interval with a 95% confidence level

  • The independence condition is satisfied, as

    • the samples are taken from different farms so they are independent

    • the samples of 18 eggplants were selected at random

    • each sample size, 18, is at most 10% of the thousands of eggplants grown at each farm

  • The lengths at both farms are normally distributed

  • The population standard deviations are unknown, so the sample standard deviations are used and a t-interval is appropriate

Define the population parameters

Let μA be the mean length of all eggplants from farm A

Let μB be the mean length of all eggplants from farm B

List the number of data items in the samples, n, the sample mean, x¯, and the sample standard deviation, sx

nA=18x¯A=8.1sA=0.36 nB=18x¯B=7.9sB=0.28

Using the t-table, find the critical value, t*, using df = 18-1=17 and a confidence level of 95%

Remember that a confidence level of 95% is 5% in both tails combined, so use 2.5% for a single tail in the table (the row 'Confidence level C' at the bottom of the t-tables helps)

t*=2.110

Using the formula from the formula sheet, Confidence interval=statistic±(critical value) (standard error of statistic), calculate the confidence interval

CI=(x¯A−x¯B)±t*·sA2nA+sB2nB=(8.1−7.9)±2.110·0.36218+0.28218

State the confidence interval

(−0.027, 0.427)

With the calculator's df≈32.06, the interval is about (−0.019,0.419)

It is slightly narrower and the conclusion doesn't change

Explain the confidence interval in the context of the question

We can be 95% confident that the interval from -0.027 inches to 0.427 inches captures the actual value of the difference between the population means μA−μB, of the lengths of eggplants from the two farms

(b)

Since 0 lies in this interval, 0 is a plausible value for μA−μB, so the data do not provide convincing statistical evidence that the mean lengths of eggplants from the two farms differ

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Build on this topic

Naomi C

Author: Naomi C

Expertise: Maths Content Creator

Naomi graduated from Durham University in 2007 with a Masters degree in Civil Engineering. She has taught Mathematics in the UK, Malaysia and Switzerland covering GCSE, IGCSE, A-Level and IB. She particularly enjoys applying Mathematics to real life and endeavours to bring creativity to the content she creates.

Dan Finlay

Reviewer: Dan Finlay

Expertise: Portfolio Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.