Regression Specification and Model Diagnostics
A practical guide to diagnosing regression specification, choosing and testing plausible model forms, distinguishing common regression problems, and refining models without overfitting.
Read Residuals and Choose a Plausible Form
Read residuals as evidence about the mean pattern
For observation , the is : the observed outcome minus the model’s fitted outcome. If the model represents the outcome’s conditional mean adequately, residuals should fluctuate around zero without a systematic pattern. Examine them against fitted values, each predictor, plausible omitted predictors, and time or observation order when that order is meaningful.
Patterns suggest different questions. Curvature against a predictor or fitted values suggests that a straight-line mean relationship may be inadequate. Clusters or distinct bands can point to unrepresented groups or interactions. A trend over observation order may indicate dependence, drift, or an omitted time-related factor. A funnel or other changing vertical spread suggests nonconstant error variance, but first check for curvature or omitted structure: an uneven spread is not automatically a variance-only problem.
A normal probability plot can help assess whether residuals are approximately normal, but normality does not replace checking the mean pattern. Structureless-looking plots are reassuring, not proof of correctness; interpret them alongside the study design and subject-matter knowledge. A high or individually significant coefficients likewise does not establish that the model is adequately specified.
Choose a form for a reason
Suppose wages rise with schooling, but each additional year appears to add less than the previous one. A quadratic model can represent this curvature:
The marginal association between schooling and predicted wage is . This follows by differentiating the predicted wage with respect to schooling. If , the marginal association declines as schooling increases; that is a diminishing-increases interpretation only over the range where it is appropriate. Keep the lower-order schooling term when adding its square, and do not extend the curve far beyond the observed data.
Transformations should reflect the question, data scale, and evidence—not just improve a fit statistic. A model of on describes changes in log outcome as changes. A model of on instead relates changes in outcome to proportional changes in ; these are different assumptions and interpretations. Logarithms require positive values unless a defensible alternative is specified. Square roots or reciprocal powers may suit particular data or mechanisms. After a motivated change, reassess structure and whether the model remains interpretable.
Use Formal Tests as Supporting Evidence
Test added terms jointly
Formal tests supplement plots; they address particular restrictions or broad classes of misspecification, but do not select the correct model automatically. When a plausible richer model extends a simpler one, test the added terms jointly. For the schooling quadratic, the relevant null is , which asks whether the squared term is needed relative to the model without it. If several terms are added—for example, a square and an interaction—test their coefficients together rather than relying only on separate significance cutoffs. Compare models estimated on the same observations and with compatible error assumptions.
Use RESET as a general warning
The Ramsey Regression Specification Error Test (RESET) adds powers of fitted values, such as and , in an auxiliary regression, then jointly tests whether their coefficients are zero. Rejection is evidence that the original specification may be inadequate, perhaps because of neglected nonlinearities or omitted structure. It does not tell you which variable or transformation to add. Failure to reject is not proof that the model is correct. Conventional RESET inference relies on assumptions that can be affected by , so use an inference procedure appropriate to the error structure.
Use replicated settings when available
If observations are replicated at identical predictor settings, a lack-of-fit test can compare model error with variation among those replicates, called pure error. Under the test’s assumptions, this gives a formal check of the specified . Without replicated predictor settings, this particular comparison is unavailable; plots and other specification tests remain options. No single formal test replaces graphical diagnostics.
Diagnose Carefully and Refine Without Overfitting
Distinguish problems that can look related
Systematic patterns may reflect omitted variables, especially when an omitted factor is associated with included predictors. RESET can flag specification trouble, but cannot establish which substantive variable is missing; use study-design and subject-matter knowledge to consider plausible omissions.
is changing error variance. It can make conventional standard errors and tests unreliable even when the conditional-mean form is reasonable. -robust inference may be appropriate, but robust standard errors do not fix curvature or another misspecified mean. , by contrast, concerns strong relationships among predictors: it can make coefficient estimates imprecise, but does not by itself imply incorrect . plots are not a direct test; inspect predictor relationships and coefficient uncertainty separately.
These issues may coexist. An omitted nonlinear term, for example, can produce visible curvature and make spread appear uneven. Check the mean pattern before attributing every feature to variance alone.
Refine the model deliberately
A disciplined process is:
Start with a clear question and a plausible specification grounded in theory, study design, and prior evidence.
Inspect targeted diagnostics rather than generating many arbitrary terms.
Add a small number of substantively motivated terms. Preserve lower-order terms when adding polynomial or interaction terms, and test additions jointly where appropriate.
Match assessment to the goal. For prediction, compare performance on held-out data or by cross-validation instead of relying only on in-sample fit. For explanation, prioritize defensible interpretation and report sensitivity to reasonable alternatives.
Document extensive searching and be cautious about ordinary p-values afterward. If the same data guided selection and final inference, reported uncertainty may understate the uncertainty introduced by that search. When possible, validate the final model on new data.
The aim is not to eliminate every small fluctuation. It is to capture meaningful structure with a model that is interpretable, justified, and sufficiently stable for its intended use.
: A comparison in which a richer regression adds terms to a simpler regression.
: A specification check that adds powers of fitted values and jointly tests their coefficients.