Advanced Economics‹⌂ 0:00 studied

Module 14 · 13 min read · Free chapter

Regression, its problems and inequality measures

In short

OLS fits the line that minimises squared residuals and is BLUE under the classical assumptions. TSS = ESS + RSS gives R². Multicollinearity inflates standard errors; heteroscedasticity and autocorrelation keep OLS unbiased but inefficient, detected by tests such as Goldfeld-Quandt and Durbin-Watson. The Lorenz curve and Gini measure inequality; under the Pareto law the Gini is 1/(2α − 1).

What are you preparing for? We show the practice and previous year questions of your exam.

Start from zero: why regression?

Questions with numbers. By how much does food spending rise when income rises by ₹1,000? How much does unemployment fall when growth rises by one point? Does an extra year of schooling raise wages, and by how much? Each question asks for the size of a relationship, not just its direction.

What regression does. Regression fits an equation that explains one variable, the dependent variable, by others, the explanatory variables. It gives a coefficient for each, with a standard error that tells us how precise it is. The previous chapter's tests then tell us which effects are real.

Why it can go wrong. Regression rests on assumptions about the error term. When explanatory variables move together, when error variance changes, or when errors carry over from one period to the next, the results can mislead. This chapter covers the method, its common problems, and the measures of inequality that economists estimate and compare.

Ordinary least squares and the Gauss-Markov theorem

The model. The two-variable model is Yi=α+βXi+uiY_i = \alpha + \beta X_i + u_i. Here α is the intercept, β the slope, and uiu_i the error or disturbance, which captures everything else that affects Y. The error is never observed, because the true α and β are unknown.

Error and residual. Once we estimate the line, the residual is ei=Yi−α^−β^Xie_i = Y_i - \hat{\alpha} - \hat{\beta}X_i, the gap between the actual and fitted value. The residual is the sample stand-in for the error, in the same way that β^\hat{\beta} stands in for β. Mixing up the two is a common slip in answers.

The least squares rule. OLS picks α^\hat{\alpha} and β^\hat{\beta} to minimise ∑ei2\sum e_i^2. Squaring stops positive and negative misses from cancelling and penalises big misses more. Setting the derivatives to zero gives the normal equations, whose solution in deviation form, with xi=Xi−Xˉx_i = X_i - \bar{X} and yi=Yi−Yˉy_i = Y_i - \bar{Y}, is

β^=∑xiyi∑xi2,α^=Yˉ−β^Xˉ\hat{\beta} = \frac{\sum x_iy_i}{\sum x_i^2}, \qquad \hat{\alpha} = \bar{Y} - \hat{\beta}\bar{X}

Classical assumptions. The model is linear in parameters, and X is fixed or uncorrelated with u. The errors have mean zero, constant variance (homoscedasticity), and no correlation across observations (no autocorrelation). With several regressors, no one is an exact linear combination of the others; for exact tests, the errors are also normal.

Gauss-Markov theorem. Under these assumptions, without needing normality, OLS is BLUE: the best linear unbiased estimator. Best means smallest variance among all estimators that are linear in Y and unbiased. This is why OLS is the default, and why each failed assumption below is studied for what it does to this result.

Multiple regression. With k regressors the model is Y=Xβ+uY = X\beta + u in matrix form, and the OLS solution is β^=(X′X)−1X′Y\hat{\beta} = (X'X)^{-1}X'Y. Each coefficient now measures the effect of its variable holding the others constant. In a log-log model, such as a demand equation in logs, each slope is an elasticity.

Dummy variables. A dummy takes the value 1 or 0, for example for urban or rural, or for years after a reform. Its coefficient measures the shift in the intercept for that group. Including a dummy for every category along with the intercept causes the dummy variable trap, a case of perfect collinearity.

Goodness of fit: TSS, ESS, RSS and R²

Splitting the variation. Write each deviation as yi=y^i+eiy_i = \hat{y}_i + e_i, the fitted part plus the residual. Squaring and summing gives

∑yi2=∑y^i2+∑ei2+2∑y^iei\sum y_i^2 = \sum \hat{y}_i^2 + \sum e_i^2 + 2\sum \hat{y}_ie_i

The last term is zero, because the normal equations make residuals sum to zero and be uncorrelated with X, and so with the fitted values.

The identity. So TSS = ESS + RSS: total sum of squares equals explained sum of squares plus residual sum of squares. In the two-variable case, ESS=β^2∑xi2ESS = \hat{\beta}^2\sum x_i^2. This identity is the backbone of R2R^2 and of the F test.

R squared. The coefficient of determination R2=ESS/TSS=1−RSS/TSSR^2 = ESS/TSS = 1 - RSS/TSS is the share of the variation in Y explained by the regression. It lies between 0 and 1 when there is an intercept. Without an intercept the residuals need not sum to zero, the identity breaks, and the usual R2R^2 can mislead.

Adjusted R squared. Adding any regressor never lowers R2R^2, even a useless one. Adjusted Rˉ2=1−(1−R2)n−1n−k\bar{R}^2 = 1 - (1 - R^2)\dfrac{n - 1}{n - k} corrects for degrees of freedom and can fall when a weak variable is added. It is the better guide when comparing models with different numbers of regressors.

Correlation and the two lines. The correlation coefficient r=∑xiyi/∑xi2∑yi2r = \sum x_iy_i/\sqrt{\sum x_i^2\sum y_i^2} measures the strength of a linear link, from −1 to +1. In two-variable regression, R2=r2R^2 = r^2. There are two regression lines, Y on X and X on Y, and r is the geometric mean of their slopes: r2=byxbxyr^2 = b_{yx}b_{xy}.

The angle between the lines. When r=±1r = \pm 1, the two lines coincide. When r=0r = 0, they are perpendicular, parallel to the axes. The closer the lines, the stronger the correlation.

Correlation is not causation. Ice cream sales and drowning deaths rise together because both rise in summer. A high R2R^2 shows association, not that X causes Y. Causal claims need theory, timing and careful design, such as experiments or natural experiments.

Multicollinearity and specification errors

What it is. Perfect multicollinearity means one regressor is an exact linear function of others, so X′XX'X cannot be inverted and OLS fails. Imperfect multicollinearity means regressors are highly but not perfectly correlated, such as income and wealth, or female literacy and urbanisation. This is a data problem, not a failed assumption.

What it does. OLS stays unbiased and even BLUE, but the variances of the coefficients become large. Estimates swing a lot when a few observations change, and signs may come out wrong. The classic symptom is a high R² and significant F with few significant t ratios.

Detection. Look at pairwise correlations among regressors; values above about 0.8 are a warning. The variance inflation factor VIFj=1/(1−Rj2)VIF_j = 1/(1 - R_j^2), where Rj2R_j^2 comes from regressing XjX_j on the other regressors, shows how much the variance is blown up. A VIF above 10 is usually treated as serious.

Remedies. Get more or better data, combine variables into an index, use ratios or first differences, or use prior information from other studies. Dropping a variable is tempting but can cause a worse problem. If the aim is only forecasting, multicollinearity may not matter much.

Omitted variable bias. If a relevant variable is left out and it is correlated with an included one, the included coefficient picks up part of the missing effect and is biased and inconsistent. A wage regression without ability, for example, overstates the return to schooling. Including an irrelevant variable is milder: estimates stay unbiased but lose precision.

Endogeneity. When a regressor is correlated with the error, through omitted variables, measurement error or two-way causation, OLS is biased and inconsistent. Price and quantity in a market are set together by supply and demand, which is the classic case. Instrumental variables and simultaneous equation methods are used to deal with it.

Heteroscedasticity and autocorrelation

Heteroscedasticity. The classical model assumes every error has the same variance. In cross-section data this often fails: spending of rich households varies far more than that of poor ones, and big firms vary more than small ones. When the error variance changes across observations, the errors are heteroscedastic.

Why mostly cross-section. Cross-section units differ hugely in scale at one point in time, so their errors differ in size. A time series of one economy moves more gradually, so the scale of its errors changes less from one period to the next. In time series the bigger worry is that errors are linked across periods.

Consequences. OLS coefficients stay unbiased and consistent, but they are no longer efficient, so OLS is not BLUE. The usual formula for standard errors is wrong, so t and F tests can mislead. Usually the standard errors are understated, making variables look more significant than they are.

Detection and remedies. A plot of squared residuals against X shows a fanning-out pattern. Formal tests include Goldfeld-Quandt, which compares residual variances of the low and high parts of the sample with an F test, and the Breusch-Pagan and White tests. The remedies are weighted least squares, which gives less weight to noisier observations, or heteroscedasticity-robust standard errors; taking logs often helps too.

Autocorrelation. In time series, a shock in one quarter often spills into the next, so errors are correlated over time. A common model is first-order autoregression ut=ρut−1+εtu_t = \rho u_{t-1} + \varepsilon_t, with ∣ρ∣<1\lvert \rho \rvert < 1. Causes include inertia in economic series, omitted variables, wrong functional form and data smoothing.

The Durbin-Watson test. The statistic is

d=∑t=2n(et−et−1)2∑t=1net2≈2(1−ρ^)d = \frac{\sum_{t=2}^{n}(e_t - e_{t-1})^2}{\sum_{t=1}^{n}e_t^2} \approx 2(1 - \hat{\rho})

So d is near 2 with no autocorrelation, near 0 with strong positive autocorrelation, and near 4 with strong negative autocorrelation.

Reading the bounds. Tables give a lower bound dLd_L and an upper bound dUd_U. If d<dLd < d_L, there is positive autocorrelation; if dU<d<4−dUd_U < d < 4 - d_U, there is none; if d>4−dLd > 4 - d_L, there is negative autocorrelation. The zones between are inconclusive, and the test is invalid when a lagged dependent variable is a regressor.

Remedies for autocorrelation. Like heteroscedasticity, autocorrelation leaves OLS unbiased but inefficient, with wrong standard errors. If ρ is known, generalised least squares transforms the data as Yt−ρYt−1Y_t - \rho Y_{t-1} to remove it. If not, ρ is estimated by the Cochrane-Orcutt procedure, or Newey-West robust standard errors are used.

Measuring inequality: Lorenz, Gini and Pareto

The Lorenz curve. Line up people from poorest to richest. Plot the cumulative share of people on the horizontal axis and the cumulative share of income on the vertical axis. With perfect equality, the bottom 40 per cent hold 40 per cent of income, so the curve is the diagonal; in reality it bows below the diagonal, and the further it bows, the greater the inequality.

The Gini coefficient. Call the area between the diagonal and the Lorenz curve A, and the area under the curve B. Then

G=AA+B=1−2∫01L(p) dpG = \frac{A}{A + B} = 1 - 2\int_0^1 L(p)\,dp

because A+B=1/2A + B = 1/2. G is 0 with perfect equality and close to 1 when one person has everything; it also equals half the average absolute difference between all pairs of incomes, divided by the mean.

Lorenz dominance. If country P's Lorenz curve lies everywhere on or above country Q's, P is unambiguously more equal. Every measure that obeys the transfer principle, that a transfer from richer to poorer lowers inequality, will rank P as more equal. If the two curves cross, different measures can disagree, and the Gini alone cannot settle the ranking.

From the Pareto law. The Pareto law says the number of people with income above x is N(x)=Ax−αN(x) = Ax^{-\alpha}. Its Lorenz curve is L(p)=1−(1−p)1−1/αL(p) = 1 - (1 - p)^{1 - 1/\alpha}, and integrating gives

G=12α−1G = \frac{1}{2\alpha - 1}

A smaller α means a fatter upper tail and a higher Gini. For example, α = 1.5 gives a Gini of 0.5.

Properties a measure should have. A good inequality index satisfies the Pigou-Dalton transfer principle, is scale invariant (doubling all incomes leaves it unchanged), meets population replication (cloning the population leaves it unchanged), and is anonymous. The Gini meets all four but is not easily decomposable into within-group and between-group parts. It is also most sensitive to transfers near the middle of the distribution.

Other measures. The Theil index is decomposable by groups, such as rural and urban or states. The Atkinson index has an explicit inequality-aversion parameter, showing how much income society would give up for equality. Simple ratios include the Palma ratio, the top 10 per cent's share over the bottom 40 per cent's, and the coefficient of variation.

Indian use. Indian surveys mostly measure consumption, which is more equal than income, so consumption Gini figures look low compared with income Gini figures elsewhere. Comparisons should always state whether income, consumption or wealth is measured. Wealth Gini figures in India are much higher than consumption Gini figures, which matters when judging how equal growth has been.

Descriptive lens: how papers ask this, and how to answer

Questions on this chapter take these forms: estimating α and β by OLS from given sums; error versus residual and the BLUE property; proving TSS = ESS + RSS; reading a regression output for multicollinearity; the causes, consequences and remedies of heteroscedasticity and autocorrelation, with the Durbin-Watson decision rule; and the Lorenz curve, Gini coefficient, Lorenz dominance and the Gini under the Pareto law.

Answer plan for "Show that TSS = ESS + RSS."

  • Write yi=y^i+eiy_i = \hat{y}_i + e_i in deviation form.
  • Square and sum to get three terms.
  • Show the cross term ∑y^iei=β^∑xiei=0\sum \hat{y}_ie_i = \hat{\beta}\sum x_ie_i = 0 from the normal equations.
  • Conclude and define R2=ESS/TSSR^2 = ESS/TSS.

Answer plan for "Derive the Gini coefficient from the Lorenz curve." Draw the box with the diagonal and the Lorenz curve, label areas A and B, write G=A/(A+B)=1−2∫L(p) dpG = A/(A + B) = 1 - 2\int L(p)\,dp, state the range 0 to 1, and add one line on Lorenz dominance when curves cross.

Our practice questions (written by us for practice, not previous-year questions):

  1. State the assumptions of the classical linear regression model and explain what BLUE means. (12 marks)
  2. Why does adjusted R² sometimes fall when a variable is added? (8 marks)
  3. A regression has R² = 0.92 but no slope coefficient is significant. Diagnose and suggest remedies. (10 marks)
  4. Explain the Durbin-Watson decision zones. Why is the test invalid with a lagged dependent variable? (10 marks)
  5. Compare the Gini, Theil and Atkinson indices of inequality. Which suits a study of rural-urban inequality? (15 marks)

Keywords: dependent and explanatory variable, intercept, slope, error, residual, OLS, normal equations, classical assumptions, homoscedasticity, Gauss-Markov theorem, BLUE, multiple regression, elasticity, dummy variable trap, TSS, ESS, RSS, R², adjusted R², correlation coefficient, regression lines, multicollinearity, variance inflation factor, omitted variable bias, endogeneity, instrumental variables, heteroscedasticity, Goldfeld-Quandt, Breusch-Pagan, White test, weighted least squares, robust standard errors, autocorrelation, AR(1), Durbin-Watson d, Cochrane-Orcutt, GLS, Lorenz curve, Gini coefficient, Lorenz dominance, Pareto law, Pigou-Dalton transfer principle, scale invariance, decomposability, Theil index, Atkinson index, Palma ratio.

Quick revision

  • β^=∑xiyi/∑xi2\hat{\beta} = \sum x_iy_i/\sum x_i^2, α^=Yˉ−β^Xˉ\hat{\alpha} = \bar{Y} - \hat{\beta}\bar{X}; matrix form (X′X)−1X′Y(X'X)^{-1}X'Y. Error u is unseen; residual e is its estimate. Classical assumptions give BLUE (Gauss-Markov), no normality needed.
  • TSS = ESS + RSS since ∑ei=0\sum e_i = 0 and ∑xiei=0\sum x_ie_i = 0. R2=ESS/TSSR^2 = ESS/TSS; adjusted R2R^2 penalises extra regressors; R2=r2R^2 = r^2 and r2=byxbxyr^2 = b_{yx}b_{xy} in two-variable case.
  • Multicollinearity: unbiased, big variances, high R2R^2 with few significant t; VIF above 10 is serious. Omitted relevant variable: biased; irrelevant variable: only less precise.
  • Heteroscedasticity (cross-section) and autocorrelation (time series): OLS unbiased but not BLUE, standard errors wrong. Tests: Goldfeld-Quandt, Breusch-Pagan, White; DW d≈2(1−ρ)d \approx 2(1 - \rho). Remedies: WLS, GLS, Cochrane-Orcutt, robust standard errors.
  • Lorenz curve below diagonal; G=A/(A+B)=1−2∫LG = A/(A + B) = 1 - 2\int L; Lorenz dominance settles rankings only if curves do not cross; Pareto: G=1/(2α−1)G = 1/(2\alpha - 1). Theil decomposes; Atkinson has inequality aversion.

Check yourself

Exam-style questions on this chapter. Pick an answer to see the explanation. 0 of 12 answered

  1. The difference between the actual value of Y and its fitted value from an estimated regression is the:

  2. The Gauss-Markov theorem states that under the classical assumptions OLS is:

  3. Including a dummy for every category together with an intercept causes:

  4. R² measures:

  5. If the two regression slopes are b(yx) = 0.8 and b(xy) = 0.45, the correlation coefficient is:

  6. A classic sign of multicollinearity is:

  7. Leaving out a relevant variable that is correlated with an included regressor makes the included coefficient:

  8. Under heteroscedasticity, OLS coefficient estimates are:

  9. A Durbin-Watson statistic of about 0.4 suggests:

  10. The Goldfeld-Quandt test compares:

  11. Under the Pareto law with α = 2, the Gini coefficient is:

  12. When two Lorenz curves cross:

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

More in this module: Quantitative methods