The Lawfare Academy

Lawfare Group → Knowledge Institute → Lawfare Academy

← Business Statistics and Evidence

Unit 5

Hypothesis testing and practical importance

Learning objectives

  • Explain hypothesis testing and practical importance in your own words.
  • Apply the principle to the worked business case.
  • Evaluate the answer and identify an assumption that could change it.

Hypothesis testing and practical importance

A p-value describes data compatibility with a null model, not the probability the null is true. Consider effect size, uncertainty, study design, and multiple testing. A statistically detectable improvement may be too small to justify cost.

Worked example

A huge sample detects a one-second reduction in a long process. Implementation may cost more than that saving.

Current on-site learning

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.

Work through the reasoning

Define the population, sampling or assignment process, variables, estimator, and intended inference. For this unit, connect the explanation of hypothesis testing and practical importance to the worked example before answering the practice question.

Check the limits

Check dependence, selection, uncertainty, and whether the evidence supports description, prediction, or causation. If the source model and the practical example use different assumptions, state the difference rather than applying the formula or rule mechanically.

Apply it independently

What else is needed for a decision? Write an answer before opening the model response. Show the calculation or explain the causal or logical steps. Change one material assumption and say whether your conclusion changes. This practice is optional; you can read every part of the course without submitting work.

Complete current conceptual preparation

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.

Developed study chapters

Original explanation, worked analysis and progressive optional practice.

Apply the idea

A huge sample detects a one-second reduction in a long process. Implementation may cost more than that saving.

What else is needed for a decision? Explain your reasoning, then identify one changed fact that could alter the conclusion.

Read the worked reasoning

Effect size and economic consequence. Statistical evidence and business value answer different questions. In an independent response, state the given facts, identify the governing relationship, work through the calculation or comparison, and distinguish the conclusion from assumptions that still need evidence.

Check understanding

What else is needed for a decision?

  1. Only whether p is below a threshold
    Feedback

    This alternative does not follow from the stated facts. Statistical evidence and business value answer different questions.

  2. A declaration that every detected effect is valuable
    Feedback

    This alternative overlooks the relevant mechanism. Statistical evidence and business value answer different questions.

  3. Effect size and economic consequence
    Feedback

    Statistical evidence and business value answer different questions.

Further reading

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.

My learning →