- Learn
- Business & Economics
- Economics
- Econometrics 1
- Heteroskedasticity
Heteroskedasticity and Specification Problems
IntermediateLesson 5 of 8 in Econometrics 1 Course
What you will learn
- Recognize when the error variance changes across observations, explain which OLS properties survive and which fail, and carry out valid inference with heteroskedasticity-robust standard errors.
- Recognize heteroskedasticity and its consequences for OLSDefine homoskedasticity and heteroskedasticity, spot typical patterns in data and residual plots, and explain why OLS estimates stay unbiased while the usual standard errors and tests fail.
- Compute and use heteroskedasticity-robust standard errorsCalculate robust standard errors, use them for t tests, confidence intervals and joint tests, and report which version and software option were used.
- Recognize heteroskedasticity and its consequences for OLS
- Carry out and interpret the Breusch–Pagan and White tests, know what each detects and decide what a rejection or non-rejection means for the analysis.
- Carry out the Breusch–Pagan testRun the Breusch–Pagan test step by step, compute its LM and F statistics from an auxiliary regression and draw a conclusion.
- Use the White test and decide what test results meanApply the full and special forms of the White test, count their degrees of freedom and use the results of heteroskedasticity tests sensibly.
- Carry out the Breusch–Pagan test
- Use weighted least squares when the form of the variance is known or estimated, keep inference valid when the variance model is wrong, and handle the heteroskedasticity of the linear probability model.
- Apply weighted least squares when the variance form is knownTransform a model with known heteroskedasticity so that its error is homoskedastic, estimate it by weighted least squares and interpret the result.
- Estimate the variance function with feasible GLSEstimate an unknown variance function from the OLS residuals, compute feasible GLS weights, and judge when WLS improves on OLS with robust standard errors.
- Handle heteroskedasticity in the linear probability modelExplain why a linear probability model is always heteroskedastic when a slope is nonzero, and choose between robust standard errors and weighted least squares for it.
- Apply weighted least squares when the variance form is known
- Test whether a regression captures the relationship between the dependent variable and the observed explanatory variables, and choose between competing nonnested specifications.
- Test functional form with added terms and the RESET testExplain what functional form misspecification is and does, test candidate nonlinear terms directly, and carry out and interpret Ramsey's RESET test.
- Choose between nonnested modelsCompare models that are not special cases of each other with a comprehensive model or the Davidson–MacKinnon test, and avoid invalid comparisons between models for different dependent variables.
- Test functional form with added terms and the RESET test
- Use proxy variables to reduce omitted variable bias, and work out how measurement error in the dependent or an explanatory variable affects OLS estimates.
- Use proxy variables for unobserved explanatory variablesReplace an unobserved variable with an observed proxy, state the conditions under which this gives consistent estimates, and interpret the results correctly.
- Assess measurement error in the dependent variableExplain when measurement error in the dependent variable leaves OLS unbiased and when it causes bias.
- Analyze measurement error in an explanatory variableDerive the effect of classical measurement error in a regressor, compute the attenuation bias, and explain how it changes with other controls.
- Use proxy variables for unobserved explanatory variables
- Judge how missing data, nonrandom samples and outliers affect OLS, respond to them sensibly, and review a regression study for the main threats to its conclusions.
- Judge the effect of missing data and nonrandom samplesDecide when dropping observations or a selected sample leaves OLS unbiased, recognize endogenous selection, and evaluate simple fixes for missing values.
- Identify and handle outliers and influential observationsFind observations that drive OLS results, check them for data errors, and respond with sensitivity checks, transformations or least absolute deviations.
- Review a regression study for threats to its conclusionsBring the diagnostics of this unit together to check whether a study's estimates and standard errors can be trusted, and link each problem to its symptom and response.
- Judge the effect of missing data and nonrandom samples
Heteroskedasticity study guide
1Keep OLS inference valid
Changing error spread leaves some OLS properties intact and breaks others. Separate the mean assumption that supports coefficient estimation from the variance assumption used in ordinary inference. Residual plots show what to investigate, and robust covariance estimates turn that investigation into valid large-sample tests and intervals. The same fitted line can support a different conclusion once its uncertainty is estimated correctly.
1.1 Changing error variance
A regression describes both a typical outcome and the deviations around it. Heteroskedasticity means those deviations have different variances at different values of the explanatory variables. High-income households, for example, can differ much more in annual saving than low-income households.
Separate the mean from the spread
For , homoskedasticity means . Under heteroskedasticity, write , where varies with the regressors. The condition concerns the center of the errors. It can hold while their spread changes.
Imagine a saving regression with residuals mostly between minus 1 and plus 1 thousand dollars at incomes near 20 thousand, but between minus 8 and plus 8 thousand at incomes near 120 thousand. Both groups can have average error zero. The second group is simply harder to predict precisely.
Which OLS results survive?
With a correctly specified linear mean, random sampling, no perfect collinearity and zero conditional mean, OLS remains unbiased and consistent. Constant variance is absent from those requirements. Increasing the sample helps the coefficient estimates approach the true parameters, but it does not make a wrong standard-error formula valid.
| Result | Under heteroskedasticity |
|---|---|
| OLS coefficients | Remain unbiased and consistent under the other OLS assumptions |
| Usual standard errors | Generally invalid |
| Usual tests and intervals | Can give misleading significance and coverage |
| Efficiency | OLS loses its BLUE guarantee |
| Sample R-squared | Still measures the share of variation explained |
The usual variance formula for a slope is . It assigns one common error variance to all observations. When that premise fails, usual t and F statistics lose their stated reference distributions. Their p-values may exaggerate or understate the evidence. A large sample does not repair this formula.
BLUE means best linear unbiased estimator. With the correct variance function, weighted least squares can estimate the same coefficients more precisely. Heteroskedasticity by itself does not say that the fitted relationship points in the wrong direction.
Read the residual pattern
Plot residuals, or squared residuals, against fitted values and important regressors. A fan suggests changing variance. A curved center suggests a problem in the mean equation, such as a missing square. These are different features of a plot and can appear together. Formal variance tests help assess a visible pattern; they do not identify every possible variance form.
A high can coexist with a wide fan. The formula still describes sample fit; it and adjusted R-squared consistently estimate the population measure based on unconditional variances. Normality also differs from homoskedasticity: errors can be normal at each income but have income-dependent variances.
Logs often reduce a fan by compressing large outcomes. A wage model in log wages still needs a variance check. In a linear probability model, the binary outcome itself links the error variance to the fitted probability.
Key Takeaways
- Heteroskedasticity concerns conditional variance; zero conditional mean can still hold.
- OLS stays unbiased and consistent under the other OLS assumptions.
- Usual standard errors and their tests generally fail, even in large samples.
- OLS loses its BLUE guarantee; sample R-squared retains its descriptive meaning.
- Use residual plots to distinguish changing spread from a curved mean.
1.2 Robust standard errors and tests
A robust covariance estimate lets each observation contribute its own error variance. The OLS line stays exactly where it was. What changes is the estimated uncertainty around its coefficients.
Build a robust standard error
In simple regression, let . The basic HC0 estimate is
Take its square root to get the standard error. Large squared residuals matter especially when their observations are far from the mean of the regressor. In multiple regression, replace the centered regressor by residuals from regressing that regressor on the others: the numerator becomes and the denominator is .
For six observations with and , OLS gives . The residuals are . Their squared sum is 8.848, so the usual variance estimate is and the usual slope SE is .
The robust numerator is . Thus HC0 gives . HC1 multiplies the variance by , giving an SE of about 0.415. This small example illustrates arithmetic; robust inference relies on large-sample approximations.
Name the version
| Version | Adjustment |
|---|---|
| HC0 | Basic squared-residual formula |
| HC1 | Multiplies HC0 variance by |
| HC2 and HC3 | Adjust for observation leverage |
HC3 is often useful in smaller samples and is the default of R's sandwich::vcovHC. Stata's vce(robust) uses HC1. Request the same version when comparing software:
- Stata:
regress y x1 x2, vce(robust) - R:
lmtest::coeftest(m, vcov = sandwich::vcovHC(m, type = "HC1")) - Python:
smf.ols("y ~ x1 + x2", data=df).fit(cov_type="HC1")
Here m is an R model fitted by lm, and Python uses import statsmodels.formula.api as smf.
Use the covariance estimate throughout inference
With an estimate of 0.48 and robust SE 0.12, the robust test statistic for a zero coefficient is . A large-sample 95% interval is . The usual SE of 0.08 would instead give a narrower interval, about [0.323, 0.637]. Robust SEs can also be smaller, as the HC0 example shows.
For joint restrictions use a robust Wald test, not the restricted-versus-unrestricted SSR formula. After a robust fit, use Stata test x2 x3, R car::linearHypothesis(m, c("x2 = 0", "x3 = 0"), vcov. = sandwich::vcovHC(m, type = "HC1")), or Python res.f_test("x2 = 0, x3 = 0") with the robust fitted result res.
Robust inference works with constant or changing variance in large independent samples. It leaves omitted-variable bias, measurement error and outlier influence untouched. Errors correlated within groups require a covariance estimator designed for that dependence.
Key Takeaways
- Robust SEs change uncertainty, not OLS coefficients.
- HC1 scales the HC0 variance; HC3 also adjusts for leverage.
- Use the robust SE for t statistics and confidence intervals.
- Joint restrictions require the robust covariance matrix.
- Robust SEs can be larger or smaller than usual SEs.
- Independent observations and adequate sample size still matter.
2Test the error variance
Squared residuals provide a practical way to investigate changing variance. Build an auxiliary regression, choose the patterns it should search for, and use its fit to form a test statistic. Breusch–Pagan and White tests differ in that choice of predictors and in how much sample information they use. Their results become more useful when read alongside the mean specification and the exact settings used by software.
2.1 The Breusch–Pagan test
The Breusch–Pagan test asks whether error variance is related to selected explanatory variables. It turns an unobserved feature of the errors into a regression using squared OLS residuals.
Set up the auxiliary regression
Under zero conditional mean, . If the variance is constant, the regressors should not help explain squared errors. Use
where the variance predictors may be all the original regressors, a subset, or other plausible drivers of variance. Test . Count the nonconstant predictors in this auxiliary regression; the original model's number of slopes need not be the same.
- Estimate the mean model by OLS and save its residuals.
- Square those residuals.
- Regress the squares on an intercept and the chosen variance predictors.
- Save the auxiliary R-squared and compute the test statistic.
- Compare its p-value with the significance level.
The studentized, or Koenker, LM form is , approximately chi-square with degrees of freedom under the null. The F version is
with an approximate reference distribution. These are large-sample diagnostic tests; the studentized version does not require normal errors.
Work through a result
A model uses 200 observations and three variance predictors. The auxiliary regression gives . Then . The 5% chi-square critical value for three degrees of freedom is 7.81. The p-value is about 0.005, so reject constant variance.
For the F form, the numerator is and the denominator is . Their ratio is about 4.47, also with p about 0.005. The 196 denominator degrees of freedom subtract the three slopes and the auxiliary intercept from 200.
Avoid testing the wrong quantity
Regressing the unsquared residuals on the original regressors gives zero slopes by the OLS normal equations. That regression asks about a linear mean pattern already removed by OLS. Squaring reveals differences in spread that positive and negative errors otherwise cancel.
A rejection indicates variance-related structure, but it does not supply optimal weights. A non-rejection leaves uncertainty: a small sample or a nonlinear variance relation can give the test little power. If a log model is estimated, use that model's residuals; a test from a levels regression says nothing directly about the log regression's variance.
Match software settings
- R:
lmtest::bptest(m)uses all regressors and the studentized version by default. - Stata:
estat hettest, rhs iidafterregressmatches that version. Plainestat hettestinstead uses fitted values and a normal-theory statistic. - Python:
het_breuschpagan(res.resid, res.model.exog)fromstatsmodels.stats.diagnosticreturns LM, its p-value, F and its p-value. The design matrix includes an intercept.
Check the mean equation before interpreting a variance test. If a missing quadratic produces systematic prediction errors, their squares can be related to the regressors even when the true disturbance has constant variance.
Key Takeaways
- Regress squared residuals on an intercept and chosen variance predictors.
- Compute LM from the auxiliary R-squared, not the original model R-squared.
- Degrees of freedom count nonconstant auxiliary predictors.
- A rejection gives evidence against constant variance, not a variance formula.
- Check functional form and software defaults when interpreting the result.
2.2 The White test and its limits
A variance pattern can be nonlinear. The White test expands the auxiliary regression so that squares and interactions can detect relationships a simple linear variance check misses.
Build the full test
Start with OLS squared residuals. Regress them on an intercept, the original regressors, their squares and their pairwise cross products. Compute and compare it with a chi-square distribution. The degrees of freedom count distinct, linearly independent nonconstant terms in this auxiliary regression.
For three continuous regressors, the list is:
- Three levels: .
- Three squares: .
- Three products: .
That gives nine restrictions. The 5% chi-square critical value is about 16.92. With six regressors, there are possible terms. Every added term consumes sample information, so the fuller test can have weak power in small samples.
A dummy's square is the dummy itself. Keep one copy. Other exact dependencies can also reduce the usable term count; count the actual independent terms, not just the written list. A White regression with duplicated columns does not gain new restrictions from those copies.
Use the compact fitted-value version
The special White form regresses squared residuals on an intercept, and . These summarize combinations of the original levels, squares and products with only two nonconstant predictors. When both are independent, the LM statistic has two degrees of freedom.
With 200 observations and auxiliary , . The 5% critical value is 5.99 and p is about 0.011. Reject at 5%, but retain the null at 1%. The significance level determines the decision; the same evidence can fall on different sides of those cutoffs.
The special form saves degrees of freedom by restricting the variance patterns searched. It is useful when the full term expansion would be too large, but it is a different test, so it need not give the same p-value.
Interpret both tests with the mean model
| Diagnostic | What it adds to the variance regression |
|---|---|
| BP with original regressors | Linear variance predictors |
| Full White | Levels, squares and cross products |
| Special White | Fitted values and their square |
A rejection can reflect an incorrect mean equation. Omitting a true quadratic leaves systematic residuals; their squares then appear predictable. Inspect functional form before treating a rejection as evidence for a particular weighting model.
Robust standard errors remain valid in large independent samples even when a variance test does not reject. A diagnostic is useful for describing the data and considering WLS. It is not an entry requirement for robust inference. Neither BP nor White can establish that all other regression assumptions hold.
Run the full form
In Stata use estat imtest, white after OLS. In Python use het_white(res.resid, res.model.exog) from statsmodels.stats.diagnostic; the design matrix includes the intercept. For an R model with two continuous regressors, use lmtest::bptest(m, ~ x1 * x2 + I(x1^2) + I(x2^2), data = df). The interaction notation supplies the levels and their product, while I() supplies the squares. The special form can be run directly as an auxiliary regression on saved fitted values and their square.
Key Takeaways
- The full White test searches levels, squares and cross products.
- Drop duplicate or dependent terms when counting degrees of freedom.
- The special fitted-value form typically uses two restrictions.
- Many auxiliary terms can reduce power in a small sample.
- A non-rejection still permits robust inference in large samples.
3Estimate with unequal precision
Unequal error variances create an opportunity to improve precision. Use a known variance pattern to transform a regression, or estimate that pattern before fitting weighted least squares. Keep the original coefficient meanings, track the difference between weights and transformations, and assess whether the weighting model deserves confidence. Binary outcomes provide a concrete case where the variance is tied directly to the conditional mean.
3.1 Weight observations by their precision
Some observations are more precise than others. Weighted least squares (WLS) gives less weight to observations with larger error variances. It changes how the coefficients are estimated, while keeping their meaning in the original model.
Remove a known variance pattern
Suppose , with a known positive function . Divide every term by its square root:
The transformed error variance is . OLS on this transformed equation is a special case of generalized least squares. Its objective is
The weight applied to a squared residual is . The transformation applied to each variable is . Multiplying all weights by the same positive constant leaves the coefficients unchanged, so knowing variance up to a common scale is sufficient.
Transform an observation
In a saving model with variance proportional to income, use . Amounts are in thousands of dollars. For income 25 and saving 2.0, divide by 5: the transformed outcome is 0.4, the transformed constant is 0.2 and the transformed income is 5. For income 100 and saving 9.0, divide by 10: the values become 0.9, 0.1 and 10.
The first observation has squared-residual weight ; the second has weight . Equal original residuals therefore contribute four times as much for the first household. Its lower error variance makes the same-sized miss more informative.
If fitting transformed variables by hand, include as a regressor and suppress the ordinary intercept. The coefficient on that transformed constant estimates the original intercept. Weight-aware software performs the transformation internally and keeps the original formula's intercept.
Interpret coefficients and inference
A WLS saving slope still measures the change in saving for a one-unit increase in income, with other regressors fixed. With the correct variance function and the other Gauss–Markov assumptions, WLS is BLUE. Its usual standard errors support inference; exact finite-sample t and F distributions additionally require normal errors.
For averages over people whose errors are uncorrelated and have a common individual variance, the average error variance is . Thus and the weight is . A firm average based on 400 employees gets four times the weight of one based on 100. Shared within-firm shocks break this inverse-size variance formula.
Fit with inverse-variance weights
- Stata:
regress y x1 x2 [aweight = 1/h] - R:
lm(y ~ x1 + x2, data = df, weights = 1/h) - Python:
smf.wls("y ~ x1 + x2", data=df, weights=1/df["h"]).fit()
Restricted and unrestricted WLS models in an F test need identical observations and weights. The software's weighted R-squared describes a different fit calculation from OLS R-squared; comparing the two values is not a way to choose an estimator.
Key Takeaways
- Use inverse variance for weights and inverse standard deviation for transformation.
- Transform the constant along with every other term.
- Interpret WLS coefficients in the original equation.
- Correct weights restore the BLUE result under the other assumptions.
- Weights proportional to group size need independent, equally variable individual errors.
- Use the same weights and sample in restricted and unrestricted models.
3.2 Estimate weights with feasible GLS
The error variance function is usually unknown. Feasible GLS (FGLS) estimates it from an initial OLS fit, then uses the resulting inverse-variance weights in WLS. A credible variance model can improve precision.
Estimate a positive variance function
An exponential form keeps predicted variances positive:
Write squared errors as this expression times a positive factor with . For the usual log-squared-residual procedure, also assume that is independent of the regressors and that its log has a finite mean. Taking logs then yields a linear equation for log squared errors with the same variance slopes; the intercept absorbs the common scale and the mean of log . A conditional mean for alone is insufficient because the log of an average differs from the average of a log.
Implement the procedure as follows:
- Fit the original mean equation by OLS and save residuals .
- Calculate .
- Regress this quantity on an intercept and chosen variance predictors. Save fitted values .
- Set .
- Fit the original equation by WLS with weights .
The predictors in step 3 can be the original regressors or fitted values and their square. An exactly zero residual has no finite log, so inspect such cases before fitting this auxiliary equation. The resulting variance estimates need only be proportional to the true variances; WLS does not need their common scale.
Turn a log prediction into a weight
If , then and the weight is about 3.32. If , the variance factor is about 1.649 and the weight about 0.607. The first observation gets roughly 5.5 times as much weight. Using the fitted log value directly would produce a negative weight in the first case and would miss the required inverse-variance transformation.
Protect inference if the weights are imperfect
FGLS weights are estimated from the same observations, so FGLS is not generally unbiased in finite samples. With a correct variance model and zero conditional mean, it is consistent and asymptotically more efficient than OLS. Its usual inference is then valid in large samples.
If a positive weighting function of the regressors is wrong, zero conditional mean still supports consistency under regularity conditions. Efficiency gains are no longer assured, and usual WLS standard errors become invalid. Request robust covariance after weighting:
- Stata:
regress y x1 x2 [aweight = w], vce(robust) - R, with
m_wlsfitted using weights:lmtest::coeftest(m_wls, vcov = sandwich::vcovHC(m_wls, type = "HC1")) - Python:
smf.wls("y ~ x1 + x2", data=df, weights=w).fit(cov_type="HC1")
Compare the mean estimates
An OLS slope of 0.30 with SE 0.05 and a WLS slope of 0.12 with SE 0.04 deserve investigation. Ordinary sampling variation creates some difference, but a large gap is a warning about the mean specification, omitted variables or influential observations. Revisit those features instead of selecting the more convenient estimate.
Predictions use the WLS coefficients in the original equation. Individual-outcome prediction intervals should widen where is larger. OLS with robust SEs remains a useful default when a dependable variance model is unavailable.
Key Takeaways
- FGLS estimates a variance function before fitting WLS.
- Exponentiate fitted log squared residuals, then invert to obtain weights.
- The log-residual method requires assumptions beyond a positive variance model.
- Estimated weights remove the finite-sample unbiasedness guarantee.
- Use robust WLS inference when the variance model may be wrong.
- Large OLS–WLS coefficient differences call for a mean-model review.
- Individual prediction uncertainty depends on the variance at the prediction point.
3.3 Variance in a linear probability model
A linear probability model (LPM) uses a binary outcome and models its probability as a linear function of the regressors. Its variance follows directly from that probability, which makes ordinary homoskedastic OLS inference generally unsuitable.
Derive the variance
Let . Because is either zero or one, . Therefore
The error is . At a fixed regressor value the subtracted probability is constant, so the error has the same conditional variance as the outcome. The variance is greatest at probability 0.5 and smaller near either endpoint.
The LPM is heteroskedastic in general, but a nonzero slope alone is not a universal proof. With one binary regressor, probabilities 0.2 and 0.8 both produce variance 0.16. Homoskedasticity requires the product to be constant across the support of the regressors.
Keep coefficient meaning separate from inference
OLS with heteroskedasticity-robust SEs is the simplest approach for large independent samples. A labor force participation coefficient of minus 0.21 on the number of children under age 6 describes a 21-percentage-point fall in participation probability for each additional child, holding other variables fixed. Robust SEs affect the test and interval for this estimate. They leave its value and its percentage-point interpretation unchanged.
A 21-percentage-point change differs from a 21% change in the starting probability. If the starting probability were 0.60, subtracting 0.21 would give 0.39; it would not mean multiplying 0.60 by 0.79.
Construct feasible weights
First fit OLS and save probabilities . Estimate the variance factor by and use :
| Fitted probability | Variance factor | Weight |
|---|---|---|
| 0.2 | 0.16 | 6.25 |
| 0.5 | 0.25 | 4 |
| 0.9 | 0.09 | About 11.1 |
Probabilities near zero or one produce small variances and large weights. The weights express precision, not the importance of an outcome. A rare event's probability can therefore receive more weight than a probability near one half.
Check that weights exist
Every fitted probability must be strictly between zero and one for these positive finite weights. At either endpoint the estimated variance is zero and its inverse is undefined. Outside the interval the estimated variance is negative: a fitted value of 1.04 gives .
Clipping predictions to 0.01 and 0.99 chooses replacement values arbitrarily and can make the weighted result sensitive to that choice. When the OLS predictions leave the valid interval, retain OLS with robust SEs as the usual inference approach. Robust SEs do not constrain predictions to the unit interval; that limitation belongs to the linear mean specification.
Key Takeaways
- The binary error variance is probability times one minus probability.
- The LPM is generally heteroskedastic, with special constant-variance cases.
- Robust OLS inference leaves percentage-point effects unchanged.
- LPM weights require every fitted probability to lie strictly between zero and one.
4Check the shape of the regression
A regression can miss the shape of an economic relationship even when it includes the right observed variables. Squares, interactions and logs provide possible alternatives. Direct added-term tests and RESET help identify inadequate forms, while nonnested comparisons assess specifications that cannot be reduced to each other. Each test has a particular null and requires care about the outcome scale, estimation sample and covariance estimator.
4.1 Check curvature with added terms and RESET
A straight-line mean may miss curvature or a changing effect. Functional form misspecification occurs when the equation represents the relationship between observed variables incorrectly. A missing experience square or education–experience interaction is an omitted variable built from data already available.
Test a specific economic possibility
Suppose the wage effect of experience diminishes with experience. Add . If the effect of education may depend on experience, also add . Test that their coefficients are jointly zero. A rejection says the simpler equation leaves out useful mean structure.
With homoskedastic errors, an ordinary added-term F test is appropriate. With heteroskedastic errors, use a robust joint test from the expanded model's covariance matrix. Correcting the SE of the original equation alone leaves its missing curvature in place. Partial effects from a misspecified mean are generally biased and inconsistent for the intended effects.
Build a RESET test
Ramsey's regression specification error test (RESET) searches more broadly using powers of the original fitted values. Fit the base model with slopes, save , and estimate
Test . The expanded model has parameters including its intercept, so the conventional F test has 2 numerator and denominator degrees of freedom. Do not add itself: it is already a linear combination of the included columns.
For 150 observations and four base slopes, suppose R-squared rises from 0.378 to 0.412. Then
The 5% critical value is about 3.06, with p about 0.018. Reject at 5%, but not at 1%. This R-squared calculation assumes the conventional homoskedastic test. Use a robust covariance test if error variance changes.
Turn the diagnosis into a model change
The powers of fitted values are test devices. Their coefficients have no direct economic interpretation. After rejection, investigate a meaningful form: logs, a quadratic, or an interaction suggested by the economic question. Estimate that model and examine its implications for partial effects.
RESET does not detect every omitted variable. An omitted factor whose conditional expectation is linear in the included regressors can shift their slopes without creating the nonlinear pattern RESET searches. A non-rejection therefore leaves omitted-variable reasoning necessary. Passing a diagnostic is evidence about the feature it tests, never a certificate of causality.
Match the version across software
- R:
lmtest::resettest(m, power = 2:3, type = "fitted"). - Python:
linear_reset(res, power=3, use_f=True)fromstatsmodels.stats.diagnosticadds the square and cube. For a robust version, supplycov_type="HC1". - Stata:
estat ovtestafter OLS normally adds the square, cube and fourth power, giving three numerator restrictions. For a two-power robust comparison, save fitted values, create their square and cube, refit withvce(robust)and jointly test those added terms.
Settle the mean form before interpreting BP or White tests: systematic mean errors also enter squared residuals and can look like changing variance.
Key Takeaways
- A missing square or interaction is a functional form problem.
- Test meaningful added terms directly when an economic alternative is available.
- RESET tests fitted-value powers jointly; the fitted value itself is collinear.
- A rejection identifies inadequacy, not the correct replacement form.
- RESET cannot rule out all omitted variables.
- Heteroskedasticity requires robust added-term or RESET inference.
4.2 Compare models that are not nested
A model in regressor levels and one in regressor logs may explain the same outcome with different shapes. They are nonnested when neither model can be obtained by setting coefficients in the other to zero. The ordinary restricted-versus-unrestricted F comparison cannot compare them directly.
Put both specifications inside one model
Consider model A with and model B with , using positive regressor values and the same dependent variable. A comprehensive model includes all four terms. Testing that both log coefficients are zero tests A. Testing that both level coefficients are zero tests B.
The comprehensive equation makes each candidate a set of restrictions on a larger equation. Test each restriction set separately. Levels and logs can be highly correlated over a narrow range, so the combined model may have large standard errors and weak tests. A higher R-squared after adding terms is expected even when they add little real information.
Use the Davidson–MacKinnon approach
The fitted-value test asks whether one candidate's predictions contain information missing from the other:
- Fit model B and save .
- Add to model A.
- Test that its coefficient is zero. Significance rejects A.
- Reverse the roles to test B.
For example, a t statistic of 2.85 on B's predictions inside A rejects A at the large-sample 5% two-sided cutoff of 1.96. A statistic of 0.94 on A's predictions inside B fails to reject B. These two results favor B. Under heteroskedasticity, use robust inference for the added prediction.
The direction of the test matters. Adding B's predictions to A tests A's adequacy, not B's. A useful added prediction exposes what the host model fails to capture.
Read both decisions
| Model A | Model B | Interpretation |
|---|---|---|
| Rejected | Not rejected | Evidence favors B |
| Not rejected | Rejected | Evidence favors A |
| Rejected | Rejected | Seek a better specification |
| Not rejected | Not rejected | The tests do not distinguish them |
When neither is rejected, economic meaning, interpretability and descriptive fit can guide the choice. Adjusted R-squared penalizes extra regressors and can help describe models with different parameter counts. It remains a fit measure, not a causal test. Rejecting one candidate also leaves the surviving candidate subject to other diagnostic checks.
Keep the outcome and sample comparable
These procedures compare models for the same dependent variable on the same observations. A model for wages and one for log wages explain variation on different scales. An R-squared of 0.35 for log wages cannot be ranked against 0.30 for wage levels. One describes the share of variation in log wages; the other describes the share in wages.
Regressor transformations can also change the sample. Logs exclude zero or negative inputs, and missing controls remove observations. Fix a common usable sample before running a comprehensive comparison or swapping fitted predictions. Otherwise a change in fit may reflect who entered the regression as well as how the equation was written.
Key Takeaways
- Nonnested models need an encompassing model or fitted-value comparison.
- Adding B predictions to A tests the adequacy of A.
- Test in both directions; both or neither candidate can be rejected.
- Compare models on the same outcome and observations.
- R-squared values for an outcome and its log describe different variation.
5Handle unobserved and noisy variables
Variables may be unobserved or recorded imperfectly. Follow each problem into the regression error to see whether it changes precision, the coefficient limit or both. A proxy can help control an unobserved factor only under suitable conditions. Measurement error has sharply different effects depending on which side of the equation contains it and how the recording error relates to the true value and the other regressors.
5.1 Use an observed proxy for an unobserved factor
Ability can affect wages and also be related to schooling. Leaving ability out then makes the education coefficient absorb part of ability's effect. A proxy variable is an observed measure that can account for the relevant unobserved differences.
Substitute a proxy relationship
Start from . Represent ability using an IQ score:
Substitution gives an intercept , an IQ coefficient and composite error . Estimate the equation with education, experience and IQ. This is the plug-in solution. Its success depends on the composite error being uncorrelated with the included regressors.
Check two distinct conditions
First, the proxy must be redundant in the structural wage equation. Once ability is accounted for, IQ has no separate effect on wages, and the original disturbance is uncorrelated with the proxy and the other explanatory variables.
Second, the proxy must capture the ability differences related to education and experience. A sufficient condition is
This makes the remaining ability component have conditional mean zero. For consistency, zero correlation between that remainder and each included regressor is enough. Merely showing a strong ability–IQ correlation establishes neither the redundancy condition nor the absence of remaining education-related ability.
When the conditions hold, the education and experience slopes are consistent. The IQ coefficient estimates the product , not the effect of a one-unit increase in ability. The scale and strength of the proxy relationship enter that coefficient.
Interpret a fitted result
Suppose the education coefficient in a log-wage model with experience and tenure is 0.075. After adding IQ, it falls to 0.061, and IQ has coefficient 0.004. The new education coefficient describes about 6.1% higher wages for another year of schooling at the same IQ and other controls; the exact change is . A 15-point IQ difference corresponds to a log-wage difference of , roughly 6%.
The decline fits the expected direction of positive omitted ability bias. It is not enough by itself to establish that the proxy conditions hold. If ability still depends on education after holding IQ fixed, say , the education coefficient approaches . Remaining bias depends on that residual relationship. An imperfect proxy may reduce it, but improvement is not guaranteed for every proxy.
Choose a measure with the right timing
A past dependent variable can proxy persistent unobserved factors. Past city crime may help control stable differences when comparing current crime and police spending. An earlier student score can play a similar role in a value-added score model.
Timing matters. If schooling itself raises a later IQ score, controlling for that score can remove part of schooling's effect. A proxy also cannot resolve reverse causality such as crime causing more police hiring. Select it using the economic mechanism and how the measure was collected, alongside its statistical relationship with the missing factor.
Key Takeaways
- A proxy must be related to the omitted factor.
- Consistency needs structural redundancy and no remaining regressor-related omitted component.
- The proxy coefficient combines the structural effect with the proxy scale.
- A coefficient change after adding a proxy is evidence to interpret, not proof of validity.
- Timing matters when the variable of interest can itself affect the proxy.
- A lagged outcome can proxy persistent unobserved differences.
5.2 When the outcome is measured with error
Survey outcomes often contain rounding, recall errors or misreporting. Their effect depends on whether that error changes systematically with the explanatory variables. Random noise in the outcome has different consequences from a noisy regressor.
Put the measurement error into the equation
Let the true outcome satisfy . The recorded outcome is . Substitution gives
The new disturbance includes measurement error. Ask whether its conditional mean remains zero after any constant shift is absorbed into the intercept.
If at every regressor value, the slopes remain unbiased and consistent under the original mean assumptions. The intercept shifts by . Zero-mean random error has ; underreporting by the same average amount everywhere has a negative constant. Neither pattern changes the population slopes.
A weaker condition, zero correlation of measurement error with each regressor, supports consistent slopes without necessarily establishing finite-sample unbiasedness. Conditional mean restrictions and correlation restrictions should therefore be distinguished when describing an estimator's properties.
Work out the precision cost
If measurement error is also uncorrelated with the original disturbance,
More unexplained noise makes coefficient estimates less precise. A survey of annual saving illustrates the mechanism: households with the same income, age and size may round or misremember saving in either direction. The fitted income effect stays centered on the true effect when the reporting error has the same conditional mean, but repeated samples give more variable estimates.
This precision claim needs the extra lack of covariance between the two errors. In general the variance of a sum also contains twice their covariance. Error related to the original disturbance can alter that calculation even when it remains uncorrelated with the regressors.
Recognize systematic reporting error
Suppose high-income households underreport saving by more than low-income households. Holding other regressors fixed, the reporting error becomes more negative as income rises. The recorded outcome then increases less with income than true saving does. The estimated income slope is biased downward.
In simple regression, the extra slope contribution is . A negative covariance lowers the slope. With controls, reason about the part of income remaining after those controls; the relevant association is the partial relationship, not necessarily the raw income–reporting correlation.
The same issue appears when a grant recipient overstates an improvement that nonrecipients report accurately. Because the reporting error varies with grant status, the estimated grant coefficient combines the true effect and differential reporting.
Read the data collection process
Ask who records the outcome, how it is verified and whether incentives to misreport differ with the regressors. Robust standard errors can address changing variance of the composite error. They cannot remove a systematic reporting component correlated with a regressor.
Key Takeaways
- Outcome measurement error joins the regression disturbance.
- A constant conditional mean preserves slopes and shifts only the intercept.
- Independent outcome noise increases variance and reduces precision.
- Regressor-related reporting error can bias slopes.
5.3 Why a noisy regressor can shrink a slope
Measurement error in an explanatory variable enters both the observed regressor and the regression disturbance. Under classical measurement error, this creates correlation between them and pulls the slope toward zero.
Rewrite the true equation
Let , but observe . Replacing the true regressor yields
Assume the original disturbance is uncorrelated with the true and observed regressor. The new question is whether the observed regressor is correlated with measurement error. If is uncorrelated with observed , the composite error remains uncorrelated with and OLS is consistent. This differs from the classical assumption.
Derive classical attenuation
Classical errors-in-variables (CEV) means the zero-mean measurement error is uncorrelated with the true regressor. Since ,
Thus the regressor and composite disturbance are correlated. The probability limit is
The fraction is the reliability ratio. It is between zero and one, so the limit keeps the true slope's sign but has a smaller magnitude. A negative effect becomes less negative, not more negative. This movement toward zero is attenuation bias.
For a true slope of 0.10, true-regressor variance 4 and error variance 1, the ratio is . The estimate approaches 0.08. If measurement error variance rises to 4, the ratio falls to 0.5 and the limit to 0.05. More observations concentrate the estimate around this wrong limit; they do not make it approach 0.10.
Account for other controls
With CEV in one regressor only, and measurement error uncorrelated with the correctly measured controls, replace the total true-regressor variance by the variance of its residual after projection on those controls, :
If controls leave variance 1.5 and measurement error variance is still 1, the ratio is , giving a limit of 0.06. Controls remove true signal while leaving the classical noise, so attenuation can worsen. Coefficients on correctly measured controls can also become biased; their directions depend on the correlations.
Diagnose the measurement process
Self-reported schooling and a single year's income used for long-run income are possible noisy regressors. CEV is a substantive assumption: error correlated with the true value, or misclassification of a binary variable, can produce other bias patterns.
A known reliability ratio or an independent second measurement supplies information beyond the single noisy measure. In simple CEV regression, dividing a limiting slope of 0.08 by reliability 0.8 recovers 0.10. Robust standard errors cannot make this correction because they leave the slope estimate unchanged. A small, precisely estimated coefficient can still be strongly attenuated.
Key Takeaways
- Classical measurement error is uncorrelated with the true value, not the recorded value.
- The resulting composite disturbance is correlated with the observed regressor.
- The reliability ratio gives the fraction of a simple-regression slope retained.
- Attenuation shrinks magnitude toward zero for either sign.
- Controls can worsen attenuation by removing remaining true signal.
- A larger sample and robust SEs do not remove inconsistency.
6Review the data and the study
The sample and its unusual observations can shape a regression as strongly as the equation itself. Trace why values are missing, determine who enters the sample, and examine cases that move the estimates. Then connect those data checks to functional form and variance diagnostics. Reviewing the study as a whole makes it possible to distinguish a more precise estimate from a more credible causal conclusion.
6.1 Missing values and selected samples
A regression uses the observations available for all its variables. Whether missing observations cause bias depends chiefly on why they are missing. Counting the losses is a starting point; tracing the selection rule explains the risk.
Identify the regression sample
Complete-case deletion, also called listwise deletion, removes any observation missing a variable in the equation. If 120 of 1,000 survey respondents omit income, a regression requiring income uses at most 880 respondents. Adding a control can therefore change both the equation and the sample.
Before comparing coefficients across models, check observation counts and identify the common sample. A changed education slope after adding income could partly reflect the people removed. Report the missingness rules as well as the final sample size.
Decide whether selection preserves zero conditional mean
If values are missing completely at random, missingness is unrelated to all model variables and the disturbance. Dropping incomplete observations then leaves OLS unbiased and consistent, at the cost of fewer observations and reduced precision.
Selection based on explanatory variables is exogenous selection when the same conditional mean model holds in the selected population. Restricting ages to 35–54 leaves the error centered at zero within each included regressor group. It can narrow the range of the data and limit where results apply, but it need not bias the conditional slopes.
Endogenous selection depends on the outcome or disturbance. Consider an earnings sample restricted to people earning less than 50 thousand dollars per year. Highly educated people with unusually high earnings are removed. The highly educated people who remain have unusually low errors, producing a downward education-slope bias. Wage observations only for workers can create a related selection problem if employment depends on unobserved determinants of wages.
| Missingness or selection | Main implication |
|---|---|
| Completely at random | Less information, without selection bias |
| Based on regressors, same mean model | Conditional slopes can remain unbiased |
| Related to the outcome or disturbance | Zero conditional mean can fail |
Evaluate quick filling methods
The missing-indicator method replaces a missing regressor with zero and adds a dummy marking that replacement. It keeps observations, but the missing group lacks the original control information. When that regressor is related to other regressors, their coefficients can be biased even under completely random missingness.
Replacing missing values by one guessed number, such as the sample mean, and treating it as observed ignores the uncertainty about those values. Standard errors can then be understated. Multiple imputation and explicit selection methods use additional assumptions about missingness; preserving the row count alone says nothing about validity.
Investigate the reason for loss
Compare observed characteristics of complete and incomplete cases. Check whether nonresponse follows a sensitive outcome such as high earnings. Assess reasonable alternatives for handling the missing data and show how the main estimates change.
A 30% random loss can cost precision without bias, while a 5% loss concentrated among the highest earners can distort the relationship. Robust SEs estimate uncertainty around the available-sample regression; they cannot restore a population relationship lost through outcome-based selection.
Key Takeaways
- Report which observations each regression uses.
- Completely random missingness costs precision without selection bias.
- Selection on regressors can preserve slopes when the mean model holds.
- Outcome-related selection can break zero conditional mean.
- Missing indicators and single-value filling are not general bias corrections.
6.2 Find observations that drive the regression
OLS gives large residuals disproportionate influence because it squares them. An unusual observation can reveal a data error, a missing part of the model or a genuine part of the population. Each possibility calls for investigation.
Distinguish three features
An outlier departs from the main outcome pattern, often through a large residual. High leverage means unusual regressor values. Influence means that removing an observation changes coefficient estimates substantially. An observation can have leverage without a large residual, or a large residual without much leverage.
Squaring a residual twice as large produces four times the loss. A point far out in the regressor space can also change the line's slope with a small movement in the fitted equation. The combination of leverage and outcome deviation therefore deserves special attention.
Check a concrete change in slope
Eight firms have sales, in billions of dollars, of . Their R&D shares of sales, in percent, are . The regression using all firms has slope about 0.163 percentage points per additional billion in sales. Excluding the largest firm gives about 0.006, near zero.
That firm has both unusual sales and an unusual R&D share. The apparent positive relationship depends heavily on it. The sensitivity calculation describes the evidence; it does not decide whether the firm should be removed.
Verify records before altering the sample
Check units, decimal places, extra zeros and missing-value codes. A value of 999 used as a missing code can look like an extreme observation if read as data. Correct documented recording errors. For genuine cases, examine the economic explanation and report sensitivity openly.
Plot outcomes and regressors, then inspect residuals and influence diagnostics. An externally studentized residual scales a residual using a variance estimate from a fit leaving that observation out. Absolute values above about 2 invite inspection, especially alongside leverage; the threshold is a screening guide.
- Stata after
regress:predict r, rstudentanddfbeta. - R:
rstudent(m)andcooks.distance(m). - Python:
res.get_influence().summary_frame().
These tools flag cases for review. A large diagnostic alone is not a deletion rule.
Choose a response that matches the question
Report fits with and without influential cases and explain why they differ. A log transformation can compress large values, but also changes the functional form and interpretation. Heavy-tailed firm sizes, incomes and wealth make these checks especially useful. A large sample can still be dominated by a group of extreme cases.
Least absolute deviations (LAD) minimizes and models the conditional median. It is less sensitive to extreme outcomes than OLS, but can still be sensitive to extreme regressor values. With errors symmetric around zero, mean and median slopes agree; otherwise they can describe different relationships.
Fit median regression with Stata qreg y x1 x2, R quantreg::rq(y ~ x1 + x2, tau = 0.5), or Python smf.quantreg("y ~ x1 + x2", data=df).fit(q=0.5). Heteroskedasticity-robust SEs do not reduce a point's influence on OLS coefficients. Removing cases solely to raise R-squared hides sensitivity and undermines the reported inference.
Key Takeaways
- Outliers, leverage and influence describe different features.
- Check records and units before changing data.
- Report sensitivity to genuine influential observations.
- LAD models the conditional median and remains sensitive to extreme regressors.
- Robust SEs leave OLS outlier influence unchanged.
- A group of extreme observations can matter even in a large sample.
6.3 Judge what a regression study supports
A useful regression review connects the economic question, the data collection process, the mean equation and the uncertainty estimates. Each check asks a different question. A significant slope or high R-squared alone cannot establish a causal effect.
Distinguish validity and precision
Internal validity means the causal estimates and standard errors are valid for the studied population. External validity concerns applying the conclusions to other populations or settings. Selection may threaten the first, limit the second, or do both, depending on how it occurs.
Omitted factors, wrong functional form, regressor measurement error and outcome-related selection can make OLS biased and inconsistent. Simultaneous causality does the same when the outcome also helps determine a regressor. Heteroskedasticity can leave the conditional mean valid while invalidating usual SEs. Correlated errors across schools, firms or regions require inference designed for that dependence, such as clustered standard errors.
Match a symptom to a response
| Evidence or mechanism | Useful response |
|---|---|
| Residual fan or variance-test rejection | Robust inference; consider credible WLS weights |
| Missing curvature or interaction | Added-term test or RESET; revise the mean equation |
| Relevant unobserved factor | Seek an appropriate proxy and examine its conditions |
| Noisy regressor | Investigate how it was measured and assess the error model |
| Outcome-based nonresponse | Review selection and its effect on the error mean |
| Estimate driven by extreme cases | Verify records and report sensitivity |
No standard-error correction removes coefficient bias. A proxy cannot by itself remove reverse causality. Problems without adequate observed controls or a suitable proxy can require a different research design and estimators such as instrumental variables or panel methods.
Review a city-crime regression
Suppose a study regresses crimes per 1,000 residents on police officers per 1,000 residents for 300 cities. It reports usual SEs and a positive police coefficient. Several mechanisms could affect that result.
First, cities with more crime may hire more police. This pushes the coefficient upward, so a crime-reducing police effect can appear weak or positive. Second, if more police cause more crimes to be recorded, the outcome's recording error is related to the police regressor. Random-outcome-noise reasoning then fails.
Third, crime rates in small cities can vary more because they average over fewer residents. Use robust inference. Population weights are justified only if error variance is roughly inverse to population; shared city-level shocks create variance that does not disappear as population grows. Finally, unemployment and age composition may affect both police levels and crime. Controls or a defensible proxy such as past crime can help address those omitted differences without resolving every other threat.
Put the checks in a useful order
Begin with the economic mechanism and the population of interest. Inspect plots and records, missingness and selection, then influential cases. Check functional form before interpreting variance tests. Report the covariance estimator and any weighting assumptions, alongside meaningful sensitivity results.
A non-rejection means that a test did not find the pattern it searches for. Other threats can remain, including ones the diagnostic has little power to detect. The study's causal interpretation rests on the design and assumptions as well as the diagnostics.
Key Takeaways
- Internal validity concerns the studied population; external validity concerns transfer.
- Separate threats to coefficient consistency from threats to standard errors.
- Match each diagnostic to a response that addresses its mechanism.
- Selection, measurement and simultaneity need reasoning about data generation.
- Report assumptions and sensitivity along with significance.
Heteroskedasticity examples
1Keep the line and repair its inference
11 steps
- 1IntroductionOne line, different uncertainty
Two households with the same income can save different amounts. At high incomes, those differences can be much larger. A saving regression can still describe average saving correctly while its prediction errors have changing spread, known as heteroskedasticity.
Follow that distinction through the OLS properties, the robust variance calculation and a hypothesis test. The point estimate and its estimated uncertainty perform different jobs, and changing spread undermines the ordinary standard errors.
- 2ExplanationLet spread change while the center stays fixed
Zero conditional mean says . Homoskedasticity adds . Heteroskedasticity drops that second restriction, allowing .
Imagine residuals centered at zero in every income group, but with a widening fan. The mean condition can hold even though no single variance describes every group. Normality is a separate question about the shape of each error distribution.
- 3Key InsightDecide what survives
OLS unbiasedness and consistency use the mean assumptions, random sampling and the absence of perfect collinearity. Constant error variance is not needed for them.
The ordinary standard-error formula does need constant variance, and the BLUE guarantee does too. A large sample makes a consistent coefficient more dependable; it does not repair a covariance formula built on the wrong variance restriction.
- 4ChallengeRead a new residual pattern
A spending regression has residuals averaging zero at every income. Their spread doubles between low and high incomes. The mean specification and other OLS assumptions hold. What happens to slope consistency and usual inference as the sample grows?
---reveal---
The slope remains consistent, but usual inference is generally invalid. The changing spread is heteroskedasticity. Use a robust covariance estimate in a large independent sample; more observations alone do not repair the usual formula.
- 5ExampleStart the robust arithmetic
For six observations, use and . OLS gives , with and .
The residuals are . Their squared sum is 8.848. The usual variance estimate is , giving usual slope SE .
- 6ExampleGive each observation its own contribution
For HC0, multiply each squared residual by its squared distance from the regressor mean. Those contributions are .
Their sum is 35.0856, so the robust SE is
The large contributions combine unusual regressor values with large residuals. This HC0 SE is smaller than the usual 0.356; robust does not mean larger.
- 7ExampleApply the HC1 correction
HC1 multiplies HC0 variance by . With six observations, one slope and an intercept, that factor is .
The SE therefore becomes
The square root matters: multiplying the SE itself by 1.5 overcorrects it. HC2 and HC3 instead include leverage adjustments. Six observations are enough to show the arithmetic, but not to rely on large-sample robust inference.
- 8ChallengeTest a nonzero null
A large independent sample gives a slope of 0.52 and HC1 SE of 0.08. Test a null slope of 0.36 at a two-sided 5% level using 1.96. What is the statistic and decision?
---reveal---
Compute . Reject at this cutoff because 2 exceeds 1.96. Dividing 0.52 by 0.08 would instead test a zero slope. The robust SE changes how the distance from the chosen null is standardized.
- 9ConnectionKeep the covariance choice through a joint test
Testing that two slopes are zero needs their covariance as well as their individual variances. Use a robust Wald test after a robust fit.
Stata's
test x2 x3afterregress ..., vce(robust)uses that fitted covariance choice. Python'sres.f_test("x2 = 0, x3 = 0")does the same on an HC1 result. The usual restricted-versus-unrestricted SSR formula does not incorporate the heterogeneous error contributions. - 10ChallengeRepair only the problem the correction addresses
A large independent firm sample has a correct exogenous mean model, a residual fan and HC1 SEs. One extreme firm also shifts the slope greatly when removed. Which issue does HC1 address, and what remains to investigate?
---reveal---
HC1 addresses inference under the changing variance. It does not reduce the extreme firm's influence on the OLS slope. Check its record and report coefficient sensitivity to its inclusion. Robust covariance leaves the fitted coefficients unchanged.
- 11RecapRead the point and the uncertainty separately
First ask whether the mean assumptions support the coefficient. Then ask whether the covariance estimate supports its tests and intervals.
Heteroskedasticity can leave OLS unbiased and consistent while invalidating ordinary inference. HC versions provide different robust adjustments; name the version and use its covariance in joint tests. Independence and adequate sample size still matter, and robust SEs leave coefficient bias and outlier influence unresolved.
2Build variance tests from squared residuals
11 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionTurn a spread pattern into a test
- 2ExplanationChoose the auxiliary predictors
- 3ExampleCalculate the BP LM statistic
- 4ExampleCalculate the F version
- 5ChallengeFind a hand-coded test error
- 6ExplanationExpand the search with White terms
- 7ExampleConserve restrictions with fitted values
- 8ChallengeHandle a binary regressor
- 9TipCheck the default before comparing results
- 10ChallengeCombine the diagnostics with model reasoning
- 11RecapUse the auxiliary fit for its own question
3Transform, estimate and check weights
15 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionUse precision to choose contributions
- 2ExplanationTransform every equation term
- 3ExampleTransform the first household
- 4ExampleCompare the second household
- 5ChallengeApply a fresh variance pattern
- 6ConnectionCheck what averaging really buys
- 7ExplanationEstimate an unknown pattern
- 8ExampleTurn log predictions into weights
- 9ChallengePreserve inference with imperfect weights
- 10TipCompare coefficients as well as precision
- 11ExplanationDerive the binary variance
- 12ExampleCalculate usable LPM weights
- 13ChallengeDecide whether weights are usable
- 14ChallengeCombine weighting with the mean-model check
- 15RecapKeep the variance model visible
4Test curvature and compare competing forms
11 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionAsk whether the mean has the right shape
- 2ExplanationTest a meaningful alternative first
- 3ExplanationConstruct RESET powers
- 4ExampleWork through the expanded fit
- 5ChallengeRespond to a significant nonlinear check
- 6ExplanationCreate a comprehensive comparison
- 7ExampleUse the competitor’s prediction
- 8ChallengeInterpret an inconclusive comparison
- 9TipKeep outcome scales separate
- 10ChallengeCombine diagnostic results without overclaiming
- 11RecapMatch the test to the comparison
5Follow missing information into the error
13 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionLocate the missing information
- 2ExplanationSubstitute an ability proxy
- 3ExampleRead what the proxy coefficient means
- 4ChallengeCheck the residual relationship
- 5ExplanationPut recorded outcomes into the equation
- 6ChallengeDistinguish noise from systematic reporting
- 7ExplanationMove a noisy regressor to the error
- 8ExampleCalculate the retained signal
- 9ExampleLet controls remove some signal
- 10ChallengeInfer a negative structural effect
- 11TipCheck when the proxy was measured
- 12ChallengeCompare the remedies across two errors
- 13RecapUse the composite error as the guide
6Audit the sample and the conclusion
13 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionLook beyond the coefficient table
- 2ExplanationTrack the estimation sample
- 3ExampleCondition on the selection rule
- 4ChallengeEvaluate a quick missing-data fix
- 5ExplanationSeparate unusual x from unusual y
- 6ExampleSee a relationship depend on one firm
- 7ChallengeChoose a defensible response
- 8ConnectionUnderstand what LAD changes
- 9ExplanationClassify the threat before choosing a fix
- 10ExampleReview a city-crime mechanism
- 11ChallengeSeparate inference and causal threats
- 12ChallengePlan an integrated review
- 13RecapState what supports the conclusion
Heteroskedasticity practice questions
Set 1: Build and assess weighted regressions10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Read variance patterns and use robust inference10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Check functional form and proxy assumptions10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 4: Trace measurement, selection and influence10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 5: Combine diagnostics in unfamiliar studies10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Added-term test
Adjusted R-squared
Asymptotic efficiency
Attenuation bias
Auxiliary regression
B
Binary conditional variance
BLUE
Breusch–Pagan test
C
Classical errors-in-variables
Clustered standard errors
Complete-case deletion
Composite error
Comprehensive model
Cross product
D
Davidson–MacKinnon test
Degrees of freedom
E
Endogenous sample selection
Estimated weight
Exogenous sample selection
External validity
F
Feasible GLS
Fitted probability
Functional form misspecification
G
Generalized least squares
H
HC0
HC1
vce(robust) uses HC1, so request HC1 explicitly when matching results in other software.HC3
sandwich::vcovHC uses HC3 by default; choosing HC1 explicitly changes that default.Heteroskedasticity
Homoskedasticity
I
Influential observation
Interaction term
Internal validity
Inverse-variance weight
K
Koenker test
lmtest::bptest uses this studentized version by default, unlike Stata’s plain estat hettest.L
Lagged dependent variable
Least absolute deviations
Leverage
Linear probability model
LM statistic
Log variance model
M
Missing completely at random
Missing-indicator method
N
Nonnested models
O
Outcome measurement error
Outlier
P
Percentage point
Perfect collinearity
Plug-in solution
Prediction interval
Probability limit
Proxy variable
R
Reliability ratio
RESET
Residual confounding
Residual plot
Residual signal variance
Robust standard error
Robust Wald test
S
Simultaneous causality
Special White test
Structural redundancy
Studentized residual
Systematic reporting error
T
Test power
Transformed constant
V
Variance function
W
Weighted least squares
White test
Z
Zero conditional mean
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.