Menu Close

General linear model and its problems: UPSC Statistics Optional PYQ Solutions (1995–2026)

All 65 questions UPSC has asked on general linear model and its problems in the Statistics Optional (Paper II, Quantitative Economics and Official Statistics) from 1995 to 2026, solved step by step – latest first.

Try them yourself first: the same questions, without solutions, are on our Quantitative Economics and Official Statistics topic-wise PYQs page.

How we check these solutions

These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:

  • ✓ Checked by computer the numbers were worked out again independently in code (Python with NumPy/SciPy) and matched.
  • ✓ Proof checked step by step for “prove that” and “examine whether” questions, every step was checked against the definitions and the standard theorems.
  • ✓ Derivation checked step by step for derivations and approximations, every step was checked, and the result was also tested numerically.
  • ✓ Answer checked step by step for descriptive questions, every point was checked against the standard theory.

Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.

Jump to a question (year · question number):

2026 · 5b 2026 · 5c 2026 · 7c 2025 · 5a 2025 · 5d 2024 · 6a 2024 · 8c 2023 · 6c 2022 · 5b 2022 · 6b 2021 · 5a 2021 · 5c 2021 · 8a 2020 · 8a 2019 · 5c 2019 · 6a 2018 · 5a 2018 · 7c 2017 · 5c 2016 · 5d 2016 · 7a 2016 · 8b 2015 · 6b 2013 · 6c 2012 · 5b 2012 · 6a 2011 · 6a 2011 · 6c 2010 · 6c 2009 · 5b 2009 · 8b 2005 · 5a 2005 · 5e 2005 · 6b 2005 · 6c 2004 · 6c 2003 · 6b 2003 · 6c 2002 · 6b 2002 · 6c 2001 · 5b 2001 · 5c 2000 · 6b 1999 · 11a 1999 · 11b 1999 · 11c 1999 · 12a 1998 · 15a 1998 · 15b 1998 · 16a 1998 · 16c 1997 · 13b 1997 · 14c 1997 · 15a 1997 · 15b 1996 · 14a 1996 · 14b 1996 · 14c 1996 · 15a 1996 · 15b 1996 · 15c 1995 · 14a 1995 · 14b 1995 · 14c 1995 · 16c

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Discuss methods of detecting the presence of heteroscedasticity. Explain the Goldfeld-Quandt test for detecting it, stating the assumptions required to apply this test.

2026 · Paper II · Q5b · 10 marks

Solution

Heteroscedasticity means that the variance of the disturbance is not constant: Var(ui)=σi2\operatorname{Var}(u_i)=\sigma_i^2 varies across observations (often with the size of an explanatory variable).

Methods of detecting it.

Informal (graphical):

  • Plot the OLS residuals ei2e_i^2 (or |ei||e_i|) against Ŷi\hat Y_i or against each XjX_j. A systematic pattern, such as a funnel shape widening with XX, suggests heteroscedasticity.
  • Prior knowledge: cross-section data on units of very different size (families, firms) usually show it.

Formal tests:

  1. Park test: regress lnei2\ln e_i^2 on lnXi\ln X_i; a significant slope indicates heteroscedasticity.
  2. Glejser test: regress |ei||e_i| on XiX_i, Xi\sqrt{X_i}, 1/Xi1/X_i, and so on; a significant slope indicates heteroscedasticity.
  3. Spearman’s rank correlation test: rank |ei||e_i| and XiX_i, compute rsr_s, and test it with t=rsn−2/1−rs2t=r_s\sqrt{n-2}/\sqrt{1-r_s^2}.
  4. Goldfeld–Quandt test (below).
  5. Breusch–Pagan–Godfrey test: regress ei2/σ̃2e_i^2/\tilde\sigma^2 on the suspected variables ZZ. Half the explained sum of squares is approximately χ2\chi^2 under H0H_0.
  6. White’s general test: regress ei2e_i^2 on the regressors, their squares and cross-products; nR2∼χ2nR^2\sim\chi^2 under H0H_0.

The Goldfeld–Quandt test. It is used when the error variance is suspected to increase with one explanatory variable XX, i.e. σi2=σ2Xi2\sigma_i^2=\sigma^2X_i^2 or, more generally, σi2\sigma_i^2 is monotonic in XiX_i.

  1. Order the observations by increasing XX.
  2. Omit cc central observations (about one-sixth to one-quarter of nn), and split the rest into two groups of (n−c)/2(n-c)/2 each.
  3. Fit separate OLS regressions to the two groups. Obtain the residual sums of squares RSS1RSS_1 (small-XX group) and RSS2RSS_2 (large-XX group), each with n−c2−k\frac{n-c}{2}-k degrees of freedom, where kk is the number of parameters.
  4. Compute F=RSS2/dfRSS1/df=RSS2RSS1.F=\frac{RSS_2/\text{df}}{RSS_1/\text{df}}=\frac{RSS_2}{RSS_1}. Under homoscedasticity, FF follows the FF distribution with (n−c2−k,n−c2−k)\left(\frac{n-c}{2}-k,\ \frac{n-c}{2}-k\right) degrees of freedom.
  5. If FF exceeds the critical value, reject homoscedasticity.

Assumptions required.

  • The disturbances are normally distributed and serially independent.
  • The heteroscedasticity is related monotonically to one known variable, by which the data can be ordered.
  • The sample is large enough that, after omitting the central observations, each group still has more observations than parameters.

Omitting the middle observations sharpens the contrast between the low-variance and high-variance groups, which increases the power of the test.

✓ Answer checked step by step Answer checked step by step: the informal and formal detection methods, and the Goldfeld–Quandt procedure with its assumptions.

↑ Back to the question list

For the General Linear Model 𝐘=X𝛃+𝐮 where 𝐮∼N(0,σ2In) obtain the Maximum Likelihood Estimator (MLE) 𝛃̂ of 𝛃. Further, let 𝐞=(𝐘−X𝛃̂), and X is a matrix of order n×k with rank of X, k<n. If 𝐞′𝐞=𝐮′M𝐮, where M=(I−X(X′X)−1X′), show that 𝐞′𝐞σ2 follows chi-square distribution with (n−k) degrees of freedom (d.f.).

2026 · Paper II · Q5c · 10 marks

Solution

Model. 𝐘=X𝛃+𝐮\mathbf Y=X\boldsymbol\beta+\mathbf u, with 𝐮∼N(𝟎,σ2In)\mathbf u\sim N(\mathbf0,\sigma^2I_n), and XX of order n×kn\times k with rank k<nk<n.

Maximum likelihood estimator. Since 𝐘∼N(X𝛃,σ2In)\mathbf Y\sim N(X\boldsymbol\beta,\sigma^2I_n), the log-likelihood is ℓ(𝛃,σ2)=−n2log(2πσ2)\ell(\boldsymbol\beta,\sigma^2)=-\frac n2\log(2\pi\sigma^2) −12σ2(𝐘−X𝛃)′(𝐘−X𝛃).{}-\frac1{2\sigma^2}(\mathbf Y-X\boldsymbol\beta)'(\mathbf Y-X\boldsymbol\beta). For any σ2\sigma^2, ℓ\ell is maximised over 𝛃\boldsymbol\beta by minimising S(𝛃)=(𝐘−X𝛃)′(𝐘−X𝛃)S(\boldsymbol\beta)=(\mathbf Y-X\boldsymbol\beta)'(\mathbf Y-X\boldsymbol\beta). Setting ∂S∂𝛃=−2X′𝐘+2X′X𝛃=𝟎,\frac{\partial S}{\partial\boldsymbol\beta}=-2X'\mathbf Y+2X'X\boldsymbol\beta=\mathbf0, we get the normal equations X′X𝛃=X′𝐘X'X\boldsymbol\beta=X'\mathbf Y. Since rankX=k\operatorname{rank}X=k, X′XX'X is non-singular, so 𝛃̂=(X′X)−1X′𝐘\boxed{\hat{\boldsymbol\beta}=(X'X)^{-1}X'\mathbf Y} (the same as the OLS estimator). Then ∂ℓ∂σ2=0⇒σ̂2=𝐞′𝐞n.\frac{\partial\ell}{\partial\sigma^2}=0\quad\Longrightarrow\quad \hat\sigma^2=\frac{\mathbf e'\mathbf e}{n}.

Residuals in terms of 𝐮\mathbf u. 𝐞=𝐘−X𝛃̂=[I−X(X′X)−1X′]𝐘\mathbf e=\mathbf Y{}-X\hat{\boldsymbol\beta}=\big[I-X(X'X)^{-1}X'\big]\mathbf Y =M𝐘.=M\mathbf Y . Since MX=X−X(X′X)−1X′X=0MX=X-X(X'X)^{-1}X'X=0, 𝐞=M(X𝛃+𝐮)=M𝐮.\mathbf e=M(X\boldsymbol\beta+\mathbf u)=M\mathbf u .

Properties of MM.

  • M′=MM'=M (symmetric).
  • M2=I−2X(X′X)−1X′M^2=I{}-2X(X'X)^{-1}X' +X(X′X)−1X′X(X′X)−1X′{}+X(X'X)^{-1}X'X(X'X)^{-1}X' =M=M (idempotent).

So 𝐞′𝐞=𝐮′M′M𝐮=𝐮′M𝐮\mathbf e'\mathbf e=\mathbf u'M'M\mathbf u=\mathbf u'M\mathbf u. Moreover, rankM=trM=trIn\operatorname{rank}M=\operatorname{tr}M=\operatorname{tr}I_n −tr[(X′X)−1X′X]=n−trIk{}-\operatorname{tr}\big[(X'X)^{-1}X'X\big]=n{}-\operatorname{tr}I_k =n−k.=n{}-k .

Distribution. MM is symmetric and idempotent of rank n−kn-k, so there is an orthogonal matrix PP with P′MP=(In−k000).P'MP=\begin{pmatrix}I_{n-k}&0\\0&0\end{pmatrix}. Let 𝐳=P′𝐮/σ\mathbf z=P'\mathbf u/\sigma. Since PP is orthogonal, 𝐳∼N(𝟎,In)\mathbf z\sim N(\mathbf0,I_n), i.e. z1,…,znz_1,\dots,z_n are i.i.d. N(0,1)N(0,1). Then 𝐞′𝐞σ2=𝐮′M𝐮σ2=𝐳′(P′MP)𝐳\frac{\mathbf e'\mathbf e}{\sigma^2}=\frac{\mathbf u'M\mathbf u}{\sigma^2}=\mathbf z'(P'MP)\mathbf z =∑i=1n−kzi2∼χn−k2.◼=\sum_{i=1}^{n-k}z_i^2\sim\chi^2_{n-k}.\ \blacksquare

Consequently E(𝐞′𝐞)=(n−k)σ2E(\mathbf e'\mathbf e)=(n-k)\sigma^2. So s2=𝐞′𝐞/(n−k)s^2=\mathbf e'\mathbf e/(n-k) is unbiased for σ2\sigma^2, while the MLE σ̂2=𝐞′𝐞/n\hat\sigma^2=\mathbf e'\mathbf e/n is biased.

✓ Proof checked step by step Proof checked step by step: the likelihood maximisation, the idempotency of M (tr M = n − k), and the χ² result via the spectral decomposition of M.

↑ Back to the question list

For the general linear model 𝐘n×1=Xn×k𝛃k×1+𝐮n×1 with E(𝐮)=0 and E(𝐮𝐮′)=σ2In, where Xn×k is a matrix of fixed numbers with rank k(k<n), obtain the ordinary least squares estimator 𝛃̂ of 𝛃 and the dispersion matrix of 𝛃̂. Also, prove that 𝛃̂ is the best linear unbiased estimator (BLUE) of 𝛃.

2026 · Paper II · Q7c · 20 marks

Solution

Model. 𝐘=X𝛃+𝐮\mathbf Y=X\boldsymbol\beta+\mathbf u, with E(𝐮)=𝟎E(\mathbf u)=\mathbf0, E(𝐮𝐮′)=σ2InE(\mathbf u\mathbf u')=\sigma^2I_n, and XX fixed with rank k<nk<n.

OLS estimator. Minimise S(𝛃)=(𝐘−X𝛃)′(𝐘−X𝛃)S(\boldsymbol\beta)=(\mathbf Y-X\boldsymbol\beta)'(\mathbf Y-X\boldsymbol\beta) =𝐘′𝐘−2𝛃′X′𝐘+𝛃′X′X𝛃.=\mathbf Y'\mathbf Y{}-2\boldsymbol\beta'X'\mathbf Y{}+\boldsymbol\beta'X'X\boldsymbol\beta . ∂S∂𝛃=−2X′𝐘+2X′X𝛃=𝟎\frac{\partial S}{\partial\boldsymbol\beta}=-2X'\mathbf Y{}+2X'X\boldsymbol\beta=\mathbf0 ⇒X′X𝛃̂=X′𝐘.\Longrightarrow\quad X'X\hat{\boldsymbol\beta}=X'\mathbf Y . Since X′XX'X is non-singular (rank kk), 𝛃̂=(X′X)−1X′𝐘.\boxed{\hat{\boldsymbol\beta}=(X'X)^{-1}X'\mathbf Y.} The Hessian 2X′X2X'X is positive definite, so this is a minimum.

Unbiasedness. 𝛃̂=(X′X)−1X′(X𝛃+𝐮)=𝛃\hat{\boldsymbol\beta}=(X'X)^{-1}X'(X\boldsymbol\beta+\mathbf u)=\boldsymbol\beta +(X′X)−1X′𝐮,{}+(X'X)^{-1}X'\mathbf u, so E(𝛃̂)=𝛃E(\hat{\boldsymbol\beta})=\boldsymbol\beta.

Dispersion matrix. D(𝛃̂)=E[(𝛃̂−𝛃)(𝛃̂−𝛃)′]D(\hat{\boldsymbol\beta})=E\big[(\hat{\boldsymbol\beta}-\boldsymbol\beta)(\hat{\boldsymbol\beta}-\boldsymbol\beta)'\big] =(X′X)−1X′E(𝐮𝐮′)X(X′X)−1=(X'X)^{-1}X'E(\mathbf u\mathbf u')X(X'X)^{-1} =σ2(X′X)−1.=\sigma^2(X'X)^{-1}.

𝛃̂\hat{\boldsymbol\beta} is BLUE (Gauss–Markov theorem). Let 𝛃̃=C𝐘\tilde{\boldsymbol\beta}=C\mathbf Y be any linear unbiased estimator. Write C=(X′X)−1X′+D.C=(X'X)^{-1}X'+D . Then E(𝛃̃)=CX𝛃=𝛃+DX𝛃E(\tilde{\boldsymbol\beta})=CX\boldsymbol\beta=\boldsymbol\beta+DX\boldsymbol\beta. Unbiasedness for every 𝛃\boldsymbol\beta requires DX=0DX=0. Then 𝛃̃−𝛃=C𝐮,\tilde{\boldsymbol\beta}-\boldsymbol\beta=C\mathbf u, and D(𝛃̃)=σ2CC′,D(\tilde{\boldsymbol\beta})=\sigma^2CC', and, multiplying out, CC′=(X′X)−1+DD′CC'=(X'X)^{-1}{}+DD' +(X′X)−1(DX)′{}+(X'X)^{-1}(DX)' +DX(X′X)−1.{}+DX(X'X)^{-1}. The cross terms contain DX=0DX=0 (or its transpose), so they vanish: D(𝛃̃)=σ2(X′X)−1+σ2DD′D(\tilde{\boldsymbol\beta})=\sigma^2(X'X)^{-1}{}+\sigma^2DD' =D(𝛃̂)+σ2DD′.=D(\hat{\boldsymbol\beta}){}+\sigma^2DD'. DD′DD' is non-negative definite, so D(𝛃̃)−D(𝛃̂)D(\tilde{\boldsymbol\beta})-D(\hat{\boldsymbol\beta}) is non-negative definite. In particular, Var(𝐜′𝛃̃)≥Var(𝐜′𝛃̂)\operatorname{Var}(\mathbf c'\tilde{\boldsymbol\beta})\ge\operatorname{Var}(\mathbf c'\hat{\boldsymbol\beta}) for every vector 𝐜\mathbf c, with equality for all 𝐜\mathbf c only if D=0D=0, i.e. 𝛃̃=𝛃̂\tilde{\boldsymbol\beta}=\hat{\boldsymbol\beta}. Hence 𝛃̂\hat{\boldsymbol\beta} is the best linear unbiased estimator of 𝛃\boldsymbol\beta. ◼\blacksquare

✓ Proof checked step by step Proof checked step by step: the normal equations, unbiasedness, the dispersion matrix σ²(X′X)⁻¹, and the Gauss–Markov argument via C = (X′X)⁻¹X′ + D with DX = 0.

↑ Back to the question list

Explain the multicollinearity problem in a regression model. What are its consequences? State the different indicators of multicollinearity and explain.

2025 · Paper II · Q5a · 10 marks

Solution

The multicollinearity problem. In the model Y=β1+β2X2+…+βkXk+uY=\beta_1+\beta_2X_2+\dots+\beta_kX_k+u, multicollinearity means a (near-)exact linear relationship among the explanatory variables: λ1+λ2X2i+…+λkXki≈0\lambda_1+\lambda_2X_{2i}+\dots+\lambda_kX_{ki}\approx0 for some λ\lambda’s, not all zero.

  • Perfect multicollinearity: the relation is exact, so X′XX'X is singular and the coefficients cannot be estimated uniquely.
  • Imperfect (high) multicollinearity: the relation is approximate, so X′XX'X is nearly singular.

Example: regressing consumption on income and wealth, which move closely together.

Consequences (of high but imperfect multicollinearity).

  1. The OLS estimators are still BLUE, but their variances and covariances are large. For example, Var(β̂j)\operatorname{Var}(\hat\beta_j) =σ2∑(Xji−X‾j)2⋅11−Rj2,=\frac{\sigma^2}{\sum(X_{ji}-\bar X_j)^2}\cdot\frac{1}{1-R_j^2}, where Rj2R_j^2 is the R2R^2 of XjX_j regressed on the other regressors. As Rj2→1R_j^2\to1, the variance →∞\to\infty.
  2. Wide confidence intervals, so the true values are hard to pin down.
  3. Insignificant tt-ratios, although R2R^2 is high and the overall FF is significant.
  4. The estimates are sensitive to small changes in the data or the specification, and they may have the wrong signs.
  5. It is hard to separate the individual effects of the correlated regressors.

Indicators of multicollinearity.

  1. High R2R^2 but few significant tt-ratios. This is the classic symptom.
  2. High pairwise correlations among regressors (say above 0.8). This is sufficient but not necessary, since multicollinearity can involve three or more variables.
  3. Auxiliary regressions: regress each XjX_j on the others. A high Rj2R_j^2 (or a significant FjF_j) signals that XjX_j is collinear.
  4. Variance inflation factor: VIFj=11−Rj2.VIF_j=\frac1{1-R_j^2}. A VIF above 10 (i.e. Rj2>0.9R_j^2>0.9) is taken as serious. The tolerance TOLj=1−Rj2=1/VIFjTOL_j=1-R_j^2=1/VIF_j near 0 is equivalent.
  5. Eigenvalues and the condition number of X′XX'X (scaled): small eigenvalues indicate near-dependence. The condition number κ=λmax/λmin\kappa=\sqrt{\lambda_{\max}/\lambda_{\min}} between 10 and 30 indicates moderate collinearity, and above 30 severe.
  6. Determinant of the correlation matrix of the regressors close to 0.
  7. Farrar–Glauber tests: a χ2\chi^2 test for the presence of multicollinearity, FF tests for its location, and tt tests for its pattern.
  8. Instability: large changes in the estimates when observations or variables are added or dropped.

✓ Answer checked step by step Answer checked step by step: the definition, the consequences (variance inflation 1/(1 − R²ⱼ)), and the standard indicators (VIF, tolerance, condition number, eigenvalues, Farrar–Glauber).

↑ Back to the question list

Discuss the problem of heteroscedasticity. Given that Yi=α+βXi+Ui with E(Ui2)=K2Xi2, prove that OLS estimates of α and β possess greater variance than OLS estimates of the transformed version of original model.

2025 · Paper II · Q5d · 10 marks

Solution

The problem of heteroscedasticity. The classical model assumes Var(Ui)=σ2\operatorname{Var}(U_i)=\sigma^2 for all ii. Under heteroscedasticity, Var(Ui)=σi2\operatorname{Var}(U_i)=\sigma_i^2 varies, typically with the size of the explanatory variable, as in cross-section data on families or firms. Then OLS remains unbiased and consistent but is not efficient (not BLUE), and the usual formula for the variances is biased. So tt and FF tests and confidence intervals become unreliable.

The given model. Yi=α+βXi+UiY_i=\alpha+\beta X_i+U_i, with E(Ui)=0E(U_i)=0 and E(Ui2)=K2Xi2E(U_i^2)=K^2X_i^2 (Xi≠0X_i\ne0), and the UiU_i uncorrelated.

Transformed model. Divide by XiX_i: YiXi=β+α1Xi+Vi,Vi=UiXi.\frac{Y_i}{X_i}=\beta+\alpha\frac1{X_i}+V_i,\qquad V_i=\frac{U_i}{X_i}. Then E(Vi)=0E(V_i)=0, Var(Vi)=K2\operatorname{Var}(V_i)=K^2 is constant, and the ViV_i are uncorrelated. The transformed model satisfies all the classical assumptions, with dependent variable Yi*=Yi/XiY_i^*=Y_i/X_i and regressor Zi=1/XiZ_i=1/X_i (whose coefficient is α\alpha, while β\beta is the intercept). By the Gauss–Markov theorem, OLS on the transformed model gives the best linear unbiased estimators α̂*\hat\alpha^* and β̂*\hat\beta^*. This is weighted (generalised) least squares with weights 1/Xi21/X_i^2.

Comparison. The OLS estimators of the original model, β̂=∑(Xi−X‾)Yi∑(Xi−X‾)2,α̂=Y‾−β̂X‾,\hat\beta=\frac{\sum(X_i-\bar X)Y_i}{\sum(X_i-\bar X)^2},\qquad \hat\alpha=\bar Y-\hat\beta\bar X, are linear in the YiY_i, hence linear in the Yi*=Yi/XiY_i^*=Y_i/X_i (since Yi=XiYi*Y_i=X_iY_i^* with XiX_i fixed). They are also unbiased for α\alpha and β\beta. So they belong to the class of linear unbiased estimators for the transformed model, in which α̂*\hat\alpha^* and β̂*\hat\beta^* have the least variance. Hence Var(β̂)≥Var(β̂*),\operatorname{Var}(\hat\beta)\ge\operatorname{Var}(\hat\beta^*), Var(α̂)≥Var(α̂*),\operatorname{Var}(\hat\alpha)\ge\operatorname{Var}(\hat\alpha^*), with equality only if the two estimators coincide, which happens only when the XiX_i are all equal (excluded). So OLS on the original model has the greater variance.

Explicit variances. With xi=Xi−X‾x_i=X_i-\bar X, Var(β̂)=∑xi2σi2(∑xi2)2=K2∑xi2Xi2(∑xi2)2.\operatorname{Var}(\hat\beta)=\frac{\sum x_i^2\sigma_i^2}{\left(\sum x_i^2\right)^2}=\frac{K^2\sum x_i^2X_i^2}{\left(\sum x_i^2\right)^2}. For the transformed regression, let zi=1/Xi−(1/X)¯z_i=1/X_i-\overline{(1/X)}. Then the slope estimator α̂*\hat\alpha^* has Var(α̂*)=K2∑zi2\operatorname{Var}(\hat\alpha^*)=\dfrac{K^2}{\sum z_i^2}, and the intercept estimator β̂*\hat\beta^* has Var(β̂*)=K2[1n+(1/X)¯2∑zi2].\operatorname{Var}(\hat\beta^*)=K^2\left[\frac1n+\frac{\overline{(1/X)}^2}{\sum z_i^2}\right]. By the Gauss–Markov argument above these are the smallest possible. For example, with XX equally spaced from 1 to 10 (n=30n=30) and K=0.3K=0.3, a simulation gives Var(β̂)≈0.0175\operatorname{Var}(\hat\beta)\approx0.0175, against Var(β̂*)≈0.0078\operatorname{Var}(\hat\beta^*)\approx0.0078.

✓ Proof checked step by step Proof checked step by step: Gauss–Markov applied to the transformed model, and by simulation in Python (n = 30, K = 0.3): the slope variance is 0.0175 for OLS against 0.0078 for the transformed (GLS) fit.

↑ Back to the question list

For the linear model Y=Xβ+u, obtain the expressions for Ordinary Least Squares (OLS) and Generalised Least Squares (GLS) estimators of the parameters. Discuss their properties and compare them.

2024 · Paper II · Q6a · 20 marks

Solution

Model. 𝐘=X𝛃+𝐮\mathbf Y=X\boldsymbol\beta+\mathbf u, with XX (n×kn\times k) of rank kk, E(𝐮)=𝟎E(\mathbf u)=\mathbf0 and E(𝐮𝐮′)=σ2ΩE(\mathbf u\mathbf u')=\sigma^2\Omega, where Ω\Omega is a known positive definite matrix. (Ω=I\Omega=I is the classical case.)

OLS estimator. Minimise (𝐘−X𝛃)′(𝐘−X𝛃)(\mathbf Y-X\boldsymbol\beta)'(\mathbf Y-X\boldsymbol\beta): 𝛃̂OLS=(X′X)−1X′𝐘.\hat{\boldsymbol\beta}_{OLS}=(X'X)^{-1}X'\mathbf Y .

GLS (Aitken) estimator. Minimise the weighted sum of squares (𝐘−X𝛃)′Ω−1(𝐘−X𝛃)(\mathbf Y-X\boldsymbol\beta)'\Omega^{-1}(\mathbf Y-X\boldsymbol\beta): 𝛃̂GLS=(X′Ω−1X)−1X′Ω−1𝐘.\hat{\boldsymbol\beta}_{GLS}=(X'\Omega^{-1}X)^{-1}X'\Omega^{-1}\mathbf Y . Derivation: Ω−1\Omega^{-1} is positive definite, so there is a non-singular PP with P′P=Ω−1P'P=\Omega^{-1} (equivalently PΩP′=IP\Omega P'=I). Pre-multiply the model by PP: 𝐘*=X*𝛃+𝐮*,𝐘*=P𝐘,\mathbf Y^*=X^*\boldsymbol\beta{}+\mathbf u^*,\qquad \mathbf Y^*=P\mathbf Y, X*=PX,𝐮*=P𝐮.X^*=PX,\qquad \mathbf u^*=P\mathbf u . Now E(𝐮*𝐮*′)=σ2PΩP′=σ2IE(\mathbf u^*\mathbf u^{*\prime})=\sigma^2P\Omega P'=\sigma^2I, so OLS on the transformed model gives (X′P′PX)−1X′P′P𝐘(X'P'PX)^{-1}X'P'P\mathbf Y =(X′Ω−1X)−1X′Ω−1𝐘.=(X'\Omega^{-1}X)^{-1}X'\Omega^{-1}\mathbf Y .

Properties.

OLS (when Ω≠I\Omega\ne I) GLS
Unbiased Yes: E=𝛃E=\boldsymbol\beta Yes: E=𝛃E=\boldsymbol\beta
Dispersion σ2(X′X)−1X′ΩX(X′X)−1\sigma^2(X'X)^{-1}X'\Omega X(X'X)^{-1} σ2(X′Ω−1X)−1\sigma^2(X'\Omega^{-1}X)^{-1}
Efficiency Not BLUE BLUE (Aitken’s theorem)
Consistency Consistent under mild conditions Consistent
Usual variance formula s2(X′X)−1s^2(X'X)^{-1} Biased, so tests are invalid Correct formula: σ̂2(X′Ω−1X)−1\hat\sigma^2(X'\Omega^{-1}X)^{-1}, with σ̂2=𝐞*′𝐞*n−k\hat\sigma^2=\dfrac{\mathbf e^{*\prime}\mathbf e^*}{n-k}
Information needed None about Ω\Omega Ω\Omega must be known (or estimated: feasible GLS)

Unbiasedness of GLS: 𝛃̂GLS=𝛃+(X′Ω−1X)−1X′Ω−1𝐮\hat{\boldsymbol\beta}_{GLS}=\boldsymbol\beta+(X'\Omega^{-1}X)^{-1}X'\Omega^{-1}\mathbf u, so its expectation is 𝛃\boldsymbol\beta. Its dispersion is A(σ2Ω)A′=σ2(X′Ω−1X)−1,A(\sigma^2\Omega)A'=\sigma^2(X'\Omega^{-1}X)^{-1}, where A=(X′Ω−1X)−1X′Ω−1A=(X'\Omega^{-1}X)^{-1}X'\Omega^{-1}, since AΩA′A\Omega A' =(X′Ω−1X)−1X′Ω−1X(X′Ω−1X)−1=(X'\Omega^{-1}X)^{-1}X'\Omega^{-1}X(X'\Omega^{-1}X)^{-1}.

Aitken’s theorem: the transformed model satisfies the Gauss–Markov conditions. Any linear unbiased estimator of 𝛃\boldsymbol\beta in the original model is also linear and unbiased in the transformed one (𝐘=P−1𝐘*\mathbf Y=P^{-1}\mathbf Y^*). So GLS has the smallest dispersion matrix, and in particular D(𝛃̂OLS)D(\hat{\boldsymbol\beta}_{OLS}) −D(𝛃̂GLS)is non-negative definite.{}-D(\hat{\boldsymbol\beta}_{GLS})\ \text{is non-negative definite.}

Comparison.

  • When Ω=I\Omega=I, GLS reduces to OLS.
  • When Ω≠I\Omega\ne I (heteroscedasticity or autocorrelation), both are unbiased, but GLS is more efficient, and OLS standard errors are wrong.
  • The two coincide also when the columns of XX are spanned by kk eigenvectors of Ω\Omega (Kruskal’s condition).
  • In practice Ω\Omega is unknown. Feasible GLS replaces it by a consistent estimate (for example ρ̂\hat\rho in AR(1) errors, or estimated variances); it is then asymptotically efficient.

✓ Proof checked step by step Proof checked step by step: OLS and GLS formulas, unbiasedness, dispersion matrices, and Aitken’s theorem via the transformation P with P′P = Ω⁻¹.

↑ Back to the question list

(i) Discuss the problem of autocorrelation. What are the consequences of OLS estimators in estimating the parameters in the presence of autocorrelation? (ii) Explain the Durbin-Watson test for testing the autocorrelation.

2024 · Paper II · Q8c · 20 marks

Solution

(i) The problem of autocorrelation. The classical model assumes Cov(ut,us)=0(t≠s).\operatorname{Cov}(u_t,u_s)=0\quad(t\ne s). Autocorrelation (serial correlation) means that the disturbances are correlated over time, usually in time-series data. The commonest scheme is first-order autoregressive, AR(1): ut=ρut−1+εt,|ρ|<1,u_t=\rho u_{t-1}+\varepsilon_t,\qquad |\rho|<1, with εt\varepsilon_t white noise. Then Cov(ut,ut−s)=ρsσu2\operatorname{Cov}(u_t,u_{t-s})=\rho^s\sigma_u^2.

Sources: inertia in economic series (business cycles); omitted variables that are themselves autocorrelated; wrong functional form; lags omitted from the model (cobweb phenomena); data manipulation (smoothing, interpolation); non-stationarity.

Consequences for OLS estimators.

  1. They remain linear and unbiased (and consistent, if the regressors are exogenous and there is no lagged dependent variable).
  2. They are not efficient: GLS has smaller variance.
  3. The usual formula σ2/∑xt2\sigma^2/\sum x_t^2 for the variance is wrong. In the two-variable model with AR(1) errors, Var(β̂)\operatorname{Var}(\hat\beta) =σu2∑xt2[1+2ρr1+2ρ2r2+…],=\frac{\sigma_u^2}{\sum x_t^2}\left[1+2\rho r_1+2\rho^2r_2+\dots\right], where rs=∑xtxt+s/∑xt2r_s=\sum x_tx_{t+s}/\sum x_t^2 is the sample autocorrelation of xx at lag ss. With ρ>0\rho>0 and positively autocorrelated XX, the true variance is larger than the formula suggests.
  4. s2s^2 usually underestimates σu2\sigma_u^2, and R2R^2 is overstated.
  5. So tt and FF tests are invalid: coefficients appear more significant than they are.
  6. If the model contains a lagged dependent variable, OLS becomes biased and inconsistent.

(ii) The Durbin–Watson test. It tests H0:ρ=0H_0:\rho=0 against H1:ρ>0H_1:\rho>0 (or ρ<0\rho<0) for AR(1) errors, using the OLS residuals ete_t: d=∑t=2n(et−et−1)2∑t=1net2d=\frac{\sum_{t=2}^n(e_t-e_{t-1})^2}{\sum_{t=1}^ne_t^2} ≈2(1−ρ̂),ρ̂=∑etet−1∑et2.\approx2(1-\hat\rho),\qquad \hat\rho=\frac{\sum e_te_{t-1}}{\sum e_t^2}. So 0≤d≤40\le d\le4: d≈2d\approx2 means no autocorrelation, d→0d\to0 positive autocorrelation and d→4d\to4 negative autocorrelation.

The exact distribution of dd depends on XX. Durbin and Watson tabulated a lower bound dLd_L and an upper bound dUd_U for given nn, number of regressors k′k' and significance level.

Value of dd Decision
0<d<dL0<d<d_L Reject H0H_0: positive autocorrelation
dL≤d≤dUd_L\le d\le d_U Inconclusive
dU<d<4−dUd_U<d<4-d_U Do not reject H0H_0: no autocorrelation
4−dU≤d≤4−dL4-d_U\le d\le4-d_L Inconclusive
4−dL<d<44-d_L<d<4 Reject H0H_0: negative autocorrelation

Assumptions: the model has an intercept; the regressors are non-stochastic (in particular, no lagged dependent variable, for which Durbin’s hh test is used instead); the errors are AR(1) and normal; there are no missing observations.

✓ Answer checked step by step Answer checked step by step: the consequences for OLS (variance formulas under AR(1)) and the Durbin–Watson statistic d ≈ 2(1 − ρ̂) with its decision rules.

↑ Back to the question list

State the different methods of detecting the presence of heteroscedasticity. Explain in brief the Goldfeld-Quandt Test for detecting the presence of heteroscedasticity. Also write the assumption required to apply this test. For a data on consumption expenditure in relation to income for a cross section of 30 families, after dropping the middle 4 observations, the OLS regression based on the first 13 and the last 13 observations and their associated residual sum of squares are as follows: Regression based on the first 13 observations: Ŷi=3.4094+0.6968Xi (r2=0.8887, RSS1=377.17, df = 11) Regression based on the last 13 observations: Ŷi=−28.0272+0.7941Xi (r2=0.7681, RSS2=1536.8, df = 11) Check the presence of heteroscedasticity for the above given results and write your conclusion. (F(11,11,5%)=2.82, F(11,11,1%)=4.46, F(13,13,5%)=2.53, F(13,13,1%)=3.82)

2023 · Paper II · Q6c · 20 marks

Solution

Methods of detecting heteroscedasticity.

  • Informal: plots of the squared residuals against Ŷ\hat Y or against each XX (a funnel shape suggests heteroscedasticity); the nature of the data (cross-sections of units of very different size).
  • Formal: the Park test; the Glejser test; Spearman’s rank correlation test; the Goldfeld–Quandt test; the Breusch–Pagan–Godfrey test; White’s general test.

Goldfeld–Quandt test.

  1. Order the observations by the variable XX thought to drive the variance (here income).
  2. Omit cc central observations and fit OLS separately to the first and last (n−c)/2(n-c)/2 observations.
  3. Compute F=RSS2/df2RSS1/df1,F=\frac{RSS_2/\text{df}_2}{RSS_1/\text{df}_1}, with the large-variance group in the numerator. It has the FF distribution with (df2,df1)(\text{df}_2,\text{df}_1) degrees of freedom, where df=n−c2−k\text{df}=\frac{n-c}2-k, under H0H_0 (homoscedasticity).
  4. Reject H0H_0 if FF exceeds the critical value.

Assumptions: normal, serially independent errors; the variance is related monotonically to one variable, by which the data can be ordered; and enough observations in each group.

Application. n=30n=30, c=4c=4, two groups of 13, k=2k=2, so each regression has 13−2=1113-2=11 degrees of freedom. F=RSS2/11RSS1/11=1536.8377.17=4.075.F=\frac{RSS_2/11}{RSS_1/11}=\frac{1536.8}{377.17}=4.075 . The relevant critical values are those of F11,11F_{11,11} (the given F13,13F_{13,13} values are not needed):

  • At 5%: F=4.075>2.82F=4.075>2.82, so reject homoscedasticity.
  • At 1%: F=4.075<4.46F=4.075<4.46, so do not reject.

Conclusion. There is evidence of heteroscedasticity at the 5% level (the p-value is about 0.014), but not at the 1% level. The residual variance is about four times as large for high-income families as for low-income families: the variance of consumption expenditure increases with income. OLS standard errors are therefore unreliable, and weighted least squares (for example deflating by income) or heteroscedasticity-robust standard errors should be used.

✓ Checked by computer We checked in Python (SciPy): F = 1536.8/377.17 = 4.075, against F(11, 11) critical values 2.82 (5%) and 4.46 (1%); the p-value is 0.014.

↑ Back to the question list

Derive the means and variances of the sampling distributions of the OLS estimates of α and β in the two-variable linear model Y=α+βX+u.

2022 · Paper II · Q5b · 10 marks

Solution

Model. Yi=α+βXi+uiY_i=\alpha+\beta X_i+u_i, i=1,…,ni=1,\dots,n, with XiX_i fixed, E(ui)=0E(u_i)=0, Var(ui)=σ2\operatorname{Var}(u_i)=\sigma^2, and Cov(ui,uj)=0\operatorname{Cov}(u_i,u_j)=0 for i≠ji\ne j. Write xi=Xi−X‾x_i=X_i-\bar X.

OLS estimates. β̂=∑xiYi∑xi2=∑kiYi,ki\hat\beta=\frac{\sum x_iY_i}{\sum x_i^2}=\sum k_iY_i,\qquad k_i =xi∑xi2;α̂=Y‾−β̂X‾.=\frac{x_i}{\sum x_i^2};\qquad \hat\alpha=\bar Y{}-\hat\beta\bar X . The weights satisfy ∑ki=0,∑kiXi=∑xiXi∑xi2\sum k_i=0,\qquad \sum k_iX_i=\frac{\sum x_iX_i}{\sum x_i^2} =1,∑ki2=1∑xi2.=1,\qquad \sum k_i^2=\frac1{\sum x_i^2}.

Mean of β̂\hat\beta. β̂=∑ki(α+βXi+ui)=α∑ki\hat\beta=\sum k_i(\alpha+\beta X_i+u_i)=\alpha\sum k_i +β∑kiXi+∑kiui=β{}+\beta\sum k_iX_i{}+\sum k_iu_i=\beta +∑kiui,{}+\sum k_iu_i, so E(β̂)=βE(\hat\beta)=\beta.

Variance of β̂\hat\beta. Var(β̂)=E(∑kiui)2\operatorname{Var}(\hat\beta)=E\left(\sum k_iu_i\right)^2 =σ2∑ki2=σ2∑xi2,=\sigma^2\sum k_i^2=\boxed{\frac{\sigma^2}{\sum x_i^2}}, since the cross terms vanish.

Mean of α̂\hat\alpha. Y‾=α+βX‾+u‾\bar Y=\alpha+\beta\bar X+\bar u, so α̂=α+βX‾+u‾−β̂X‾=α\hat\alpha=\alpha{}+\beta\bar X{}+\bar u{}-\hat\beta\bar X=\alpha −(β̂−β)X‾+u‾.{}-(\hat\beta-\beta)\bar X{}+\bar u . Hence E(α̂)=αE(\hat\alpha)=\alpha.

Variance of α̂\hat\alpha. Write α̂=∑(1n−X‾ki)Yi.\hat\alpha=\sum\left(\frac1n-\bar Xk_i\right)Y_i . Then Var(α̂)=σ2∑(1n−X‾ki)2\operatorname{Var}(\hat\alpha)=\sigma^2\sum\left(\frac1n-\bar Xk_i\right)^2 =σ2[1n−2X‾n∑ki+X‾2∑ki2].=\sigma^2\left[\frac1n-\frac{2\bar X}{n}\sum k_i+\bar X^2\sum k_i^2\right]. Using ∑ki=0\sum k_i=0, Var(α̂)=σ2(1n+X‾2∑xi2)\boxed{\operatorname{Var}(\hat\alpha)=\sigma^2\left(\frac1n+\frac{\bar X^2}{\sum x_i^2}\right)} =σ2∑Xi2n∑xi2.=\frac{\sigma^2\sum X_i^2}{n\sum x_i^2} .

Covariance. Cov(α̂,β̂)=−X‾Var(β̂)\operatorname{Cov}(\hat\alpha,\hat\beta)=-\bar X\operatorname{Var}(\hat\beta) =−X‾σ2∑xi2.=-\frac{\bar X\sigma^2}{\sum x_i^2}. (Here Cov(u‾,β̂)=σ2n∑ki=0\operatorname{Cov}(\bar u,\hat\beta)=\frac{\sigma^2}{n}\sum k_i=0.)

Sampling distributions. If the uiu_i are normal, α̂\hat\alpha and β̂\hat\beta are linear in the uiu_i, so β̂∼N(β,σ2∑xi2),\hat\beta\sim N\left(\beta,\frac{\sigma^2}{\sum x_i^2}\right), α̂∼N(α,σ2∑Xi2n∑xi2).\hat\alpha\sim N\left(\alpha,\sigma^2\frac{\sum X_i^2}{n\sum x_i^2}\right). σ2\sigma^2 is estimated without bias by s2=∑ei2/(n−2)s^2=\sum e_i^2/(n-2).

✓ Derivation checked step by step Derivation checked step by step: the estimators as linear combinations kᵢYᵢ with Σkᵢ = 0 and ΣkᵢXᵢ = 1, and the resulting means and variances.

↑ Back to the question list

Define autocorrelation coefficient. What are its consequences for ordinary least squares? Discuss the maximum likelihood estimation of the model, in the usual notations, Y=Xβ+u with AR (autoregressive)(1) disturbance.

2022 · Paper II · Q6b · 20 marks

Solution

Autocorrelation coefficient. For a stationary disturbance series utu_t, the autocorrelation coefficient of order ss is ρs=Cov(ut,ut−s)Var(ut).\rho_s=\frac{\operatorname{Cov}(u_t,u_{t-s})}{\operatorname{Var}(u_t)} . In the AR(1) scheme ut=ρut−1+εtu_t=\rho u_{t-1}+\varepsilon_t (|ρ|<1|\rho|<1, εt∼\varepsilon_t\sim i.i.d. N(0,σε2)N(0,\sigma_\varepsilon^2)), the first-order coefficient is ρ\rho, and ρs=ρs\rho_s=\rho^s.

Consequences for OLS. OLS remains unbiased and consistent (with exogenous regressors), but it is inefficient. The conventional variance formula s2(X′X)−1s^2(X'X)^{-1} is biased (typically understated when ρ>0\rho>0), so tt and FF tests and confidence intervals are misleading. With a lagged dependent variable among the regressors, OLS is also inconsistent.

Maximum likelihood estimation with AR(1) disturbances. Model: 𝐘=X𝛃+𝐮\mathbf Y=X\boldsymbol\beta+\mathbf u, with ut=ρut−1+εtu_t=\rho u_{t-1}+\varepsilon_t.

Covariance structure. Var(ut)=σu2=σε21−ρ2\operatorname{Var}(u_t)=\sigma_u^2=\dfrac{\sigma_\varepsilon^2}{1-\rho^2}, and E(𝐮𝐮′)=σε2VE(\mathbf u\mathbf u')=\sigma_\varepsilon^2V, where V=11−ρ2(1ρ⋯ρn−1ρ1⋯ρn−2⋮⋱⋮ρn−1⋯ρ1),V=\frac1{1-\rho^2}\begin{pmatrix}1&\rho&\cdots&\rho^{n-1}\\ \rho&1&\cdots&\rho^{n-2}\\ \vdots&&\ddots&\vdots\\ \rho^{n-1}&\cdots&\rho&1\end{pmatrix}, and |V|=1/(1−ρ2)|V|=1/(1-\rho^2).

Transformation. V−1=P′PV^{-1}=P'P, with the Prais–Winsten transformation:

  • Y1*=1−ρ2Y1Y_1^*=\sqrt{1-\rho^2}\,Y_1, and X1*=1−ρ2X1X_1^*=\sqrt{1-\rho^2}\,X_1;
  • Yt*=Yt−ρYt−1Y_t^*=Y_t-\rho Y_{t-1}, and Xt*=Xt−ρXt−1X_t^*=X_t-\rho X_{t-1}, for t=2,…,nt=2,\dots,n.

The transformed errors are i.i.d. N(0,σε2)N(0,\sigma_\varepsilon^2).

Log-likelihood. Using |V|=(1−ρ2)−1|V|=(1-\rho^2)^{-1}, ℓ(𝛃,ρ,σε2)=−n2log(2πσε2)\ell(\boldsymbol\beta,\rho,\sigma_\varepsilon^2)=-\frac n2\log(2\pi\sigma_\varepsilon^2) +12log(1−ρ2)−12σε2S(𝛃,ρ),{}+\frac12\log(1-\rho^2){}-\frac{1}{2\sigma_\varepsilon^2}S(\boldsymbol\beta,\rho), where S(𝛃,ρ)=(1−ρ2)(Y1−𝐱1′𝛃)2S(\boldsymbol\beta,\rho)=(1-\rho^2)(Y_1-\mathbf x_1'\boldsymbol\beta)^2 +∑t=2n(Yt*−𝐱t*′𝛃)2,{}+\sum_{t=2}^n\big(Y_t^*-\mathbf x_t^{*\prime}\boldsymbol\beta\big)^2, with Yt*=Yt−ρYt−1Y_t^*=Y_t-\rho Y_{t-1} and 𝐱t*=𝐱t−ρ𝐱t−1\mathbf x_t^*=\mathbf x_t-\rho\mathbf x_{t-1}.

Maximisation.

  1. For a given ρ\rho, maximising over 𝛃\boldsymbol\beta means minimising SS, which is GLS: 𝛃̂(ρ)=(X′V−1X)−1X′V−1𝐘.\hat{\boldsymbol\beta}(\rho)=(X'V^{-1}X)^{-1}X'V^{-1}\mathbf Y .
  2. Then σ̂ε2(ρ)=S(𝛃̂(ρ),ρ)/n\hat\sigma_\varepsilon^2(\rho)=S(\hat{\boldsymbol\beta}(\rho),\rho)/n.
  3. Substituting gives the concentrated log-likelihood ℓ*(ρ)=const\ell^*(\rho)=\text{const} −n2logS(𝛃̂(ρ),ρ){}-\frac n2\log S\big(\hat{\boldsymbol\beta}(\rho),\rho\big) +12log(1−ρ2).{}+\frac12\log(1-\rho^2).
  4. Maximise ℓ*(ρ)\ell^*(\rho) over −1<ρ<1-1<\rho<1, by a grid search (Hildreth–Lu style) or by iteration (Beach–MacKinnon). The term 12log(1−ρ2)\tfrac12\log(1-\rho^2) keeps ρ̂\hat\rho inside the stationary region.
  5. The MLE is 𝛃̂=𝛃̂(ρ̂)\hat{\boldsymbol\beta}=\hat{\boldsymbol\beta}(\hat\rho), with asymptotic covariance σ̂ε2(X′V̂−1X)−1\hat\sigma_\varepsilon^2(X'\hat V^{-1}X)^{-1}. The asymptotic variance of ρ̂\hat\rho is (1−ρ2)/n(1-\rho^2)/n.

If the first observation is dropped (the conditional likelihood), SS is just the sum from t=2t=2, and alternating between 𝛃\boldsymbol\beta (given ρ\rho) and ρ\rho (regressing ete_t on et−1e_{t-1}) gives the iterative Cochrane–Orcutt procedure, which converges to the conditional MLE. The full MLE is asymptotically efficient, and it uses the first observation properly.

✓ Derivation checked step by step Derivation checked step by step: the AR(1) error covariance matrix and its inverse, the Prais–Winsten transformation, and the concentrated likelihood in ρ.

↑ Back to the question list

Explain Zellner’s seemingly unrelated regression model and the feasible generalized least squares method of estimating the model.

2021 · Paper II · Q5a · 10 marks

Solution

Zellner’s seemingly unrelated regressions (SUR). Consider MM regression equations, each with its own dependent variable and regressors: 𝐲i=Xi𝛃i+𝐮i,i=1,…,M,\mathbf y_i=X_i\boldsymbol\beta_i+\mathbf u_i,\qquad i=1,\dots,M, each with TT observations. For example: investment equations for several firms, or demand equations for several goods. The equations look unrelated: no variable of one appears in another. But their disturbances are contemporaneously correlated: E(uitujt)=σij,E(uitujs)E(u_{it}u_{jt})=\sigma_{ij},\qquad E(u_{it}u_{js}) =0(t≠s).=0\ \ (t\ne s). Common shocks (the same economic climate, or the same year) affect all the equations at once.

Stacked form. (𝐲1⋮𝐲M)=(X10⋱0XM)(𝛃1⋮𝛃M)\begin{pmatrix}\mathbf y_1\\ \vdots\\ \mathbf y_M\end{pmatrix}=\begin{pmatrix}X_1&&0\\ &\ddots&\\ 0&&X_M\end{pmatrix}\begin{pmatrix}\boldsymbol\beta_1\\ \vdots\\ \boldsymbol\beta_M\end{pmatrix} +(𝐮1⋮𝐮M),{}+\begin{pmatrix}\mathbf u_1\\ \vdots\\ \mathbf u_M\end{pmatrix}, that is, 𝐲=X𝛃+𝐮\mathbf y=X\boldsymbol\beta+\mathbf u, with E(𝐮𝐮′)=Σ⊗IT,Σ=(σij).E(\mathbf u\mathbf u')=\Sigma\otimes I_T,\qquad \Sigma=(\sigma_{ij}).

GLS (Zellner’s estimator). Treating the system jointly, 𝛃̂SUR\hat{\boldsymbol\beta}_{SUR} =[X′(Σ−1⊗IT)X]−1X′(Σ−1⊗IT)𝐲.=\big[X'(\Sigma^{-1}\otimes I_T)X\big]^{-1}X'(\Sigma^{-1}\otimes I_T)\mathbf y . It uses the information in the cross-equation correlations, so it is more efficient than equation-by-equation OLS.

Feasible GLS (two-step). Σ\Sigma is unknown.

  1. Estimate each equation by OLS and obtain the residuals 𝐞i\mathbf e_i.
  2. Estimate σ̂ij=𝐞i′𝐞j/T\hat\sigma_{ij}=\mathbf e_i'\mathbf e_j/T (or with a degrees-of-freedom correction) and form Σ̂\hat\Sigma.
  3. Apply GLS with Σ̂\hat\Sigma: 𝛃̂FGLS\hat{\boldsymbol\beta}_{FGLS} =[X′(Σ̂−1⊗I)X]−1X′(Σ̂−1⊗I)𝐲.=\big[X'(\hat\Sigma^{-1}\otimes I)X\big]^{-1}X'(\hat\Sigma^{-1}\otimes I)\mathbf y .
  4. Optionally iterate (recompute the residuals and Σ̂\hat\Sigma) until convergence. With normal errors this converges to the maximum likelihood estimator.

FGLS is consistent and asymptotically efficient (it has the same asymptotic distribution as GLS with known Σ\Sigma). Its estimated covariance is [X′(Σ̂−1⊗I)X]−1\big[X'(\hat\Sigma^{-1}\otimes I)X\big]^{-1}.

When SUR gains nothing over OLS.

  1. When the disturbances are uncorrelated across equations (σij=0\sigma_{ij}=0 for i≠ji\ne j).
  2. When every equation has the same regressors (X1=…=XMX_1=\dots=X_M).

The gain is greater the higher the cross-equation correlation and the less correlated the regressors of different equations. A Breusch–Pagan LM test of a diagonal Σ\Sigma checks whether SUR is needed.

✓ Answer checked step by step Answer checked step by step: the stacked SUR system, its covariance Σ ⊗ I, and the two-step feasible GLS with the conditions under which SUR gains nothing over OLS.

↑ Back to the question list

Obtain the generalized least squares estimators in the two-variable model Yi=β1+β2Xi+ui assuming the heteroscedastic variances are known and obtain their variances.

2021 · Paper II · Q5c · 10 marks

Solution

Model. Yi=β1+β2Xi+uiY_i=\beta_1+\beta_2X_i+u_i, with E(ui)=0E(u_i)=0, Var(ui)=σi2\operatorname{Var}(u_i)=\sigma_i^2 known, and the uiu_i uncorrelated.

GLS (weighted least squares). Divide each observation by σi\sigma_i: Yiσi=β11σi+β2Xiσi+uiσi.\frac{Y_i}{\sigma_i}=\beta_1\frac1{\sigma_i}+\beta_2\frac{X_i}{\sigma_i}+\frac{u_i}{\sigma_i}. The new error ui/σiu_i/\sigma_i has variance 1, so OLS on the transformed model is BLUE. This is equivalent to minimising ∑wi(Yi−β1−β2Xi)2,wi=1σi2.\sum w_i(Y_i-\beta_1-\beta_2X_i)^2,\qquad w_i=\frac1{\sigma_i^2}.

Normal equations. ∑wiYi=β1∑wi+β2∑wiXi,\sum w_iY_i=\beta_1\sum w_i+\beta_2\sum w_iX_i, ∑wiXiYi=β1∑wiXi+β2∑wiXi2.\sum w_iX_iY_i=\beta_1\sum w_iX_i+\beta_2\sum w_iX_i^2 .

Solution. Define the weighted means X‾*=∑wiXi∑wi,Y‾*=∑wiYi∑wi.\bar X^*=\frac{\sum w_iX_i}{\sum w_i},\qquad \bar Y^*=\frac{\sum w_iY_i}{\sum w_i}. Then β̂2*=∑wi(Xi−X‾*)(Yi−Y‾*)∑wi(Xi−X‾*)2\boxed{\hat\beta_2^*=\frac{\sum w_i(X_i-\bar X^*)(Y_i-\bar Y^*)}{\sum w_i(X_i-\bar X^*)^2}} or, equivalently, β̂2*=∑wi∑wiXiYi−∑wiXi∑wiYi∑wi∑wiXi2−(∑wiXi)2\hat\beta_2^*=\frac{\sum w_i\sum w_iX_iY_i-\sum w_iX_i\sum w_iY_i}{\sum w_i\sum w_iX_i^2-\left(\sum w_iX_i\right)^2} and β̂1*=Y‾*−β̂2*X‾*.\boxed{\hat\beta_1^*=\bar Y^*-\hat\beta_2^*\bar X^*.}

Variances. The transformed model has regressor matrix X*X^* with rows (1/σi,Xi/σi)(1/\sigma_i,\ X_i/\sigma_i) and unit error variance, so Var(𝛃̂*)=(X*′X*)−1,\operatorname{Var}(\hat{\boldsymbol\beta}^*)=(X^{*\prime}X^*)^{-1}, where X*′X*=(∑wi∑wiXi∑wiXi∑wiXi2).X^{*\prime}X^*=\begin{pmatrix}\sum w_i&\sum w_iX_i\\ \sum w_iX_i&\sum w_iX_i^2\end{pmatrix}. Writing Δ=∑wi∑wiXi2−(∑wiXi)2\Delta=\sum w_i\sum w_iX_i^2{}-\left(\sum w_iX_i\right)^2 =∑wi⋅∑wi(Xi−X‾*)2=\sum w_i\cdot\sum w_i(X_i-\bar X^*)^2, Var(β̂2*)=∑wiΔ\operatorname{Var}(\hat\beta_2^*)=\frac{\sum w_i}{\Delta} =1∑wi(Xi−X‾*)2,=\frac1{\sum w_i(X_i-\bar X^*)^2}, Var(β̂1*)=∑wiXi2Δ,\operatorname{Var}(\hat\beta_1^*)=\frac{\sum w_iX_i^2}{\Delta}, Cov(β̂1*,β̂2*)=−∑wiXiΔ.\operatorname{Cov}(\hat\beta_1^*,\hat\beta_2^*)=-\frac{\sum w_iX_i}{\Delta}. When all σi2=σ2\sigma_i^2=\sigma^2, these reduce to the OLS formulas, for example Var(β̂2)=σ2/∑(Xi−X‾)2\operatorname{Var}(\hat\beta_2)=\sigma^2/\sum(X_i-\bar X)^2.

Remark. If the variances are known only up to a factor, σi2=σ2ci\sigma_i^2=\sigma^2c_i with known cic_i, use wi=1/ciw_i=1/c_i. The estimates are unchanged, and the variances are multiplied by σ2\sigma^2, which is estimated by ∑wiei2/(n−2)\sum w_ie_i^2/(n-2).

✓ Derivation checked step by step Derivation checked step by step: weighted normal equations with wᵢ = 1/σᵢ², and the variances from the weighted design matrix.

↑ Back to the question list

What is autocorrelation? What are its consequences? Explain the Goldfeld-Quandt test and Glesjer test for heteroscedasticity.

2021 · Paper II · Q8a · 20 marks

Solution

Autocorrelation. Autocorrelation (serial correlation) is correlation between the disturbances of different observations: Cov(ut,us)≠0(t≠s).\operatorname{Cov}(u_t,u_s)\ne0\quad(t\ne s). It violates the classical assumption of independent errors. It is common in time series, because of inertia, omitted autocorrelated variables, mis-specified functional form, data smoothing and lagged responses. The usual model is AR(1), ut=ρut−1+εtu_t=\rho u_{t-1}+\varepsilon_t.

Consequences.

  1. OLS estimators remain unbiased and consistent (with non-stochastic regressors), but are inefficient: GLS has smaller variance.
  2. The usual variance formula is biased (with positive ρ\rho and trending XX, the variances are underestimated), and σ2\sigma^2 is underestimated.
  3. R2R^2 is overstated, and tt and FF tests and confidence intervals are invalid. Variables may wrongly appear significant.
  4. Forecasts are inefficient.
  5. With a lagged dependent variable, OLS is biased and inconsistent.

Goldfeld–Quandt test for heteroscedasticity. Used when σi2\sigma_i^2 is thought to increase with a variable XX.

  1. Order the observations by XX.
  2. Omit cc central observations.
  3. Run OLS separately on the two end groups, each of (n−c)/2(n-c)/2 observations.
  4. Compute F=RSS2/dfRSS1/df,F=\frac{RSS_2/\text{df}}{RSS_1/\text{df}}, with df=n−c2−k\text{df}=\frac{n-c}2-k in each group.
  5. Under H0H_0 (homoscedasticity) and normal errors, F∼Fdf,dfF\sim F_{\text{df},\text{df}}. A large FF indicates heteroscedasticity.

Glejser test.

  1. Fit the model by OLS and obtain the residuals eie_i.
  2. Regress the absolute residuals on the variable XX thought to be related to σi\sigma_i, using several functional forms: |ei|=γ0+γ1Xi+vi,|ei|=γ0|e_i|=\gamma_0{}+\gamma_1X_i{}+v_i,\qquad |e_i|=\gamma_0 +γ1Xi+vi,|ei|=γ0{}+\gamma_1\sqrt{X_i}{}+v_i,\qquad |e_i|=\gamma_0 +γ11Xi+vi,…{}+\gamma_1\frac1{X_i}{}+v_i,\ \dots
  3. If γ1\gamma_1 is significant (by the tt test) in any form, conclude heteroscedasticity. The best-fitting form suggests the pattern of the variance, which can be used to weight the observations.

The Glejser test indicates the form of the heteroscedasticity as well as its presence. However, the disturbances viv_i in the auxiliary regressions are themselves heteroscedastic and serially correlated, and have a non-zero mean, so the test is reliable mainly in large samples.

✓ Answer checked step by step Answer checked step by step: autocorrelation and its consequences; the Goldfeld–Quandt and Glejser procedures.

↑ Back to the question list

Explain the concept of multicollinearity in general linear model. How will you detect it? Discuss its impact on OLS estimators and their variances.

2020 · Paper II · Q8a · 15 marks

Solution

Concept. In the general linear model 𝐘=X𝛃+𝐮\mathbf Y=X\boldsymbol\beta+\mathbf u, OLS needs rankX=k\operatorname{rank}X=k, i.e. no exact linear relation among the columns of XX.

Multicollinearity means that the explanatory variables are (nearly) linearly dependent: X𝐜≈𝟎X\mathbf c\approx\mathbf0 for some non-zero 𝐜\mathbf c.

  • Perfect: X′XX'X is singular, (X′X)−1(X'X)^{-1} does not exist, and 𝛃\boldsymbol\beta is not estimable; only certain linear combinations of the coefficients are.
  • Near (high): X′XX'X is nearly singular, with a small determinant and small eigenvalues.

It is a feature of the sample (the data), not of the population model. It is common in economic time series, where variables share trends (income, wealth, prices).

Detection.

  1. High R2R^2 but few significant tt-ratios; a significant overall FF with insignificant individual coefficients.
  2. High pairwise correlations among the regressors.
  3. Auxiliary regressions of each XjX_j on the others: a high Rj2R_j^2.
  4. VIF: VIFj=1/(1−Rj2)>10VIF_j=1/(1-R_j^2)>10. Tolerance 1−Rj2<0.11-R_j^2<0.1.
  5. Eigenvalues of X′XX'X (in correlation form): small eigenvalues; a condition number λmax/λmin>30\sqrt{\lambda_{\max}/\lambda_{\min}}>30; condition indices.
  6. Farrar–Glauber tests and the determinant of the correlation matrix near zero.
  7. Instability: large changes in the estimates when the data are slightly altered.

Impact on OLS estimators and their variances.

  • The estimators remain unbiased and BLUE: the Gauss–Markov theorem still holds.
  • The dispersion matrix σ2(X′X)−1\sigma^2(X'X)^{-1} has large elements, because (X′X)−1(X'X)^{-1} is large when X′XX'X is near-singular. For each coefficient, Var(β̂j)\operatorname{Var}(\hat\beta_j) =σ2∑i(Xji−X‾j)2⋅11−Rj2=\frac{\sigma^2}{\sum_i(X_{ji}-\bar X_j)^2}\cdot\frac1{1-R_j^2} =σ2∑i(Xji−X‾j)2VIFj.=\frac{\sigma^2}{\sum_i(X_{ji}-\bar X_j)^2}\,VIF_j . For example, if Rj2=0.95R_j^2=0.95, the variance is 20 times what it would be with orthogonal regressors.
  • In the two-regressor case, Var(β̂2)=σ2∑x2i2(1−r232),\operatorname{Var}(\hat\beta_2)=\frac{\sigma^2}{\sum x_{2i}^2(1-r_{23}^2)}, Cov(β̂2,β̂3)\operatorname{Cov}(\hat\beta_2,\hat\beta_3) =−r23σ2(1−r232)∑x2i2∑x3i2.=\frac{-r_{23}\sigma^2}{(1-r_{23}^2)\sqrt{\sum x_{2i}^2\sum x_{3i}^2}}. Both blow up as r23→±1r_{23}\to\pm1, and the estimates become strongly negatively correlated (for r23>0r_{23}>0).
  • Consequently: wide confidence intervals, low tt-ratios, high sensitivity to the data, wrong signs, and difficulty in separating individual effects. Prediction within the range of the collinear pattern may still be accurate.

✓ Answer checked step by step Answer checked step by step: the definition, the detection methods (VIF, tolerance, condition index), and the effect on Var(β̂ⱼ) through 1/(1 − R²ⱼ).

↑ Back to the question list

Consider the following models: Model I: Yi=β1+β2Xi+ui Model II: Yi*=α1+α2Xi*+ui where Y* and X* are standardized variables. Show that α̂2=β̂2⋅Sx/Sy, where Sx and Sy are the sample standard deviations of the regressor and the regressand respectively. Also find cov(β̂1,β̂2).

2019 · Paper II · Q5c · 10 marks

Solution

Model I. Yi=β1+β2Xi+uiY_i=\beta_1+\beta_2X_i+u_i, with OLS estimates β̂2=∑xiyi∑xi2,β̂1=Y‾−β̂2X‾,\hat\beta_2=\frac{\sum x_iy_i}{\sum x_i^2},\qquad \hat\beta_1=\bar Y-\hat\beta_2\bar X, where xi=Xi−X‾x_i=X_i-\bar X and yi=Yi−Y‾y_i=Y_i-\bar Y.

Model II uses standardised variables: Yi*=Yi−Y‾Sy,Xi*=Xi−X‾Sx,Y_i^*=\frac{Y_i-\bar Y}{S_y},\qquad X_i^*=\frac{X_i-\bar X}{S_x}, with Sx2=∑xi2/nS_x^2=\sum x_i^2/n and Sy2=∑yi2/nS_y^2=\sum y_i^2/n (or both with divisor n−1n-1; the ratio is the same).

The standardised variables have mean 0, so Y‾*=X‾*=0\bar Y^*=\bar X^*=0 and α̂1=Y‾*−α̂2X‾*=0\hat\alpha_1=\bar Y^*-\hat\alpha_2\bar X^*=0. The slope is α̂2=∑Xi*Yi*∑Xi*2=1SxSy∑xiyi1Sx2∑xi2\hat\alpha_2=\frac{\sum X_i^*Y_i^*}{\sum X_i^{*2}}=\frac{\frac{1}{S_xS_y}\sum x_iy_i}{\frac1{S_x^2}\sum x_i^2} =∑xiyi∑xi2⋅SxSy.=\frac{\sum x_iy_i}{\sum x_i^2}\cdot\frac{S_x}{S_y}. Hence α̂2=β̂2SxSy.\boxed{\hat\alpha_2=\hat\beta_2\,\frac{S_x}{S_y}}. (In the two-variable case this standardised, or “beta”, coefficient equals the correlation coefficient rXYr_{XY}.)

Cov(β̂1,β̂2)\operatorname{Cov}(\hat\beta_1,\hat\beta_2). With β̂2=β2+∑kiui\hat\beta_2=\beta_2+\sum k_iu_i, where ki=xi/∑xi2k_i=x_i/\sum x_i^2, and β̂1=β1+u‾−(β̂2−β2)X‾\hat\beta_1=\beta_1+\bar u-(\hat\beta_2-\beta_2)\bar X: Cov(β̂1,β̂2)\operatorname{Cov}(\hat\beta_1,\hat\beta_2) =E[(β̂1−β1)(β̂2−β2)]=E\big[(\hat\beta_1-\beta_1)(\hat\beta_2-\beta_2)\big] =E[u‾(β̂2−β2)]−X‾Var(β̂2).=E\big[\bar u(\hat\beta_2-\beta_2)\big]{}-\bar X\operatorname{Var}(\hat\beta_2). The first term is σ2n∑ki=0\frac{\sigma^2}{n}\sum k_i=0. Hence Cov(β̂1,β̂2)=−X‾σ2∑xi2.\boxed{\operatorname{Cov}(\hat\beta_1,\hat\beta_2)=-\bar X\,\frac{\sigma^2}{\sum x_i^2}}. The covariance has the opposite sign to X‾\bar X: if X‾>0\bar X>0, an overestimate of the slope tends to go with an underestimate of the intercept.

✓ Derivation checked step by step Derivation checked step by step: the standardised regression slope α̂₂ = β̂₂Sₓ/S_y with α̂₁ = 0, and Cov(β̂₁, β̂₂) = −X̄σ²/Σxᵢ².

↑ Back to the question list

What is the nature of heteroscedasticity? What are its consequences? Explain the formal methods of detecting heteroscedasticity.

2019 · Paper II · Q6a · 15 marks

Solution

Nature. Heteroscedasticity means unequal error variances: Var(ui)=E(ui2)=σi2,\operatorname{Var}(u_i)=E(u_i^2)=\sigma_i^2, which varies across observations instead of being a constant σ2\sigma^2. It arises mostly in cross-section data. Examples:

  • the variance of savings grows with income (rich families have more discretion);
  • error-learning models, where errors fall over time as skills improve;
  • improvements in data collection;
  • outliers;
  • omitted variables or a wrong functional form;
  • skewness in the distribution of a regressor;
  • grouped data, where averages over groups of different sizes have variances σ2/ng\sigma^2/n_g.

Consequences for OLS.

  1. OLS estimators remain linear, unbiased and consistent.
  2. They are not efficient: WLS or GLS has smaller variance.
  3. The usual variance formula σ2(X′X)−1\sigma^2(X'X)^{-1} is biased. The true variance is (X′X)−1X′ΣX(X′X)−1(X'X)^{-1}X'\Sigma X(X'X)^{-1}. Depending on how σi2\sigma_i^2 relates to XX, the formula may under- or over-state it.
  4. Hence the tt and FF tests and confidence intervals are unreliable.
  5. Forecasts remain unbiased but are inefficient.

Formal methods of detection.

  1. Park test: assume σi2=σ2Xiβevi\sigma_i^2=\sigma^2X_i^\beta e^{v_i}. Regress lnei2\ln e_i^2 on lnXi\ln X_i. A significant β\beta indicates heteroscedasticity.
  2. Glejser test: regress |ei||e_i| on functions of XiX_i (XiX_i, Xi\sqrt{X_i}, 1/Xi1/X_i, …). A significant slope indicates heteroscedasticity.
  3. Spearman’s rank correlation test: compute the rank correlation rsr_s between |ei||e_i| and XiX_i, and test it with t=rsn−21−rs2∼tn−2t=\dfrac{r_s\sqrt{n-2}}{\sqrt{1-r_s^2}}\sim t_{n-2}.
  4. Goldfeld–Quandt test: order by XX, omit the central cc observations, fit separate regressions, and compute F=RSS2/RSS1∼FF=RSS_2/RSS_1\sim F under H0H_0.
  5. Breusch–Pagan–Godfrey test: assume σi2=f(α1+α2Z2i+…+αmZmi)\sigma_i^2=f(\alpha_1+\alpha_2Z_{2i}+\dots+\alpha_mZ_{mi}). Regress pi=ei2/σ̃2p_i=e_i^2/\tilde\sigma^2 (with σ̃2=∑ei2/n\tilde\sigma^2=\sum e_i^2/n) on the ZZ’s. Then Θ=12ESS∼χm−12\Theta=\frac12\text{ESS}\sim\chi^2_{m-1} asymptotically under H0H_0.
  6. White’s general test: regress ei2e_i^2 on the regressors, their squares and cross-products. Then nR2∼χdf2nR^2\sim\chi^2_{df} (df = number of auxiliary regressors). It needs no assumption about the form of the heteroscedasticity, or about normality.
  7. Koenker–Bassett test: regress ei2e_i^2 on Ŷi2\hat Y_i^2, and test the slope.

✓ Answer checked step by step Answer checked step by step: the nature, consequences and formal tests of heteroscedasticity.

↑ Back to the question list

Distinguish between OLS and GLS estimators. Show that OLS estimators are BLUEs.

2018 · Paper II · Q5a · 10 marks

Solution

OLS versus GLS.

OLS GLS (Aitken)
Assumption on errors E(𝐮𝐮′)=σ2IE(\mathbf u\mathbf u')=\sigma^2I (homoscedastic, uncorrelated) E(𝐮𝐮′)=σ2ΩE(\mathbf u\mathbf u')=\sigma^2\Omega, with Ω\Omega known and positive definite
Criterion Minimise 𝐞′𝐞\mathbf e'\mathbf e Minimise 𝐞′Ω−1𝐞\mathbf e'\Omega^{-1}\mathbf e (a weighted sum of squares)
Estimator (X′X)−1X′𝐘(X'X)^{-1}X'\mathbf Y (X′Ω−1X)−1X′Ω−1𝐘(X'\Omega^{-1}X)^{-1}X'\Omega^{-1}\mathbf Y
Dispersion σ2(X′X)−1\sigma^2(X'X)^{-1} (if Ω=I\Omega=I) σ2(X′Ω−1X)−1\sigma^2(X'\Omega^{-1}X)^{-1}
When BLUE When Ω=I\Omega=I Always (when Ω\Omega is known)
Interpretation — OLS applied to the data transformed by PP, where P′P=Ω−1P'P=\Omega^{-1}

When Ω≠I\Omega\ne I, OLS is still unbiased but no longer BLUE, and its usual standard errors are wrong. GLS reduces to OLS when Ω=I\Omega=I.

OLS estimators are BLUE (Gauss–Markov theorem). Assume 𝐘=X𝛃+𝐮\mathbf Y=X\boldsymbol\beta+\mathbf u, with XX fixed of full rank kk, E(𝐮)=𝟎E(\mathbf u)=\mathbf0 and E(𝐮𝐮′)=σ2IE(\mathbf u\mathbf u')=\sigma^2I.

Linear: 𝛃̂=(X′X)−1X′𝐘\hat{\boldsymbol\beta}=(X'X)^{-1}X'\mathbf Y is a linear function of 𝐘\mathbf Y.

Unbiased: 𝛃̂=𝛃+(X′X)−1X′𝐮\hat{\boldsymbol\beta}=\boldsymbol\beta+(X'X)^{-1}X'\mathbf u, so E(𝛃̂)=𝛃E(\hat{\boldsymbol\beta})=\boldsymbol\beta, with D(𝛃̂)=σ2(X′X)−1D(\hat{\boldsymbol\beta})=\sigma^2(X'X)^{-1}.

Best: let 𝛃̃=C𝐘\tilde{\boldsymbol\beta}=C\mathbf Y be any linear unbiased estimator, with C=(X′X)−1X′+DC=(X'X)^{-1}X'+D. Then E(𝛃̃)=𝛃+DX𝛃E(\tilde{\boldsymbol\beta})=\boldsymbol\beta+DX\boldsymbol\beta, so unbiasedness requires DX=0DX=0. Its dispersion is D(𝛃̃)=σ2CC′D(\tilde{\boldsymbol\beta})=\sigma^2CC' =σ2[(X′X)−1+DD′],=\sigma^2\left[(X'X)^{-1}+DD'\right], because the cross terms (X′X)−1X′D′=(X′X)−1(DX)′(X'X)^{-1}X'D'=(X'X)^{-1}(DX)' =0=0 vanish. So D(𝛃̃)−D(𝛃̂)=σ2DD′,D(\tilde{\boldsymbol\beta})-D(\hat{\boldsymbol\beta})=\sigma^2DD', which is non-negative definite. Hence Var(β̃j)≥Var(β̂j)\operatorname{Var}(\tilde\beta_j)\ge\operatorname{Var}(\hat\beta_j) for every jj (the diagonal elements of DD′DD' are sums of squares). So the OLS estimators have the minimum variance among linear unbiased estimators: they are BLUE. ◼\blacksquare

✓ Proof checked step by step Proof checked step by step: the OLS/GLS contrast and the Gauss–Markov argument (C = (X′X)⁻¹X′ + D, DX = 0).

↑ Back to the question list

Consider a two-variable regression model Yt=β1+β2Xt+ut. Suppose ut is autocorrelated as ut=ρut−1+εt, −1<ρ<1, where ρ is the autocovariance coefficient and εt is the stochastic disturbance term satisfying OLS assumptions. Obtain an estimate for β2 and its corresponding variance. Also discuss the Durbin-Watson statistic for detecting autocorrelation in the model, and its interpretation.

2018 · Paper II · Q7c · 20 marks

Solution

Model. Yt=β1+β2Xt+utY_t=\beta_1+\beta_2X_t+u_t, with ut=ρut−1+εtu_t=\rho u_{t-1}+\varepsilon_t, |ρ|<1|\rho|<1, and εt\varepsilon_t white noise with variance σε2\sigma_\varepsilon^2. (Here ρ\rho is the first-order autocorrelation coefficient of the disturbances.)

Estimating β2\beta_2 (GLS via the generalised difference). Lag the model one period, multiply by ρ\rho and subtract: Yt−ρYt−1=β1(1−ρ)Y_t{}-\rho Y_{t-1}=\beta_1(1-\rho) +β2(Xt−ρXt−1)+εt,t{}+\beta_2(X_t-\rho X_{t-1}){}+\varepsilon_t,\qquad t =2,…,n.=2,\dots,n . Write Yt*=Yt−ρYt−1Y_t^*=Y_t-\rho Y_{t-1}, Xt*=Xt−ρXt−1X_t^*=X_t-\rho X_{t-1} and β1*=β1(1−ρ)\beta_1^*=\beta_1(1-\rho). The errors εt\varepsilon_t satisfy the classical assumptions, so OLS on the transformed data is (approximately) BLUE: β̂2GLS=∑t=2n(Xt*−X‾*)(Yt*−Y‾*)∑t=2n(Xt*−X‾*)2,\boxed{\hat\beta_2^{GLS}=\frac{\sum_{t=2}^n(X_t^*-\bar X^*)(Y_t^*-\bar Y^*)}{\sum_{t=2}^n(X_t^*-\bar X^*)^2}}, Var(β̂2GLS)=σε2∑t=2n(Xt*−X‾*)2\boxed{\operatorname{Var}(\hat\beta_2^{GLS})=\frac{\sigma_\varepsilon^2}{\sum_{t=2}^n(X_t^*-\bar X^*)^2}} Here β̂1=β̂1*/(1−ρ)\hat\beta_1=\hat\beta_1^*/(1-\rho). (The Prais–Winsten version also keeps the first observation, transformed as 1−ρ2Y1\sqrt{1-\rho^2}\,Y_1 and 1−ρ2X1\sqrt{1-\rho^2}\,X_1, which gives exact GLS.) In practice ρ\rho is unknown and is replaced by an estimate: from the DW statistic, ρ̂≈1−d/2\hat\rho\approx1-d/2; or by Cochrane–Orcutt iteration.

For comparison, the OLS estimator and its true variance. β̂2OLS=∑xtyt/∑xt2\hat\beta_2^{OLS}=\sum x_ty_t/\sum x_t^2 (with xt=Xt−X‾x_t=X_t-\bar X) remains unbiased, but under AR(1) errors Var(β̂2OLS)\operatorname{Var}(\hat\beta_2^{OLS}) =σu2∑xt2[1+2∑s=1n−1ρsrs],rs=\frac{\sigma_u^2}{\sum x_t^2}\left[1+2\sum_{s=1}^{n-1}\rho^sr_s\right],\qquad r_s =∑txtxt+s∑xt2,=\frac{\sum_tx_tx_{t+s}}{\sum x_t^2}, where σu2=σε2/(1−ρ2)\sigma_u^2=\sigma_\varepsilon^2/(1-\rho^2). The usual formula σu2/∑xt2\sigma_u^2/\sum x_t^2 omits the bracket. With ρ>0\rho>0 and positively autocorrelated XX, it understates the true variance. GLS has smaller variance than OLS.

Durbin–Watson statistic. d=∑t=2n(et−et−1)2∑t=1net2,d=\frac{\sum_{t=2}^n(e_t-e_{t-1})^2}{\sum_{t=1}^ne_t^2}, where ete_t are the OLS residuals. Expanding the numerator, d≈2(1−∑etet−1∑et2)=2(1−ρ̂).d\approx2\left(1-\frac{\sum e_te_{t-1}}{\sum e_t^2}\right)=2(1-\hat\rho).

Interpretation:

  • ρ̂=0\hat\rho=0 gives d≈2d\approx2: no first-order autocorrelation.
  • ρ̂→1\hat\rho\to1 gives d→0d\to0: strong positive autocorrelation.
  • ρ̂→−1\hat\rho\to-1 gives d→4d\to4: strong negative autocorrelation.

Decision rule (with tabulated bounds dLd_L and dUd_U for nn, k′k' and α\alpha), testing H0:ρ=0H_0:\rho=0:

  • d<dLd<d_L: reject H0H_0 in favour of positive autocorrelation;
  • dL≤d≤dUd_L\le d\le d_U: inconclusive;
  • dU<d<4−dUd_U<d<4-d_U: no autocorrelation;
  • 4−dU≤d≤4−dL4-d_U\le d\le4-d_L: inconclusive;
  • d>4−dLd>4-d_L: negative autocorrelation.

Conditions: there is an intercept; the regressors are non-stochastic (no lagged YY; use Durbin’s hh otherwise); the scheme is first-order; the errors are normal; and no observations are missing.

✓ Derivation checked step by step Derivation checked step by step: the GLS (quasi-differenced) slope and its variance, the OLS variance under AR(1), and d ≈ 2(1 − ρ̂).

↑ Back to the question list

What is Multicollinearity? Give its consequences.

2017 · Paper II · Q5c · 10 marks

Solution

Multicollinearity. It is the existence of an exact, or nearly exact, linear relationship among the explanatory variables of a regression model: λ1X1i+λ2X2i+…+λkXki\lambda_1X_{1i}{}+\lambda_2X_{2i}{}+\dots{}+\lambda_kX_{ki} ≈0for all i,\approx0\quad\text{for all }i, with the λ\lambda’s not all zero. The term is due to Ragnar Frisch.

  • Perfect multicollinearity: the relation is exact. X′XX'X is singular, and the individual coefficients are indeterminate. For example, including income in rupees and the same income in thousands of rupees.
  • Imperfect (high) multicollinearity: the relation is close but not exact. For example, income and wealth, or prices of related goods.

It arises from common trends in time series, from the method of data collection (a narrow range of values), from constraints in the population, from model specification (adding X2X^2 and X3X^3 when XX has a small range), and from over-determined models.

Consequences.

  1. Perfect case: the regression coefficients cannot be estimated, and their standard errors are infinite. Only certain linear combinations of the coefficients are estimable.
  2. High (imperfect) case:
    • OLS estimators are still unbiased and BLUE.
    • But their variances and covariances are large: Var(β̂j)=σ2∑xji2⋅11−Rj2\operatorname{Var}(\hat\beta_j)=\frac{\sigma^2}{\sum x_{ji}^2}\cdot\frac1{1-R_j^2} =σ2∑xji2VIFj.=\frac{\sigma^2}{\sum x_{ji}^2}\,VIF_j .
    • Confidence intervals are wide, so true values are hard to pin down, and hypotheses like βj=0\beta_j=0 are easily accepted.
    • tt-ratios are insignificant even though R2R^2 is high and the FF test is significant.
    • Estimates are unstable: small changes in the data, or adding or dropping a variable, change them a lot. They may take the wrong sign.
    • It is hard to assess the separate influence of each correlated regressor.
    • Prediction may still be reliable, provided the collinear pattern continues outside the sample.

✓ Answer checked step by step Answer checked step by step: the definition (perfect versus near multicollinearity) and the consequences (variance inflation, unstable estimates, wrong signs).

↑ Back to the question list

For the k-variate general linear model 𝐘=𝐗β+𝐔, establish the following relations: (i) β̂=(𝐗′𝐗)−1𝐗′𝐘 (ii) V(β̂)=(𝐗′𝐗)−1σ𝐔2

2016 · Paper II · Q5d · 10 marks

Solution

Model. 𝐘=X𝛃+𝐔\mathbf Y=X\boldsymbol\beta+\mathbf U, with XX (n×kn\times k) fixed and of rank kk, E(𝐔)=𝟎E(\mathbf U)=\mathbf0 and E(𝐔𝐔′)=σU2InE(\mathbf U\mathbf U')=\sigma_U^2I_n.

(i) 𝛃̂=(X′X)−1X′𝐘\hat{\boldsymbol\beta}=(X'X)^{-1}X'\mathbf Y. The least squares estimator minimises the residual sum of squares S(𝛃)=(𝐘−X𝛃)′(𝐘−X𝛃)S(\boldsymbol\beta)=(\mathbf Y-X\boldsymbol\beta)'(\mathbf Y-X\boldsymbol\beta) =𝐘′𝐘−2𝛃′X′𝐘+𝛃′X′X𝛃.=\mathbf Y'\mathbf Y{}-2\boldsymbol\beta'X'\mathbf Y{}+\boldsymbol\beta'X'X\boldsymbol\beta . (Here 𝐘′X𝛃=𝛃′X′𝐘\mathbf Y'X\boldsymbol\beta=\boldsymbol\beta'X'\mathbf Y, being a scalar.) Using ∂(𝛃′𝐚)∂𝛃=𝐚and∂(𝛃′A𝛃)∂𝛃\frac{\partial(\boldsymbol\beta'\mathbf a)}{\partial\boldsymbol\beta}=\mathbf a\qquad \text{and}\qquad \frac{\partial(\boldsymbol\beta'A\boldsymbol\beta)}{\partial\boldsymbol\beta} =2A𝛃(A symmetric),=2A\boldsymbol\beta\ \ (A\text{ symmetric}), we get ∂S∂𝛃=−2X′𝐘+2X′X𝛃=𝟎.\frac{\partial S}{\partial\boldsymbol\beta}=-2X'\mathbf Y+2X'X\boldsymbol\beta=\mathbf0 . These are the normal equations X′X𝛃̂=X′𝐘X'X\hat{\boldsymbol\beta}=X'\mathbf Y. Since rank(X′X)=rankX=k\operatorname{rank}(X'X)=\operatorname{rank}X=k, X′XX'X is invertible, and 𝛃̂=(X′X)−1X′𝐘.\hat{\boldsymbol\beta}=(X'X)^{-1}X'\mathbf Y . The second derivative 2X′X2X'X is positive definite, so this is a minimum.

(ii) V(𝛃̂)=(X′X)−1σU2V(\hat{\boldsymbol\beta})=(X'X)^{-1}\sigma_U^2. Substitute 𝐘=X𝛃+𝐔\mathbf Y=X\boldsymbol\beta+\mathbf U: 𝛃̂=(X′X)−1X′X𝛃\hat{\boldsymbol\beta}=(X'X)^{-1}X'X\boldsymbol\beta +(X′X)−1X′𝐔=𝛃{}+(X'X)^{-1}X'\mathbf U=\boldsymbol\beta +(X′X)−1X′𝐔.{}+(X'X)^{-1}X'\mathbf U . So E(𝛃̂)=𝛃E(\hat{\boldsymbol\beta})=\boldsymbol\beta (unbiased), and V(𝛃̂)=E[(𝛃̂−𝛃)(𝛃̂−𝛃)′]V(\hat{\boldsymbol\beta})=E\big[(\hat{\boldsymbol\beta}-\boldsymbol\beta)(\hat{\boldsymbol\beta}-\boldsymbol\beta)'\big] =(X′X)−1X′E(𝐔𝐔′)X(X′X)−1=(X'X)^{-1}X'E(\mathbf U\mathbf U')X(X'X)^{-1} =σU2(X′X)−1X′X(X′X)−1=\sigma_U^2(X'X)^{-1}X'X(X'X)^{-1} =(X′X)−1σU2.=\boxed{(X'X)^{-1}\sigma_U^2}. The diagonal elements are the variances of the β̂j\hat\beta_j, and the off-diagonal elements are their covariances. σU2\sigma_U^2 is estimated by σ̂U2=𝐞′𝐞/(n−k)\hat\sigma_U^2=\mathbf e'\mathbf e/(n-k).

✓ Derivation checked step by step Derivation checked step by step: the vector-derivative normal equations and V(β̂) = (X′X)⁻¹X′E(UU′)X(X′X)⁻¹.

↑ Back to the question list

Discuss autocorrelation. For the model Yt=βXt+Ut; with Ut=ρUt−1+εt where E(εt)=0 and E(εtεt′)=σε2I, find the estimate of β. Specify Durbin-Watson test.

2016 · Paper II · Q7a · 20 marks

Solution

Autocorrelation. The disturbances of different periods are correlated: E(UtUs)≠0E(U_tU_s)\ne0 for t≠st\ne s. In time series this arises from inertia, omitted autocorrelated variables, mis-specified dynamics or functional form, and data smoothing. With autocorrelation, OLS is unbiased but inefficient, its conventional standard errors are biased, and tests are misleading.

Model. Yt=βXt+UtY_t=\beta X_t+U_t (no intercept), with Ut=ρUt−1+εtU_t=\rho U_{t-1}+\varepsilon_t, |ρ|<1|\rho|<1, E(εt)=0E(\varepsilon_t)=0 and E(𝛆𝛆′)=σε2IE(\boldsymbol\varepsilon\boldsymbol\varepsilon')=\sigma_\varepsilon^2I.

Estimate of β\beta (ρ\rho known). Quasi-difference the model: Yt−ρYt−1=β(Xt−ρXt−1)+εt,Y_t{}-\rho Y_{t-1}=\beta(X_t-\rho X_{t-1}){}+\varepsilon_t, t=2,…,n.t=2,\dots,n . With Yt*=Yt−ρYt−1Y_t^*=Y_t-\rho Y_{t-1} and Xt*=Xt−ρXt−1X_t^*=X_t-\rho X_{t-1}, the errors are spherical, and least squares through the origin gives β̂=∑t=2nXt*Yt*∑t=2nXt*2,Var(β̂)\boxed{\hat\beta=\frac{\sum_{t=2}^nX_t^*Y_t^*}{\sum_{t=2}^nX_t^{*2}}},\qquad \operatorname{Var}(\hat\beta) =σε2∑t=2nXt*2.=\frac{\sigma_\varepsilon^2}{\sum_{t=2}^nX_t^{*2}}. Including the first observation as 1−ρ2Y1=β1−ρ2X1+1−ρ2U1\sqrt{1-\rho^2}\,Y_1=\beta\sqrt{1-\rho^2}\,X_1+\sqrt{1-\rho^2}\,U_1 gives the exact GLS (Prais–Winsten) estimator: β̂GLS=(1−ρ2)X1Y1+∑t≥2Xt*Yt*(1−ρ2)X12+∑t≥2Xt*2.\hat\beta_{GLS}=\frac{(1-\rho^2)X_1Y_1+\sum_{t\ge2}X_t^*Y_t^*}{(1-\rho^2)X_1^2+\sum_{t\ge2}X_t^{*2}}.

ρ\rho unknown. Estimate it from the OLS residuals, ρ̂=∑etet−1∑et−12orρ̂≈1−d2,\hat\rho=\frac{\sum e_te_{t-1}}{\sum e_{t-1}^2}\qquad\text{or}\qquad\hat\rho\approx1-\frac d2, then apply the formula (feasible GLS). Iterate until ρ̂\hat\rho converges (Cochrane–Orcutt), or use a grid search over ρ\rho (Hildreth–Lu).

Durbin–Watson test. To test H0:ρ=0H_0:\rho=0, compute from the OLS residuals d=∑t=2n(et−et−1)2∑t=1net2d=\frac{\sum_{t=2}^n(e_t-e_{t-1})^2}{\sum_{t=1}^ne_t^2} ≈2(1−ρ̂),0≤d≤4.\approx2(1-\hat\rho),\qquad 0\le d\le4 . Compare with the tabulated bounds dLd_L and dUd_U:

  • d<dLd<d_L: positive autocorrelation;
  • dL≤d≤dUd_L\le d\le d_U: inconclusive;
  • dU<d<4−dUd_U<d<4-d_U: accept H0H_0 (no autocorrelation);
  • 4−dU≤d≤4−dL4-d_U\le d\le4-d_L: inconclusive;
  • d>4−dLd>4-d_L: negative autocorrelation.

Note: the standard DW tables assume the model has an intercept. For a regression through the origin, as here, the Farebrother tables (or an LM test such as Breusch–Godfrey) should be used. The test also needs non-stochastic regressors and first-order normal errors.

✓ Derivation checked step by step Derivation checked step by step: the quasi-differenced estimator of β (with the Prais–Winsten first term) and the Durbin–Watson procedure.

↑ Back to the question list

What is the meaning of heteroscedasticity? What happens when we use ordinary least square procedure to a model with heteroscedastic disturbance terms?

2016 · Paper II · Q8b · 15 marks

Solution

Meaning. In the regression Yi=β1+β2Xi+uiY_i=\beta_1+\beta_2X_i+u_i, homoscedasticity means that the disturbances have the same variance for all observations: E(ui2)=σ2E(u_i^2)=\sigma^2. Heteroscedasticity means that the variance differs from observation to observation: E(ui2)=σi2.E(u_i^2)=\sigma_i^2 . Typically it changes systematically with the level of an explanatory variable. Example: in a cross-section of families, the variation of consumption around the average is much greater among high-income families than among low-income ones. A scatter diagram then shows a fan or funnel shape.

What happens when OLS is used.

  1. The estimators remain unbiased and consistent: E(β̂2)=β2E(\hat\beta_2)=\beta_2, since unbiasedness does not depend on the variances.
  2. They are no longer efficient (not BLUE): the Gauss–Markov theorem fails. Weighted least squares, which gives less weight to observations with large variance, has a smaller variance.
  3. The variance formula is wrong. The true variance is Var(β̂2)=∑xi2σi2(∑xi2)2,\operatorname{Var}(\hat\beta_2)=\frac{\sum x_i^2\sigma_i^2}{\left(\sum x_i^2\right)^2}, not σ2/∑xi2\sigma^2/\sum x_i^2. The usual estimate s2/∑xi2s^2/\sum x_i^2 is biased. When σi2\sigma_i^2 is positively related to xi2x_i^2, it underestimates the variance.
  4. Inference is invalid: tt and FF statistics no longer follow their distributions, confidence intervals have the wrong coverage, and we may wrongly find coefficients significant (or insignificant).
  5. Forecasts are unbiased but inefficient, and their error variances are wrongly estimated.

Remedies: WLS/GLS when the form of the variance is known (for example dividing by XiX_i when σi2∝Xi2\sigma_i^2\propto X_i^2); transformations such as logarithms; or White’s heteroscedasticity-consistent standard errors with OLS.

✓ Answer checked step by step Answer checked step by step: the meaning of heteroscedasticity and the effects on OLS (variance formula, efficiency, tests).

↑ Back to the question list

Explain the need of weighted least squares estimators over OLS estimators. Describe the models in which this is required.

2015 · Paper II · Q6b · 15 marks

Solution

Need for weighted least squares (WLS). OLS gives every observation equal weight. That is optimal only when all the disturbances have the same variance. When Var(ui)=σi2\operatorname{Var}(u_i)=\sigma_i^2 differs (heteroscedasticity), observations with large error variance are less reliable, yet OLS treats them equally. As a result:

  • OLS is unbiased but inefficient;
  • its standard errors are wrong, so inference is invalid.

WLS minimises ∑wi(Yi−β1−β2Xi)2,wi\sum w_i(Y_i-\beta_1-\beta_2X_i)^2,\qquad w_i =1σi2(or ∝1/σi2),=\frac1{\sigma_i^2}\ \ (\text{or }\propto1/\sigma_i^2), which gives less weight to the more variable observations. Equivalently, it is OLS on the model divided by σi\sigma_i, whose error has constant variance. By the Gauss–Markov theorem applied to the transformed model, the WLS estimators are BLUE, and their standard errors are correct. In matrix form, 𝛃̂WLS=(X′WX)−1X′W𝐘,W\hat{\boldsymbol\beta}_{WLS}=(X'WX)^{-1}X'W\mathbf Y,\qquad W =diag(wi),=\operatorname{diag}(w_i), a special case of GLS with a diagonal Ω\Omega.

Models in which WLS is required.

  1. Variance proportional to Xi2X_i^2: σi2=σ2Xi2\sigma_i^2=\sigma^2X_i^2 (common in cross-section data on firms or families). Divide by XiX_i: YiXi=β11Xi+β2+uiXi.\frac{Y_i}{X_i}=\beta_1\frac1{X_i}+\beta_2+\frac{u_i}{X_i}.
  2. Variance proportional to XiX_i: σi2=σ2Xi\sigma_i^2=\sigma^2X_i. Divide by Xi\sqrt{X_i}.
  3. Variance proportional to [E(Yi)]2[E(Y_i)]^2: use Ŷi\hat Y_i from a first-stage OLS to form the weights (two-step feasible WLS).
  4. Grouped (averaged) data: if each observation is the mean of ngn_g units, Var(u‾g)=σ2/ng\operatorname{Var}(\bar u_g)=\sigma^2/n_g, so use weights wg=ngw_g=n_g.
  5. Linear probability model: Yi∈{0,1}Y_i\in\{0,1\} with Var(ui)=pi(1−pi)\operatorname{Var}(u_i)=p_i(1-p_i). Use the weights 1/[p̂i(1−p̂i)]1/[\hat p_i(1-\hat p_i)].
  6. Replicated observations at each XX, where σi2\sigma_i^2 can be estimated from the replicates; and error-learning or improving data-collection models, where the variance changes over time.
  7. Measurement data of different precision, for example from instruments of known accuracy.

When the σi2\sigma_i^2 are unknown, they are estimated (from residuals or from an assumed functional form), giving feasible WLS, which is asymptotically efficient.

✓ Answer checked step by step Answer checked step by step: the WLS criterion and estimator, its BLUE property under unequal variances, and the standard situations (variance proportional to X or X², grouped data, Var Y = p(1 − p)).

↑ Back to the question list

What is the problem of multicollinearity? What are its consequences?

2013 · Paper II · Q6c · 10 marks

Solution

The problem of multicollinearity. In multiple regression, Y=β1+β2X2+…+βkXk+uY=\beta_1+\beta_2X_2+\dots+\beta_kX_k+u, the explanatory variables are assumed to be linearly independent. Multicollinearity is the violation of this: there is an exact or a near-exact linear relationship among the regressors, λ2X2i+λ3X3i+…+λkXki≈λ1,\lambda_2X_{2i}+\lambda_3X_{3i}+\dots+\lambda_kX_{ki}\approx\lambda_1, with the λ\lambda’s not all zero. With perfect multicollinearity, X′XX'X is singular. With high (imperfect) multicollinearity, it is nearly singular. Example: a demand equation with both income and wealth, or the prices of two close substitutes that move together.

Consequences.

  1. Perfect multicollinearity: the individual coefficients cannot be determined, and their variances are infinite. Only some linear combinations can be estimated.
  2. High multicollinearity:
    • OLS estimators remain unbiased and BLUE, but have large variances and covariances: Var(β̂j)=σ2∑xji2(1−Rj2).\operatorname{Var}(\hat\beta_j)=\frac{\sigma^2}{\sum x_{ji}^2(1-R_j^2)}.
    • Wide confidence intervals, and a tendency to accept βj=0\beta_j=0 wrongly.
    • Low tt-ratios with a high R2R^2 and a significant FF.
    • Unstable estimates, sensitive to small changes in the data, and sometimes of the wrong sign.
    • Inability to separate the individual effects of the collinear variables.
    • Predictions may still be satisfactory if the collinear relationship persists.

✓ Answer checked step by step Answer checked step by step: the definition and the consequences (with the variance-inflation formula).

↑ Back to the question list

Describe the problem of multi-collinearity in multiple linear regression. How does it affect parameter estimation? Describe some solution for this problem.

2012 · Paper II · Q5b · 12 marks

Solution

The problem. In multiple linear regression, 𝐘=X𝛃+𝐮,𝛃̂=(X′X)−1X′𝐘.\mathbf Y=X\boldsymbol\beta+\mathbf u,\qquad \hat{\boldsymbol\beta}=(X'X)^{-1}X'\mathbf Y . Multicollinearity is present when the columns of XX are (nearly) linearly dependent: some explanatory variables are highly correlated with linear combinations of others. Then X′XX'X is singular (perfect case) or nearly singular (high collinearity), with a small determinant and some very small eigenvalues.

Effect on parameter estimation.

  • Perfect case: (X′X)−1(X'X)^{-1} does not exist, so the separate coefficients are not identifiable.
  • High collinearity: the estimates exist and are unbiased, but D(𝛃̂)=σ2(X′X)−1D(\hat{\boldsymbol\beta})=\sigma^2(X'X)^{-1} has large elements. Writing X′X=∑λj𝐯j𝐯j′X'X=\sum\lambda_j\mathbf v_j\mathbf v_j' in terms of its eigenvalues, ∑jVar(β̂j)=σ2∑j1λj,\sum_j\operatorname{Var}(\hat\beta_j)=\sigma^2\sum_j\frac1{\lambda_j}, which explodes as the smallest eigenvalue λmin→0\lambda_{\min}\to0. Individually, Var(β̂j)∝VIFj=1/(1−Rj2)\operatorname{Var}(\hat\beta_j)\propto VIF_j=1/(1-R_j^2).
  • Consequences: wide confidence intervals; insignificant tt-ratios despite a high R2R^2; estimates sensitive to small data changes; wrong signs; and an inability to separate individual effects.

Some solutions.

  1. Collect more data or a new sample: a larger or more varied sample can reduce the collinearity.
  2. Use prior information: for example, a known ratio β3=kβ2\beta_3=k\beta_2 from earlier studies. Imposing it reduces the number of parameters (restricted least squares).
  3. Combine cross-section and time-series data: for example, estimate the income elasticity from family budgets, then the price elasticity from time series with income held fixed (Tobin’s method).
  4. Drop a variable, keeping in mind the risk of specification bias if it truly belongs in the model.
  5. Transform the variables: first differences, ratios (per-capita values) or deflated values often reduce collinearity due to common trends.
  6. Ridge regression: 𝛃̂R=(X′X+kI)−1X′𝐘,k>0.\hat{\boldsymbol\beta}_R=(X'X+kI)^{-1}X'\mathbf Y,\qquad k>0 . This accepts a small bias in exchange for a large reduction in variance, and so a lower mean-square error.
  7. Principal components regression: regress YY on a few principal components of the XX’s (which are orthogonal). Drop those with small eigenvalues, then transform back.
  8. Centring or orthogonal polynomials, for polynomial models.
  9. Do nothing, if the aim is prediction and the collinear pattern will persist, or if the key coefficients are still significant.

✓ Answer checked step by step Answer checked step by step: the problem, its effect on estimation (variance inflation, instability), and the remedies including ridge regression and principal components.

↑ Back to the question list

Consider the linear model yij=αi+βj+εij,i=1,…,I,j=1,…,J, εij’s are independent N(0,σ2) variables. Obtain the least squares estimates of αr−αs and βp−βq for r,s=1,…,I, r≠s and p,q=1,…,J, p≠q. Obtain also the variance expressions for those least squares estimates.

2012 · Paper II · Q6a · 30 marks

Solution

Model. yij=αi+βj+εijy_{ij}=\alpha_i+\beta_j+\varepsilon_{ij}, with i=1,…,Ii=1,\dots,I, j=1,…,Jj=1,\dots,J, and the εij\varepsilon_{ij} independent N(0,σ2)N(0,\sigma^2). This is a two-way classification (randomised block layout) with one observation per cell and no interaction.

Least squares. Minimise S=∑i∑j(yij−αi−βj)2.S=\sum_i\sum_j(y_{ij}-\alpha_i-\beta_j)^2 . ∂S∂αr=0:yr⋅=Jαr+∑jβj(r\frac{\partial S}{\partial\alpha_r}=0:\quad y_{r\cdot}=J\alpha_r{}+\sum_j\beta_j\quad(r =1,…,I),=1,\dots,I), ∂S∂βp=0:y⋅p=∑iαi+Iβp(p\frac{\partial S}{\partial\beta_p}=0:\quad y_{\cdot p}=\sum_i\alpha_i{}+I\beta_p\quad(p =1,…,J),=1,\dots,J), where yr⋅=∑jyrjy_{r\cdot}=\sum_jy_{rj} and y⋅p=∑iyipy_{\cdot p}=\sum_iy_{ip}.

These I+JI+J equations have rank I+J−1I+J-1: adding a constant to every αi\alpha_i and subtracting it from every βj\beta_j leaves the model unchanged. So the individual αi\alpha_i and βj\beta_j are not estimable, but contrasts are.

Estimates of the contrasts. From the first set, α̂r+1J∑jβ̂j=y‾r⋅for every r.\hat\alpha_r+\frac1J\sum_j\hat\beta_j=\bar y_{r\cdot}\quad\text{for every }r . Subtracting the equations for rr and ss, the β\beta terms cancel: αr−αŝ=y‾r⋅−y‾s⋅,\boxed{\widehat{\alpha_r-\alpha_s}=\bar y_{r\cdot}-\bar y_{s\cdot}}, the difference of the row means. Similarly, from the second set, βp−βq̂=y‾⋅p−y‾⋅q,\boxed{\widehat{\beta_p-\beta_q}=\bar y_{\cdot p}-\bar y_{\cdot q}}, the difference of the column means. These are unique, whatever solution of the normal equations is used.

Unbiasedness. E(y‾r⋅)=αr+β‾E(\bar y_{r\cdot})=\alpha_r+\bar\beta, where β‾=1J∑βj\bar\beta=\frac1J\sum\beta_j. So E(y‾r⋅−y‾s⋅)=αr−αs.E(\bar y_{r\cdot}-\bar y_{s\cdot})=\alpha_r-\alpha_s . Similarly E(y‾⋅p−y‾⋅q)=βp−βqE(\bar y_{\cdot p}-\bar y_{\cdot q})=\beta_p-\beta_q.

Variances. The row means y‾r⋅\bar y_{r\cdot} and y‾s⋅\bar y_{s\cdot} are based on disjoint sets of JJ independent observations, each of variance σ2\sigma^2: Var(y‾r⋅−y‾s⋅)=σ2J+σ2J=2σ2J.\operatorname{Var}(\bar y_{r\cdot}-\bar y_{s\cdot})=\frac{\sigma^2}J+\frac{\sigma^2}J=\boxed{\frac{2\sigma^2}{J}}. Likewise, Var(y‾⋅p−y‾⋅q)=2σ2I.\operatorname{Var}(\bar y_{\cdot p}-\bar y_{\cdot q})=\boxed{\frac{2\sigma^2}{I}}. By the Gauss–Markov theorem these are the BLUEs of the contrasts. Being linear in normal variables, they are normally distributed.

Estimating σ2\sigma^2. The residual is eij=yij−y‾i⋅−y‾⋅j+y‾⋅⋅e_{ij}=y_{ij}-\bar y_{i\cdot}-\bar y_{\cdot j}+\bar y_{\cdot\cdot}, and σ̂2=∑∑eij2(I−1)(J−1),\hat\sigma^2=\frac{\sum\sum e_{ij}^2}{(I-1)(J-1)}, since there are IJIJ observations and I+J−1I+J-1 estimable parameters. The estimated variances are 2σ̂2/J2\hat\sigma^2/J and 2σ̂2/I2\hat\sigma^2/I, and tt tests on (I−1)(J−1)(I-1)(J-1) degrees of freedom follow.

✓ Derivation checked step by step Derivation checked step by step: the normal equations of the additive two-way model, the estimable contrasts, and their variances 2σ²/J and 2σ²/I; also checked by simulation in Python (I = 4, J = 5: variance 0.405 against 2/5 = 0.4).

↑ Back to the question list

Explain Durbin-Watson test for autocorrelation under a general linear model.

2011 · Paper II · Q6a · 20 marks

Solution

Purpose. In the general linear model 𝐘=X𝛃+𝐮\mathbf Y=X\boldsymbol\beta+\mathbf u, the Durbin–Watson (DW) test checks for first-order autocorrelation of the disturbances, ut=ρut−1+εtu_t=\rho u_{t-1}+\varepsilon_t, by testing H0:ρ=0againstH1:ρH_0:\rho=0\qquad \text{against}\qquad H_1:\rho >0(or ρ<0).>0\ \ (\text{or }\rho<0).

Statistic. Fit the model by OLS and obtain the residuals 𝐞=M𝐮\mathbf e=M\mathbf u, where M=I−X(X′X)−1X′M=I-X(X'X)^{-1}X'. Then d=∑t=2n(et−et−1)2∑t=1net2=𝐞′A𝐞𝐞′𝐞,d=\frac{\sum_{t=2}^n(e_t-e_{t-1})^2}{\sum_{t=1}^ne_t^2}=\frac{\mathbf e'A\mathbf e}{\mathbf e'\mathbf e}, where AA is the tridiagonal matrix with diagonal (1,2,…,2,1)(1,2,\dots,2,1) and off-diagonals −1-1. Expanding, d=∑et2+∑et−12−2∑etet−1∑et2d=\frac{\sum e_t^2+\sum e_{t-1}^2-2\sum e_te_{t-1}}{\sum e_t^2} ≈2(1−ρ̂),ρ̂=∑etet−1∑et2.\approx2(1-\hat\rho),\qquad \hat\rho=\frac{\sum e_te_{t-1}}{\sum e_t^2}. Since −1≤ρ̂≤1-1\le\hat\rho\le1, we have 0≤d≤40\le d\le4.

Distribution and bounds. The exact null distribution of dd depends on XX through MM. Durbin and Watson showed that it lies between two distributions that do not depend on XX, giving lower and upper bounds dLd_L and dUd_U. These are tabulated for sample size nn, number of regressors k′k' (excluding the constant) and level α\alpha.

Decision rule.

dd Conclusion
0≤d<dL0\le d<d_L Reject H0H_0: evidence of positive autocorrelation
dL≤d≤dUd_L\le d\le d_U Zone of indecision
dU<d<4−dUd_U<d<4-d_U Do not reject H0H_0
4−dU≤d≤4−dL4-d_U\le d\le4-d_L Zone of indecision
4−dL<d≤44-d_L<d\le4 Reject H0H_0: evidence of negative autocorrelation

Assumptions.

  1. The model includes an intercept.
  2. XX is non-stochastic. In particular, there is no lagged dependent variable among the regressors; for that case use Durbin’s hh statistic, h=ρ̂n1−nV∼N(0,1),h=\hat\rho\sqrt{\frac{n}{1-nV}}\sim N(0,1), where VV is the estimated variance of the coefficient of Yt−1Y_{t-1}.
  3. The disturbances follow a first-order autoregressive scheme and are normally distributed.
  4. There are no missing observations (the data are equally spaced).

Limitations. There is an inconclusive region (which exact or approximate methods can resolve); it detects only first-order autocorrelation; and it is invalid with lagged YY. Modern practice also uses the Breusch–Godfrey LM test, which allows higher-order schemes and lagged dependent variables.

✓ Answer checked step by step Answer checked step by step: the statistic, its relation to ρ̂, the bounds procedure and the assumptions of the test.

↑ Back to the question list

Describe in detail the problem of multicollinearity with an example.

2011 · Paper II · Q6c · 20 marks

Solution

The problem. Multicollinearity is a situation in which two or more explanatory variables in a multiple regression are highly (or perfectly) linearly related. Then the data do not contain enough independent variation to separate their individual effects.

  • Perfect: ∑λjXji=0\sum\lambda_jX_{ji}=0 exactly, so X′XX'X is singular and the coefficients are indeterminate.
  • Imperfect: ∑λjXji+vi=0\sum\lambda_jX_{ji}+v_i=0 with a small viv_i, so X′XX'X is nearly singular, and the estimates are imprecise.

Example. A household consumption function Ci=β1+β2Incomei+β3Wealthi+ui,C_i=\beta_1+\beta_2\,\text{Income}_i+\beta_3\,\text{Wealth}_i+u_i, in a sample where wealth is roughly 10 × income, say:

Income (₹ ’000) 10 20 30 40 50
Wealth (₹ ’000) 102 198 305 401 495

The correlation between income and wealth is 0.9998. In the two-regressor case, Var(β̂2)=σ2∑x22(1−r232).\operatorname{Var}(\hat\beta_2)=\frac{\sigma^2}{\sum x_2^2(1-r_{23}^2)}. With r23=0.9998r_{23}=0.9998, 1−r232≈0.00051-r_{23}^2\approx0.0005, so the variance is about 2,100 times what it would be with uncorrelated regressors. The fitted regression may well have a high R2R^2 (say 0.96), with neither income nor wealth individually significant, and wealth may even get a negative coefficient. The data simply cannot tell whether consumption rises because income rises or because wealth rises, since the two always rise together.

If wealth were exactly 10 × income, then β2Income+β3(10Income)\beta_2\,\text{Income}{}+\beta_3(10\,\text{Income}) =(β2+10β3)Income=(\beta_2+10\beta_3)\text{Income}: only the combination β2+10β3\beta_2+10\beta_3 could be estimated (perfect multicollinearity).

Consequences (summarised):

  • unbiased (BLUE) but highly imprecise estimates;
  • wide confidence intervals;
  • insignificant tt values with a high R2R^2;
  • sensitivity to small changes in the data;
  • wrong signs;
  • individual effects that cannot be separated.

Detection: high pairwise correlations; auxiliary regressions; VIF > 10; condition number > 30.

Remedies: extra or new data; prior restrictions on the coefficients; combining cross-section and time-series data; dropping or transforming variables; ridge or principal-components regression.

✓ Answer checked step by step Answer checked step by step: the definition, a numerical example (income–wealth correlation 0.9998, computed in Python, so the variance is inflated about 2,100 times), and the consequences.

↑ Back to the question list

What is Heteroscedasticity? Write its nature and consequences. Describe the Spearman’s rank correlation test useful for detecting Heteroscedasticity.

2010 · Paper II · Q6c · 20 marks

Solution

Heteroscedasticity. The disturbances of a regression model have unequal variances: Var(ui)=σi2\operatorname{Var}(u_i)=\sigma_i^2, not a constant σ2\sigma^2.

Nature. It is typical of cross-section data, where units differ greatly in size (families, firms, states). The variance often increases with an explanatory variable, as with savings against income, or profits against firm size, which gives a funnel-shaped scatter. It can also arise from:

  • error-learning (variance falling over time);
  • improved data collection;
  • outliers;
  • mis-specification (omitted variables, wrong functional form);
  • skewed regressors;
  • grouped data.

Consequences for OLS.

  1. The estimators remain unbiased and consistent.
  2. They are inefficient (not BLUE); GLS or WLS is better.
  3. The conventional variance estimates are biased, so tt and FF tests and confidence intervals are invalid.
  4. Predictions are inefficient.

Spearman’s rank correlation test.

  1. Fit the regression Yi=β1+β2Xi+uiY_i=\beta_1+\beta_2X_i+u_i by OLS and obtain the residuals eie_i.
  2. Rank the absolute residuals |ei||e_i|, and rank the values XiX_i (or Ŷi\hat Y_i), both in ascending or both in descending order.
  3. Compute Spearman’s rank correlation coefficient rs=1−6∑di2n(n2−1),r_s=1-\frac{6\sum d_i^2}{n(n^2-1)}, where did_i is the difference in the ranks of observation ii.
  4. Test H0H_0 (no heteroscedasticity, i.e. no association between |ei||e_i| and XiX_i) with t=rsn−21−rs2∼tn−2(for n>8).t=\frac{r_s\sqrt{n-2}}{\sqrt{1-r_s^2}}\sim t_{n-2}\quad(\text{for }n>8).
  5. If |t||t| exceeds the critical value, reject H0H_0: the error variance changes systematically with XX, which indicates heteroscedasticity. In a multiple regression, repeat the test for each regressor.

The test is simple and needs no normality assumption, but it detects only a monotonic relation between the error size and the chosen variable.

✓ Answer checked step by step Answer checked step by step: the nature and consequences of heteroscedasticity, and the Spearman rank-correlation procedure with its t statistic.

↑ Back to the question list

Discuss the problem of autocorrelation and its consequences when one applies least square method for estimating the parameters.

2009 · Paper II · Q5b · 12 marks

Solution

The problem of autocorrelation. The least squares method assumes that the disturbances are uncorrelated over observations, E(utus)=0E(u_tu_s)=0 for t≠st\ne s. In time-series data this often fails: a shock in one period carries over into the next. The usual representation is the first-order autoregressive scheme ut=ρut−1+εt,|ρ|<1,u_t=\rho u_{t-1}+\varepsilon_t,\qquad |\rho|<1, with εt\varepsilon_t white noise. Then Var(ut)=σε21−ρ2,\operatorname{Var}(u_t)=\frac{\sigma_\varepsilon^2}{1-\rho^2}, Cov(ut,ut−s)=ρsVar(ut).\operatorname{Cov}(u_t,u_{t-s})=\rho^s\operatorname{Var}(u_t).

Causes: inertia or sluggishness of economic series; omitted variables that are autocorrelated; incorrect functional form; omitted lags (the cobweb phenomenon); data manipulation (interpolation, averaging); non-stationarity.

Consequences of applying least squares.

  1. Unbiasedness and consistency of 𝛃̂\hat{\boldsymbol\beta} remain (with non-stochastic XX).
  2. Loss of efficiency: OLS is no longer BLUE. GLS (for example on the generalised differences Yt−ρYt−1Y_t-\rho Y_{t-1}) has smaller variance.
  3. Wrong variances: the true dispersion matrix is σ2(X′X)−1X′ΩX(X′X)−1,\sigma^2(X'X)^{-1}X'\Omega X(X'X)^{-1}, not σ2(X′X)−1\sigma^2(X'X)^{-1}. For one regressor, Var(β̂)\operatorname{Var}(\hat\beta) =σu2∑xt2(1+2ρr1x+2ρ2r2x+…)=\frac{\sigma_u^2}{\sum x_t^2}\left(1+2\rho\,r_1^x+2\rho^2r_2^x+\dots\right) (approximately, with rsxr_s^x the serial correlations of xx). With ρ>0\rho>0 and trending xx, the true variance is larger than the formula σu2/∑xt2\sigma_u^2/\sum x_t^2.
  4. σ2\sigma^2 is underestimated by s2s^2, and R2R^2 is overstated.
  5. Invalid inference: tt and FF tests overstate significance, and confidence intervals are too narrow.
  6. Inefficient forecasts: information in the residual correlation is not used.
  7. With lagged dependent variables, OLS becomes biased and inconsistent.

Detection: residual plots; the Durbin–Watson dd; Durbin’s hh; the Breusch–Godfrey test; the runs test. Remedies: GLS with known or estimated ρ\rho (Cochrane–Orcutt, Hildreth–Lu, Prais–Winsten), or Newey–West standard errors.

✓ Answer checked step by step Answer checked step by step: the AR(1) structure, and the consequences for unbiasedness, efficiency, the variance formula and inference.

↑ Back to the question list

Define generalized least squares estimator. Obtain mean and sampling variance for the estimator. Show that a generalized least square estimator is equivalent to a two-step procedure estimator.

2009 · Paper II · Q8b · 30 marks

Solution

Definition. In 𝐘=X𝛃+𝐮\mathbf Y=X\boldsymbol\beta+\mathbf u, with E(𝐮)=𝟎E(\mathbf u)=\mathbf0 and E(𝐮𝐮′)=σ2ΩE(\mathbf u\mathbf u')=\sigma^2\Omega (Ω\Omega known and positive definite, XX fixed of rank kk), the generalised least squares (GLS) estimator minimises the generalised sum of squares (𝐘−X𝛃)′Ω−1(𝐘−X𝛃).(\mathbf Y-X\boldsymbol\beta)'\Omega^{-1}(\mathbf Y-X\boldsymbol\beta). Setting the derivative −2X′Ω−1(𝐘−X𝛃)=𝟎-2X'\Omega^{-1}(\mathbf Y-X\boldsymbol\beta)=\mathbf0 gives 𝛃̂G=(X′Ω−1X)−1X′Ω−1𝐘.\boxed{\hat{\boldsymbol\beta}_{G}=(X'\Omega^{-1}X)^{-1}X'\Omega^{-1}\mathbf Y}.

Mean. 𝛃̂G=𝛃+(X′Ω−1X)−1X′Ω−1𝐮\hat{\boldsymbol\beta}_G=\boldsymbol\beta+(X'\Omega^{-1}X)^{-1}X'\Omega^{-1}\mathbf u, so E(𝛃̂G)=𝛃(unbiased).E(\hat{\boldsymbol\beta}_G)=\boldsymbol\beta\quad(\text{unbiased}).

Sampling dispersion. D(𝛃̂G)=AE(𝐮𝐮′)A′=σ2AΩA′D(\hat{\boldsymbol\beta}_G)=A\,E(\mathbf u\mathbf u')A'=\sigma^2A\Omega A' =σ2(X′Ω−1X)−1,=\sigma^2(X'\Omega^{-1}X)^{-1}, where A=(X′Ω−1X)−1X′Ω−1A=(X'\Omega^{-1}X)^{-1}X'\Omega^{-1}. σ2\sigma^2 is estimated by σ̂2=(𝐘−X𝛃̂G)′Ω−1(𝐘−X𝛃̂G)n−k.\hat\sigma^2=\frac{(\mathbf Y-X\hat{\boldsymbol\beta}_G)'\Omega^{-1}(\mathbf Y-X\hat{\boldsymbol\beta}_G)}{n-k}.

Equivalence to a two-step procedure. Since Ω\Omega is positive definite, so is Ω−1\Omega^{-1}. Hence there is a non-singular matrix PP (for example from the Cholesky factorisation, or P=Ω−1/2P=\Omega^{-1/2}) with P′P=Ω−1,equivalentlyP'P=\Omega^{-1},\qquad \text{equivalently} PΩP′=In.P\Omega P'=I_n .

Step 1 (transform the data). Pre-multiply the model by PP: P𝐘=PX𝛃+P𝐮,i.e.𝐘*P\mathbf Y=PX\boldsymbol\beta{}+P\mathbf u,\qquad \text{i.e.}\qquad \mathbf Y^* =X*𝛃+𝐮*.=X^*\boldsymbol\beta{}+\mathbf u^* . The new disturbance has E(𝐮*)=𝟎E(\mathbf u^*)=\mathbf0 and E(𝐮*𝐮*′)=PE(𝐮𝐮′)P′E(\mathbf u^*\mathbf u^{*\prime})=PE(\mathbf u\mathbf u')P' =σ2PΩP′=σ2In=\sigma^2P\Omega P'=\sigma^2I_n. So the transformed model satisfies all the classical assumptions.

Step 2 (apply OLS to the transformed data). 𝛃̂*=(X*′X*)−1X*′𝐘*\hat{\boldsymbol\beta}^*=(X^{*\prime}X^*)^{-1}X^{*\prime}\mathbf Y^* =(X′P′PX)−1X′P′P𝐘=(X'P'PX)^{-1}X'P'P\mathbf Y =(X′Ω−1X)−1X′Ω−1𝐘=𝛃̂G.=(X'\Omega^{-1}X)^{-1}X'\Omega^{-1}\mathbf Y=\hat{\boldsymbol\beta}_G .

So GLS is identical to OLS applied to suitably transformed data. It also follows that:

  • by the Gauss–Markov theorem in the transformed model, 𝛃̂G\hat{\boldsymbol\beta}_G is BLUE (Aitken’s theorem);
  • D(𝛃̂*)=σ2(X*′X*)−1D(\hat{\boldsymbol\beta}^*)=\sigma^2(X^{*\prime}X^*)^{-1} =σ2(X′Ω−1X)−1=\sigma^2(X'\Omega^{-1}X)^{-1}, as above.

Examples of PP:

  • Heteroscedasticity: Ω=diag(ci)\Omega=\operatorname{diag}(c_i) and P=diag(1/ci)P=\operatorname{diag}(1/\sqrt{c_i}), i.e. weighted least squares.
  • AR(1) errors: PP is the Prais–Winsten matrix, i.e. quasi-differencing Yt−ρYt−1Y_t-\rho Y_{t-1}, with 1−ρ2\sqrt{1-\rho^2} for the first observation. ◼\blacksquare

✓ Proof checked step by step Proof checked step by step: the GLS mean and dispersion, and the equivalence with OLS on the data transformed by P with P′P = Ω⁻¹.

↑ Back to the question list

What is multicollinearity? Give the methods of overcoming this problem.

2005 · Paper II · Q5a · 12 marks

Solution

Multicollinearity. It is the presence of a perfect or near-perfect linear relationship among the explanatory variables of a regression model, such as λ2X2+λ3X3+…≈λ1\lambda_2X_2+\lambda_3X_3+\dots\approx\lambda_1. In the perfect case the coefficients cannot be estimated separately (X′XX'X is singular). In the near case they are estimated with large variances, leading to wide confidence intervals, insignificant tt-ratios despite a high R2R^2, unstable estimates and wrong signs.

Methods of overcoming the problem.

  1. A priori information: use known relations among the parameters, for example β3=0.1β2\beta_3=0.1\beta_2 from theory or earlier studies, and estimate the restricted model.
  2. Combining cross-section and time-series data (pooling): estimate one coefficient (say the income elasticity) from cross-section data, where income varies independently of prices, and substitute it into the time-series model to estimate the remaining coefficients.
  3. Dropping a variable: remove one of the collinear variables. But beware of specification bias: if the dropped variable truly belongs, the remaining estimates become biased.
  4. Transforming the variables: use first differences (ΔYt\Delta Y_t on ΔX2t\Delta X_{2t} and ΔX3t\Delta X_{3t}), ratios (per-capita or deflated values) or logarithms. These often remove collinearity due to common trends.
  5. Additional or new data: a larger sample, or one with more variation in the regressors, reduces the variances (since ∑xj2\sum x_j^2 increases).
  6. Ridge regression: 𝛃̂(k)=(X′X+kI)−1X′𝐘\hat{\boldsymbol\beta}(k)=(X'X+kI)^{-1}X'\mathbf Y. It is biased, but can have a much smaller mean-square error.
  7. Principal components regression / factor analysis: replace the collinear regressors by a few orthogonal principal components.
  8. Other methods: centring the variables in polynomial models; Frisch’s confluence analysis (bunch maps) to decide which variables to keep.
  9. Ignore it when the purpose is forecasting and the collinear pattern is expected to continue, or when the important coefficients are still significant.

✓ Answer checked step by step Answer checked step by step: the definition and the standard remedies.

↑ Back to the question list

Cover of the UPSC Mains Topic-wise and Year-wise PYQs book (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ Book (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Describe a method for detecting heteroscedasticity in a model.

2005 · Paper II · Q5e · 12 marks

Solution

We describe the Goldfeld–Quandt test, which is appropriate when the error variance is suspected to increase (or decrease) with one explanatory variable XX, for example σi2=σ2Xi2\sigma_i^2=\sigma^2X_i^2.

Procedure.

  1. Order the nn observations by increasing values of XX.
  2. Omit cc central observations (Goldfeld and Quandt suggest c≈n/4c\approx n/4, or about 8 when n=30n=30). Divide the remaining observations into two groups of (n−c)/2(n-c)/2 each: one with small XX and one with large XX.
  3. Fit separate OLS regressions to the two groups, and obtain the residual sums of squares RSS1RSS_1 (small XX) and RSS2RSS_2 (large XX). Each has ν=n−c2−k\nu=\frac{n-c}{2}-k degrees of freedom, where kk is the number of parameters.
  4. Compute F=RSS2/νRSS1/ν=RSS2RSS1.F=\frac{RSS_2/\nu}{RSS_1/\nu}=\frac{RSS_2}{RSS_1}.
  5. Decide: under H0H_0 (homoscedasticity), with normal and independent errors, F∼Fν,νF\sim F_{\nu,\nu}. If F>Fν,ν;αF>F_{\nu,\nu;\alpha}, reject H0H_0: the error variance increases with XX.

Rationale. If σi2\sigma_i^2 increases with XX, the large-XX group has the larger residual variance, so FF is large. Omitting the central observations sharpens the contrast and increases the power.

Assumptions: normally and independently distributed errors; heteroscedasticity monotonically related to one known variable; and enough observations in each sub-sample.

Alternatives. The Glejser test (regress |ei||e_i| on functions of XX); the Breusch–Pagan test (regress ei2/σ̃2e_i^2/\tilde\sigma^2 on suspected variables; 12ESS∼χ2\frac12\text{ESS}\sim\chi^2); White’s test (nR2nR^2 from regressing ei2e_i^2 on the regressors, their squares and cross-products).

✓ Answer checked step by step Answer checked step by step: the Goldfeld–Quandt test (with Glejser and Breusch–Pagan as alternatives).

↑ Back to the question list

Explain the method of generalized least squares for estimating the parameters of a linear model, stating the assumptions underlying it.

2005 · Paper II · Q6b · 20 marks

Solution

Assumptions of the generalised linear model.

  1. Linearity: 𝐘=X𝛃+𝐮\mathbf Y=X\boldsymbol\beta+\mathbf u, with 𝐘\mathbf Y (n×1n\times1), XX (n×kn\times k) and 𝛃\boldsymbol\beta (k×1k\times1).
  2. XX is non-stochastic (fixed in repeated samples) with full column rank k<nk<n.
  3. Zero mean errors: E(𝐮)=𝟎E(\mathbf u)=\mathbf0.
  4. Non-spherical but known error covariance: E(𝐮𝐮′)=σ2ΩE(\mathbf u\mathbf u')=\sigma^2\Omega, where Ω\Omega is a known, symmetric, positive definite matrix, and σ2\sigma^2 may be unknown. This allows heteroscedasticity (unequal diagonal elements) and autocorrelation (non-zero off-diagonal elements).
  5. (For inference) 𝐮∼N(𝟎,σ2Ω)\mathbf u\sim N(\mathbf0,\sigma^2\Omega).

The method. Because Ω≠I\Omega\ne I, OLS is not efficient. GLS minimises the weighted sum of squares S(𝛃)=(𝐘−X𝛃)′Ω−1(𝐘−X𝛃).S(\boldsymbol\beta)=(\mathbf Y-X\boldsymbol\beta)'\Omega^{-1}(\mathbf Y-X\boldsymbol\beta). Setting ∂S/∂𝛃=−2X′Ω−1𝐘+2X′Ω−1X𝛃=𝟎\partial S/\partial\boldsymbol\beta=-2X'\Omega^{-1}\mathbf Y+2X'\Omega^{-1}X\boldsymbol\beta=\mathbf0: 𝛃̂GLS=(X′Ω−1X)−1X′Ω−1𝐘.\hat{\boldsymbol\beta}_{GLS}=(X'\Omega^{-1}X)^{-1}X'\Omega^{-1}\mathbf Y .

Derivation by transformation. Find a non-singular PP with P′P=Ω−1P'P=\Omega^{-1} (so PΩP′=IP\Omega P'=I). Transform the model to P𝐘=PX𝛃+P𝐮P\mathbf Y=PX\boldsymbol\beta+P\mathbf u. The new errors have covariance σ2I\sigma^2I, so the classical model holds, and OLS on (P𝐘,PX)(P\mathbf Y,PX) gives exactly 𝛃̂GLS\hat{\boldsymbol\beta}_{GLS}.

Properties.

  • Unbiased: E(𝛃̂GLS)=𝛃E(\hat{\boldsymbol\beta}_{GLS})=\boldsymbol\beta.
  • Dispersion: σ2(X′Ω−1X)−1\sigma^2(X'\Omega^{-1}X)^{-1}, estimated with σ̂2=𝐮̂′Ω−1𝐮̂n−k.\hat\sigma^2=\frac{\hat{\mathbf u}'\Omega^{-1}\hat{\mathbf u}}{n-k}.
  • BLUE (Aitken’s theorem), and more efficient than OLS when Ω≠I\Omega\ne I.
  • Under normality it is also the maximum likelihood estimator, and it is normally distributed, so exact tt and FF tests apply.
  • It reduces to OLS when Ω=I\Omega=I.

Special cases.

  • Weighted least squares: Ω\Omega diagonal (heteroscedasticity).
  • AR(1) errors: quasi-differencing (Prais–Winsten, Cochrane–Orcutt).
  • SUR systems: Ω=Σ⊗I\Omega=\Sigma\otimes I.

In practice Ω\Omega is unknown. It is replaced by a consistent estimate (feasible or estimated GLS), which is asymptotically efficient.

✓ Answer checked step by step Answer checked step by step: the GLS assumptions, the estimator, its derivation through the transformation P, and its properties.

↑ Back to the question list

Explain briefly the problem of multicollinearity in general linear models, its consequences and solutions.

2005 · Paper II · Q6c · 20 marks

Solution

The problem. In the general linear model 𝐘=X𝛃+𝐮\mathbf Y=X\boldsymbol\beta+\mathbf u, multicollinearity arises when the columns of XX are linearly dependent (perfect multicollinearity, so X′XX'X is singular), or nearly so (high multicollinearity, so X′XX'X is ill-conditioned: a small determinant and small eigenvalues). It is a sample phenomenon, common when economic variables share trends.

Consequences.

  • Perfect: 𝛃\boldsymbol\beta is not estimable. The normal equations have infinitely many solutions, and only certain linear functions 𝐜′𝛃\mathbf c'\boldsymbol\beta (those with 𝐜\mathbf c in the row space of XX) are estimable.
  • High: OLS is still unbiased and BLUE, but:
    • D(𝛃̂)=σ2(X′X)−1D(\hat{\boldsymbol\beta})=\sigma^2(X'X)^{-1} has large elements, with Var(β̂j)=σ2VIFj/∑xj2\operatorname{Var}(\hat\beta_j)=\sigma^2VIF_j/\sum x_j^2;
    • confidence intervals are wide, and individual tt-ratios are small even when R2R^2 and FF are large;
    • the estimates are unstable and sensitive to small changes in the data, and they may have wrong signs;
    • the individual contributions of the regressors cannot be separated.

Detection: high pairwise correlations; auxiliary Rj2R_j^2 (VIF above 10); eigenvalues and condition number (above 30); Farrar–Glauber tests; a high R2R^2 with few significant tt-ratios.

Solutions.

  1. Additional or better data.
  2. Prior (extraneous) information and restricted least squares.
  3. Pooling cross-section and time-series data.
  4. Dropping variables (with care, because of specification bias).
  5. Transformations: first differences, ratios, per-capita values.
  6. Ridge regression, (X′X+kI)−1X′𝐘(X'X+kI)^{-1}X'\mathbf Y.
  7. Principal components regression.
  8. Leaving it alone if the aim is prediction.

✓ Answer checked step by step Answer checked step by step: the problem, its consequences and the standard solutions.

↑ Back to the question list

Obtain the generalized least squares technique for estimating the coefficients of a linear model. Compare this with ordinary least squares estimation.

2004 · Paper II · Q6c · 20 marks

Solution

Model. 𝐘=X𝛃+𝐮\mathbf Y=X\boldsymbol\beta+\mathbf u, with XX fixed of rank kk, E(𝐮)=𝟎E(\mathbf u)=\mathbf0 and E(𝐮𝐮′)=σ2ΩE(\mathbf u\mathbf u')=\sigma^2\Omega (with Ω\Omega known and positive definite).

GLS technique.

  1. Since Ω−1\Omega^{-1} is positive definite, choose a non-singular PP with P′P=Ω−1P'P=\Omega^{-1}, so that PΩP′=IP\Omega P'=I.
  2. Transform: P𝐘=PX𝛃+P𝐮P\mathbf Y=PX\boldsymbol\beta+P\mathbf u, i.e. 𝐘*=X*𝛃+𝐮*\mathbf Y^*=X^*\boldsymbol\beta+\mathbf u^*, with E(𝐮*𝐮*′)=σ2IE(\mathbf u^*\mathbf u^{*\prime})=\sigma^2I.
  3. Apply OLS to the transformed model: 𝛃̂GLS=(X*′X*)−1X*′𝐘*\hat{\boldsymbol\beta}_{GLS}=(X^{*\prime}X^*)^{-1}X^{*\prime}\mathbf Y^* =(X′Ω−1X)−1X′Ω−1𝐘.=(X'\Omega^{-1}X)^{-1}X'\Omega^{-1}\mathbf Y . Equivalently, it minimises (𝐘−X𝛃)′Ω−1(𝐘−X𝛃)(\mathbf Y-X\boldsymbol\beta)'\Omega^{-1}(\mathbf Y-X\boldsymbol\beta).
  4. It is unbiased, with D(𝛃̂GLS)=σ2(X′Ω−1X)−1D(\hat{\boldsymbol\beta}_{GLS})=\sigma^2(X'\Omega^{-1}X)^{-1} and σ̂2=𝐞′Ω−1𝐞n−k,𝐞=𝐘−X𝛃̂GLS.\hat\sigma^2=\frac{\mathbf e'\Omega^{-1}\mathbf e}{n-k},\qquad \mathbf e=\mathbf Y-X\hat{\boldsymbol\beta}_{GLS}.

Aitken’s theorem. The transformed model satisfies the Gauss–Markov assumptions, so 𝛃̂GLS\hat{\boldsymbol\beta}_{GLS} is BLUE.

Comparison with OLS. The OLS estimator is 𝛃̂OLS=(X′X)−1X′𝐘\hat{\boldsymbol\beta}_{OLS}=(X'X)^{-1}X'\mathbf Y.

  1. Unbiasedness: both are unbiased.
  2. Dispersion: D(𝛃̂OLS)D(\hat{\boldsymbol\beta}_{OLS}) =σ2(X′X)−1X′ΩX(X′X)−1,=\sigma^2(X'X)^{-1}X'\Omega X(X'X)^{-1}, D(𝛃̂GLS)=σ2(X′Ω−1X)−1.D(\hat{\boldsymbol\beta}_{GLS})=\sigma^2(X'\Omega^{-1}X)^{-1}. Proof that GLS is at least as efficient: write 𝛃̂OLS=C𝐘\hat{\boldsymbol\beta}_{OLS}=C\mathbf Y, with C=(X′X)−1X′=A+DC=(X'X)^{-1}X'=A+D, where A=(X′Ω−1X)−1X′Ω−1A=(X'\Omega^{-1}X)^{-1}X'\Omega^{-1}. Then CX=AX=ICX=AX=I, so DX=0DX=0. Hence D(𝛃̂OLS)=σ2CΩC′D(\hat{\boldsymbol\beta}_{OLS})=\sigma^2C\Omega C' =σ2(AΩA′+DΩD′)=\sigma^2(A\Omega A'+D\Omega D') +σ2(AΩD′+DΩA′).{}+\sigma^2(A\Omega D'+D\Omega A'). Now AΩD′=(X′Ω−1X)−1X′D′=0A\Omega D'=(X'\Omega^{-1}X)^{-1}X'D'=0, since DX=0DX=0. So D(𝛃̂OLS)=D(𝛃̂GLS)+σ2DΩD′,D(\hat{\boldsymbol\beta}_{OLS})=D(\hat{\boldsymbol\beta}_{GLS})+\sigma^2D\Omega D', and DΩD′D\Omega D' is non-negative definite.
  3. Standard errors: when Ω≠I\Omega\ne I, the usual OLS formula s2(X′X)−1s^2(X'X)^{-1} is biased, so OLS tests are invalid. GLS provides correct standard errors.
  4. Information: OLS needs no knowledge of Ω\Omega. GLS needs Ω\Omega (in practice estimated: feasible GLS).
  5. Coincidence: if Ω=I\Omega=I, or more generally if XX’s columns span an invariant subspace of Ω\Omega, the two estimators are identical.
  6. Robustness: OLS remains consistent and unbiased even if Ω\Omega is mis-specified. FGLS with a wrong Ω\Omega loses its efficiency advantage.

✓ Proof checked step by step Proof checked step by step: the GLS estimator via the transformation P, Aitken’s theorem, and the OLS–GLS comparison of dispersion matrices.

↑ Back to the question list

How does one detect heteroscedasticity in linear – models? What are the implications of heteroscedasticity in estimating the regression coefficients?

2003 · Paper II · Q6b · 20 marks

Solution

Detecting heteroscedasticity in linear models.

Informal methods:

  • Nature of the problem: cross-section data on units of different sizes often show heteroscedasticity.
  • Residual plots: plot ei2e_i^2 against Ŷi\hat Y_i or against each XjX_j. A systematic pattern (a fan or funnel shape) suggests heteroscedasticity.

Formal tests:

  1. Park test: regress lnei2\ln e_i^2 on lnXi\ln X_i.
  2. Glejser test: regress |ei||e_i| on XiX_i, Xi\sqrt{X_i}, 1/Xi1/X_i, …
  3. Spearman’s rank correlation test between |ei||e_i| and XiX_i.
  4. Goldfeld–Quandt test: order by XX, omit the central observations, and use F=RSS2/RSS1F=RSS_2/RSS_1.
  5. Breusch–Pagan–Godfrey test: 12ESS\frac12\text{ESS} from regressing ei2/σ̃2e_i^2/\tilde\sigma^2 on the suspected variables, ∼χ2\sim\chi^2.
  6. White’s general test: nR2nR^2 from regressing ei2e_i^2 on the regressors, their squares and cross-products, ∼χ2\sim\chi^2.

A significant result in each case indicates heteroscedasticity.

Implications for estimating the regression coefficients.

  1. Unbiasedness and consistency are retained: E(𝛃̂OLS)=𝛃E(\hat{\boldsymbol\beta}_{OLS})=\boldsymbol\beta, because unbiasedness needs only E(𝐮)=𝟎E(\mathbf u)=\mathbf0.
  2. Efficiency is lost: OLS is not BLUE. GLS or WLS, with weights inversely proportional to the variances, gives smaller variances.
  3. The variance formula is wrong: with Σ=diag(σi2)\Sigma=\operatorname{diag}(\sigma_i^2), D(𝛃̂)D(\hat{\boldsymbol\beta}) =(X′X)−1X′ΣX(X′X)−1,=(X'X)^{-1}X'\Sigma X(X'X)^{-1}, not σ2(X′X)−1\sigma^2(X'X)^{-1}. In the simple model, Var(β̂2)=∑xi2σi2(∑xi2)2.\operatorname{Var}(\hat\beta_2)=\frac{\sum x_i^2\sigma_i^2}{\left(\sum x_i^2\right)^2}. The conventional estimate is biased, usually downward when the variance increases with x2x^2.
  4. Hypothesis tests and confidence intervals are invalid, since the tt and FF statistics do not have their nominal distributions.
  5. Remedies:
    • WLS or GLS with a known (or estimated) variance structure;
    • a transformation of the variables (for example logarithms, or deflating by a size variable);
    • OLS with White’s heteroscedasticity-consistent covariance matrix, (X′X)−1(∑ei2𝐱i𝐱i′)(X′X)−1(X'X)^{-1}\left(\sum e_i^2\mathbf x_i\mathbf x_i'\right)(X'X)^{-1}, which gives valid large-sample inference.

✓ Answer checked step by step Answer checked step by step: the detection methods, and the implications for the regression coefficients and their variances.

↑ Back to the question list

In the standard linear model with Y=Xβ+ε, with ε∼N(0,σ2), show that the maximum likelihood estimates β̂ of β have the distribution β̂∼N(β,σ2(X′X)−1) assuming X′X to be an invertible matrix.

2003 · Paper II · Q6c · 20 marks

Solution

Note on the question. “ε∼N(0,σ2)\varepsilon\sim N(0,\sigma^2)” is read, as usual, as 𝛆∼Nn(𝟎,σ2In)\boldsymbol\varepsilon\sim N_n(\mathbf0,\sigma^2I_n): independent errors with mean 0 and common variance σ2\sigma^2.

Maximum likelihood estimate. 𝐘∼Nn(X𝛃,σ2I)\mathbf Y\sim N_n(X\boldsymbol\beta,\sigma^2I), so L(𝛃,σ2)L(\boldsymbol\beta,\sigma^2) =(2πσ2)−n/2exp{−S(𝛃)2σ2},=(2\pi\sigma^2)^{-n/2}\exp\left\{-\frac{S(\boldsymbol\beta)}{2\sigma^2}\right\}, where S(𝛃)=(𝐘−X𝛃)′(𝐘−X𝛃)S(\boldsymbol\beta)=(\mathbf Y-X\boldsymbol\beta)'(\mathbf Y-X\boldsymbol\beta). For any σ2\sigma^2, LL is maximised over 𝛃\boldsymbol\beta by minimising the quadratic form. Setting −2X′(𝐘−X𝛃)=𝟎-2X'(\mathbf Y-X\boldsymbol\beta)=\mathbf0 gives X′X𝛃=X′𝐘X'X\boldsymbol\beta=X'\mathbf Y. Since X′XX'X is invertible, 𝛃̂=(X′X)−1X′𝐘.\hat{\boldsymbol\beta}=(X'X)^{-1}X'\mathbf Y .

Distribution. 𝛃̂=A𝐘\hat{\boldsymbol\beta}=A\mathbf Y, with A=(X′X)−1X′A=(X'X)^{-1}X' a fixed k×nk\times n matrix. A linear transformation of a multivariate normal vector is multivariate normal: 𝐘∼Nn(𝛍,V)\mathbf Y\sim N_n(\boldsymbol\mu,V) ⇒A𝐘∼Nk(A𝛍,AVA′).\Longrightarrow\ A\mathbf Y\sim N_k(A\boldsymbol\mu,AVA') . Here:

  • Mean: A𝛍=(X′X)−1X′X𝛃=𝛃A\boldsymbol\mu=(X'X)^{-1}X'X\boldsymbol\beta=\boldsymbol\beta.
  • Dispersion: AVA′AVA' =(X′X)−1X′(σ2I)X(X′X)−1=(X'X)^{-1}X'(\sigma^2I)X(X'X)^{-1} =σ2(X′X)−1=\sigma^2(X'X)^{-1}.

Therefore 𝛃̂∼Nk(𝛃,σ2(X′X)−1).◼\boxed{\hat{\boldsymbol\beta}\sim N_k\left(\boldsymbol\beta,\ \sigma^2(X'X)^{-1}\right)}.\ \blacksquare

(The linear-transformation property follows, for example, from the moment generating function: E(e𝐭′A𝐘)=exp(𝐭′A𝛍+12𝐭′AVA′𝐭),E\left(e^{\mathbf t'A\mathbf Y}\right)=\exp\left(\mathbf t'A\boldsymbol\mu+\tfrac12\mathbf t'AVA'\mathbf t\right), which is the m.g.f. of N(A𝛍,AVA′)N(A\boldsymbol\mu,AVA').) Consequences: each β̂j∼N(βj,σ2cjj)\hat\beta_j\sim N(\beta_j,\sigma^2c_{jj}), where cjjc_{jj} is the jj-th diagonal element of (X′X)−1(X'X)^{-1}. Since 𝛃̂\hat{\boldsymbol\beta} is independent of 𝐞′𝐞/σ2∼χn−k2\mathbf e'\mathbf e/\sigma^2\sim\chi^2_{n-k}, the ratio (β̂j−βj)/(scjj)(\hat\beta_j-\beta_j)/(s\sqrt{c_{jj}}) follows tn−kt_{n-k}.

✓ Proof checked step by step Proof checked step by step: the ML estimator equals (X′X)⁻¹X′Y, a linear function of a normal vector, with mean β and dispersion σ²(X′X)⁻¹.

↑ Back to the question list

Explain the term autocorrelation. What are the consequences of auto-correlation? Explain how the Durbin-Watson d statistic is used to detect the presence of autocorrelation?

2002 · Paper II · Q6b · 20 marks

Solution

Autocorrelation. It is correlation between members of a series of observations ordered in time (or space). In regression it means that the disturbances are correlated: E(utut−s)≠0(s≠0).E(u_tu_{t-s})\ne0\quad(s\ne0). The usual pattern is first-order: ut=ρut−1+εtu_t=\rho u_{t-1}+\varepsilon_t. It is positive (ρ>0\rho>0) when a positive error tends to be followed by another positive error, which shows up as runs in the residual plot.

Consequences.

  1. OLS estimates remain unbiased and consistent (with non-stochastic regressors).
  2. They are inefficient; GLS is better.
  3. The variances of the estimates are wrongly estimated, usually underestimated when ρ>0\rho>0. σ2\sigma^2 is underestimated and R2R^2 inflated.
  4. tt and FF tests are invalid: insignificant variables may appear significant.
  5. Forecasts are inefficient.
  6. With a lagged dependent variable, OLS is biased and inconsistent.

Using the Durbin–Watson dd statistic.

  1. Estimate the model by OLS and obtain the residuals ete_t.
  2. Compute d=∑t=2n(et−et−1)2∑t=1net2d=\frac{\sum_{t=2}^n(e_t-e_{t-1})^2}{\sum_{t=1}^ne_t^2} ≈2(1−ρ̂).\approx2(1-\hat\rho).
  3. For the given nn, number of regressors k′k' and level α\alpha, find dLd_L and dUd_U from the Durbin–Watson tables.
  4. Decide on H0:ρ=0H_0:\rho=0:
    • d<dLd<d_L: positive autocorrelation;
    • d>4−dLd>4-d_L: negative autocorrelation;
    • dU<d<4−dUd_U<d<4-d_U: no autocorrelation;
    • otherwise (dL≤d≤dUd_L\le d\le d_U or 4−dU≤d≤4−dL4-d_U\le d\le4-d_L): inconclusive.

Interpretation: dd near 2 means no first-order autocorrelation; dd near 0 means strong positive autocorrelation; dd near 4 means strong negative autocorrelation.

Conditions: there is an intercept; the regressors are non-stochastic (no lagged YY); the errors follow AR(1) and are normal; there are no gaps in the data.

✓ Answer checked step by step Answer checked step by step: the definition, the consequences, and the use of d with its bounds.

↑ Back to the question list

Discuss the problem of heteroscedasticity in linear models. Describe Glejser test for detecting heteroscedasticity. What are the difficulties in using Glejser test? How do you overcome these difficulties?

2002 · Paper II · Q6c · 20 marks

Solution

The problem of heteroscedasticity. In the linear model 𝐘=X𝛃+𝐮\mathbf Y=X\boldsymbol\beta+\mathbf u, the error variances differ across observations, Var(ui)=σi2\operatorname{Var}(u_i)=\sigma_i^2. OLS remains unbiased and consistent, but it is not efficient, and its conventional standard errors are biased, so tt and FF tests and confidence intervals are unreliable. It typically arises in cross-section data, where variability grows with the size of the units.

The Glejser test.

  1. Estimate the model by OLS and obtain the residuals eie_i.
  2. Regress the absolute residuals on the variable XjX_j thought to be associated with σi\sigma_i, trying several functional forms: |ei|=γ1+γ2Xi+vi,|ei|=γ1|e_i|=\gamma_1{}+\gamma_2X_i{}+v_i,\qquad |e_i|=\gamma_1 +γ2Xi+vi,|ei|=γ1{}+\gamma_2\sqrt{X_i}{}+v_i,\qquad |e_i|=\gamma_1 +γ21Xi+vi,|ei|=γ1{}+\gamma_2\frac1{X_i}{}+v_i,\qquad |e_i|=\gamma_1 +γ21Xi+vi,{}+\gamma_2\frac1{\sqrt{X_i}}{}+v_i, and non-linear forms such as |ei|=γ1+γ2Xi+vi|e_i|=\sqrt{\gamma_1+\gamma_2X_i}+v_i or |ei|=γ1+γ2Xi2+vi|e_i|=\sqrt{\gamma_1+\gamma_2X_i^2}+v_i.
  3. Test H0:γ2=0H_0:\gamma_2=0 with the usual tt test. If γ2\gamma_2 is significant, conclude heteroscedasticity. The form with the best fit suggests how σi\sigma_i depends on XX, which can then be used to construct the weights for WLS.

Difficulties in using the Glejser test.

  1. The auxiliary disturbances viv_i do not satisfy the classical assumptions. They have a non-zero expected value, are serially correlated, and are themselves heteroscedastic. So the OLS tt test in the auxiliary regression is not exact, and is valid only in large samples.
  2. Non-linear forms: some of the specifications are non-linear in the parameters and cannot be estimated by OLS.
  3. Choice of form and variable: the result depends on which variable and which functional form are tried. With several plausible regressors this becomes a specification search.
  4. The residuals eie_i are not the true uiu_i: the eie_i are correlated and heteroscedastic even when the uiu_i are not, which distorts small-sample results.

How to overcome them.

  1. Use large samples. Glejser found the test satisfactory in large samples, and useful as a guide to the form of the heteroscedasticity in small ones.
  2. Use the linear-in-parameters forms (estimable by OLS), or non-linear least squares for the others.
  3. Use the test as exploratory, and confirm with tests whose distributions are better established: Goldfeld–Quandt (an exact FF under normality), Breusch–Pagan–Godfrey, or White’s general test (which needs no form to be specified, nR2∼χ2nR^2\sim\chi^2).
  4. Use robust inference: for the auxiliary regression, or for the main model, use heteroscedasticity-consistent (White) standard errors.
  5. Use studentised or recursive residuals, which are closer to independent and homoscedastic under the null.

✓ Answer checked step by step Answer checked step by step: the Glejser procedure, its difficulties (non-zero mean, heteroscedastic and correlated auxiliary errors, non-linear forms) and the remedies.

↑ Back to the question list

Describe a general linear model (GLM) in K independent variables. Justify the inclusion of a random error term in this model.

2001 · Paper II · Q5b · 12 marks

Solution

General linear model in KK independent variables. Yi=β0+β1X1i+β2X2i+…Y_i=\beta_0{}+\beta_1X_{1i}{}+\beta_2X_{2i}{}+\dots +βKXKi+ui,i=1,…,n,{}+\beta_KX_{Ki}{}+u_i,\qquad i=1,\dots,n, or in matrix form 𝐘=X𝛃+𝐮\mathbf Y=X\boldsymbol\beta+\mathbf u. Here:

  • 𝐘\mathbf Y (n×1n\times1) holds the observations on the dependent variable;
  • XX (n×(K+1)n\times(K+1)) has a first column of ones and the values of the KK regressors;
  • 𝛃\boldsymbol\beta ((K+1)×1(K+1)\times1) holds the unknown parameters;
  • 𝐮\mathbf u (n×1n\times1) holds the random disturbances.

Assumptions (classical):

  1. The model is linear in the parameters.
  2. XX is non-stochastic, with rank K+1<nK+1<n (no perfect multicollinearity).
  3. E(𝐮)=𝟎E(\mathbf u)=\mathbf0.
  4. E(𝐮𝐮′)=σ2InE(\mathbf u\mathbf u')=\sigma^2I_n (homoscedastic, non-autocorrelated errors).
  5. For inference, 𝐮∼N(𝟎,σ2I)\mathbf u\sim N(\mathbf0,\sigma^2I).

βj\beta_j measures the change in E(Y)E(Y) for a unit change in XjX_j, other regressors held constant.

Justification of the random error term. An economic relation is never exact. The disturbance uiu_i represents:

  1. Omitted variables: many minor influences (tastes, weather, expectations) that cannot all be included. Their combined effect is treated as random.
  2. Randomness of human behaviour: even with identical incomes and prices, people act differently.
  3. Errors of measurement in YY (and in the XX’s), and errors of aggregation over individuals.
  4. Incorrect functional form: the true relation may be non-linear, and the linear form is an approximation.
  5. Unavailability of data: some variables (for example wealth or ability) are unobservable, and proxies are imperfect.
  6. Principle of parsimony: we deliberately keep the model simple and absorb the rest into uu.

Without uiu_i the model would claim an exact relation, contradicted by the data (no line passes through all the points). Including it lets us treat the relation statistically: estimate 𝛃\boldsymbol\beta, measure the goodness of fit, and test hypotheses using the probability distribution of uu.

✓ Answer checked step by step Answer checked step by step: the K-variable model, its assumptions, and the reasons for the disturbance term.

↑ Back to the question list

Explain Durbin-Watson test for auto correlation in a GLM.

2001 · Paper II · Q5c · 12 marks

Solution

(This is the same question as Q27 (2011, 6a) above. The worked solution is repeated here so that each question is complete.)

Purpose. In the general linear model 𝐘=X𝛃+𝐮\mathbf Y=X\boldsymbol\beta+\mathbf u, the Durbin–Watson (DW) test checks for first-order autocorrelation of the disturbances, ut=ρut−1+εtu_t=\rho u_{t-1}+\varepsilon_t, by testing H0:ρ=0againstH1:ρH_0:\rho=0\qquad \text{against}\qquad H_1:\rho >0(or ρ<0).>0\ \ (\text{or }\rho<0).

Statistic. Fit the model by OLS and obtain the residuals 𝐞=M𝐮\mathbf e=M\mathbf u, where M=I−X(X′X)−1X′M=I-X(X'X)^{-1}X'. Then d=∑t=2n(et−et−1)2∑t=1net2=𝐞′A𝐞𝐞′𝐞,d=\frac{\sum_{t=2}^n(e_t-e_{t-1})^2}{\sum_{t=1}^ne_t^2}=\frac{\mathbf e'A\mathbf e}{\mathbf e'\mathbf e}, where AA is the tridiagonal matrix with diagonal (1,2,…,2,1)(1,2,\dots,2,1) and off-diagonals −1-1. Expanding, d=∑et2+∑et−12−2∑etet−1∑et2d=\frac{\sum e_t^2+\sum e_{t-1}^2-2\sum e_te_{t-1}}{\sum e_t^2} ≈2(1−ρ̂),ρ̂=∑etet−1∑et2.\approx2(1-\hat\rho),\qquad \hat\rho=\frac{\sum e_te_{t-1}}{\sum e_t^2}. Since −1≤ρ̂≤1-1\le\hat\rho\le1, we have 0≤d≤40\le d\le4.

Distribution and bounds. The exact null distribution of dd depends on XX through MM. Durbin and Watson showed that it lies between two distributions that do not depend on XX, giving lower and upper bounds dLd_L and dUd_U. These are tabulated for sample size nn, number of regressors k′k' (excluding the constant) and level α\alpha.

Decision rule.

dd Conclusion
0≤d<dL0\le d<d_L Reject H0H_0: evidence of positive autocorrelation
dL≤d≤dUd_L\le d\le d_U Zone of indecision
dU<d<4−dUd_U<d<4-d_U Do not reject H0H_0
4−dU≤d≤4−dL4-d_U\le d\le4-d_L Zone of indecision
4−dL<d≤44-d_L<d\le4 Reject H0H_0: evidence of negative autocorrelation

Assumptions.

  1. The model includes an intercept.
  2. XX is non-stochastic. In particular, there is no lagged dependent variable among the regressors; for that case use Durbin’s hh statistic, h=ρ̂n1−nV∼N(0,1),h=\hat\rho\sqrt{\frac{n}{1-nV}}\sim N(0,1), where VV is the estimated variance of the coefficient of Yt−1Y_{t-1}.
  3. The disturbances follow a first-order autoregressive scheme and are normally distributed.
  4. There are no missing observations (the data are equally spaced).

Limitations. There is an inconclusive region (which exact or approximate methods can resolve); it detects only first-order autocorrelation; and it is invalid with lagged YY. Modern practice also uses the Breusch–Godfrey LM test, which allows higher-order schemes and lagged dependent variables.

✓ Answer checked step by step Answer checked step by step: the statistic, its relation to ρ̂, the bounds procedure and the assumptions of the test.

↑ Back to the question list

Explain the generalized least squares (GLS) method of estimation. Also obtain the GLS estimate of β in the model yt=βxt+ut,t=1,2,…,n with E(ut)=0,E(ut2)=σ2xt and E(utut)=0 if t≠t′

2000 · Paper II · Q6b · 25 marks

Solution

The GLS method. In 𝐘=X𝛃+𝐮\mathbf Y=X\boldsymbol\beta+\mathbf u, with E(𝐮)=𝟎E(\mathbf u)=\mathbf0 and E(𝐮𝐮′)=σ2ΩE(\mathbf u\mathbf u')=\sigma^2\Omega (Ω\Omega known and positive definite, not II), OLS is inefficient. GLS minimises (𝐘−X𝛃)′Ω−1(𝐘−X𝛃),(\mathbf Y-X\boldsymbol\beta)'\Omega^{-1}(\mathbf Y-X\boldsymbol\beta), which gives 𝛃̂GLS=(X′Ω−1X)−1X′Ω−1𝐘,\hat{\boldsymbol\beta}_{GLS}=(X'\Omega^{-1}X)^{-1}X'\Omega^{-1}\mathbf Y, D(𝛃̂GLS)=σ2(X′Ω−1X)−1.D(\hat{\boldsymbol\beta}_{GLS})=\sigma^2(X'\Omega^{-1}X)^{-1}. Equivalently, find PP with P′P=Ω−1P'P=\Omega^{-1}, transform the data by PP so that the errors become spherical, and apply OLS. By Aitken’s theorem GLS is BLUE.

The model. yt=βxt+uty_t=\beta x_t+u_t, t=1,…,nt=1,\dots,n, with E(ut)=0E(u_t)=0, E(ut2)=σ2xtE(u_t^2)=\sigma^2x_t (xt>0x_t>0) and E(utut′)=0E(u_tu_{t'})=0 for t≠t′t\ne t'. (The question’s “E(utut)=0E(u_tu_t)=0 if t≠t′t\ne t'” is read as E(utut′)=0E(u_tu_{t'})=0.)

So Ω=diag(x1,…,xn)\Omega=\operatorname{diag}(x_1,\dots,x_n), and Ω−1=diag(1/xt)\Omega^{-1}=\operatorname{diag}(1/x_t), with X=(x1,…,xn)′X=(x_1,\dots,x_n)'. X′Ω−1X=∑txt2⋅1xt=∑xt,X'\Omega^{-1}X=\sum_t x_t^2\cdot\frac1{x_t}=\sum x_t, X′Ω−1𝐲=∑txtyt⋅1xt=∑yt.X'\Omega^{-1}\mathbf y=\sum_t x_ty_t\cdot\frac1{x_t}=\sum y_t . Hence β̂GLS=∑t=1nyt∑t=1nxt=y‾x‾,\boxed{\hat\beta_{GLS}=\frac{\sum_{t=1}^ny_t}{\sum_{t=1}^nx_t}=\frac{\bar y}{\bar x}}, Var(β̂GLS)=σ2∑xt.\boxed{\operatorname{Var}(\hat\beta_{GLS})=\frac{\sigma^2}{\sum x_t}}.

Check by transformation: divide by xt\sqrt{x_t}, giving yt/xt=βxt+ut/xty_t/\sqrt{x_t}=\beta\sqrt{x_t}+u_t/\sqrt{x_t}, whose error has constant variance σ2\sigma^2. OLS through the origin gives ∑xtyt/xt∑xt=∑yt∑xt.\frac{\sum\sqrt{x_t}\,y_t/\sqrt{x_t}}{\sum x_t}=\frac{\sum y_t}{\sum x_t}. The same result. (This is the ratio estimator.)

Comparison with OLS. β̂OLS=∑xtyt/∑xt2\hat\beta_{OLS}=\sum x_ty_t/\sum x_t^2 is unbiased, with Var(β̂OLS)=σ2∑xt3(∑xt2)2≥σ2∑xt\operatorname{Var}(\hat\beta_{OLS})=\frac{\sigma^2\sum x_t^3}{\left(\sum x_t^2\right)^2}\ \ge\ \frac{\sigma^2}{\sum x_t} by the Cauchy–Schwarz inequality, (∑xt2)2≤∑xt∑xt3\left(\sum x_t^2\right)^2\le\sum x_t\sum x_t^3.

✓ Derivation checked step by step Derivation checked step by step, and by simulation in Python (Var(u_t) = 2x_t): the variance of Σy/Σx was 0.0338 against σ²/Σx = 0.0333.

↑ Back to the question list

Specify the general linear model. Show that under certain conditions (to be stated), the least squares and the maximum likelihood methods produce identical estimators of the coefficients in the model.

1999 · Paper II · Q11a · 20 marks

Solution

The general linear model. 𝐘=X𝛃+𝐮,\mathbf Y=X\boldsymbol\beta+\mathbf u, where 𝐘\mathbf Y is n×1n\times1, XX is n×kn\times k and 𝛃\boldsymbol\beta is k×1k\times1.

Conditions:

  1. XX is non-stochastic, of rank k<nk<n.
  2. E(𝐮)=𝟎E(\mathbf u)=\mathbf0.
  3. E(𝐮𝐮′)=σ2InE(\mathbf u\mathbf u')=\sigma^2I_n (homoscedastic, uncorrelated errors).
  4. The disturbances are normally distributed: 𝐮∼Nn(𝟎,σ2In)\mathbf u\sim N_n(\mathbf0,\sigma^2I_n).

Least squares estimator. Minimise S(𝛃)=(𝐘−X𝛃)′(𝐘−X𝛃)S(\boldsymbol\beta)=(\mathbf Y-X\boldsymbol\beta)'(\mathbf Y-X\boldsymbol\beta). Then ∂S∂𝛃=−2X′𝐘+2X′X𝛃=𝟎⇒𝛃̂LS\frac{\partial S}{\partial\boldsymbol\beta}=-2X'\mathbf Y{}+2X'X\boldsymbol\beta=\mathbf0\Longrightarrow\ \hat{\boldsymbol\beta}_{LS} =(X′X)−1X′𝐘.=(X'X)^{-1}X'\mathbf Y .

Maximum likelihood estimator. Under condition 4, 𝐘∼Nn(X𝛃,σ2I)\mathbf Y\sim N_n(X\boldsymbol\beta,\sigma^2I), and the log-likelihood is ℓ(𝛃,σ2)=−n2log(2π)\ell(\boldsymbol\beta,\sigma^2)=-\frac n2\log(2\pi) −n2logσ2−12σ2S(𝛃).{}-\frac n2\log\sigma^2{}-\frac{1}{2\sigma^2}S(\boldsymbol\beta). For any fixed σ2>0\sigma^2>0, ℓ\ell depends on 𝛃\boldsymbol\beta only through −S(𝛃)/(2σ2)-S(\boldsymbol\beta)/(2\sigma^2). So ℓ\ell is maximised over 𝛃\boldsymbol\beta exactly where S(𝛃)S(\boldsymbol\beta) is minimised: ∂ℓ∂𝛃=1σ2X′(𝐘−X𝛃)=𝟎⇒𝛃̂ML\frac{\partial\ell}{\partial\boldsymbol\beta}=\frac1{\sigma^2}X'(\mathbf Y-X\boldsymbol\beta)=\mathbf0\Longrightarrow\ \hat{\boldsymbol\beta}_{ML} =(X′X)−1X′𝐘=𝛃̂LS.=(X'X)^{-1}X'\mathbf Y=\hat{\boldsymbol\beta}_{LS}. This does not depend on σ2\sigma^2, so it is also the joint maximiser. Then ∂ℓ∂σ2=0⇒σ̂ML2\frac{\partial\ell}{\partial\sigma^2}=0\Longrightarrow\ \hat\sigma^2_{ML} =(𝐘−X𝛃̂)′(𝐘−X𝛃̂)n.=\frac{(\mathbf Y-X\hat{\boldsymbol\beta})'(\mathbf Y-X\hat{\boldsymbol\beta})}{n}.

Conclusion. Under normal, homoscedastic, independent errors, the least squares and maximum likelihood methods give identical estimators of 𝛃\boldsymbol\beta. They differ only in the estimate of σ2\sigma^2: ML divides by nn (biased), while the unbiased least squares estimate divides by n−kn-k. ◼\blacksquare

Remarks.

  • If E(𝐮𝐮′)=σ2ΩE(\mathbf u\mathbf u')=\sigma^2\Omega with Ω\Omega known, the MLE coincides with the GLS estimator instead.
  • If the errors are not normal (for example Laplace), the MLE differs from least squares (least absolute deviations, in the Laplace case).

✓ Proof checked step by step Proof checked step by step: the log-likelihood under N(0, σ²I) is maximised in β exactly where the residual sum of squares is minimised.

↑ Back to the question list

Explain the problem of multicollinearity. Interpret it algebraically and geometrically. Suggest methods to overcome the problem.

1999 · Paper II · Q11b · 20 marks

Solution

The problem. In 𝐘=X𝛃+𝐮\mathbf Y=X\boldsymbol\beta+\mathbf u, multicollinearity is the existence of exact or near-exact linear relations among the columns of XX (the explanatory variables). Exact relations make the individual coefficients indeterminate. Near relations make them very imprecise: large variances, insignificant tt-ratios with a high R2R^2, instability and wrong signs.

Algebraic interpretation.

  • Perfect multicollinearity: there is 𝐜≠𝟎\mathbf c\ne\mathbf0 with X𝐜=𝟎X\mathbf c=\mathbf0, so rankX<k\operatorname{rank}X<k and X′XX'X is singular, |X′X|=0|X'X|=0. The normal equations X′X𝛃=X′𝐘X'X\boldsymbol\beta=X'\mathbf Y have infinitely many solutions. If 𝛃̂\hat{\boldsymbol\beta} is one, so is 𝛃̂+t𝐜\hat{\boldsymbol\beta}+t\mathbf c. Only functions 𝐚′𝛃\mathbf a'\boldsymbol\beta with 𝐚\mathbf a in the row space of XX are estimable.
  • Near multicollinearity: X𝐜≈𝟎X\mathbf c\approx\mathbf0, so X′XX'X has a very small eigenvalue λmin\lambda_{\min} and a near-zero determinant. Since D(𝛃̂)=σ2(X′X)−1D(\hat{\boldsymbol\beta})=\sigma^2(X'X)^{-1} =σ2∑j𝐯j𝐯j′λj,=\sigma^2\sum_j\frac{\mathbf v_j\mathbf v_j'}{\lambda_j}, the variance in the direction of 𝐯min\mathbf v_{\min} is σ2/λmin\sigma^2/\lambda_{\min}, which is huge. Individually, Var(β̂j)=σ2∑xj2⋅11−Rj2,\operatorname{Var}(\hat\beta_j)=\frac{\sigma^2}{\sum x_j^2}\cdot\frac1{1-R_j^2}, which explodes as Rj2→1R_j^2\to1.

Geometric interpretation.

  • Think of each regressor as a vector in nn-dimensional observation space. OLS projects 𝐘\mathbf Y onto the space spanned by these vectors, and 𝛃̂\hat{\boldsymbol\beta} gives the coordinates of the projection in terms of the regressor vectors.
  • If two regressor vectors, 𝐱2\mathbf x_2 and 𝐱3\mathbf x_3, point in nearly the same direction (the angle between them is small, cosθ=r23≈1\cos\theta=r_{23}\approx1), the plane they span is poorly determined. Expressing the projection in terms of these two nearly parallel vectors is unstable: a tiny change in 𝐘\mathbf Y changes the coordinates enormously, though the fitted vector 𝐘̂\hat{\mathbf Y} (and so R2R^2) hardly changes. In the perfect case the vectors are collinear, and the coordinates are not unique.
  • Equivalently, the residual sum of squares surface S(𝛃)S(\boldsymbol\beta), whose contours are ellipses in 𝛃\boldsymbol\beta-space, becomes a long, narrow ridge. Many very different (β2,β3)(\beta_2,\beta_3) pairs give almost the same fit, and the confidence ellipse is elongated along the direction 𝐯min\mathbf v_{\min}.
  • In the Ballentine (Venn diagram) picture, the circles for X2X_2 and X3X_3 overlap almost completely, so little information is left to separate their effects.

Methods to overcome the problem.

  1. Obtain more data, or data with more independent variation.
  2. Use a priori information or restrictions (restricted least squares).
  3. Combine cross-section and time-series information.
  4. Drop a collinear variable, if theory allows (beware of specification bias).
  5. Transform the variables: first differences, ratios, deflation.
  6. Ridge regression, (X′X+kI)−1X′𝐘(X'X+kI)^{-1}X'\mathbf Y: a small bias for a large variance reduction.
  7. Principal components regression: use orthogonal combinations of the regressors and drop the components with tiny eigenvalues.

✓ Answer checked step by step Answer checked step by step: the algebraic (rank, eigenvalue, VIF) and geometric (near-coplanar regressor vectors, ridge-shaped SS surface) interpretations, and the remedies.

↑ Back to the question list

State the problem of autocorrelation and its effect on the least squares estimator, Describe the Durbin-Watson procedure for testing autocorrelation.

1999 · Paper II · Q11c · 20 marks

Solution

The problem of autocorrelation. The least squares method assumes E(utus)=0E(u_tu_s)=0 for t≠st\ne s. In time-series regressions the disturbances are often serially correlated, typically following ut=ρut−1+εt,|ρ|<1.u_t=\rho u_{t-1}+\varepsilon_t,\qquad |\rho|<1 . This arises from inertia in economic variables, omitted autocorrelated variables, mis-specified dynamics or functional form, and data smoothing.

Effect on the least squares estimator.

  • 𝛃̂=(X′X)−1X′𝐘\hat{\boldsymbol\beta}=(X'X)^{-1}X'\mathbf Y is still unbiased (and consistent, with exogenous regressors).
  • It is not best: its dispersion σ2(X′X)−1X′ΩX(X′X)−1\sigma^2(X'X)^{-1}X'\Omega X(X'X)^{-1} exceeds that of GLS, σ2(X′Ω−1X)−1\sigma^2(X'\Omega^{-1}X)^{-1}.
  • The usual estimate s2(X′X)−1s^2(X'X)^{-1} is biased. With positive autocorrelation and trending regressors it understates the true variances, and s2s^2 underestimates σu2\sigma_u^2.
  • Consequently tt and FF tests overstate significance, confidence intervals are too narrow, and R2R^2 is inflated.
  • With a lagged dependent variable as a regressor, OLS is inconsistent.

The Durbin–Watson procedure.

  1. Fit OLS and compute the residuals ete_t.
  2. Compute d=∑t=2n(et−et−1)2∑t=1net2d=\frac{\sum_{t=2}^n(e_t-e_{t-1})^2}{\sum_{t=1}^ne_t^2} ≈2(1−ρ̂).\approx2(1-\hat\rho).
  3. Obtain dLd_L and dUd_U from the tables, for nn, k′k' (regressors excluding the intercept) and α\alpha.
  4. Test H0:ρ=0H_0:\rho=0 against H1:ρ>0H_1:\rho>0:
    • reject H0H_0 if d<dLd<d_L;
    • do not reject if d>dUd>d_U;
    • inconclusive if dL≤d≤dUd_L\le d\le d_U.
    Against ρ<0\rho<0, use 4−d4-d in place of dd.

Assumptions: an intercept in the model; non-stochastic regressors (no lagged YY; otherwise Durbin’s hh); AR(1) normal errors; no missing observations.

If autocorrelation is found, estimate ρ\rho (for example ρ̂=1−d/2\hat\rho=1-d/2), and use GLS on the generalised differences Yt−ρ̂Yt−1Y_t-\hat\rho Y_{t-1}, or iterate (Cochrane–Orcutt).

✓ Answer checked step by step Answer checked step by step: the effect of AR(1) disturbances on OLS, and the Durbin–Watson procedure.

↑ Back to the question list

Explain the method of generalized least squares for estimating the parameters of a linear model, stating the assumptions underlying it.

1999 · Paper II · Q12a · 20 marks

Solution

(This is the same question as Q34 (2005, 6b) above. The worked solution is repeated here so that each question is complete.)

Assumptions of the generalised linear model.

  1. Linearity: 𝐘=X𝛃+𝐮\mathbf Y=X\boldsymbol\beta+\mathbf u, with 𝐘\mathbf Y (n×1n\times1), XX (n×kn\times k) and 𝛃\boldsymbol\beta (k×1k\times1).
  2. XX is non-stochastic (fixed in repeated samples) with full column rank k<nk<n.
  3. Zero mean errors: E(𝐮)=𝟎E(\mathbf u)=\mathbf0.
  4. Non-spherical but known error covariance: E(𝐮𝐮′)=σ2ΩE(\mathbf u\mathbf u')=\sigma^2\Omega, where Ω\Omega is a known, symmetric, positive definite matrix, and σ2\sigma^2 may be unknown. This allows heteroscedasticity (unequal diagonal elements) and autocorrelation (non-zero off-diagonal elements).
  5. (For inference) 𝐮∼N(𝟎,σ2Ω)\mathbf u\sim N(\mathbf0,\sigma^2\Omega).

The method. Because Ω≠I\Omega\ne I, OLS is not efficient. GLS minimises the weighted sum of squares S(𝛃)=(𝐘−X𝛃)′Ω−1(𝐘−X𝛃).S(\boldsymbol\beta)=(\mathbf Y-X\boldsymbol\beta)'\Omega^{-1}(\mathbf Y-X\boldsymbol\beta). Setting ∂S/∂𝛃=−2X′Ω−1𝐘+2X′Ω−1X𝛃=𝟎\partial S/\partial\boldsymbol\beta=-2X'\Omega^{-1}\mathbf Y+2X'\Omega^{-1}X\boldsymbol\beta=\mathbf0: 𝛃̂GLS=(X′Ω−1X)−1X′Ω−1𝐘.\hat{\boldsymbol\beta}_{GLS}=(X'\Omega^{-1}X)^{-1}X'\Omega^{-1}\mathbf Y .

Derivation by transformation. Find a non-singular PP with P′P=Ω−1P'P=\Omega^{-1} (so PΩP′=IP\Omega P'=I). Transform the model to P𝐘=PX𝛃+P𝐮P\mathbf Y=PX\boldsymbol\beta+P\mathbf u. The new errors have covariance σ2I\sigma^2I, so the classical model holds, and OLS on (P𝐘,PX)(P\mathbf Y,PX) gives exactly 𝛃̂GLS\hat{\boldsymbol\beta}_{GLS}.

Properties.

  • Unbiased: E(𝛃̂GLS)=𝛃E(\hat{\boldsymbol\beta}_{GLS})=\boldsymbol\beta.
  • Dispersion: σ2(X′Ω−1X)−1\sigma^2(X'\Omega^{-1}X)^{-1}, estimated with σ̂2=𝐮̂′Ω−1𝐮̂n−k.\hat\sigma^2=\frac{\hat{\mathbf u}'\Omega^{-1}\hat{\mathbf u}}{n-k}.
  • BLUE (Aitken’s theorem), and more efficient than OLS when Ω≠I\Omega\ne I.
  • Under normality it is also the maximum likelihood estimator, and it is normally distributed, so exact tt and FF tests apply.
  • It reduces to OLS when Ω=I\Omega=I.

Special cases.

  • Weighted least squares: Ω\Omega diagonal (heteroscedasticity).
  • AR(1) errors: quasi-differencing (Prais–Winsten, Cochrane–Orcutt).
  • SUR systems: Ω=Σ⊗I\Omega=\Sigma\otimes I.

In practice Ω\Omega is unknown. It is replaced by a consistent estimate (feasible or estimated GLS), which is asymptotically efficient.

✓ Answer checked step by step Answer checked step by step: the GLS assumptions, the estimator, its derivation through the transformation P, and its properties.

↑ Back to the question list

What do you mean by price elasticity of demand? How will you obtain this measure on the basis of time series data? Discuss the various difficulties that are likely to occur in this connection.

1998 · Paper II · Q15a · 20 marks

Solution

Price elasticity of demand. It measures the responsiveness of the quantity demanded of a good to a change in its own price, other things (income, other prices, tastes) remaining constant: ep=∂q∂p⋅pq=∂logq∂logp.e_p=\frac{\partial q}{\partial p}\cdot\frac pq=\frac{\partial\log q}{\partial\log p}. It is usually negative. |ep|>1|e_p|>1 means demand is elastic, and |ep|<1|e_p|<1 inelastic. For example, ep=−0.4e_p=-0.4 means a 1% rise in price reduces demand by 0.4%.

Estimation from time-series data. Collect annual (or quarterly) data on the quantity consumed qtq_t, the price of the good ptp_t, consumers’ income YtY_t, the prices of substitutes and complements, and population. Specify a constant-elasticity (log-linear) demand function: logqt=α+eplogptPt+ηlogYtPt\log q_t=\alpha{}+e_p\log\frac{p_t}{P_t}{}+\eta\log\frac{Y_t}{P_t} +γlogptsPt+δt+ut,{}+\gamma\log\frac{p_t^s}{P_t}{}+\delta t{}+u_t, where:

  • PtP_t is a general price index (to deflate money values);
  • qtq_t and YtY_t may be per capita;
  • tt is a trend for tastes and other slow changes.

Estimate it by least squares. The coefficient of log(pt/Pt)\log(p_t/P_t) is the price elasticity, and that of income is the income elasticity. Their standard errors give confidence intervals. The model can be extended with lags (partial adjustment, logqt−1\log q_{t-1}) to distinguish short-run from long-run elasticities.

Difficulties.

  1. Identification problem: the observed price–quantity points are intersections of demand and supply curves that both shift over time. A regression may trace out a supply curve, or a mixture, rather than the demand curve. Demand is identified only if supply shifts more (for example because of weather in agriculture) or if the model contains variables that shift supply but not demand. Otherwise simultaneous-equation methods (instrumental variables, 2SLS) are required.
  2. Multicollinearity: prices, income and trend move together over time, so their separate effects cannot be estimated precisely. Remedies include extraneous estimates of the income elasticity from family budget data.
  3. Autocorrelation: time-series disturbances are serially correlated.
  4. Changing tastes and structure: the demand function shifts over a long period, so the “other things constant” assumption fails. A trend term is only a crude allowance.
  5. Price and quality changes, and aggregation: quality changes make price data non-comparable, and aggregation over consumers and commodities blurs the relation.
  6. Errors in variables: measurement errors in prices and quantities bias the estimates (towards zero).
  7. Dynamics: consumers adjust with lags (habits, durables), so short-run and long-run elasticities differ.
  8. Functional form: constant elasticity may be unrealistic over a wide range of prices.
  9. Data limitations: short series, a limited range of price variation, and the need to deflate correctly.

✓ Answer checked step by step Answer checked step by step: the definition of price elasticity, the log-linear time-series demand model (with deflation and trend), and the main difficulties.

↑ Back to the question list

Show that the least squares estimate of the slope coefficient in the simple linear regression equation is inconsistent when both the variables are subject to errors of measurement.

1998 · Paper II · Q15b · 20 marks

Solution

Set-up. The true relation is between unobserved true values: Yi*=α+βXi*.Y_i^*=\alpha+\beta X_i^* . We observe them with measurement errors: Xi=Xi*+vi,Yi=Yi*+wi.X_i=X_i^*+v_i,\qquad Y_i=Y_i^*+w_i . Assume:

  • Xi*X_i^* has finite variance, 1n∑(Xi*−X‾*)2→σx2>0\frac1n\sum(X_i^*-\bar X^*)^2\to\sigma_x^2>0;
  • the errors viv_i and wiw_i have mean 0 and variances σv2\sigma_v^2 and σw2\sigma_w^2;
  • the errors are uncorrelated with each other and with X*X^*.

Substituting, the estimable equation is Yi=α+βXi+(wi−βvi)=αY_i=\alpha{}+\beta X_i{}+(w_i-\beta v_i)=\alpha +βXi+εi,εi=wi−βvi.{}+\beta X_i{}+\varepsilon_i,\qquad \varepsilon_i=w_i{}-\beta v_i . Its disturbance is correlated with the regressor: Cov(Xi,εi)\operatorname{Cov}(X_i,\varepsilon_i) =Cov(Xi*+vi,wi−βvi)=\operatorname{Cov}(X_i^*+v_i,\,w_i-\beta v_i) =−βσv2≠0.=-\beta\sigma_v^2\ne0 . This violates the key OLS assumption.

Probability limit of the OLS slope. b=∑(Xi−X‾)(Yi−Y‾)∑(Xi−X‾)2=βb=\frac{\sum(X_i-\bar X)(Y_i-\bar Y)}{\sum(X_i-\bar X)^2}=\beta +1n∑(Xi−X‾)(εi−ε‾)1n∑(Xi−X‾)2.{}+\frac{\frac1n\sum(X_i-\bar X)(\varepsilon_i-\bar\varepsilon)}{\frac1n\sum(X_i-\bar X)^2}. By the law of large numbers:

  • the numerator tends to Cov(X,ε)=−βσv2\operatorname{Cov}(X,\varepsilon)=-\beta\sigma_v^2;
  • the denominator tends to Var(X)=σx2+σv2\operatorname{Var}(X)=\sigma_x^2+\sigma_v^2.

Hence plimb=β−βσv2σx2+σv2=βσx2σx2+σv2\operatorname{plim}b=\beta{}-\frac{\beta\sigma_v^2}{\sigma_x^2+\sigma_v^2}=\boxed{\beta\,\frac{\sigma_x^2}{\sigma_x^2+\sigma_v^2}} ≠β(σv2>0).\ne\beta\qquad (\sigma_v^2>0).

So bb is inconsistent, however large the sample. It is biased towards zero (“attenuation” or regression dilution), since the factor λ=σx2/(σx2+σv2)\lambda=\sigma_x^2/(\sigma_x^2+\sigma_v^2), the reliability ratio, lies between 0 and 1.

Remarks.

  • Error in YY alone (σv2=0\sigma_v^2=0) does not cause inconsistency. It only increases the error variance.
  • The inconsistency arises from the error in the explanatory variable, which makes the regressor correlated with the disturbance.
  • Similarly the intercept is inconsistent: plima=α+βμx(1−λ)\operatorname{plim}a=\alpha+\beta\mu_x(1-\lambda).
  • Remedies: instrumental variables, or knowledge of the ratio σw2/σv2\sigma_w^2/\sigma_v^2 (orthogonal or Deming regression), or of the reliability ratio.

Example. With β=3\beta=3, σx2=4\sigma_x^2=4 and σv2=1\sigma_v^2=1: plimb=3×4/5=2.4\operatorname{plim}b=3\times4/5=2.4. A simulation with 200,000 observations gave b=2.398b=2.398.

✓ Proof checked step by step Proof checked step by step: plim b = βσ²ₓ/(σ²ₓ + σ²ᵥ) with both variables measured with error; and by simulation in Python (β = 3, σ²ₓ = 4, σ²ᵥ = 1): the slope was 2.398 against the predicted 2.4.

↑ Back to the question list

Describe how you will test the presence of multicollinearity among the explanatory variables in a linear model.

1998 · Paper II · Q16a · 20 marks

Solution

These are the ways to test for multicollinearity among the explanatory variables.

1. Symptoms in the regression output. A high R2R^2 and a significant overall FF, but few or no individually significant tt-ratios. Coefficients with implausible signs or magnitudes. Large changes in the estimates when an observation or a variable is added or dropped.

2. Pairwise correlations. Compute the correlation matrix of the regressors. Correlations above about 0.8 indicate collinearity between pairs. (High pairwise correlation is sufficient but not necessary: collinearity can involve three or more variables with moderate pairwise correlations.)

3. Auxiliary regressions. Regress each XjX_j on the remaining regressors, and obtain Rj2R_j^2. Test with Fj=Rj2/(k−2)(1−Rj2)/(n−k+1)F_j=\frac{R_j^2/(k-2)}{(1-R_j^2)/(n-k+1)} (where kk is the number of parameters in the original model, including the intercept). A significant FjF_j shows that XjX_j is collinear with the others. Klein’s rule of thumb: multicollinearity is troublesome if some Rj2R_j^2 exceeds the overall R2R^2.

4. Variance inflation factor and tolerance. VIFj=11−Rj2,TOLj=1−Rj2.VIF_j=\frac1{1-R_j^2},\qquad TOL_j=1-R_j^2 . A VIF above 10 (TOL below 0.1) signals serious multicollinearity, because Var(β̂j)\operatorname{Var}(\hat\beta_j) is inflated by that factor.

5. Eigenvalues and the condition number. Compute the eigenvalues λj\lambda_j of X′XX'X, with the columns scaled to unit length, or of the correlation matrix.

  • Small eigenvalues indicate near-linear dependences.
  • Condition number κ=λmax/λmin\kappa=\sqrt{\lambda_{\max}/\lambda_{\min}}: between 10 and 30 is moderate, above 30 severe.
  • Condition indices λmax/λj\sqrt{\lambda_{\max}/\lambda_j}, together with variance-decomposition proportions (Belsley, Kuh and Welsch), show which variables are involved.

6. Determinant of the correlation matrix |R||R| of the regressors: close to 0 means severe multicollinearity; 1 means orthogonal regressors.

7. Farrar–Glauber tests.

  • Presence: under orthogonality, χ2\chi^2 =−[n−1−16(2k+5)]log|R|,=-\left[n-1-\tfrac16(2k+5)\right]\log|R|, which is distributed as χ2\chi^2 with k(k−1)/2k(k-1)/2 degrees of freedom, where kk here is the number of explanatory variables.
  • Location: FF tests from the auxiliary regressions identify which variables are collinear.
  • Pattern: tt tests on the partial correlations show which pairs are responsible.

8. Frisch’s confluence analysis (bunch maps) and sensitivity analysis (dropping variables) are older graphical or exploratory methods.

No single test is decisive: multicollinearity is a matter of degree, judged by its effect on the precision of the estimates of interest.

✓ Answer checked step by step Answer checked step by step: the standard detection procedures (correlations, auxiliary regressions, VIF and tolerance, eigenvalues and the condition number, and the Farrar–Glauber tests).

↑ Back to the question list

Write a note on techniques and models used in demand projections.

1998 · Paper II · Q16c · 20 marks

Solution

Demand projection means estimating the future demand for goods and services (food, energy, steel, consumer durables) for planning production, imports, investment and policy. These are the main techniques and models.

1. Trend (time-series) methods. Extrapolate the past consumption series by fitting linear, exponential, modified exponential, Gompertz or logistic curves, or ARIMA models. They are simple, but they assume that past trends continue, and they ignore the causes of demand.

2. Elasticity (income–population) method. The standard method in planning: Dt=D0(1+gN)t(1+ηgy)t,D_t=D_0\,(1+g_N)^t\,(1+\eta\,g_y)^t, where D0D_0 is base-year demand, gNg_N the population growth rate, gyg_y the growth rate of per-capita income (or expenditure), and η\eta the income elasticity of demand. The elasticities are estimated from family budget (household consumption expenditure) surveys, using Engel curves fitted by income class (double-log, semi-log or log-inverse forms). Separate projections for rural and urban areas, and by income group, allow for changes in income distribution.

3. Econometric demand models. Single-equation demand functions with price, income, the prices of related goods and demographic variables, estimated from time series or pooled data. Complete systems of demand equations satisfy theoretical restrictions (adding-up, homogeneity, symmetry): the linear expenditure system (Stone), Rotterdam, and the Almost Ideal Demand System (AIDS). Projections use assumed future values of incomes and prices.

4. End-use (consumption-norm) method. For intermediate goods (steel, cement, power, fertiliser), demand is built up from the planned output of the using sectors multiplied by technical coefficients (input norms), and from targets (for example nutrition norms for food).

5. Input–output (Leontief) models. For a whole economy, gross output requirements are X=(I−A)−1FX=(I-A)^{-1}F, where FF is the projected final demand. This gives consistent projections of the demand for each sector’s output.

6. Surveys and expert opinion. Consumer intention surveys, the Delphi method and market research, especially for new products.

7. Leading indicators and analogy: comparison with other countries or regions at similar income levels (cross-country regressions).

Requirements and problems. Reliable base-year data; good elasticity estimates (cross-section and time-series estimates may differ); assumptions about future income, population, prices and income distribution; allowing for changes in tastes, urbanisation, technology and substitution. Projections are usually presented as alternatives (high, medium and low scenarios) and revised regularly.

✓ Answer checked step by step Answer checked step by step: the main techniques and models for demand projection (trend, elasticity and econometric models, end-use and input–output methods, surveys), with their requirements.

↑ Back to the question list

Explain how you will fit the model Y=aebX+u, where a and b are constants to be estimated and u is a random variable with mean zero, and variance σ2. The data consist of n pairs of observations on (X,Y). How will you estimate σ2?

1997 · Paper II · Q13b · 20 marks

Solution

Model. Y=aebX+uY=ae^{bX+u}, where a>0a>0 and bb are constants, and uu has mean 0 and variance σ2\sigma^2 (taken as normal and independent for each observation).

Linearise by logarithms. lnYi=lna+bXi+ui,i.e.\ln Y_i=\ln a{}+bX_i{}+u_i,\qquad \text{i.e.} Zi=α+bXi+ui,Z_i=\alpha{}+bX_i{}+u_i, where Zi=lnYiZ_i=\ln Y_i and α=lna\alpha=\ln a. The disturbance uiu_i now enters additively with mean 0 and constant variance, so the classical linear model holds for (Xi,Zi)(X_i,Z_i).

Estimation by least squares. With nn pairs (Xi,Yi)(X_i,Y_i), compute Zi=lnYiZ_i=\ln Y_i. Then b̂=∑(Xi−X‾)(Zi−Z‾)∑(Xi−X‾)2,α̂\hat b=\frac{\sum(X_i-\bar X)(Z_i-\bar Z)}{\sum(X_i-\bar X)^2},\qquad \hat\alpha =Z‾−b̂X‾,â=eα̂.=\bar Z{}-\hat b\bar X,\qquad \hat a=e^{\hat\alpha}. b̂\hat b and α̂\hat\alpha are BLUE (and ML under normality). The fitted curve is Ŷ=âeb̂X\hat Y=\hat ae^{\hat bX}. Here bb is the proportional (instantaneous) rate of change of YY per unit of XX: 100b%100b\% per unit.

Estimating σ2\sigma^2. From the residuals of the log-linear regression, ei=Zi−α̂−b̂Xie_i=Z_i-\hat\alpha-\hat bX_i: σ̂2=∑i=1nei2n−2,∑ei2\boxed{\hat\sigma^2=\frac{\sum_{i=1}^ne_i^2}{n-2}},\qquad \sum e_i^2 =∑(Zi−Z‾)2=\sum(Z_i-\bar Z)^2 −b̂2∑(Xi−X‾)2,{}-\hat b^2\sum(X_i-\bar X)^2, which is unbiased for σ2\sigma^2. (The ML estimate divides by nn.) It gives the standard errors se(b̂)=σ̂∑(Xi−X‾)2,\operatorname{se}(\hat b)=\frac{\hat\sigma}{\sqrt{\sum(X_i-\bar X)^2}}, and tt tests on n−2n-2 degrees of freedom.

Remarks.

  • Least squares is applied to lnY\ln Y, so it minimises the squared relative (percentage) errors in YY, not the absolute errors.
  • â=eα̂\hat a=e^{\hat\alpha} is biased for aa: E(eα̂)=aeVar(α̂)/2E(e^{\hat\alpha})=a\,e^{\operatorname{Var}(\hat\alpha)/2}. Also, E(Y∣X)=aebXeσ2/2E(Y\mid X)=ae^{bX}e^{\sigma^2/2} under normal uu, so predictions of the mean of YY are often multiplied by eσ̂2/2e^{\hat\sigma^2/2}.
  • The multiplicative error form eue^u is essential. If the model were Y=aebX+uY=ae^{bX}+u (additive error), it would need non-linear least squares instead.

✓ Answer checked step by step Answer checked step by step: the log transformation, OLS on (X, ln Y), σ̂² = RSS/(n − 2), and the lognormal bias correction for a.

↑ Back to the question list

Explain the term ‘demand elasticity’. What do you understand by family budget data? How will you use this data for estimating the income elasticity of demand of selected items?

1997 · Paper II · Q14c · 20 marks

Solution

Demand elasticity. The elasticity of demand measures the percentage change in the quantity demanded of a good in response to a 1% change in one of its determinants, other things remaining the same:

  • price elasticity ep=∂logq∂logpe_p=\dfrac{\partial\log q}{\partial\log p};
  • income elasticity η=∂logq∂logY\eta=\dfrac{\partial\log q}{\partial\log Y} (or the elasticity with respect to total expenditure);
  • cross elasticity eij=∂logqi∂logpje_{ij}=\dfrac{\partial\log q_i}{\partial\log p_j}.

The income elasticity classifies goods: η<0\eta<0 inferior, 0<η<10<\eta<1 necessities, η>1\eta>1 luxuries.

Family budget data. These are cross-section data, from a sample survey of households at a point (or period) of time, on each household’s income or total consumption expenditure, its expenditure on (and quantity of) each item, and its size and composition, location and occupation. In India such data come from the NSS/NSO household consumption expenditure surveys. All households face roughly the same prices at the same time and place, so the variation in consumption across households is mainly due to differences in income (and household characteristics). This makes the data well suited to estimating income elasticities, but not price elasticities.

Estimating income elasticity from family budget data.

  1. Classify households by per-capita (or per adult-equivalent) income or total expenditure, and compute the average consumption of the selected item in each class. Alternatively, use the individual household data.
  2. Fit an Engel curve, the relation between consumption of the item (qq, or expenditure vv) and income or total expenditure (YY):
    • double-log: logq=α+ηlogY\log q=\alpha+\eta\log Y, with constant elasticity η\eta;
    • semi-log: q=α+βlogYq=\alpha+\beta\log Y, with elasticity β/q\beta/q;
    • log-inverse: logq=α−β/Y\log q=\alpha-\beta/Y, with elasticity β/Y\beta/Y, which allows saturation;
    • Working–Leser: w=α+βlogYw=\alpha+\beta\log Y (with ww the budget share), with elasticity 1+β/w1+\beta/w.
  3. Estimate by least squares. With grouped data, use weighted least squares, weighting by the number of households in each class.
  4. Allow for household size and composition, by using per-capita or per-equivalent-adult variables, or by including household size as a regressor (logq=α+ηlogY+θlogN\log q=\alpha+\eta\log Y+\theta\log N).
  5. Choose the best-fitting form and compute the elasticity at the mean (or over the income range). Compare rural with urban, and items with each other.

Cautions. The quality effect: richer households buy better varieties, so expenditure elasticities exceed quantity elasticities. Cross-section elasticities are long-run and may differ from time-series ones. Income is measured with errors, so total expenditure is often used instead. Prices may differ across regions.

✓ Answer checked step by step Answer checked step by step: the elasticity definitions, the nature of family budget data, and the Engel-curve method for income elasticities.

↑ Back to the question list

Define autocorrelation and explain how this gets generated in a linear econometric model. Also explain a test for detecting the presence of autocorrelation among the error terms in a model.

1997 · Paper II · Q15a · 20 marks

Solution

Autocorrelation. In a linear econometric model Yt=β1+β2X2t+…+utY_t=\beta_1+\beta_2X_{2t}+\dots+u_t, autocorrelation (serial correlation) means that the disturbances of different periods are correlated: E(utut−s)≠0for some s≠0.E(u_tu_{t-s})\ne0\quad\text{for some }s\ne0 . For example, the first-order scheme ut=ρut−1+εtu_t=\rho u_{t-1}+\varepsilon_t has Corr(ut,ut−s)=ρs\operatorname{Corr}(u_t,u_{t-s})=\rho^s.

How it gets generated.

  1. Inertia (sluggishness): economic time series such as GDP, employment and prices move in cycles. A shock persists over several periods, so successive disturbances are related.
  2. Omitted variables: if a relevant variable that is itself autocorrelated is left out, its effect enters utu_t and makes it autocorrelated (specification bias).
  3. Incorrect functional form: fitting a straight line to a curved relation leaves systematic patterns (runs) in the residuals.
  4. Lags omitted: if the true model includes Yt−1Y_{t-1} (habit persistence, adjustment lags) but it is omitted, the error carries the lagged effect.
  5. The cobweb phenomenon: supply reacts to last period’s price, Qts=β1+β2Pt−1+utQ_t^s=\beta_1+\beta_2P_{t-1}+u_t, which creates patterns in the errors.
  6. Data manipulation: interpolation, smoothing, averaging (quarterly data from monthly) and seasonal adjustment introduce correlation.
  7. Non-stationarity of the variables.
  8. Measurement errors that persist over time.

A test: the Durbin–Watson dd test.

  1. Fit OLS and obtain the residuals ete_t.
  2. Compute d=∑t=2n(et−et−1)2∑t=1net2d=\frac{\sum_{t=2}^n(e_t-e_{t-1})^2}{\sum_{t=1}^ne_t^2} ≈2(1−ρ̂).\approx2(1-\hat\rho).
  3. For H0:ρ=0H_0:\rho=0 against ρ>0\rho>0, compare with the tabulated dLd_L and dUd_U:
    • d<dLd<d_L: reject (positive autocorrelation);
    • d>dUd>d_U: do not reject;
    • in between: inconclusive.
    For negative autocorrelation, use 4−d4-d.

Conditions: there is an intercept; the regressors are non-stochastic (no lagged YY; otherwise use Durbin’s hh); the errors are AR(1) and normal.

Other tests: the runs (Geary) test on the signs of the residuals, and the Breusch–Godfrey LM test (regress ete_t on the regressors and et−1,…,et−pe_{t-1},\dots,e_{t-p}; then (n−p)R2∼χp2(n-p)R^2\sim\chi^2_p).

✓ Answer checked step by step Answer checked step by step: the definition, how autocorrelation arises in an econometric model, and the Durbin–Watson test.

↑ Back to the question list

What do you understand by heteroscedastic error term in a model? What are the sources of such disturbances? Explain any one method of estimating the parameters in the presence of such heteroscedastic disturbance terms.

1997 · Paper II · Q15b · 20 marks

Solution

Heteroscedastic error term. In the model Yi=β1+β2Xi+uiY_i=\beta_1+\beta_2X_i+u_i, the error is heteroscedastic if its variance is not the same for all observations: Var(ui)=σi2\operatorname{Var}(u_i)=\sigma_i^2. Usually the variance changes with the size of an explanatory variable, for example σi2=σ2Xi2\sigma_i^2=\sigma^2X_i^2.

Sources of such disturbances.

  1. Differences in scale (size) of the units: in cross-sections of families, firms or states, larger units show larger absolute variation. For example, the variation of savings increases with income, and that of profits with firm size.
  2. Error-learning: as people learn, their errors of behaviour decline. For example, typing errors fall with practice, so the variance falls over time.
  3. Greater discretion with higher incomes: rich households have more choice in spending patterns.
  4. Improved data-collection techniques, which reduce the error variance over time.
  5. Outliers, from very different populations.
  6. Specification errors: omitted variables, or a wrong functional form (for example linear instead of log).
  7. Skewness in the distribution of the regressors (for example income or wealth).
  8. Grouped data: group means based on different numbers of observations have variances σ2/ng\sigma^2/n_g.

Estimation in the presence of heteroscedasticity: weighted (generalised) least squares. Suppose σi2=σ2Xi2.\sigma_i^2=\sigma^2X_i^2 . Divide the model by XiX_i: YiXi=β11Xi+β2+vi,vi=uiXi,\frac{Y_i}{X_i}=\beta_1\frac1{X_i}{}+\beta_2{}+v_i,\qquad v_i=\frac{u_i}{X_i}, Var(vi)=σ2.\operatorname{Var}(v_i)=\sigma^2 . The transformed model is homoscedastic, so OLS on it is BLUE. Regress Yi/XiY_i/X_i on 1/Xi1/X_i:

  • the intercept of this regression estimates β2\beta_2;
  • the slope estimates β1\beta_1.

The standard errors from this regression are correct.

In general, if σi2=σ2ci\sigma_i^2=\sigma^2c_i with the cic_i known, minimise ∑(Yi−β1−β2Xi)2/ci\sum(Y_i-\beta_1-\beta_2X_i)^2/c_i, i.e. use weights wi=1/ciw_i=1/c_i: β̂2\hat\beta_2 =∑wi∑wiXiYi−∑wiXi∑wiYi∑wi∑wiXi2−(∑wiXi)2,=\frac{\sum w_i\sum w_iX_iY_i-\sum w_iX_i\sum w_iY_i}{\sum w_i\sum w_iX_i^2-\left(\sum w_iX_i\right)^2}, β̂1=∑wiYi−β̂2∑wiXi∑wi.\hat\beta_1=\frac{\sum w_iY_i-\hat\beta_2\sum w_iX_i}{\sum w_i}. If the pattern of the variance is unknown, estimate it (for example from a regression of |ei||e_i| or ei2e_i^2 on XiX_i), then apply WLS with the estimated weights (feasible WLS). Alternatively, retain OLS with White’s heteroscedasticity-consistent standard errors.

✓ Answer checked step by step Answer checked step by step: the meaning and sources of heteroscedastic errors, and the weighted least squares method.

↑ Back to the question list

Formulate a general linear model (GLM), clearly stating the assumptions. Derive the MLE of the parameter vector when the errors in the GLM follow a multivariate normal distribution.

1996 · Paper II · Q14a · 20 marks

Solution

Formulation of the GLM. 𝐘=X𝛃+𝐮,\mathbf Y=X\boldsymbol\beta+\mathbf u, where 𝐘\mathbf Y (n×1n\times1) holds the observations on the dependent variable, XX (n×kn\times k) the observations on the kk explanatory variables (including a column of ones for the intercept), 𝛃\boldsymbol\beta (k×1k\times1) the unknown coefficients, and 𝐮\mathbf u (n×1n\times1) the disturbances.

Assumptions.

  1. Linearity in the parameters.
  2. XX is non-stochastic (fixed in repeated samples).
  3. Full rank: rankX=k<n\operatorname{rank}X=k<n (no perfect multicollinearity), so X′XX'X is invertible.
  4. Zero mean: E(𝐮)=𝟎E(\mathbf u)=\mathbf0.
  5. Spherical errors: E(𝐮𝐮′)=σ2InE(\mathbf u\mathbf u')=\sigma^2I_n (homoscedastic and non-autocorrelated).
  6. Normality: 𝐮∼Nn(𝟎,σ2In)\mathbf u\sim N_n(\mathbf0,\sigma^2I_n).

MLE of 𝛃\boldsymbol\beta. Under assumption 6, 𝐘∼Nn(X𝛃,σ2In)\mathbf Y\sim N_n(X\boldsymbol\beta,\sigma^2I_n), with density f(𝐘)f(\mathbf Y) =(2πσ2)−n/2exp{−S(𝛃)2σ2},=(2\pi\sigma^2)^{-n/2}\exp\left\{-\frac{S(\boldsymbol\beta)}{2\sigma^2}\right\}, where S(𝛃)=(𝐘−X𝛃)′(𝐘−X𝛃)S(\boldsymbol\beta)=(\mathbf Y-X\boldsymbol\beta)'(\mathbf Y-X\boldsymbol\beta). Log-likelihood: ℓ=−n2ln2π−n2lnσ2\ell=-\frac n2\ln2\pi{}-\frac n2\ln\sigma^2 −12σ2(𝐘′𝐘−2𝛃′X′𝐘+𝛃′X′X𝛃).{}-\frac1{2\sigma^2}\left(\mathbf Y'\mathbf Y-2\boldsymbol\beta'X'\mathbf Y+\boldsymbol\beta'X'X\boldsymbol\beta\right).

Score equations: ∂ℓ∂𝛃=1σ2(X′𝐘−X′X𝛃)=𝟎\frac{\partial\ell}{\partial\boldsymbol\beta}=\frac{1}{\sigma^2}\left(X'\mathbf Y-X'X\boldsymbol\beta\right)=\mathbf0 ⇒𝛃̂=(X′X)−1X′𝐘,\Longrightarrow\ \boxed{\hat{\boldsymbol\beta}=(X'X)^{-1}X'\mathbf Y}, ∂ℓ∂σ2=−n2σ2\frac{\partial\ell}{\partial\sigma^2}=-\frac n{2\sigma^2} +(𝐘−X𝛃)′(𝐘−X𝛃)2σ4=0{}+\frac{(\mathbf Y-X\boldsymbol\beta)'(\mathbf Y-X\boldsymbol\beta)}{2\sigma^4}=0 ⇒σ̂2=(𝐘−X𝛃̂)′(𝐘−X𝛃̂)n.\Longrightarrow\ \hat\sigma^2=\frac{(\mathbf Y-X\hat{\boldsymbol\beta})'(\mathbf Y-X\hat{\boldsymbol\beta})}{n}.

The Hessian with respect to 𝛃\boldsymbol\beta is −X′X/σ2-X'X/\sigma^2, which is negative definite, confirming a maximum.

Properties.

  • 𝛃̂∼Nk(𝛃,σ2(X′X)−1)\hat{\boldsymbol\beta}\sim N_k\left(\boldsymbol\beta,\sigma^2(X'X)^{-1}\right): unbiased, and identical to the OLS estimator.
  • It attains the Cramér–Rao bound, since the information matrix for 𝛃\boldsymbol\beta is X′X/σ2X'X/\sigma^2, so it is the minimum-variance unbiased estimator.
  • nσ̂2/σ2∼χn−k2n\hat\sigma^2/\sigma^2\sim\chi^2_{n-k}, independently of 𝛃̂\hat{\boldsymbol\beta}. σ̂2\hat\sigma^2 is biased; s2=nσ̂2/(n−k)s^2=n\hat\sigma^2/(n-k) is unbiased.

(If the errors follow N(𝟎,σ2Ω)N(\mathbf0,\sigma^2\Omega) with Ω\Omega known, the same steps give the GLS estimator (X′Ω−1X)−1X′Ω−1𝐘(X'\Omega^{-1}X)^{-1}X'\Omega^{-1}\mathbf Y.)

✓ Derivation checked step by step Derivation checked step by step: the assumptions, the multivariate normal likelihood, and the score equations for β and σ² (with the general σ²Ω case).

↑ Back to the question list

Explain the procedure for testing the hypothesis H0:β1+β2=c (some given constant) in the model yt=β0+β1x1t+β2x2t+ut. State the underlying assumptions.

1996 · Paper II · Q14b · 20 marks

Solution

Model. yt=β0+β1x1t+β2x2t+ut,ty_t=\beta_0{}+\beta_1x_{1t}{}+\beta_2x_{2t}{}+u_t,\qquad t =1,…,n.=1,\dots,n .

Assumptions: x1tx_{1t} and x2tx_{2t} are non-stochastic and not perfectly collinear; ut∼u_t\sim i.i.d. N(0,σ2)N(0,\sigma^2); n>3n>3.

Hypothesis: H0:β1+β2=cH_0:\beta_1+\beta_2=c against H1:β1+β2≠cH_1:\beta_1+\beta_2\ne c. (For example, in a Cobb–Douglas production function in logarithms, c=1c=1 means constant returns to scale.)

Method 1: tt test.

  1. Estimate the model by OLS, obtaining b0b_0, b1b_1, b2b_2, s2=∑et2/(n−3)s^2=\sum e_t^2/(n-3), and the estimated covariance matrix s2(X′X)−1s^2(X'X)^{-1}. This gives Var̂(b1)\widehat{\operatorname{Var}}(b_1), Var̂(b2)\widehat{\operatorname{Var}}(b_2) and Cov̂(b1,b2)\widehat{\operatorname{Cov}}(b_1,b_2).
  2. b1+b2b_1+b_2 is unbiased for β1+β2\beta_1+\beta_2, with Var(b1+b2)=Var(b1)\operatorname{Var}(b_1+b_2)=\operatorname{Var}(b_1) +Var(b2)+2Cov(b1,b2).{}+\operatorname{Var}(b_2){}+2\operatorname{Cov}(b_1,b_2).
  3. Under H0H_0, t=b1+b2−csê(b1+b2)∼tn−3,t=\frac{b_1+b_2-c}{\widehat{\operatorname{se}}(b_1+b_2)}\sim t_{n-3}, where sê(b1+b2)\widehat{\operatorname{se}}(b_1+b_2) is the square root of the estimated variance in step 2, because b1+b2b_1+b_2 is normal and independent of s2s^2, with (n−3)s2/σ2∼χn−32(n-3)s^2/\sigma^2\sim\chi^2_{n-3}.
  4. Reject H0H_0 at level α\alpha if |t|>tn−3,α/2|t|>t_{n-3,\alpha/2}. A 100(1−α)%100(1-\alpha)\% confidence interval for β1+β2\beta_1+\beta_2 is b1+b2±tn−3,α/2⋅s.e.b_1+b_2\pm t_{n-3,\alpha/2}\cdot\text{s.e.}

(It is a common mistake to omit the covariance term.)

Method 2: restricted least squares (FF test).

  1. Impose H0H_0 by substituting β2=c−β1\beta_2=c-\beta_1: yt−cx2t=β0+β1(x1t−x2t)+ut.y_t-cx_{2t}=\beta_0+\beta_1(x_{1t}-x_{2t})+u_t . Estimate this by OLS, and obtain the restricted residual sum of squares RSSRRSS_R.
  2. Obtain the unrestricted RSSURSS_U from the original model.
  3. Compute F=(RSSR−RSSU)/1RSSU/(n−3),F=\frac{(RSS_R-RSS_U)/1}{RSS_U/(n-3)}, which follows F1,n−3F_{1,n-3} under H0H_0.
  4. Reject H0H_0 if F>F1,n−3;αF>F_{1,n-3;\alpha}.

The two tests are equivalent, since F=t2F=t^2.

Method 3 (reparametrisation). Write θ=β1+β2−c\theta=\beta_1+\beta_2-c, so β1=θ+c−β2\beta_1=\theta+c-\beta_2. Regress yt−cx1ty_t-cx_{1t} on x1tx_{1t} and (x2t−x1t)(x_{2t}-x_{1t}). The coefficient of x1tx_{1t} estimates θ\theta, and its ordinary tt-ratio tests θ=0\theta=0 directly.

✓ Answer checked step by step Answer checked step by step: the t test using Var(b₁ + b₂) = Var b₁ + Var b₂ + 2Cov, and the equivalent restricted least squares F test.

↑ Back to the question list

Illustrate a technique which may be used to represent factors like temporal effects and qualitative variables in a GLM.

1996 · Paper II · Q14c · 20 marks

Solution

Technique: dummy (indicator) variables. Qualitative factors (sex, region, religion, occupation, war or peace, policy regime) and temporal effects (seasons, particular periods, structural breaks) cannot be measured on a numerical scale. We represent them in a GLM by dummy variables taking the values 0 and 1.

1. A qualitative variable with two categories. In a wage equation, Wi=β0+β1Ei+δDiW_i=\beta_0{}+\beta_1E_i{}+\delta D_i +ui,Di={1female0male{}+u_i,\qquad D_i=\begin{cases}1&\text{female}\\0&\text{male}\end{cases} where EE is years of education. Then δ\delta is the difference in mean wage between women and men at the same education level (an intercept shift). Testing δ=0\delta=0 tests for wage discrimination.

2. A qualitative variable with mm categories. Use m−1m-1 dummies, with one category as the base. Including mm dummies together with the intercept causes perfect multicollinearity: the dummy-variable trap, because the dummies sum to the constant column.

3. Temporal (seasonal) effects. With quarterly data, Yt=β0+β1Xt+δ2Q2t+δ3Q3tY_t=\beta_0{}+\beta_1X_t{}+\delta_2Q_{2t}{}+\delta_3Q_{3t} +δ4Q4t+ut,{}+\delta_4Q_{4t}{}+u_t, where Qjt=1Q_{jt}=1 in quarter jj and 0 otherwise. Quarter 1 is the base. The δ\delta’s measure the seasonal shifts, and the residuals of this regression give deseasonalised data. Similar dummies can mark periods such as war years, a drought year, demonetisation or a pandemic.

4. Structural change (slope dummies). To test whether the relation changed after a period t0t_0, let Dt=1D_t=1 for t≥t0t\ge t_0: Yt=β0+δ0Dt+β1Xt+δ1(DtXt)Y_t=\beta_0{}+\delta_0D_t{}+\beta_1X_t{}+\delta_1(D_tX_t) +ut.{}+u_t . δ0\delta_0 measures the change in intercept and δ1\delta_1 the change in slope. Testing δ0=δ1=0\delta_0=\delta_1=0 jointly (an FF test) is equivalent to the Chow test.

5. Trend and interaction terms. A time trend tt (or t2t^2) represents slow-moving temporal effects such as technical progress. Products of dummies represent interactions (for example female × rural).

Estimation and testing. The model remains a GLM, so it is estimated by OLS, and the dummy coefficients are tested with tt and FF tests.

Interpretation in log models: in lnY=…+δD\ln Y=\dots+\delta D, the effect of DD is 100(eδ−1)%100(e^\delta-1)\%.

Example. For quarterly sales of a soft drink on advertising expenditure, the estimates δ̂2=40\hat\delta_2=40, δ̂3=25\hat\delta_3=25 and δ̂4=−10\hat\delta_4=-10 (in thousand cases) mean that sales are 40,000 cases higher in the April–June quarter than in January–March, for the same advertising.

✓ Answer checked step by step Answer checked step by step: dummy variables for qualitative factors and seasons (with the dummy-variable trap), slope dummies, and trend variables, illustrated by a quarterly model.

↑ Back to the question list

Mention the main sources that cause serially correlated disturbances. Outline the Cochrane-Orcutt procedure to estimate the parameters of a linear model when the errors are serially correlated.

1996 · Paper II · Q15a · 20 marks

Solution

Main sources of serially correlated disturbances.

  1. Inertia of economic time series: business cycles make shocks persist.
  2. Omitted explanatory variables that are autocorrelated (specification bias).
  3. Incorrect functional form: for example a linear model for a curved relation.
  4. Omitted lagged variables or dynamics: habit persistence, partial adjustment, the cobweb phenomenon.
  5. Data manipulation: interpolation, smoothing, averaging, seasonal adjustment.
  6. Persistent measurement errors.
  7. Non-stationarity of the series.

The Cochrane–Orcutt procedure. Model: Yt=β1+β2Xt+utY_t=\beta_1+\beta_2X_t+u_t, with ut=ρut−1+εtu_t=\rho u_{t-1}+\varepsilon_t and ρ\rho unknown.

Step 1. Estimate the model by OLS and obtain the residuals ete_t.

Step 2. Estimate ρ\rho by regressing ete_t on et−1e_{t-1}: ρ̂=∑t=2netet−1∑t=2net−12.\hat\rho=\frac{\sum_{t=2}^ne_te_{t-1}}{\sum_{t=2}^ne_{t-1}^2}.

Step 3. Form the generalised (quasi-) differences Yt*=Yt−ρ̂Yt−1,Xt*=XtY_t^*=Y_t{}-\hat\rho Y_{t-1},\qquad X_t^*=X_t −ρ̂Xt−1,t=2,…,n,{}-\hat\rho X_{t-1},\qquad t=2,\dots,n, and run OLS on Yt*=β1*+β2Xt*+εt*,β1*Y_t^*=\beta_1^*{}+\beta_2X_t^*{}+\varepsilon_t^*,\qquad \beta_1^* =β1(1−ρ̂).=\beta_1(1-\hat\rho). This gives new estimates β̂2\hat\beta_2 and β̂1=β̂1*/(1−ρ̂)\hat\beta_1=\hat\beta_1^*/(1-\hat\rho).

Step 4. Compute new residuals from the original model, et(2)=Yt−β̂1−β̂2Xte_t^{(2)}=Y_t-\hat\beta_1-\hat\beta_2X_t, and re-estimate ρ\rho as in Step 2.

Step 5. Repeat Steps 3–4 until successive estimates of ρ\rho (and of 𝛃\boldsymbol\beta) differ by less than a small amount, say 0.001.

The final estimates are (feasible) GLS estimates. They converge to the conditional maximum likelihood estimates. The standard errors from the last transformed regression are used for inference.

Notes.

  • The first observation is lost. The Prais–Winsten variant keeps it, as 1−ρ̂2Y1\sqrt{1-\hat\rho^2}\,Y_1 and 1−ρ̂2X1\sqrt{1-\hat\rho^2}\,X_1.
  • The iteration may converge to a local minimum, so it is often combined with the Hildreth–Lu grid search over ρ\rho.
  • The procedure extends to several regressors and to higher-order autoregressive schemes.

✓ Answer checked step by step Answer checked step by step: the sources of serial correlation and the iterative Cochrane–Orcutt steps.

↑ Back to the question list

Show that measurement error in the explanatory variables poses a serious estimation problem in the set up of a GLM. Outline an estimation method based on instrumental variables in this context.

1996 · Paper II · Q15b · 20 marks

Solution

Measurement error in an explanatory variable. Let the true model be Yi=βXi*+uiY_i=\beta X_i^*+u_i (in deviations from means, for simplicity), where X*X^* is the true variable. We observe Xi=Xi*+viX_i=X_i^*+v_i, with viv_i a measurement error that has mean 0 and variance σv2\sigma_v^2, and is independent of X*X^* and uu.

Why this is a serious problem. Substituting Xi*=Xi−viX_i^*=X_i-v_i, Yi=βXi+(ui−βvi)=βXi+εi.Y_i=\beta X_i+(u_i-\beta v_i)=\beta X_i+\varepsilon_i . Now the regressor is correlated with the disturbance: Cov(Xi,εi)\operatorname{Cov}(X_i,\varepsilon_i) =E[(Xi*+vi)(ui−βvi)]=E\big[(X_i^*+v_i)(u_i-\beta v_i)\big] =−βσv2≠0.=-\beta\sigma_v^2\ne0 . This violates the basic assumption of the GLM (XX uncorrelated with the error). As a result: plimβ̂OLS=β+Cov(X,ε)Var(X)=β\operatorname{plim}\hat\beta_{OLS}=\beta{}+\frac{\operatorname{Cov}(X,\varepsilon)}{\operatorname{Var}(X)}=\beta −βσv2σx2+σv2=βσx2σx2+σv2,{}-\frac{\beta\sigma_v^2}{\sigma_x^2+\sigma_v^2}=\beta\,\frac{\sigma_x^2}{\sigma_x^2+\sigma_v^2}, where σx2=Var(X*)\sigma_x^2=\operatorname{Var}(X^*).

  • OLS is biased and inconsistent, attenuated towards zero. More data do not cure it.
  • In multiple regression, an error in one regressor biases all the coefficients, in directions that depend on the correlations among the regressors.
  • Standard errors and tests are invalid.

(By contrast, error in the dependent variable only adds to the disturbance variance; it does not cause inconsistency.)

Instrumental variables (IV) estimation. Find an instrument ZZ that is:

  1. correlated with the true regressor, Cov(Z,X*)≠0\operatorname{Cov}(Z,X^*)\ne0 (relevance);
  2. uncorrelated with both uu and the measurement error vv, hence with ε\varepsilon (validity).

Examples: a second, independent measurement of X*X^*; the lagged value of XX; the group rank of XX (Durbin’s method); or an exogenous variable that determines X*X^*.

The IV estimator (in deviation form) is β̂IV=∑ziyi∑zixi.\boxed{\hat\beta_{IV}=\frac{\sum z_iy_i}{\sum z_ix_i}}. Consistency: β̂IV=β+1n∑ziεi1n∑zixi→pβ\hat\beta_{IV}=\beta{}+\frac{\frac1n\sum z_i\varepsilon_i}{\frac1n\sum z_ix_i}\ \xrightarrow{p}\ \beta +Cov(Z,ε)Cov(Z,X)=β{}+\frac{\operatorname{Cov}(Z,\varepsilon)}{\operatorname{Cov}(Z,X)}=\beta +0Cov(Z,X*)=β.{}+\frac0{\operatorname{Cov}(Z,X^*)}=\beta . Its asymptotic variance is Var(β̂IV)≈σε2∑zi2(∑zixi)2=σε2∑xi2rzx2.\operatorname{Var}(\hat\beta_{IV})\approx\frac{\sigma_\varepsilon^2\sum z_i^2}{\left(\sum z_ix_i\right)^2}=\frac{\sigma_\varepsilon^2}{\sum x_i^2\,r_{zx}^2}. So a weakly correlated instrument gives an imprecise estimate.

In matrix form, with several regressors and an instrument matrix ZZ (n×kn\times k): 𝛃̂IV=(Z′X)−1Z′𝐘.\hat{\boldsymbol\beta}_{IV}=(Z'X)^{-1}Z'\mathbf Y . With more instruments than regressors, use two-stage least squares: 𝛃̂2SLS=(X̂′X̂)−1X̂′𝐘,X̂\hat{\boldsymbol\beta}_{2SLS}=(\hat X'\hat X)^{-1}\hat X'\mathbf Y,\qquad \hat X =Z(Z′Z)−1Z′X.=Z(Z'Z)^{-1}Z'X .

Other approaches:

  • Grouping methods (Wald’s method of dividing the data into two groups by XX; Bartlett’s three-group method), which are IV methods using group-membership instruments;
  • the orthogonal (Deming) regression, when the ratio of error variances is known.

✓ Answer checked step by step Answer checked step by step: the inconsistency plim b = βλ with λ = σ²ₓ/(σ²ₓ + σ²ᵥ), and the IV estimator Σzy/Σzx with its consistency.

↑ Back to the question list

Explain the multi-collinearity problem. Interpret it geometrically and algebraically. Suggest methods to overcome the problem.

1996 · Paper II · Q15c · 20 marks

Solution

(This is the same question as Q45 (1999, 11b) above. The worked solution is repeated here so that each question is complete.)

The problem. In 𝐘=X𝛃+𝐮\mathbf Y=X\boldsymbol\beta+\mathbf u, multicollinearity is the existence of exact or near-exact linear relations among the columns of XX (the explanatory variables). Exact relations make the individual coefficients indeterminate. Near relations make them very imprecise: large variances, insignificant tt-ratios with a high R2R^2, instability and wrong signs.

Algebraic interpretation.

  • Perfect multicollinearity: there is 𝐜≠𝟎\mathbf c\ne\mathbf0 with X𝐜=𝟎X\mathbf c=\mathbf0, so rankX<k\operatorname{rank}X<k and X′XX'X is singular, |X′X|=0|X'X|=0. The normal equations X′X𝛃=X′𝐘X'X\boldsymbol\beta=X'\mathbf Y have infinitely many solutions. If 𝛃̂\hat{\boldsymbol\beta} is one, so is 𝛃̂+t𝐜\hat{\boldsymbol\beta}+t\mathbf c. Only functions 𝐚′𝛃\mathbf a'\boldsymbol\beta with 𝐚\mathbf a in the row space of XX are estimable.
  • Near multicollinearity: X𝐜≈𝟎X\mathbf c\approx\mathbf0, so X′XX'X has a very small eigenvalue λmin\lambda_{\min} and a near-zero determinant. Since D(𝛃̂)=σ2(X′X)−1D(\hat{\boldsymbol\beta})=\sigma^2(X'X)^{-1} =σ2∑j𝐯j𝐯j′λj,=\sigma^2\sum_j\frac{\mathbf v_j\mathbf v_j'}{\lambda_j}, the variance in the direction of 𝐯min\mathbf v_{\min} is σ2/λmin\sigma^2/\lambda_{\min}, which is huge. Individually, Var(β̂j)=σ2∑xj2⋅11−Rj2,\operatorname{Var}(\hat\beta_j)=\frac{\sigma^2}{\sum x_j^2}\cdot\frac1{1-R_j^2}, which explodes as Rj2→1R_j^2\to1.

Geometric interpretation.

  • Think of each regressor as a vector in nn-dimensional observation space. OLS projects 𝐘\mathbf Y onto the space spanned by these vectors, and 𝛃̂\hat{\boldsymbol\beta} gives the coordinates of the projection in terms of the regressor vectors.
  • If two regressor vectors, 𝐱2\mathbf x_2 and 𝐱3\mathbf x_3, point in nearly the same direction (the angle between them is small, cosθ=r23≈1\cos\theta=r_{23}\approx1), the plane they span is poorly determined. Expressing the projection in terms of these two nearly parallel vectors is unstable: a tiny change in 𝐘\mathbf Y changes the coordinates enormously, though the fitted vector 𝐘̂\hat{\mathbf Y} (and so R2R^2) hardly changes. In the perfect case the vectors are collinear, and the coordinates are not unique.
  • Equivalently, the residual sum of squares surface S(𝛃)S(\boldsymbol\beta), whose contours are ellipses in 𝛃\boldsymbol\beta-space, becomes a long, narrow ridge. Many very different (β2,β3)(\beta_2,\beta_3) pairs give almost the same fit, and the confidence ellipse is elongated along the direction 𝐯min\mathbf v_{\min}.
  • In the Ballentine (Venn diagram) picture, the circles for X2X_2 and X3X_3 overlap almost completely, so little information is left to separate their effects.

Methods to overcome the problem.

  1. Obtain more data, or data with more independent variation.
  2. Use a priori information or restrictions (restricted least squares).
  3. Combine cross-section and time-series information.
  4. Drop a collinear variable, if theory allows (beware of specification bias).
  5. Transform the variables: first differences, ratios, deflation.
  6. Ridge regression, (X′X+kI)−1X′𝐘(X'X+kI)^{-1}X'\mathbf Y: a small bias for a large variance reduction.
  7. Principal components regression: use orthogonal combinations of the regressors and drop the components with tiny eigenvalues.

✓ Answer checked step by step Answer checked step by step: the algebraic (rank, eigenvalue, VIF) and geometric (near-coplanar regressor vectors, ridge-shaped SS surface) interpretations, and the remedies.

↑ Back to the question list

Specify the general linear model. Show that under certain conditions (to be stated) the least squares and the maximum likelihood methods produce identical estimators of the coefficients in the model.

1995 · Paper II · Q14a · 20 marks

Solution

(This is the same question as Q44 (1999, 11a) above. The worked solution is repeated here so that each question is complete.)

The general linear model. 𝐘=X𝛃+𝐮,\mathbf Y=X\boldsymbol\beta+\mathbf u, where 𝐘\mathbf Y is n×1n\times1, XX is n×kn\times k and 𝛃\boldsymbol\beta is k×1k\times1.

Conditions:

  1. XX is non-stochastic, of rank k<nk<n.
  2. E(𝐮)=𝟎E(\mathbf u)=\mathbf0.
  3. E(𝐮𝐮′)=σ2InE(\mathbf u\mathbf u')=\sigma^2I_n (homoscedastic, uncorrelated errors).
  4. The disturbances are normally distributed: 𝐮∼Nn(𝟎,σ2In)\mathbf u\sim N_n(\mathbf0,\sigma^2I_n).

Least squares estimator. Minimise S(𝛃)=(𝐘−X𝛃)′(𝐘−X𝛃)S(\boldsymbol\beta)=(\mathbf Y-X\boldsymbol\beta)'(\mathbf Y-X\boldsymbol\beta). Then ∂S∂𝛃=−2X′𝐘+2X′X𝛃=𝟎⇒𝛃̂LS\frac{\partial S}{\partial\boldsymbol\beta}=-2X'\mathbf Y{}+2X'X\boldsymbol\beta=\mathbf0\Longrightarrow\ \hat{\boldsymbol\beta}_{LS} =(X′X)−1X′𝐘.=(X'X)^{-1}X'\mathbf Y .

Maximum likelihood estimator. Under condition 4, 𝐘∼Nn(X𝛃,σ2I)\mathbf Y\sim N_n(X\boldsymbol\beta,\sigma^2I), and the log-likelihood is ℓ(𝛃,σ2)=−n2log(2π)\ell(\boldsymbol\beta,\sigma^2)=-\frac n2\log(2\pi) −n2logσ2−12σ2S(𝛃).{}-\frac n2\log\sigma^2{}-\frac{1}{2\sigma^2}S(\boldsymbol\beta). For any fixed σ2>0\sigma^2>0, ℓ\ell depends on 𝛃\boldsymbol\beta only through −S(𝛃)/(2σ2)-S(\boldsymbol\beta)/(2\sigma^2). So ℓ\ell is maximised over 𝛃\boldsymbol\beta exactly where S(𝛃)S(\boldsymbol\beta) is minimised: ∂ℓ∂𝛃=1σ2X′(𝐘−X𝛃)=𝟎⇒𝛃̂ML\frac{\partial\ell}{\partial\boldsymbol\beta}=\frac1{\sigma^2}X'(\mathbf Y-X\boldsymbol\beta)=\mathbf0\Longrightarrow\ \hat{\boldsymbol\beta}_{ML} =(X′X)−1X′𝐘=𝛃̂LS.=(X'X)^{-1}X'\mathbf Y=\hat{\boldsymbol\beta}_{LS}. This does not depend on σ2\sigma^2, so it is also the joint maximiser. Then ∂ℓ∂σ2=0⇒σ̂ML2\frac{\partial\ell}{\partial\sigma^2}=0\Longrightarrow\ \hat\sigma^2_{ML} =(𝐘−X𝛃̂)′(𝐘−X𝛃̂)n.=\frac{(\mathbf Y-X\hat{\boldsymbol\beta})'(\mathbf Y-X\hat{\boldsymbol\beta})}{n}.

Conclusion. Under normal, homoscedastic, independent errors, the least squares and maximum likelihood methods give identical estimators of 𝛃\boldsymbol\beta. They differ only in the estimate of σ2\sigma^2: ML divides by nn (biased), while the unbiased least squares estimate divides by n−kn-k. ◼\blacksquare

Remarks.

  • If E(𝐮𝐮′)=σ2ΩE(\mathbf u\mathbf u')=\sigma^2\Omega with Ω\Omega known, the MLE coincides with the GLS estimator instead.
  • If the errors are not normal (for example Laplace), the MLE differs from least squares (least absolute deviations, in the Laplace case).

✓ Proof checked step by step Proof checked step by step: the log-likelihood under N(0, σ²I) is maximised in β exactly where the residual sum of squares is minimised.

↑ Back to the question list

Explain specification error in a general linear model. What are its consequences?

1995 · Paper II · Q14b · 20 marks

Solution

Specification error. A specification error occurs when the estimated model differs from the true model that generated the data. In the GLM, the main types are:

  1. omitting a relevant explanatory variable;
  2. including an irrelevant variable;
  3. adopting the wrong functional form (linear instead of log or quadratic);
  4. errors of measurement in the variables;
  5. an incorrect specification of the disturbance (for example additive instead of multiplicative, or ignoring heteroscedasticity or autocorrelation);
  6. wrongly treating an endogenous variable as exogenous (simultaneity).

Consequences.

(a) Omitting a relevant variable (under-fitting). True model: 𝐘=X1𝛃1+X2𝛃2+𝐮\mathbf Y=X_1\boldsymbol\beta_1+X_2\boldsymbol\beta_2+\mathbf u. Fitted model: 𝐘\mathbf Y on X1X_1 only. 𝐛1=(X1′X1)−1X1′𝐘,E(𝐛1)\mathbf b_1=(X_1'X_1)^{-1}X_1'\mathbf Y,\qquad E(\mathbf b_1) =𝛃1+(X1′X1)−1X1′X2𝛃2=𝛃1=\boldsymbol\beta_1{}+(X_1'X_1)^{-1}X_1'X_2\boldsymbol\beta_2=\boldsymbol\beta_1 +P𝛃2,{}+P\boldsymbol\beta_2, where PP is the matrix of coefficients from regressing X2X_2 on X1X_1.

  • So 𝐛1\mathbf b_1 is biased and inconsistent, unless X1′X2=0X_1'X_2=0 (the omitted variables are uncorrelated with the included ones) or 𝛃2=0\boldsymbol\beta_2=0. In the two-variable case, E(b12)=β12+β13b32E(b_{12})=\beta_{12}+\beta_{13}b_{32}, where b32b_{32} is the slope from regressing X3X_3 on X2X_2.
  • σ2\sigma^2 is overestimated (the omitted effect goes into the residuals), so the usual variance estimates are biased, and confidence intervals and tests are misleading.
  • The variance of 𝐛1\mathbf b_1 itself is smaller than in the correct model, a misleading gain in precision.
  • Forecasts are biased.

(b) Including an irrelevant variable (over-fitting). True: 𝐘=X1𝛃1+𝐮\mathbf Y=X_1\boldsymbol\beta_1+\mathbf u. Fitted: on X1X_1 and X2X_2.

  • The estimators remain unbiased and consistent, and s2s^2 is unbiased, so inference is valid.
  • But they are inefficient: the variances are larger, more so the more X2X_2 is correlated with X1X_1.
  • Degrees of freedom are lost.

This error is less serious than omission.

(c) Wrong functional form. The estimates are biased and inconsistent for the true marginal effects. The residuals show systematic patterns, which can look like autocorrelation or heteroscedasticity, and predictions are biased, especially outside the sample range.

(d) Errors in the explanatory variables: inconsistent OLS (attenuation bias); see Q49 on this page.

Detection of specification errors.

  • Examine residual plots, and the DW statistic (which can signal omitted variables or a wrong form).
  • Ramsey’s RESET test: add powers of Ŷ\hat Y and test their joint significance.
  • Lagrange multiplier tests for omitted variables.
  • tt and FF tests for included variables.
  • Information criteria (AIC, BIC) for comparing models.
  • Hausman tests for endogeneity or errors in variables.
  • Non-nested tests (the JJ test) between rival models.

✓ Answer checked step by step Answer checked step by step: omitted-variable bias E(b) = β + (X′₁X₁)⁻¹X′₁X₂β₂, irrelevant variables, wrong functional form, and specification tests.

↑ Back to the question list

State the problem of multi-collinearity in a linear model. Give an example.

1995 · Paper II · Q14c · 20 marks

Solution

The problem. In the linear model Y=β1+β2X2+…+βkXk+uY=\beta_1+\beta_2X_2+\dots+\beta_kX_k+u, the OLS method requires the explanatory variables to be linearly independent (so that X′XX'X is non-singular). Multicollinearity is the situation in which there is an exact or approximate linear relationship among the explanatory variables: λ2X2i+λ3X3i+…+λkXki\lambda_2X_{2i}{}+\lambda_3X_{3i}{}+\dots{}+\lambda_kX_{ki} ≈λ1for all i.\approx\lambda_1\quad\text{for all }i .

  • Exact: the coefficients cannot be determined. Only certain combinations of them are estimable.
  • Approximate: the coefficients can be estimated, and are unbiased, but with large standard errors. Individual effects cannot be separated reliably, tt-ratios are low even with a high R2R^2, the estimates are unstable, and wrong signs may appear.

Example. A consumption function Ct=β1+β2Yt+β3Wt+ut,C_t=\beta_1+\beta_2Y_t+\beta_3W_t+u_t, where CC is consumption, YY income and WW wealth. Over time, income and wealth grow together, so their correlation is very high (say 0.99). The regression may show R2=0.97R^2=0.97, yet neither β̂2\hat\beta_2 nor β̂3\hat\beta_3 is significant, and β̂3\hat\beta_3 may even be negative. We cannot tell how much of the rise in consumption is due to income and how much to wealth. In the extreme case where Wt=10YtW_t=10Y_t exactly, Ct=β1+(β2+10β3)Yt+ut,C_t=\beta_1+(\beta_2+10\beta_3)Y_t+u_t, so only β2+10β3\beta_2+10\beta_3 can be estimated, not β2\beta_2 and β3\beta_3 separately.

Other examples:

  • a production function with labour and capital that grow in fixed proportion;
  • a demand function with the prices of two close substitutes that move together;
  • a polynomial model in XX, X2X^2 and X3X^3 when XX varies over a narrow range;
  • the dummy-variable trap: including dummies for all categories together with an intercept.

✓ Answer checked step by step Answer checked step by step: the statement of the problem and an example (consumption on income and wealth).

↑ Back to the question list

Write a note on estimation of demand functions.

1995 · Paper II · Q16c · 20 marks

Solution

Demand function. It expresses the quantity of a commodity demanded as a function of its determinants: q=f(p,Y,pr,N,T,…),q=f(p,\ Y,\ p_r,\ N,\ T,\dots), where pp is the own price, YY consumers’ income, prp_r the prices of related goods, NN population or household size, and TT tastes or time. Estimating it means measuring these relationships, chiefly the elasticities, from data.

1. Specification. Common forms:

  • Linear: q=a+bp+cY+uq=a+bp+cY+u. The elasticity varies along the curve.
  • Constant-elasticity (double-log): logq=α+eplogp+ηlogY\log q=\alpha{}+e_p\log p{}+\eta\log Y +∑erlogpr+u{}+\sum e_r\log p_r{}+u. The coefficients are the elasticities directly. This is the most popular form.
  • Systems of demand equations that satisfy the restrictions of consumer theory (adding-up, homogeneity, symmetry): Stone’s linear expenditure system, the Rotterdam model, and Deaton–Muellbauer’s AIDS.

Dynamic versions (partial adjustment, habit formation) distinguish short-run from long-run elasticities.

2. Data.

  • Time series of market quantities, prices and incomes. These are used mainly to estimate price elasticities.
  • Cross-section (family budget) data from household surveys, in which prices are nearly constant. These are used for income (Engel) elasticities, by fitting Engel curves (double-log, semi-log, Working–Leser).
  • Pooling the two: for example estimate the income elasticity from budgets, then impose it in the time-series regression to estimate the price elasticity (Stone’s and Tobin’s method). This also mitigates multicollinearity.

3. Estimation. OLS on the (log-)linear form, after deflating money variables by a price index and putting them in per-capita terms. Use GLS when there is autocorrelation or heteroscedasticity, SUR or system estimators for sets of demand equations, and IV or 2SLS when prices are endogenous.

4. Problems.

  • Identification: market data are equilibrium points of demand and supply. Demand is identified only if supply shifts (or there are supply shifters to use as instruments); otherwise the “demand curve” may be a supply curve or a mixture (Working’s problem).
  • Multicollinearity between prices, income and trend in time series.
  • Autocorrelated errors and dynamics (lagged adjustment).
  • Shifts in tastes and quality changes over time.
  • Aggregation over heterogeneous consumers and commodities.
  • Errors of measurement in prices and quantities.
  • Choice of functional form and the assumption of constant elasticity.
  • Differences between cross-section and time-series elasticities (long-run versus short-run).

5. Uses. Demand projection and planning, price and tax policy (incidence and revenue effects), agricultural price support, and business decisions on pricing and production.

✓ Answer checked step by step Answer checked step by step: the specification, data sources (time series and family budgets), estimation methods and problems in estimating demand functions.

↑ Back to the question list

More on Quantitative Economics and Official Statistics

Questions: UPSC Civil Services (Main) Examination, Statistics Paper II, 1995–2026. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted