Skip to the content

Topics Covered

Significance Tests R² ANOVA Heteroscedasticity Park, Glejser, White Breusch–Pagan WLS Specification Error Errors of Measurement
On this page
  1. 1. Tests of Significance of Estimators
  2. 2. R² and the ANOVA Decomposition
  3. 3. Heteroscedasticity — Concept and Consequences
  4. 4. Tests for Heteroscedasticity
  5. 5. Solutions: Weighted Least Squares (WLS)
  6. 6. Specification Errors
  7. 7. Errors of Measurement
  8. Key Take-aways from Unit 3

1. Tests of Significance of Estimators

1.1 \(t\)-Test for an Individual Coefficient

\[ t = \frac{\hat\beta_j - \beta_j^{0}}{\mathrm{se}(\hat\beta_j)}\ \sim\ t_{n - k - 1} \text{ under } H_0: \beta_j = \beta_j^{0}. \]

Usually we test \(H_0: \beta_j = 0\). Reject if \(|t| > t_{\alpha/2, n-k-1}\) or if \(p\)-value \(< \alpha\). The standard error is the square root of the \(j\)-th diagonal of \(\hat\sigma^2 (\mathbf X'\mathbf X)^{-1}\).

1.2 \(F\)-Test for the Joint Significance

To test \(H_0: \beta_1 = \beta_2 = \cdots = \beta_k = 0\) (all slopes simultaneously zero):

\[ F = \frac{R^2 / k}{(1 - R^2)/(n - k - 1)} \sim F_{k,\,n-k-1}. \]

A high \(F\) means at least one regressor is statistically significant.

1.3 Confidence Interval for \(\beta_j\)

\[ \hat\beta_j \pm t_{\alpha/2, n-k-1} \cdot \mathrm{se}(\hat\beta_j). \]

2. R² and the ANOVA Decomposition

SUMS OF SQUARES \[ \underbrace{\sum (Y_i - \bar Y)^2}_{\text{TSS}} = \underbrace{\sum (\hat Y_i - \bar Y)^2}_{\text{ESS}} + \underbrace{\sum \hat u_i^2}_{\text{RSS}}. \] \[ R^2 = \frac{\text{ESS}}{\text{TSS}} = 1 - \frac{\text{RSS}}{\text{TSS}}. \]

\(R^2 \in [0, 1]\); it measures the proportion of variance in \(Y\) explained by the regressors.

2.1 Adjusted R²

\[ \bar R^2 = 1 - (1 - R^2)\,\frac{n - 1}{n - k - 1}. \]

Penalises the addition of irrelevant regressors. Always \(\bar R^2 \le R^2\); equal when \(k = 0\).

2.2 ANOVA Table for Regression

SourceSSdfMSF
RegressionESS\(k\)ESS/\(k\)MSR/MSE
ResidualRSS\(n-k-1\)RSS/\((n-k-1)\) = \(\hat\sigma^2\)
TotalTSS\(n-1\)
EXAMPLE 1 — Significance test

From Unit 2 Example 1: \(\hat\beta_1 = 0.78\). Suppose \(\mathrm{se}(\hat\beta_1) = 0.05\), \(n = 5\). Then \(t = 0.78/0.05 = 15.6\) with df = 3. Critical \(t_{0.025, 3} = 3.182\). Since \(15.6 \gg 3.182\), reject \(H_0: \beta_1 = 0\) — the MPC is highly significant.

EXAMPLE 2 — R² and F-test

A regression of monthly expenditure on income and family size with \(n = 100\), \(R^2 = 0.62\), \(k = 2\). The joint \(F\):

\(F = (0.62/2)/((1 - 0.62)/(100 - 3)) = 0.31/0.00392 = 79.1\). Critical \(F_{0.05, 2, 97} \approx 3.09\). Reject \(H_0\) overwhelmingly — both regressors jointly explain expenditure.

3. Heteroscedasticity — Concept and Consequences

DEFINITION

Classical assumption: \(\mathrm{Var}(u_i) = \sigma^2\) (homoscedasticity). When this fails — \(\mathrm{Var}(u_i) = \sigma_i^2\) varying across observations — we have heteroscedasticity.

3.1 When Does It Arise?

Homoscedastic (constant spread) Heteroscedastic (fanning out) fitted value / X → fitted value / X → residual
Fig 3.1 — Plotting residuals against the fitted values (or an explanatory variable) is the quickest heteroscedasticity check. A constant band (left) is homoscedastic; a fanning cone (right) — spread growing with the level — is the classic sign of heteroscedasticity that inflates OLS standard errors.

3.2 Consequences of Heteroscedasticity

  1. OLS estimators are still unbiased and still consistent.
  2. OLS is no longer efficient (not BLUE).
  3. The usual formula \(\sigma^2(\mathbf X'\mathbf X)^{-1}\) gives wrong standard errors → \(t\), \(F\), CI all invalid.
  4. Hypothesis tests become unreliable; "significant" coefficients may not really be significant.

4. Tests for Heteroscedasticity

4.1 Graphical Method

Plot \(\hat u_i^2\) against \(\hat Y_i\) or against each \(X_j\). A fan or megaphone pattern suggests heteroscedasticity; a structureless cloud suggests homoscedasticity.

4.2 Park Test

Regress \(\log \hat u_i^2\) on \(\log X_i\):

\[ \log \hat u_i^2 = \alpha + \beta \log X_i + v_i. \]

If \(\beta\) is statistically significant, heteroscedasticity is present.

4.3 Glejser Test

Regress \(|\hat u_i|\) on various functional forms of \(X_i\):

\[ |\hat u_i| = \alpha + \beta X_i + v_i, \quad |\hat u_i| = \alpha + \beta\sqrt{X_i} + v_i,\ \text{etc.} \]

If any \(\beta\) is significant, heteroscedasticity is present.

4.4 Breusch–Pagan (BP) Test

  1. Run OLS on the original model; obtain \(\hat u_i\) and \(\hat\sigma^2 = \sum\hat u_i^2/n\).
  2. Construct \(p_i = \hat u_i^2/\hat\sigma^2\).
  3. Regress \(p_i\) on the original regressors \(X_1, \ldots, X_k\); get its ESS\(_p\).
  4. Statistic: \(\text{BP} = \tfrac{1}{2}\,\text{ESS}_p \sim \chi^2_k\) under \(H_0\) of homoscedasticity.

4.5 White's General Test

  1. Run OLS; get \(\hat u_i\).
  2. Regress \(\hat u_i^2\) on the regressors, their squares and cross-products.
  3. Statistic: \(nR^2 \sim \chi^2_d\) where \(d\) = number of regressors in the auxiliary regression.

Does not require any assumption about the form of heteroscedasticity — the most general test.

4.6 Goldfeld–Quandt Test

Sort the data by an \(X\) variable, drop the middle observations, run separate OLS on the high and low subsets, and compute \(F = \text{RSS}_{\text{high}}/\text{RSS}_{\text{low}}\). Reject if \(F\) is large.

5. Solutions: Weighted Least Squares (WLS)

WLS

If \(\mathrm{Var}(u_i) = \sigma_i^2\) is known up to a constant, divide each observation by \(\sigma_i\):

\[ \frac{Y_i}{\sigma_i} = \beta_0 \frac{1}{\sigma_i} + \beta_1 \frac{X_i}{\sigma_i} + \frac{u_i}{\sigma_i}. \]

The transformed model has homoscedastic errors and OLS on the transformed model is BLUE.

5.1 Heteroscedasticity-Consistent (HC) Standard Errors

Also called White's robust standard errors. Adjust only the SE formula, leaving the OLS point estimates unchanged. Used when the form of heteroscedasticity is unknown.

\[ \widehat{\mathrm{Var}}_{\text{HC}}(\hat{\boldsymbol\beta}) = (\mathbf X'\mathbf X)^{-1}\, \left(\sum \hat u_i^2 \mathbf x_i \mathbf x_i'\right)\,(\mathbf X'\mathbf X)^{-1}. \]

5.2 Other Remedies

EXAMPLE 1 — White test computation

Regress \(Y\) on \(X_1, X_2\), \(n = 50\), \(R^2 = 0.05\) from the auxiliary regression of \(\hat u^2\) on \(X_1, X_2, X_1^2, X_2^2, X_1 X_2\) (so \(d = 5\)). White statistic: \(nR^2 = 50 \times 0.05 = 2.5\). \(\chi^2_{0.05, 5} = 11.07\). Since \(2.5 < 11.07\) we do not reject homoscedasticity. (Low \(R^2\) in the auxiliary regression means residuals are not systematically related to the regressors.)

EXAMPLE 2 — WLS in action

Per-firm productivity data showing that the variance of error rises with firm size \(L\) (number of employees). Assume \(\sigma_i^2 = \sigma^2 L_i\). Apply WLS by dividing each variable by \(\sqrt{L_i}\):

\(Y_i/\sqrt{L_i} = \beta_0/\sqrt{L_i} + \beta_1 (X_i/\sqrt{L_i}) + u_i^*\), where the new disturbance has variance \(\sigma^2\). Apply OLS to the transformed model — efficiency is restored.

6. Specification Errors

Heteroscedasticity is sometimes a symptom of a deeper modelling mistake. Major types of specification error:

The Ramsey RESET test (Regression Equation Specification Error Test) is the standard general specification check: add powers of \(\hat Y\) to the regression and test their joint significance.

7. Errors of Measurement

7.1 Errors in \(Y\) Only

If only \(Y\) is mismeasured but the measurement error is uncorrelated with the regressors, OLS remains unbiased and consistent; variances are inflated, so SEs are larger.

7.2 Errors in \(X\)

If a regressor \(X\) is observed with error, the OLS slope is biased towards zero ("attenuation bias"):

\[ \text{plim}\ \hat\beta_1 = \beta_1 \cdot \frac{\sigma^2_{X^*}}{\sigma^2_{X^*} + \sigma^2_{\text{error}}}. \]

Where \(X^*\) is the true value. If the error variance is large relative to the true variance, the bias can be severe.

7.3 Remedy — Instrumental Variables

Find a variable \(Z\) correlated with \(X\) but not with the measurement error or other errors. The IV estimator \(\hat\beta_{IV} = (\mathbf Z'\mathbf X)^{-1}\mathbf Z'\mathbf Y\) is consistent for \(\beta\) even with errors in variables.

Key Take-aways from Unit 3