Maths4UBETA

Confidence intervals for differences of means

Select a normal, pooled t or paired interval and preserve the order of subtraction.

Try the quick check →
Lesson 6 of 6

Section 1 of 6 · Core · about 7 min

How do known variances enter an interval for a difference?

Fix the order first. For independent normal samples with known variances, the contrast uses a normal reference.

Worked example

Construct an interval in the requested order

Independent random samples come from two normal populations with known variances. The summaries are nA=16, aˉ=21, σA2=9n_A=16,\ \bar a=21,\ \sigma_A^2=9 and nB=25, bˉ=19, σB2=16n_B=25,\ \bar b=19,\ \sigma_B^2=16.

Find a 9595 per cent confidence interval for μA−μB\mu_A-\mu_B. Use the supplied critical value 1.9601.960 exactly. Give endpoints to 3 decimal places.

  1. The calculated standard error comes from SE=916+1625=48120\mathrm{SE}=\sqrt{\frac{9}{16}+\frac{16}{25}}=\frac{\sqrt{481}}{20}.

  2. The margin is 4925×48120\frac{49}{25}\times\frac{\sqrt{481}}{20}. Centre the interval at the observed estimate.

  3. The requested endpoints are −0.149-0.149 and 4.1494.149.

Worked example

Identify the model from the sampling design

Independent samples come from normal populations with known variances. Their sizes differ.

Which procedure matches this design?

Try it on paper first.

  1. Independent samples have known normal variances or are sufficiently large for the normal approximation, as stated.

  2. Use σ12\sigma_1^2 divided by its own sample size and σ22\sigma_2^2 divided by its own sample size. The sum gives the variance of the difference, and its square root is the standard error.

Your turn

Independent random samples come from two normal populations with known variances. The summaries are nA=25, aˉ=10, σA2=9n_A=25,\ \bar a=10,\ \sigma_A^2=9 and nB=36, bˉ=8, σB2=16n_B=36,\ \bar b=8,\ \sigma_B^2=16.

Find a 9595 per cent confidence interval for μA−μB\mu_A-\mu_B. Use the supplied critical value 1.9601.960 exactly. Give endpoints to 3 decimal places.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Section 2 of 6 · Core · about 7 min

How do separate large-sample variances enter?

If each independent sample is sufficiently large, replace the two unknown variances by separate unbiased estimates.

Worked example

Construct an interval in the requested order

Two independent large random samples are taken from different populations of finite variance. The summaries are nA=50, aˉ=16110, sA2=4n_A=50,\ \bar a=\frac{161}{10},\ s_A^2=4 and nB=64, bˉ=14910, sB2=9n_B=64,\ \bar b=\frac{149}{10},\ s_B^2=9.

Find a 9595 per cent confidence interval for μA−μB\mu_A-\mu_B. Use the supplied critical value 1.9601.960 exactly. Give endpoints to 3 decimal places.

  1. The calculated standard error comes from SE=450+964=35340\mathrm{SE}=\sqrt{\frac{4}{50}+\frac{9}{64}}=\frac{\sqrt{353}}{40}.

  2. The margin is 4925×35340\frac{49}{25}\times\frac{\sqrt{353}}{40}. Centre the interval at the observed estimate.

  3. The requested endpoints are 0.2790.279 and 2.1212.121.

Your turn

Two independent large random samples are taken from different populations of finite variance. The summaries are nA=60, aˉ=24, sA2=16n_A=60,\ \bar a=24,\ s_A^2=16 and nB=85, bˉ=1115, sB2=25n_B=85,\ \bar b=\frac{111}{5},\ s_B^2=25.

Find a 9090 per cent confidence interval for μA−μB\mu_A-\mu_B. Use the supplied critical value 1.6451.645 exactly. Give endpoints to 3 decimal places.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Section 3 of 6 · Core · about 8 min

What changes for two small normal samples?

For independent small normal samples with the same unknown variance, share information about variance by pooling.

DesignReference
Known normal variancesStandard normal.
Both independent samples largeNormal approximation with separate estimates.
Common unknown normal variancePooled t interval.
Matched pairsOne-sample t for the differences.

Worked example

Construct an interval in the requested order

Independent random samples come from two normal populations with a common unknown variance. The summaries are nA=8, aˉ=18, sA2=4n_A=8,\ \bar a=18,\ s_A^2=4 and nB=10, bˉ=15, sB2=6n_B=10,\ \bar b=15,\ s_B^2=6.

Find a 9595 per cent confidence interval for μA−μB\mu_A-\mu_B. Use the supplied critical value 2.1202.120 exactly. Give endpoints to 3 decimal places.

  1. The calculated standard error comes from sp2=418,SE=418(18+110)=320540s_p^2=\frac{41}{8},\quad \mathrm{SE}=\sqrt{\frac{41}{8}\left(\frac{1}{8}+\frac{1}{10}\right)}=\frac{3 \sqrt{205}}{40}.

  2. The margin is 5325×320540\frac{53}{25}\times\frac{3 \sqrt{205}}{40}. Centre the interval at the observed estimate.

  3. The requested endpoints are 0.7230.723 and 5.2775.277.

Your turn

Independent random samples come from two normal populations with a common unknown variance. The summaries are nA=7, aˉ=21, sA2=92n_A=7,\ \bar a=21,\ s_A^2=\frac{9}{2} and nB=11, bˉ=19, sB2=4n_B=11,\ \bar b=19,\ s_B^2=4.

Find a 9090 per cent confidence interval for μA−μB\mu_A-\mu_B. Use the supplied critical value 1.7461.746 exactly. Give endpoints to 3 decimal places.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Section 4 of 6 · Core · about 7 min

What if the two columns record the same units?

A comparison of matched units uses the variation of the within-pair differences. The units are the pairs.

Worked example

Construct an interval in the requested order

Use the following independent before-and-after pairs. Assume the differences before minus after follow a normal model.

PairBeforeAfter
116161515
223232121
324242020
424242424
527272121

Find a 9595 per cent confidence interval for μd\mu_d. Use the supplied critical value 2.7762.776 exactly. Give endpoints to 3 decimal places.

  1. Subtract second from first within each pair to obtain 1,2,4,0,61,\quad 2,\quad 4,\quad 0,\quad 6.

    The mean difference is 135\frac{13}{5}. The unbiased variance of these differences is 295\frac{29}{5}.

  2. The calculated standard error comes from SE=2955=295\mathrm{SE}=\sqrt{\frac{\frac{29}{5}}{5}}=\frac{\sqrt{29}}{5}.

  3. The margin is 347125×295\frac{347}{125}\times\frac{\sqrt{29}}{5}. Centre the interval at the observed estimate.

  4. The requested endpoints are −0.390-0.390 and 5.5905.590.

Your turn

Use the following independent before-and-after pairs. Assume the differences before minus after follow a normal model.

PairBeforeAfter
119191717
221211818
322221919
427272828
520201919
628282525

Find a 9595 per cent confidence interval for μd\mu_d. Use the supplied critical value 2.5712.571 exactly. Give endpoints to 3 decimal places.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Section 5 of 6 · Core · about 7 min

How do I report the contrast in the opposite order?

When the order of the mean difference is reversed, the point estimate changes sign and the standard error stays the same.

Worked example

Construct an interval in the requested order

Independent random samples come from two normal populations with known variances. The summaries are nA=16, aˉ=21, σA2=9n_A=16,\ \bar a=21,\ \sigma_A^2=9 and nB=25, bˉ=19, σB2=16n_B=25,\ \bar b=19,\ \sigma_B^2=16.

Find a 9595 per cent confidence interval for μB−μA\mu_B-\mu_A. Use the supplied critical value 1.9601.960 exactly. Give endpoints to 3 decimal places.

  1. The calculated standard error comes from SE=916+1625=48120\mathrm{SE}=\sqrt{\frac{9}{16}+\frac{16}{25}}=\frac{\sqrt{481}}{20}.

  2. The margin is 4925×48120\frac{49}{25}\times\frac{\sqrt{481}}{20}. Negate the estimate to put the difference in the requested order.

  3. The requested endpoints are −4.149-4.149 and 0.1490.149.

Your turn

Two independent large random samples are taken from different populations of finite variance. The summaries are nA=50, aˉ=16110, sA2=4n_A=50,\ \bar a=\frac{161}{10},\ s_A^2=4 and nB=64, bˉ=14910, sB2=9n_B=64,\ \bar b=\frac{149}{10},\ s_B^2=9.

Find a 9595 per cent confidence interval for μB−μA\mu_B-\mu_A. Use the supplied critical value 1.9601.960 exactly. Give endpoints to 3 decimal places.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Section 6 of 6 · Extension · about 6 min

What does an interval entirely above or below zero show?

An interval for a difference entirely above zero supports a positive contrast at the matching two-sided level. Entirely below zero supports a negative contrast.

Worked example

Read whether a proposed value lies inside the interval

A confidence procedure for a mean produces interval [1,3][1,3]. Consider the corresponding two-sided test at the matching significance level for null value 00. Is the value inside the interval?

  1. Compare 00 with both endpoints 11 and 33.

  2. The value is outside, so the corresponding two-sided test would reject.

Your turn

A confidence procedure for a mean produces interval [−1,3][-1,3]. Consider the corresponding two-sided test at the matching significance level for null value 00. Is the value inside the interval?

Inside the confidence interval

Worked examples

Practise the method

Core practice

Question 1 of 4

0 / 4 checked in this collection

Question list

Core practice

Fresh variants

Exam-style

A complete interval for a mean difference

2 marks

Independent large random samples have sizes 100,100100,100, means 32,3132,31, and unbiased variances 9,169,16. Use a normal-approximation interval with the supplied central critical value 4925\frac{49}{25}, treated exactly. Give both endpoints for μA−μB\mu_A-\mu_B.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Full answer-format guide

Exact numbers: 3/2, sqrt(5), 2-sqrt(3), pi/6, 3*pi/2. Sets: {1,4}. Intervals: (3,5]; a round bracket excludes the endpoint. Infinity: inf; union: U; no solutions: empty. Separate coordinate pairs or triples with semicolons. Expressions: 2x^2+3x-1; equations: x^2=3x+1 or the polynomial equal to zero. Factors: x-1 ; x+2. Parameter fraction: numerator ; denominator. List integer answers individually.

Review the method

Progress stays in this browser. Create an account to save it or sign in.

Extra practice from this lesson

Construct an interval in the requested order

Independent random samples come from two normal populations with known variances. The summaries are nA=16, aˉ=30, σA2=4n_A=16,\ \bar a=30,\ \sigma_A^2=4 and nB=25, bˉ=29, σB2=9n_B=25,\ \bar b=29,\ \sigma_B^2=9.

Find a 9595 per cent confidence interval for μA−μB\mu_A-\mu_B. Use the supplied critical value 1.9601.960 exactly. Give endpoints to 3 decimal places.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Construct an interval in the requested order

Two independent large random samples are taken from different populations of finite variance. The summaries are nA=72, aˉ=52, sA2=16n_A=72,\ \bar a=52,\ s_A^2=16 and nB=68, bˉ=50, sB2=25n_B=68,\ \bar b=50,\ s_B^2=25.

Find a 9595 per cent confidence interval for μA−μB\mu_A-\mu_B. Use the supplied critical value 1.9601.960 exactly. Give endpoints to 3 decimal places.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Construct an interval in the requested order

Independent random samples come from two normal populations with a common unknown variance. The summaries are nA=7, aˉ=17, sA2=3n_A=7,\ \bar a=17,\ s_A^2=3 and nB=9, bˉ=16, sB2=5n_B=9,\ \bar b=16,\ s_B^2=5.

Find a 9595 per cent confidence interval for μA−μB\mu_A-\mu_B. Use the supplied critical value 2.1452.145 exactly. Give endpoints to 3 decimal places.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Construct an interval in the requested order

Use the following independent before-and-after pairs. Assume the differences before minus after follow a normal model.

PairBeforeAfter
117171616
219191818
322222222
421212020
523232121

Find a 9595 per cent confidence interval for μd\mu_d. Use the supplied critical value 2.7762.776 exactly. Give endpoints to 3 decimal places.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Construct an interval in the requested order

Independent random samples come from two normal populations with a common unknown variance. The summaries are nA=12, aˉ=19, sA2=9n_A=12,\ \bar a=19,\ s_A^2=9 and nB=10, bˉ=16, sB2=4n_B=10,\ \bar b=16,\ s_B^2=4.

Find a 9595 per cent confidence interval for μB−μA\mu_B-\mu_A. Use the supplied critical value 2.0862.086 exactly. Give endpoints to 3 decimal places.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Read whether a proposed value lies inside the interval

A confidence procedure for a mean produces interval [−3,−1][-3,-1]. Consider the corresponding two-sided test at the matching significance level for null value 00. Is the value inside the interval?

Inside the confidence interval

Apply it · original exam-style problems

Show your working on paper and compare it with the worked solution and marking guidance.

Come back to what needs practice

Quick revision sheet (A4)

Your review plan starts after your first check.