Lawfare Group → Knowledge Institute → Lawfare Academy

← Course syllabus · Related lesson

Preserve the pair before testing the change

Current complete on-site edition 5

Required teaching and complete optional models are supplied on LawfareGroup.com. Publisher and primary links are optional provenance or further reading. Florida is the contemporary state-law default; federal rules and explicitly comparative accounting frameworks are distinguished. Independent subject review and observed human learner testing remain pending.

Cumulative statistical study dossier, transfer models and 30-point rubric

Preserved original teaching integrated with complete current on-site preparation. Independent human subject review and observed learner testing remain pending.

A repeated measurement is not a second independent person

Six analysts perform a standardized processing task before and after a training session. Their times before training are [40,50,60,70,80,90] minutes and afterward [38,47,59,66,78,87]. The unit of comparison is the analyst's change, not a collection of twelve unrelated times. Each analyst supplies a pair. Large persistent differences between people can dominate the spread of raw times while being largely removed by the within-person comparison.

Define d=before−after, so a positive value means faster performance after training. The differences are [2,3,1,4,2,3]. Reversing the sign convention changes the estimated mean and the direction of a one-sided hypothesis. It does not change the two-sided evidence. Preserve analyst identifiers and the pairing rule in the data. Sorting the two time columns independently, then subtracting adjacent rows, fabricates pairs even though the marginal lists remain unchanged.

Derive the uncertainty from the differences

The sum of the six differences is 15, so the sample mean change is 2.5 minutes. Deviations from that mean are [-0.5,0.5,-1.5,1.5,-0.5,0.5]. Their squared sum is 5.5. With six observed pairs, the sample variance of differences is 5.5/5=1.1 and the standard error of the mean difference is sqrt(1.1/6), approximately 0.428174 minutes. The paired t statistic for a zero mean change is about 5.838742 on five degrees of freedom.

Using the two-sided 95% t multiplier 2.570582 gives 2.5±1.100657, or approximately [1.399343,3.600657] minutes. The normal-population-difference model makes this a small-sample t procedure. The relevant distributional assumption concerns the differences, not a requirement that each marginal column separately be normal. Six pairs provide very little evidence for checking that assumption, and a single extreme difference could materially change the inference.

Statistical change is not yet causal benefit

A before/after design can describe within-person change while remaining vulnerable to practice effects, changing equipment, time trends and regression to the mean. Training was not randomly contrasted with a credible alternative in this fixture. The confidence interval quantifies uncertainty under its stated model; it does not isolate the training effect from every other change between sessions. Randomizing a training schedule or an appropriate comparison can strengthen a causal design, but interference and unequal task difficulty still need attention.

Practical importance is a separate question. If management requires a mean saving greater than three minutes to justify the cost, this interval includes changes below three. Evidence against a zero mean does not establish that the benefit exceeds the operational threshold. A predeclared one-sided claim about exceeding three minutes needs its own analysis. Do not choose the threshold, direction or outcome after finding which comparison looks favorable.

Missing pairs and multiple opportunities change the analysis

If an analyst has no after-time, there is no observed within-person difference for that analyst. Complete-pair analysis now describes the retained pairs unless a missingness argument supports the broader target. Substituting the group after-mean for the missing result shrinks the apparent uncertainty and invents an outcome. Recover the measurement or specify and assess an imputation model; disclose its assumptions.

Suppose investigators measure twenty outcomes and report only the most favorable ordinary 5% test. Under independent true null tests, the probability of at least one rejection is 1−0.95²⁰, about 0.6415. Independence is needed for that exact expression. A Bonferroni family threshold of 0.05/20=0.0025 controls the family error by the union bound without requiring independent tests, when the individual tests are valid. Neither adjustment repairs a biased design or an outcome chosen after inspection. Preserve the full outcome family and distinguish planned from exploratory work.

A final report should therefore connect four statements: the observed average change, its model-based uncertainty, the operational threshold and the design's causal limit. A small p-value cannot serve as a substitute for the other three. Planning should also address power and precision before collecting results; these six observations are an arithmetic teaching fixture, not an adequate sample-size recommendation.

A pairing check that the means cannot detect

Permuting the after-times leaves both marginal means unchanged, so the mean difference remains 2.5. However, the variance of the differences depends on the pairing and may change dramatically. This is why matching identifiers is a statistical control, not merely database housekeeping. A test that verifies only the two marginal means misses a broken pairing.

Progressive independent practice

Write your analysis before opening each model. Then change the stated fact and revise the reasoning.

Guided

Calculate the mean, sample variance and standard error of the differences. Why is the divisor five used in the variance?

Compare the model reasoning

The results are 2.5, 1.1 and sqrt(1.1/6)=0.428174. Estimating the mean from six differences leaves five residual degrees of freedom for the usual sample-variance estimate.

Changed conditions

Use after−before instead.

Compare the revised analysis

The mean and t statistic change sign; variance and standard error are unchanged. The interval becomes approximately [-3.600657,-1.399343].

Independent

Does the two-sided interval establish a mean saving above three minutes, or a causal training effect?

Compare the model reasoning

Neither. It includes savings below three, and the before/after design does not separate training from practice, timing or other changes. State the distinct hypotheses and improve the design.

Changed conditions

Only the fastest four participants return for the second measurement.

Compare the revised analysis

Complete-pair results are selected. Document the missing outcomes and avoid generalizing to all participants without an additional justified missingness model.

Transfer

Twenty outcomes were examined and one ordinary p-value of .01 is advertised. Evaluate that evidence.

Compare the model reasoning

Request the full family, prespecified outcomes and valid tests. Under a Bonferroni family rule, .01 does not meet .0025. Do not label an exploratory choice as a planned confirmatory result.

Changed conditions

The twenty outcomes are strongly correlated.

Compare the revised analysis

The independence formula for the chance of any rejection no longer applies. The Bonferroni bound can still control family error if the individual p-values are valid, although it may be conservative.

Source readings and scope

Penn State STAT 200: inference for one sample and paired means — Background for paired-mean inference. The analyst-time dataset, derived arithmetic and decision problems are original; the source page may occasionally be unavailable.

Reproduce the worked cases

Download the Python 3 laboratory. Uses only the standard library and synthetic data. Run locally; it does not access accounts, a network service or production records. Assertions check the stated results.