DEVELOPED COURSE TEXT
Regression: fit, prediction, and causal identification require different assumptions
Derive the fitted line rather than equating it with a mechanism
Ordinary least squares chooses coefficients minimizing the sum of squared residuals between observed and fitted outcomes. In a simple intercept/slope model, yhat=a+bx, the minimizing slope is sum[(x−xbar)(y−ybar)]divided by sum[(x−xbar)^2], provided the denominator is positive. The intercept is ybar−b xbar. NIST's least-squares handbook develops this fitting criterion. A fitted line is a mathematical approximation to the recorded relation, not automatically a causal law.
The coefficients are uniquely identified in the usual linear model when the design matrix has full column rank: there is no exact linear dependence among its columns. Predictors need not be mutually independent. Imperfect multicollinearity can inflate uncertainty and make coefficients sensitive, but does not by itself create bias under correct specification and exogeneity. Adding a duplicate predictor can make the coefficient decomposition nonunique even when fitted predictions remain identifiable.
Separate point estimation from uncertainty assumptions
Under a correctly specified conditional-mean model and exogeneity E[error|X]=0, OLS can have unbiased coefficient estimates under the relevant sampling setup. A normal marginal distribution of Y is not a general requirement for point estimation. Constant error variance is also not required merely to compute the least-squares coefficients. It matters for particular efficiency and standard-error claims. Correlated or unequal-variance errors require an uncertainty procedure justified for that structure.
Small-sample classical t intervals typically require stronger distributional assumptions than the coefficient calculation itself. Robust standard errors are not a universal cure for few clusters, selection bias, measurement error, or a wrong causal model. State which inferential claim each assumption supports. The existence of a fitted coefficient and a software p-value does not demonstrate that the underlying identification assumptions hold.
Distinguish forecasting from intervention
A model can predict an outcome from a variable that would not change that outcome if intervened on. Confounding, selection, and reverse causal routes can produce predictive associations. Conversely, a causal average effect does not guarantee accurate individual prediction. The target population and the intended use must be specified.
Residual patterns can reveal curvature, outliers, nonconstant variance, or dependence that challenge the working model. They do not uniquely identify the cause of every discrepancy. Extrapolation beyond the observed range adds another assumption: many curves can fit a short interval similarly and diverge elsewhere. A high fit score within the sample is not an out-of-sample guarantee.
The worked record is deliberately tiny so every normal-equation component can be checked. It cannot support a reliable real-world causal or forecasting claim. Its educational purpose is to distinguish computation, statistical uncertainty, and causal identification, and to show how a changed predictor structure can invalidate an otherwise executable regression specification.
Worked records
Record 1
Fictional points: (x, y)=(0, 1), (1, 2), (2, 5). Fit an intercept and slope by ordinary least squares. No causal randomization or out-of-sample validation is supplied.
Develop the reasoning
xbar1, ybar8/3. Cross-product sum 4 and x-square sum 2 give b2, a2/3. Fitted values2/3, 8/3, 14/3; residuals1/3, −2/3, 1/3. SSE=1/9+4/9+1/9=2/3. The line is the least-squares fit, not proof that increasing x causes y to rise2 units.
Progressive practice — optional
1. Foundation
Predict at x3 using the fitted line. Is this guaranteed?
Compare the worked reasoning
Prediction2/3+2×3=20/3≈6.6667. It is an extrapolation; the three points do not guarantee the relation at 3.
Change the record
A new observed point is(3, 10).
Compare the changed-record reasoning
The old residual there is 10−20/3=10/3. Reassess model form and data rather than treat the extrapolation as a causal truth.
2. Application
Add predictor z=2 x and fit intercept, bx, bz. Are bx and bz uniquely identified?
Compare the worked reasoning
No. Only bx+2 bz is identified by these perfectly collinear columns. F or example bx2, bz0 and bx0, bz1 give the same fitted line.
Change the record
z is only strongly correlated with x, but not exactly dependent.
Compare the changed-record reasoning
Full rank may be restored. Coefficients can be uncertain or unstable, but imperfect collinearity alone does not imply bias under the stated mean/exogeneity assumptions.
3. Transfer
A positive coefficient is advertised as the effect of forcing xto increase. What bridge is missing?
Compare the worked reasoning
A causal design/model and identification assumptions are missing. Prediction or association does not by itself identify an intervention effect.
Change the record
The outcome distribution is nonnormal but the conditional mean model and exogeneity are justified.
Compare the changed-record reasoning
Nonnormal Y alone does not prevent OLS point estimation or imply coefficient bias. Choose uncertainty methods appropriate to the error/dependence structure and sample size.
Sources and scope
- NIST: Linear Least Squares Regression: Official handbook search retrieval verifies the fitting criterion and meaning of linear-in-parameters. Data and normal-equation calculation are original.
- NIST: Least Squares: Official handbook search retrieval supplies estimation/residual context. Assumptions are distinguished by the claim they support; no clinical prediction model is validated.