The Chinese University of Hong Kong · FACULTY OF STATISTICS

STAT1011C Chap.8 Two-Sample 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 9 · STAT1011C

Two-Sample Inference

Dependence is a design fact

Independent samples contain unrelated observational units. Paired samples link each observation in one condition to a specific observation in the other, as in repeated measurements or matching.

Paired inference reduces each pair to one difference and analyses those differences, preserving information that an independent method would discard.

Mean comparisons need an assumption route

Independent means can use z when population spreads are known and t when they are unknown under the relevant conditions. Equal-variance pooling adds an assumption; unequal-variance t avoids it.

Paired t methods require a declared subtraction order and conditions applied to the differences rather than the raw groups separately.

Proportions and variances have distinct rules

A null test of equal proportions pools successes to estimate one common rate, while a confidence interval for the actual difference keeps sample proportions separate. An F test compares variances and uses two degrees of freedom.

Throughout, the order parameter one minus parameter two determines the sign and wording.

In this chapter

What this chapter covers

  • 01

    Independent and dependent samples

  • 02

    Difference between two population means

  • 03

    Pooled and unequal-variance t methods

  • 04

    Paired differences and matched designs

  • 05

    Difference between two proportions

  • 06

    F procedures for population variances

Worked example · free

Analyse a paired before-and-after design

Q [10 marks]. AskSia-authored practice. Eight operators complete a task before and after a redesign. Define difference as after minus before. The sample differences have mean minus 3.2 minutes and standard deviation 2.4 minutes. Test whether mean time is lower after redesign at the 5% level. The marks shown are an AskSia study allocation, not a University marking scheme.
The first branch is about how observations are linked.The first branch is about how observations are linked. Independent groups compare separate sample means, while paired data reduce each matched pair to one difference before analysis.Two samplesIndependentPairedcompare x̄₁−x̄₂analyse d within pairs
The first branch is about how observations are linked. Independent groups compare separate sample means, while paired data reduce each matched pair to one difference before analysis.
  • 3State the paired parameter, sign convention and lower-tail hypotheses.
  • 4Compute the standard error, t statistic and degrees of freedom.
  • 3Use the p value and translate the negative sign into the practical direction.
Let d be after minus before, so lower times correspond to μd<0. The standard error is 2.4 divided by the square root of 8, or 0.8485. The statistic is t=−3.2/0.8485=−3.771 with 7 degrees of freedom. The one-sided p value is about 0.0035, so reject the null at 5%. There is significant evidence that mean completion time is lower after redesign, with an estimated reduction of 3.2 minutes.
Sia tip — Write the subtraction order beside the difference variable; every sign in the hypotheses and conclusion must follow it.
Glossary

Key terms

Independent Samples
Samples whose observational units have no one-to-one link across groups.
Paired Samples
Samples in which each observation is matched to a specific observation in the other condition.
Pooled Variance
A combined estimate of common population variance used when an equal-variance assumption is justified.
Mean Difference
The population average of within-pair differences under a declared subtraction order.
Pooled Proportion
The combined success rate used to estimate standard error under a null equality of two population proportions.
F Statistic
A ratio of sample variances referenced to an F distribution with numerator and denominator degrees of freedom.
FAQ

Two-Sample Inference FAQ

How can I recognise paired data?

Look for the same unit measured twice or an explicit one-to-one match across conditions. Before and after measurements, twins or matched sites are typical. The analysis should use within-pair differences, and assumptions about shape apply to those differences.

When should two-sample variances be pooled?

Pooling assumes the populations share a common variance and combines the two sample estimates. Use it only when the problem or evidence supports that assumption. An unequal-variance t procedure avoids imposing equality and adjusts its degrees of freedom.

Why is pooling different for a proportion test and interval?

A test of equal proportions assumes one common rate under the null, so pooled successes estimate that rate for the standard error. An interval estimates the actual difference and does not impose equality, so it uses the two separate sample proportions.

Study strategy

Exam move

Begin every comparison with a design sketch showing whether observations are linked. Write the parameter difference and group order in words. Build a method grid for independent means, paired means, proportions and variances, listing assumptions and reference distributions. Practise reversing group order and verify that the statistic and interval signs reverse while the strength of evidence remains unchanged.

Finish conclusions with both populations named. Take repeated-measurement data and compare the paired analysis with an incorrect independent analysis to see how matching changes standard error. For independent means, state whether equal-variance pooling is assumed and what evidence supports that choice.

For proportion problems, calculate the pooled rate only for the null equality test and keep separate estimates for the interval. Sketch intervals for parameter one minus parameter two and practise reading positive, negative and zero-crossing ranges. For F procedures, preserve numerator and denominator order with their degrees of freedom.

Treat household, classroom or site clusters as potential violations of independence rather than counting every row as new information. Reconstruct a paired-data question from its raw before-and-after values and verify that analysing the single difference column reproduces the paired result. For an independent comparison, make a separate assumption checklist for each group and a design-level independence check across groups.

When software offers pooled and unequal-variance rows, decide from the stated model and diagnostics which row is defensible before copying any statistic or degrees of freedom.

Working through Two-Sample Inference in STAT1011C? Sia is AskSia’s AI Statistics tutor — ask any STAT1011C Two-Sample Inference question and get a clear, step-by-step explanation grounded in how STAT1011C 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 STAT1011C 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