The Chinese University of Hong Kong · FACULTY OF STATISTICS

STAT1011 Chap.8 Two-Sample Statistical Inference

- one subject, every graph, every model, every mark
6 Chapters3-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 8 of 10 · STAT1011

Two-Sample Statistical Inference

Differences depend on design

This chapter defines the subtraction order before comparing two means, proportions or variances. It distinguishes independent samples from paired observations, reduces a paired design to one sample of differences and keeps numerator identity attached to an F ratio. Confidence intervals and tests are read as statements about population differences rather than raw sample values.

Original group counts remain visible so pooling, weighting and degrees of freedom can be audited rather than assumed.

In this chapter

What this chapter covers

  • 01

    Independent-sample mean differences

  • 02

    Paired differences

  • 03

    Two-sample t procedures

  • 04

    Difference between proportions

  • 05

    Pooled test proportions

  • 06

    F tests for two variances

Worked example · free

Test a paired mean change

Q [10 marks]. AskSia-authored practice. Eight students have score increases of 2, 5, 1, 4, 3, 6, 2 and 5. Test whether the population mean increase is positive. The marks shown are an AskSia study allocation, not a University marking scheme.
The parameter and dependence structure select the method.The parameter and dependence structure select the method. Means split again into independent and paired designs, proportions use counts, and variance comparisons use an F ratio with a deliberate numerator.What is compared?Meansindependent / pairedProportionspooled under H0VariancesF ratio
The parameter and dependence structure select the method. Means split again into independent and paired designs, proportions use counts, and variance comparisons use an F ratio with a deliberate numerator.
  • 2Define the paired difference and hypotheses.
  • 3Calculate the mean and standard deviation of differences.
  • 3Calculate the t statistic with paired degrees of freedom.
  • 2State the directional conclusion.
The mean difference is 3.5. The squared deviations sum to 22, giving s² = 22/7 and s ≈ 1.7728. The standard error is 1.7728/√8 ≈ 0.6268, so t = 3.5/0.6268 ≈ 5.58 with 7 degrees of freedom. The result supplies strong evidence that the population mean change is positive under the design.
Sia tip — Define after minus before or before minus after once, then keep that order in every hypothesis, statistic and conclusion.
Glossary

Key terms

Independent Samples
Samples whose observations have no unit-by-unit link across groups.
Paired Difference
One within-unit subtraction used to convert paired measurements into a single sample.
Pooled Proportion
A combined success count over combined sample sizes used under an equality null.
F Statistic
A ratio of sample variances with numerator and denominator degrees of freedom.
FAQ

Two-Sample Statistical Inference FAQ

How can I recognise paired data?

Look for a meaningful unit-by-unit link: the same person measured twice, twins, matched cases or two instruments applied to the same item. Time order alone does not create pairing. If each observation in one condition identifies its partner in the other, analyse their differences.

Why is the pooled proportion used in a test but not an interval?

An equality test assumes one common population proportion under H0, so the null standard error estimates that common value by pooling successes and denominators. A confidence interval estimates the two proportions without imposing equality, so it uses separate sample estimates in its standard error.

What does a negative confidence interval for μ1 minus μ2 mean?

It means plausible values of the difference are below zero, so population one is estimated to have a lower mean than population two. The sign is meaningful only after the subtraction order is declared. A negative interval is not a failed calculation or a negative amount of evidence.

Study strategy

Exam move

Draw links between observations before selecting a method. For independent groups, write group-one minus group-two beside the formula. For paired groups, create the difference column first and proceed as a one-sample problem. Practise one mean, one proportion and one variance comparison so parameter type and dependence structure become separate decisions. Build a pairing test from short scenarios.

For each, name the unit that would link one measurement to another. The same person before and after, matched cases and two instruments on one object are paired. Two classes, two independently sampled locations or unrelated treatment and control participants are independent unless matching is stated. Time labels alone do not create a pair.

For paired data, choose a difference direction and calculate three example differences before writing hypotheses. Reverse the direction deliberately and observe how the mean, statistic and directional alternative change while the two-sided evidence does not. This makes sign interpretation a design decision rather than a last-minute sentence.

For independent means, keep both sample sizes and standard deviations visible in the standard error. Label the approximation used for degrees of freedom. Compare the test with a confidence interval for the same ordered difference and verify that their conclusions align at matching levels. For proportions, write success counts over group-specific denominators before converting to decimals.

Use the pooled proportion only for the equality test and separate estimated proportions for the interval. Explain why these different purposes require different standard errors. For variance comparisons, place the larger sample variance in the numerator under the taught convention and attach numerator and denominator degrees of freedom to their original samples.

Finish every practice by interpreting the sign of group one minus group two, then state the sampling or assignment limit. A difference between populations is not automatically a treatment effect, and a nonsignificant result is not proof that the two populations are identical. Add one deliberately mismatched analysis, such as treating repeated measurements as independent, and describe what information it discards.

Explaining the lost within-unit comparison makes the value of pairing concrete and easier to recognise in unfamiliar wording.

Working through Two-Sample Statistical Inference in STAT1011? Sia is AskSia’s AI Statistics tutor — ask any STAT1011 Two-Sample Statistical Inference question and get a clear, step-by-step explanation grounded in how STAT1011 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 13 of your subjects at The Chinese University of Hong Kong, plus 1,000+ more Bibles across the AskSia library.
Sia - your STAT1011 tutor, unlimited, worked the way the exam marks it
The full 3-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works