Learner outcomes and gentle prerequisite repair
Learner can (1) identify two independently sampled quantitative populations, defining μA and μB; (2) separate observed sample mean difference xbarA−xbarB from unknown population difference μA−μB; (3) identify whether BOTH σA and σB are genuinely known externally or only sample sA and sB are available; (4) compute SE for two independent sample means, with variance components added; (5) choose a known-sigma two-sample z reference or an estimated-spread Welch t reference with computed approximate degrees of freedom; (6) compare a statistic to trustworthy two-sided α0.05 critical quantiles; (7) refuse ordinary independent-samples tests on paired, dependent or otherwise inappropriate data; and (8) produce a qualified novel transfer without confusing a significant difference with evidence of causal superiority.
Gentle repair: Two separate means 19 units and15 units differ by 4 units. This observed four-unit difference is a raw effect estimate, NOT a standardized statistic, p-value, population proof or practical benefit. If two independent group means each vary, the uncertainty of their DIFFERENCE comes from BOTH groups. Each group contributes squared spread/n: σA²/nA plus σB²/nB for genuinely known population spreads; or sA²/nA plus sB²/nB for sample-based estimated spreads. Then take the SQUARE ROOT to return to the original measurement unit. If measurements are actually before/after pairs on the SAME subjects, the two means are dependent and the independent-group formula omits their covariance: use an appropriately specified paired-difference analysis instead, not this model.
Explicit assumptions: Observations independent WITHIN each group and groups independent of EACH OTHER, unbiased/defensible sampling, numeric comparable measurement scales, approximately normal population distributions for small sample sizes or otherwise well-justified sampling distribution, finite positive spreads. No exotic mixed clusters, extreme outliers, unequal protocols or self-selected data can be overlooked. The two sample-variance values may differ: Welch does NOT impose equal population variance. The known-σ model only applies when both population standard deviations are genuinely known from appropriate external sources; typing s into a box labelled σ does not make it population information.
Full original student-facing teaching lesson
1. Two imaginary groups, same numerical spreads, different scientific knowledge
A fictional design class compares two completely independent samples of the same hypothetical numeric outcome. Group A's sample mean is 19 units and group B's mean is 15 units. Both sample sizes are 16. For this illustration, the problem explicitly declares independence, credible random sampling and normal populations.
Two different information cards appear:
- Known population spreads card: credible separate population information supplies σA=4 units and σB=7 units. These are TRUE population spread parameters for this mathematical model, not estimates from these samples.
- Estimated spreads card: the population σA and σB are UNKNOWN. The sample calculations instead give sA=4 units and sB=7 units; the printed numbers happen to be identical to the other card but their inferential status differs.
2. The two-sample standard error has TWO parts
Our null is H0: μA−μB=0 and two-sided alternative H1: μA−μB≠0, selected BEFORE inspecting measurements. The observed difference is xbarA−xbarB=19−15=4 units.
When both σ values genuinely known:
- Group A contribution σA²/nA =4²/16=16/16=1 squared unit.
- Group B contribution σB²/nB =7²/16=49/16=3.0625 squared units.
- Sum variance for independent sample-mean difference =1+3.0625=4.0625 squared units.
- Standard error SE=sqrt(4.0625)=sqrt(65)/4≈2.015564 units.
- Standardized z=4/SE=16/sqrt65≈1.984556, a DIMENSIONLESS statistic.
The two-sided α0.05 standard normal critical magnitude is about 1.95996398454, so |z| exceeds it. Under the problem's idealized assumptions we REJECT H0, without claiming that the observed 4-unit difference is certainly a large real-world effect or that group membership CAUSED any difference.
3. Same printed numbers, but spread is only estimated
In the second card the spreads4 and7 are SAMPLE s values and unknown population σ values are not magically fixed. The estimated standard error has the same printed value: SE=sqrt(sA²/nA+sB²/nB)=sqrt(65)/4≈2.015564 units. The Welch t statistic is also numerically t≈1.984556.
But the t reference distribution has estimated degrees of freedom, not a normal reference. Define wA=sA²/nA=1 and wB=sB²/nB=3.0625. For independent-samples Welch t: df = (wA+wB)² / [wA²/(nA−1)+wB²/(nB−1)]. Insert values: df=15×65²/(16²+49²)=63,375/2,657 ≈23.852089. Welch df generally is NOT nA+nB−2 and need not be an integer; a statistical library handles the fractional degrees of freedom.
For a two-sided α0.05 Welch test with df≈23.8521, the corresponding t critical magnitude is approximately 2.064576. Since |t|≈1.984556 is LOWER, we FAIL TO REJECT H0. This is NOT proof that group population means are equal. We also do not assume the spreads in the two populations are identical: the first spread4 and the second7 can be different.
4. Method selection before mechanical calculation
Ask these questions IN THIS ORDER:
- Are there TWO distinct independent groups, and are measurements within each group sufficiently independent? If NO, this textbook procedure might be inappropriate. If same matched people have before/after values, use an appropriate paired-difference approach after assessing its assumptions.
- Is the outcome comparable numerical data with defensible sampling/distribution conditions? If NO, do not invent a z/t p-value.
- Are both actual population σA and σB known externally and relevant? If YES and normal/sampling conditions hold, a two-sample z procedure is an appropriate idealized model.
- Otherwise are there credible sample spreads sA and sB and independence/normality conditions? If YES, a Welch two-sample t procedure estimates group spread and does not need an equal-variance assumption. If insufficient input or invalid data, say INSUFFICIENT CONDITIONS, not “always t”.
- Define H0/H1 and α in advance, compute unrounded statistic and trustworthy normal/t cutoff or software p-value, then express REJECT/FAIL TO REJECT with its limitations.
A pooled-variance t method could be valid under an additional justified equal-variance assumption; this lesson deliberately uses Welch instead, to avoid teaching equal variances without evidence. Welch still requires defensible independence and distributional reasoning. A failed test does not establish no difference, nor does a successful one prove which teaching approach or machine setting causes results.
The source of uncertainty changes the reference test
Think first: Two independent groups print the same means, sample sizes and spread numerals. Does the method change when these spreads are known population sigmas rather than sample estimates?
Worked comparison: If both population standard deviations are genuinely known from outside the samples, a two-sample z reference may be used under its assumptions. When population sigmas are unknown and only sample spreads are available, the unequal-variance Welch t method uses estimated standard error and degrees of freedom.
Why it works: A switch between information conditions is not a physical change to the groups. Method selection must be justified from how spread was obtained, not by the preferred significance result.
Try in your notes: Write what makes the two groups independent and what extra evidence would be needed to claim their population sigmas are externally known.
6. Supported guided practice without hiding teaching
Choose nA=nB=9, xbarA=21, xbarB=15, both only sample sA=sB=4 with independent normal groups.
G1. Calculate difference Δ=6 units. The group contributions are16/9 and16/9 squared units, so SE=sqrt(32/9)=sqrt32/3≈1.885618 units. G2. Calculate t=6/SE≈3.181981, Welch df=2×(9−1)=16 because group sizes and sample spreads are equal in THIS one case. G3. For a two-sided α0.05 Student t test, use the positive 97.5th percentile as the critical reference. A standard Student t table's df16 row and cumulative probability 0.975 column gives t16 critical≈2.119905. This is a worked neutral lookup, not an answer to a new transfer study. Since |t| is larger, REJECT H0 under the chosen hypothetical model. This is not evidence that any actual school or production experiment succeeded. G4. Keep numeric means/spreads/sizes but imagine both population σ values4 are truly known externally. Standard normal reference cutoff1.959964, z≈3.181981 also rejects, showing the two methods DO NOT always disagree. Explain why they agreed in this case without claiming they are interchangeable.
If a learner forgets to add the SECOND group's squared uncertainty, prompt “Two means are estimated, so where does the second variance term enter?” If they use df=n−1=8 as if there were one sample, ask which two groups' spread estimates enter Welch's calculation. If they multiply the two spreads directly to obtain SE, go back to each variance/n contribution. If they infer causal advantage from a rejection, ask about randomized assignment and contextual effect size.
7. NEW independent transfer: two real methodological decisions and a dependency NO-GO
Independent exercise - work on paper or in your notes.
Three additional studies use completely fictional measurements; NONE are selectable in the Aha or the initial guided case:
Study W (two independent groups, σ unknown): Group A has nA=12, sample mean29 units, sample sA=6 units; group B has nB=15, sample mean22 units, sample sB=9 units. Independent unbiased normal sampling is stipulated, but actual population standard deviations are NOT known. Predeclared H0 μA−μB=0; two-sided alternative≠0; α=0.05.
Reference value for Study W's fractional-df comparison: The verified positive Student t critical magnitude is approximately 2.062452 at the two-sided α=0.05 threshold for the intended Welch reference distribution. This is neutral mathematical reference information GIVEN WITH THE TASK, not the worked study statistic, df, comparison or verdict. No student must memorise an inverse-t calculation, install a library or pay for software. First independently calculate Welch df without rounding it to an integer; if a computed df seems inconsistent with the stated reference, recheck the formula. Then calculate the study t statistic and compare its magnitude with this supplied threshold. The earlier guided G3 shows how a reference cutoff is selected by a df row and a 0.975 cumulative-probability column.
Study K (two independent groups, both population σ known): Group A nA=25, mean48 units, externally known σA=10 units; group B nB=36, mean43 units, externally known σB=12 units. Independent normal population sampling is explicitly stipulated, with same two-sided H0 and α.
Study P (paired observations): The same 12 people contribute before and after numeric observations. Someone proposes treating them as two independent groups of12, using the group means/spreads without pairing identifiers. The individual within-person differences/covariance and validity assumptions are NOT supplied. No paired test calculation can be verified from the given information.
Make a genuine independent response for ALL A-F:
A. For Study W identify the two INDEPENDENT populations and select the suitable one/two-sample method, explaining why σ is NOT known. Write H0/H1 on μA−μB. B. Compute Study W variance contributions wA and wB, SE, and unrounded Welch test statistic. Use units for SE and dimensionless statistic. C. Calculate or state Welch's approximate FRACTIONAL df for Study W; compare your OWN computed statistic with the supplied positive TWO-SIDED α0.05 reference 2.062452; make a qualified REJECT/FAIL decision with reasoning. The supplied critical magnitude alone does not determine the test statistic or decision. D. For Study K identify genuine known σ values, calculate group variance contributions and SE, and select the correct two-sample z reference. E. Calculate Study K z and make a qualified decision at TWO-SIDED α0.05. Compare the two study outcomes without announcing that one fictional group difference causes another. F. Identify the invalid proposed independent-groups method for Study P and provide an UNSCORED explanation of what data/design knowledge would be needed for legitimate paired-difference inference. If the learner has valid alternative concerns, accept careful uncertainty instead of a mechanically guessed test.
8. Close without confusing evidence, uncertainty and causality
For two independent quantitative group means, the uncertainty of their difference uses the SUM of TWO group variance contributions. With both relevant population sigmas genuinely known externally and suitable assumptions, a standard normal z reference is defensible. With unknown population sigmas but credible sample s values, Welch's t uses an approximate fractional df and does NOT assume equal group variances. A paired sample is a third design: differences from the SAME individual cannot safely be treated as independent groups. Never pick a significance test solely to make p small, equate "fail to reject" with "prove equal" or claim a difference was caused by group label alone.