The Lawfare Academy

Lawfare Group → Knowledge Institute → Lawfare Academy

← Regression Analysis for Business

Unit 1

Inference review and model purpose

Learning objectives

  • Explain inference review and model purpose in your own words.
  • Apply the principle to the worked business case.
  • Evaluate the answer and identify an assumption that could change it.

Inference review and model purpose

Distinguish estimation, prediction, and causal identification. Define the target population, unit, and loss from errors. Review intervals and tests before moving to models with multiple predictors.

Worked example

A model used to forecast sales is later used to claim a causal price effect without a new identification argument.

Current on-site learning

All required original teaching, complete derivations and optional practice models are on LawfareGroup.com. External references are optional provenance or further reading. Florida is the state-law default; federal, historical and comparative contexts remain distinct. Independent human subject review and observed learner testing remain pending. Synthetic economic models establish no actual market response, legal clearance or professional competence.

Work through the reasoning

Define the population, sampling or assignment process, variables, estimator, and intended inference. For this unit, connect the explanation of inference review and model purpose 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 additional requirement arises? 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.

Extended text lesson

Continue with Define the question before choosing an interval or model for the full worked case, source readings and optional progressive practice.

Complete current conceptual preparation

Inference foundations: intervals, tests and the comparison design

This original studio supplies the statistical preparation assigned in unit one alongside the complete preserved estimand clinic. Its six-observation mean 12/standard-deviation 3 example, campaign 0.02 response/cost 1,500 example and dependence qualifications remain unchanged. The independent Willow examples below use different samples and assumptions. They are synthetic, not actual customer or learner records. The complete current on-site course supplies the accompanying studios and preserved applications.

State the population and repetition behind uncertainty

A parameter describes a target population or process; a statistic is calculated from the observed sample. An estimator's sampling distribution describes how that statistic varies under a specified sampling or assignment process. A standard error concerns this variation, whereas a standard deviation describes dispersion of observations. Selection, measurement and missing outcomes can make a precisely estimated sample description unsuitable for a target claim. More rows cannot automatically repair those problems.

A confidence procedure has its stated repeated-sampling coverage under its assumptions. After an ordinary frequentist interval is observed, its endpoints are fixed; the coverage statement does not mean the fixed parameter has acquired that probability. A mean interval also is not an interval for an individual future outcome. The actual estimand clinic explains why the observation unit and dependence structure must match the proposed uncertainty calculation.

For independent observations with a known population standard deviation sigma and an appropriate normal or justified sampling approximation, a mean interval uses sample mean plus or minus zcrit×sigma/sqrt(n). Unknown sigma is not made known by estimating it from the same sample. Under independent normal sampling with estimated standard deviation s, the standardized mean instead follows Student's t with n−1 degrees of freedom. A heavy-tailed small sample, clustering or a different design can invalidate those exact statements; choose and justify a procedure rather than treating the sample size alone as a guarantee.

An independent mean example and its test

Willow observes 16 independent measurements from a stipulated normal population, with mean 18 and sample standard deviation 4. Estimated SE=4/sqrt(16)=1. Using the supplied approximate 95 percent two-sided t critical 2.131 at 15 degrees of freedom gives interval 15.869 to 20.131. For null population mean 16 against a two-sided difference, t=(18−16)/1=2. It falls inside the critical limits, so this procedure does not reject at 0.05. The data do not thereby prove equality or absence of a meaningful effect.

If the population standard deviation had actually been known to be 4 before this analysis, a zprocedure with supplied 1.96 critical would give 16.04 to 19.96 and reject the same null. These are different assumptions and procedures, not two acceptable labels for whichever answer is preferred. In the actual unknown-sigma Willow case, using the known-sigma procedure simply because its interval is narrower would be unjustified. Critical values here are supplied teaching inputs, not claims of freshly checking a current table.

A null and alternative should identify the parameter, direction and threshold before inspecting a favorable result. A p-value is the probability, under the stated null model, of a statistic at least as incompatible in the specified direction or directions. It is not the probability that the null is true. TypeIerror rejects a true null under the procedure; TypeIIerror fails to reject a specified false null. Power is one minus the latter probability and depends on effect size, design, variability and sample size. A smaller significance cutoff can reduce one error while making another more likely, all else fixed.

Statistical rejection does not establish causal identification or economic importance. Report units, estimated effect and uncertainty relative to the decision threshold. Equivalence requires its own defined margin and justified procedure; failing to reject zero is not an equivalence test. Multiple testing and model searching change the interpretation of a selected result and should be disclosed and addressed.

Binary outcomes and sample planning

For independent Bernoulli observations, the sample proportion is successes/n. A common large-sample estimated SE is sqrt(phat(1−phat)/n). Its symmetric Wald interval can be unreliable near boundaries or with sparse successes/failures; alternatives such as a Wilson score interval or a justified exact procedure have different constructions. No formula repairs dependent observations or a selected denominator.

For Willow 40 successes among 100 independent trials, phat=0.4 and the estimated SE is about 0.048990. The simple approximate 95 percent Wald interval using 1.96 is about 0.30398 to 0.49602. Its assumptions and approximation must be stated. A Wilson interval uses center (phat+z²/(2 n))/(1+z²/n) and half-width z sqrt(phat(1−phat)/n+z²/(4 n²))/(1+z²/n). It does not merely clip an invalid Wald endpoint to zero or one. A one-proportion null test commonly uses the null proportion in its standard-error calculation; that need not equal the estimated-proportion SE used for an interval.

For approximate mean precision with a genuinely supplied planning sigma, n≥(zcrit sigma/E)²gives the sample size for target half-widthEunder the stipulated design. With sigma 4, E 1 and z 1.96, the result 61.4656 requires rounding up to 62. For a proportion with half-width 0.05 and no prior value, usingp 0.5 as the worst-case planning variance gives 384.16 and thus 385. Nonresponse, finite-population sampling, dependence and practical recruitment require additional design reasoning; these calculations do not guarantee causal validity or universal precision.

Two populations and paired observations

For independent samples, a difference in means estimates a contrast between specified population means. A Welch-style estimated SE is sqrt(s 1²/n 1+s 2²/n 2), with an approximate degrees-of-freedom calculation based on those variance components. A pooled-variance tprocedure instead assumes equal population variances and estimates a common variance using weighted sums of squared deviations. Independence between samples and the within-sample observation process still matter. Known population variances support a different zprocedure under corresponding conditions.

If Willow's two independent groups each have 16 measurements, means 18 and 16 and standard deviations 4 each, the difference is 2, SEsqrt(2), and t=sqrt(2). The Welch degrees of freedom here are 30. Pooling happens to give the same SE because the variances and sample sizes match, but that numerical coincidence does not establish the equal-variance assumption in other datasets. A standardized effect divides the contrast by a stated scale, such as a pooled standard deviation under an appropriate interpretation. Cohen-style size labels are conventions, not business importance or a causal conclusion.

For paired data, form within-pair differences and analyze their mean with the paired observation as the unit. The SE is the standard deviation of differences divided by sqrt(number of independent pairs). Ignoring the pairing can discard useful covariance; treating repeated pairs from one cluster as independent can create false precision. With four independent differences 1,1,3,3, mean difference is 2, sample variance 4/3 and SE 1/sqrt(3). The paired t statistic against zero is 2 sqrt(3). The correct degrees of freedom are 3, not 7 from counting both measurements separately.

For two independent proportions, define the difference and its population denominators. An interval often uses separate estimated variances; a test of equal proportions can use a pooled null estimate under its assumptions. A matched binary outcome needs the within-pair pattern, not an independent-proportions calculation. State the actual design before selecting the familiar formula.

Optional complete revision models

Model 1 — A narrower procedure is chosen after seeing the answer

In the stipulated unknown-sigma Willow mean example, t=2 and the supplied 15 dfcritical 2.131 means the two-sided 0.05 test does not reject 16. The interval 15.869 to 20.131 includes 16. Changed fact: population sigma 4 was genuinely known from the model, rather than estimated from these observations. The known-sigma zcomparison differs and can reject, but this changed assumption must be documented. Neither calculation proves causation or equivalence.

Model 2 — Sample size is rounded down or treated as a cure for selection

Mean precision planning gives 61.4656, requiring 62 independent observations under the assumed variance and procedure. Worst-case proportion planning gives 384.16, requiring 385. Changed fact: only settled invoices can be sampled while the target is all issued invoices. More settled records do not recover the unresolved outcomes by arithmetic. Redesign the observation window or explicitly address missingness and censoring before transferring the nominal precision claim.

Model 3 — Pairs are analyzed as unrelated rows

For independent paired differences 1,1,3,3, calculate mean 2, sample variance 4/3, SE 1/sqrt(3), and t 2 sqrt(3)with 3 degrees of freedom. Changed fact: all four pairs belong to one strongly dependent customer process. The simple independent-pair uncertainty formula loses its justification; neither counting eight measurements nor replacing n by one without a variance model establishes a valid interval. Describe what additional independent information and design are needed.

Optional rubric 20 points: estimand/design/standard-error distinction 4; correct interval/test assumptions 4; error/power/decision interpretation 4; binary/independent/paired comparison 4; complete changed-fact revision 4. All required explanation and model reasoning will remain on site. Independent human review and observed learner testing remain separate pending tasks; this written preparation is separate from independent human review and observed learner competence.

Apply the idea

A model used to forecast sales is later used to claim a causal price effect without a new identification argument.

What additional requirement arises? Explain your reasoning, then identify one changed fact that could alter the conclusion.

Read the worked reasoning

A defensible causal design and assumptions. Predictive adequacy does not establish an intervention effect. 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 additional requirement arises?

  1. A defensible causal design and assumptions
    Feedback

    Predictive adequacy does not establish an intervention effect.

  2. Only a higher R-squared
    Feedback

    This alternative does not follow from the stated facts. Predictive adequacy does not establish an intervention effect.

  3. Only more decimal places
    Feedback

    This alternative overlooks the relevant mechanism. Predictive adequacy does not establish an intervention effect.

Further reading

All required original teaching, complete derivations and optional practice models are on LawfareGroup.com. External references are optional provenance or further reading. Florida is the state-law default; federal, historical and comparative contexts remain distinct. Independent human subject review and observed learner testing remain pending. Synthetic economic models establish no actual market response, legal clearance or professional competence.

My learning →