Lawfare Academy · Complete Business Statistics and Evidence edition 5
Test a specified claim while keeping effect size and decision cost separate
A hypothesis test compares a prespecified statistic with its reference distribution under a null model. Its p-value is the probability of data at least as extreme according to that statistic and tail rule, conditional on the null and assumptions. It is not the probability the null istrueor the business story isfalse. Preserve the exact branch-randomization and paired-time investigations. This studio supplies the full one-/two-sample testing preparation, effect sizes and decision reasoning on site.
Plan the null, alternative and error risks
State the parameter, null value, one-ortwo-sided alternative, design/assignment units, statistic, significance levelαand handling of missing data, multiplicity and stopping. Rejecting a true null is a TypeIerror; failing to reject a specified false null is TypeIIerror with probabilityβat that alternative. Power 1−βdepends on the actual effect, noise, design and sample size. Failure to reject is not acceptance of exact equality; an equivalence claim needs a prespecified acceptable range and suitable procedure.
For a knownσindependent normal mean, z=(xbar −μ0)/(σ/√n). A two-sidedα0.05 test rejects for|z|>1.959964; a positive one-sided test usesz>1.644854. For NEW n 100,knownσ10,mean 102 versus null 100,z 2 has two-sided p≈0.045500 and positive-tail p≈0.022750. The observed 2-unit difference has its own units and practical meaning; changing the tail after seeing the sign does not preserve a predeclared test.
Under this same known-scale model, if the actual mean were 102, Zhasmean 2 andSD 1. A two-sided 0.05 test's power isP(Z>1.959964)+P(Z<−1.959964)≈0.516005. Statistical detection at this effect is far from certain. Reducing noise, adding genuinely independent information or changing the prespecified target changes power; retrospectively selecting the largest effect estimate does not provide an unbiased power justification.
Estimated variance and binary outcomes use their own procedures
For unknownσand independent normal observations, t=(xbar−μ0)/(s/√n)usesn−1degrees of freedom. In a NEW n16,mean52,s8,null50file,t1on15dfis not the same reference distribution asz1. A numerical t statistic is not an automatic p-value; identify the tail and use a verified StudenttCDFor critical table. No particular software run is needed to understand the manual construction.
For a one-proportion score comparison underH0:p=p0,the approximate z=(phat−p0)/√[p0(1−p0)/n]uses the NULLvariance. For NEW60events/100versusp0.5,z2and two-sided approximatep0.045500. An exact binomial test sums the appropriate null-tail masses instead; discreteness, definition of two-sided extremeness and design assumptions matter. The data-based variance used for an estimation interval and the null variance used for a score test should not be swapped silently.
Independent means: known, pooled and unequal-scale models
For independent samples with known variances,SEdifference=√(σ1²/n1+σ2²/n2)and z=(difference−Δ0)/SE. Under unknown variances, Welch'stusesSE=√(s1²/n1+s2²/n2)and approximate df=(a+b)²/[a²/(n1−1)+b²/(n2−1)],wherea=s1²/n1,b=s2²/n2. Small-sample inference requires suitable within-group distributional assumptions; unequal variance and unequal sample size make indiscriminate pooling problematic.
A common-variance normal model instead pools sp²=[(n1−1)s1²+(n2−1)s2²]/(n1+n2−2),usesSE=sp√(1/n1+1/n2)and df=n1+n2−2. Choose the model based on design and justified assumptions, not which p-value wins. A preliminary variance test followed by a chosen mean test can itself complicate error properties and is not a universal required workflow.
In a NEW independent-group file,n1=n2=25,means54and50,s1=10,s2=5. Difference4andSE√5≈2.236068give Welch t≈1.788854and approximate df≈35.294118. Under a separately justified pooled-variance model,sp²62.5and theSEhappens to remain√5because sample sizes are equal, butdf48differs. Equal numericSEhere does not prove equal variances or make the two reference procedures identical.
Paired means depend on preserving the pairs
When each person contributes a meaningful pair, analyze differencesd_iusingmean difference and s_d/√n,with df n−1under the normal-difference model. The preserved six analyst differences2,3,1,4,2,3have mean2.5,variance1.1,SE√(1.1/6)and t≈5.838742. Sorting columns independently destroys the actual dependence while leaving marginal means unchanged. A before/after difference need not be causal because practice, time or equipment may also change.
For an independent NEW paired file,differences−1,0,1,2have mean0.5and squared deviations5,so s_d²5/3andSE√(5/12)≈0.645497. A zero-mean t≈0.774597uses3df,not6or7. Four pairs remain four independent comparison units under this model, not eight unrelated observations. Missing outcomes need actual recovery or a justified missingness/imputation model, not a fabricated favorable value.
Two independent proportions and practical effect sizes
For an equal-proportion null with independent Bernoulli groups, pooledp=(x1+x2)/(n1+n2)and nullSE=√[p(1−p)(1/n1+1/n2)]. A NEW60/100versus45/100comparison gives difference0.15,pooled0.525,SE≈0.070622and z≈2.123977. An unpooled estimationSEinstead usesp1(1−p1)/n1+p2(1−p2)/n2; label which target is being addressed. Rare counts, dependence or clustering require suitable alternatives rather than an automatic normal approximation.
Report effect in natural units and uncertainty, with ratios or standardized measures only when meaningful. For a pooled within-groupSDsp,Cohen's d=(mean1−mean2)/sp. In the54versus50example,d=4/√62.5≈0.505964under that scale convention. Familiar small/medium/large labels are descriptive conventions, not universal business thresholds or proof that a method pays for itself. A relative risk, absolute risk difference and number of events avoided answer different questions; preserve denominators and baseline risk.
Translate inference into an explicit decision
The preserved native contribution case estimates3with interval[−1,7]and certain rollout4,so net estimate−1and interval[−5,3]. Changing rollout to1givesnet2and[−2,6]without changing the statistical study. A positive gross effect need not exceed implementation cost; an interval crossingzerois not proof every action is unprofitable. Consider feasible reversible learning, information value, downside and target-population transport with actual authority separate from the model.
Do not hide multiple outcomes, subgroups or repeated looks. The exact branch example's0.05one-sided result and0.10two-sided result answer different planned questions. Bonferroni's union bound can protect a stated family of valid component tests without independence, but does not repair confounding, selective reporting or invalid standard errors. Present the complete analysis and what would reverse the recommendation.
Optional practice: compare independent means honestly
Reproduce the54versus50file's WelchSE,tand df; state what changes under a separately justified common-variance model.
Complete independent-mean model
a=100/25=4,b=25/25=1,soSE√5 and t 4/√5≈1.788854. Welchdf 25/(16/24+1/24)=600/17≈35.294118. Pooledsp²62.5 gives the sameSEhere but 48 df. Do not infer equal variability or declare a particular tail probability without its actual reference distribution and plan. The samples and means are synthetic, not evidence of a real intervention.
Optional transfer: an eight-row table can contain only four pairs
Use the new paired differences −1,0,1,2. Calculate its zero-change statistic and explain what a missing after-outcome would do.
Complete paired-design model
Mean 0.5,squared deviations 5,samplevariance 5/3,SE√(5/12)and t≈0.774597 with 3 df. A missing pair leaves only three observed differences unless an explicitly justified model handles missingness. Filling an outcome with the group mean invents information; more stored rows do not cure the design limit.
Optional testing investigation: 20 points
Award four points each for prespecified hypotheses/design/error risks, correct matched reference statistic/variance, independent-versus-paired/proportion comparisons, natural/standardized effect and practical decision reasoning, and complete family/missingness/causal reporting limits.
Complete testing model
State what the p-value conditions on, report effects and uncertainty and retain the practical threshold. Keep known-scale, unknown-scale, pooled, Welch, paired and binary models distinct. Preserve actual assignment/pairing and all exploratory work. The native cost revision changes a financial decision without changing the experiment; neither significance nor lack of significance alone authorizes rollout or establishes independent human review.
Optional source summary
NIST's two-process mean comparison, read October 29,2026, presents explicit hypotheses and common-variance comparisons. Optional mean-comparison provenance. The complete on-site explanations distinguish Welch, pooled, known-scale and paired assumptions; no source visit is required.