Mistake Master
Student view — seeing the site as a student does

Setting Up a Test for the Difference Between Two Population Means

▶︎  Watch it animatedinteractive step-through · ~3 min · optional

A two-sample t test states $H_0: \mu_1 = \mu_2$, equivalently $\mu_1 - \mu_2 = 0$, against an alternative whose direction comes from the research question, with both parameters defined in context. The design question comes first: independent groups take the two-sample procedure, while the same individuals measured twice or matched pairs take the one-sample procedure on differences. The conditions are random, independence between groups, the 10% condition per group, and a shape check per group, with degrees of freedom either technology's value or the conservative $\min(n_1, n_2) - 1$.

The design gets read off the data layout rather than the study: two columns of numbers become two samples even when the same twenty runners produced both, which changes the standard error, the degrees of freedom, and the parameter. The hypotheses get written about $\bar{x}_1$ and $\bar{x}_2$, which are known and differ by 7.2, or assigned the two observed means as values, or set to the observed difference itself. And the alternative's direction gets taken from whichever sample mean came out larger rather than from the question the study was designed to answer.

ask this before writing anything down did the SAME individuals, or matched pairs, produce both measurements? YES NO PAIRED subtract within pairs test mu_d against 0 df = pairs - 1 TWO SAMPLE add the two variances test mu1 - mu2 against 0 df: technology or min(n) - 1 twins split across conditions are PAIRED: the matching links them even though no individual appears twice
The two branches answer the same research question with different machinery. The layout of the data does not decide which branch applies; how the study was run does.
mu1 = all students under method A; mu2 = under method B H0: mu1 = mu2 Ha: mu1 > mu2 no numerical value appears: the null claims only EQUALITY direction from the question, not from 78.4 > 71.2 three that are not hypotheses H0: mu1 = 78.4, mu2 = 71.2 values read off the data H0: x-bar1 = x-bar2 known, and they differ by 7.2 H0: mu1 - mu2 = 7.2 that is the evidence, not the claim
The null claims equality without naming a value, which is what leaves the data something to weigh. A hypothesis built from the observed means tests numbers the study already reported.

The work

3 ways in · any order
Lesson
Setting Up a Test for the Difference Between Two Population Means

Puts the design question ahead of everything, sorts paired from two-sample studies, writes hypotheses about two population means with equality in the null and direction from the research question, and checks the conditions once per group.

Skill check · 10 scenarios
Diagnostic
10-item topic check

Ten items on two-sample setup: paired designs run as two samples, hypotheses about the sample means, observed values assigned to the parameters, and alternatives chosen from whichever mean came out higher. Take it cold to find your habit, or after the lesson to check it is gone.

Not started · 10 items · ~15 min
Targeted Practice
Drill a single misconception

Pick one of the failure modes you missed and drill it on its own. The round is adaptive: two correct in a row clears it for now and moves you to the next. Two in a row is a checkpoint, not proof: if the error resurfaces later, the misconception comes back.

Take the diagnostic to identify your misconceptions