Lawfare Group → Knowledge Institute → Lawfare Academy
← Regression Analysis for Business
Unit 2
Multiple regression and interpretation
Learning objectives
- Explain multiple regression and interpretation in your own words.
- Apply the principle to the worked business case.
- Evaluate the answer and identify an assumption that could change it.
Multiple regression and interpretation
In a linear model, a coefficient gives a conditional expected change holding included regressors fixed. The Frisch-Waugh-Lovell perspective isolates variation not explained by other predictors. Omitted-variable bias depends on relevant relationships, not simply omitted names.
Worked example
Price varies with seasonal demand, so a naive slope can misstate the demand response.
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 multiple regression and interpretation 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 is a key identification concern? 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 Derive a partial slope and inspect the comparison it uses for the full worked case, source readings and optional progressive practice.
Complete current conceptual preparation
Correlation, least squares and the meaning of a conditional comparison
The retained complete unit-two companion already derives the eight-row additive fit, normal equations, partialling out, nonoverlap and rank failure. Preserve its coefficients 10/2/5 and every original row. This original studio supplies broader correlation and regression preparation using a separate four-row Willow dataset. Its calculations do not revise or replace the original fit.
Define the relation before fitting it
A scatterplot displays paired measurements and can reveal direction, curvature, groups, unusual observations or restricted support. Pearson correlation standardizes the centered cross-product of two quantitative variables. It measures linear association, not every form of dependence. It is unitless and lies between−1 and 1 when both sample variances are positive. A zero variance makes the ordinary coefficient undefined; zero correlation does not rule out a curved relationship.
A positive change of measurement scale leaves the sign and magnitude of correlation unchanged; reversing a scale reverses its sign. Its value can change when an observation is added, when the population is selected or when a group mixture changes. Correlation is symmetric between x and y. A regression of y on xis not symmetric with a regression of x on ybecause each minimizes residuals in a different direction. Neither algebraic operation identifies an intervention effect by itself.
A fitted straight line yhat=b 0+b 1 xuses coefficients estimated from data. With an intercept and nonconstant x, least squares minimizes the sum of squared vertical residuals. Define Sxx=sum(x−xbar)², Sxy=sum(x−xbar)(y−ybar)and Syy=sum(y−ybar)². Then b 1=Sxy/Sxx and b 0=ybar−b 1 xbar. The fitted line passes through the sample means, and residuals sum to zero and are orthogonal to x. These are projection identities, not empirical tests of a correct conditional mean or independent errors.
Independent Willow calculation, fully inspectable
Use four synthetic rows(x,y)=(0,1),(1,2),(2,2),(3,5). Here xbar=1.5,ybar=2.5,Sxx=5,Sxy=6 and Syy=9. The slope is 6/5=1.2 and intercept 0.7. Fitted values are 0.7,1.9,3.1,4.3; residuals 0.3,0.1,−1.1,0.7. Their sum is zero, and their x-weighted sum is 0.1−2.2+2.1=0. Residual sum of squares is 1.8.
With an intercept the centered sum of squares decomposes into fitted plus residual components under least squares. Willow's explained sum is 7.2 and total 9, so R²=1−1.8/9=0.8. Correlation is 6/sqrt(45)=2/sqrt(5), approximately 0.894427; its square equals R² in this simple intercept model. This identity does not apply unchanged to every multiple-regression or no-intercept output. High R²does not validate a causal claim, a sampling model or future prediction.
Under a separately stipulated independent, homoskedastic normal-error model, with two fitted parameters, the residual variance estimate is 1.8/(4−2)=0.9. Slope variance is 0.9/5=0.18 and SE about 0.424264. Those conditions are assumptions for an illustrative inferential calculation, not facts established by four rows. The finite-sample t statistic for a specified slope null uses n−2 degrees of freedom under that model. Testing zero correlation via r sqrt((n−2)/(1−r²))is equivalent to testing zero slope in the matching simple normal-model setting; it is not valid for every dependent or selected pair sample.
For a fitted mean at x 0, the classical variance is s²[1/n+(x 0−xbar)²/Sxx]. For a new independent individual outcome, the corresponding prediction variance adds s². At x 0=1.5 the mean prediction is 2.5 and estimated mean variance 0.225; individual prediction variance is 1.125. The additional term is why coefficient precision is not individual forecasting precision. Out-of-support extrapolation and future regime changes add problems that the displayed formula does not resolve.
Multiple regression changes the contrast
With several predictors, create an explicit design matrix including the intercept, indicators and transformations. Full column rank is required for a unique coefficient vector in ordinary least squares. The normal equations express residual orthogonality to each included column. The original companion reconstructs these equations in full for its eight rows; it also demonstrates the Frisch–Waugh–Lovell identity by residualizing both outcome and focal regressor against the same controls.
Holding included predictors fixed describes a model contrast. It does not guarantee that the data observe that contrast or that an intervention can change only one feature. Nonoverlapping groups, almost redundant predictors or a restricted range can make interpretation depend heavily on functional form. Exact collinearity causes nonuniqueness; near collinearity can amplify coefficient uncertainty and sensitivity. Merely adding a small number to make an inverse exist changes the estimator rather than creating missing information.
An omitted factor biases a proposed causal coefficient when its relationship with the outcome and the included predictor violates the needed exogeneity condition; omission is not judged simply by counting variables. Including a post-treatment mediator, a collider or a variable defined by future outcomes can also change or distort the intended comparison. Specify the causal estimand and data-generation argument before selecting controls. A good forecast can use predictors whose coefficients should not be called policy effects.
Report model fit in the appropriate setting
Adding columns cannot increase in-sample least-squares residual sum of squares on the same rows, but can increase instability and out-of-sample error. Adjusted R²penalizes parameter count under its definition; it does not establish causal validity or remove tuning bias. Compare candidate models on compatible rows, targets, transformations and validation protocols. R² for a transformed outcome is not directly the same quantity as R² for the original outcome.
Document variable definitions, units, missingness, weights and the population represented by a row. If a legitimate large account changes the fit, inspect support, weighting and specification and report sensitivity. If a record has wrong units, correct it with an audit trail. Deleting a valid inconvenient point to restore a preferred sign is not model diagnosis. The retained diagnostic companion develops this example in detail.
Optional complete models
Model 1 — A high correlation is called a verified response to action
Willow r=2/sqrt(5)and R²=0.8 describe its four supplied pairs and simple fit. They do not establish how a change in xwould affect y. Changed fact: the rows arise because managers choose higher xwhen they already expect larger outcomes. That selection is a rival explanation for the positive association. Preserve the descriptive calculation, withdraw the unsupported causal claim and specify a design that could identify the intended effect.
Model 2 — A mean interval is used for an individual invoice
At Willow x 0=1.5, the stated classical estimated mean variance is 0.225 but an individual prediction variance is 1.125. The latter includes new-outcome variation. Changed fact: the future observation belongs to a new regime outside the original process. Neither variance formula automatically supplies the promised coverage. State the target and what assumption changed rather than simply choosing the wider interval as a universal cure.
Model 3 — An arbitrary inverse is called a unique coefficient estimate
The original eight-row companion's extra column w=2 xcauses exact rank deficiency. Separate x andw coefficients are not uniquely identified, although some fitted combinations can be. Changed fact: a numerical routine uses a generalized inverse or regularization. Explain the convention or changed estimator; do not present its chosen coefficient pair as unique information supplied by the original design. A computational output is not evidence of exogeneity or overlap.
Optional rubric 20 points: population/scatterplot/correlation 4; complete least-squares reconstruction 4; inference versus prediction assumptions 4; multiple-regression/rank/causal contrast 4; changed-fact revision 4. All calculations are synthetic. This written preparation does not imply independent human review or observed learner competence.
Apply the idea
Price varies with seasonal demand, so a naive slope can misstate the demand response.
What is a key identification concern? Explain your reasoning, then identify one changed fact that could alter the conclusion.
Read the worked reasoning
Price is related to unobserved demand conditions. Endogeneity undermines a simple causal interpretation. 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 is a key identification concern?
- Price is measured in dollars
Feedback
This alternative does not follow from the stated facts. Endogeneity undermines a simple causal interpretation.
- The spreadsheet has rows
Feedback
This alternative overlooks the relevant mechanism. Endogeneity undermines a simple causal interpretation.
- Price is related to unobserved demand conditions
Feedback
Endogeneity undermines a simple causal interpretation.
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.