Almost nothing in economics depends on one thing. Household spending depends on income, but also on how many people the household feeds and where it lives. A multiple regression puts all of them in at once and reports the effect of each with the others held fixed. This lesson says exactly what that phrase means, shows it on a picture you can change, and ends with the habit that matters most in an exam: reading a coefficient table and working out what happens when several variables change together.
The Ashanagar survey is invented. The statistics modules used one district of 60 households. Econometrics needs more households and more variables, so this is a new, larger survey of 600 households in the same imaginary district: income, spending, household size, whether the household is in the town or a village, the head’s schooling and earnings.
Because we wrote the data-generating process, we know the true answers, and every lab can show whether a regression recovers them. Household spending, in thousands of rupees a month, was generated as 1 + 0.45 × income + 0.9 × household size + 1.5 × town + an error with standard deviation 2.5. A real survey never tells you its true coefficients. This one does, so you can see how close an estimate comes.
It also holds a variable, the head’s ability, that a real survey could not observe. It is kept so that the lessons on omitted variables can show what happens when it is left out. Every figure here is illustrative, not official statistics.
In the regression primer one variable explained another, and the inference lesson asked how far that slope could be from the truth. Real outcomes have several causes, so the model grows a term for each of them:
Each coefficient has a precise reading: βj is the change in the expected value of y when xj rises by one unit and every other regressor stays where it is. That last clause is the whole point, and it is called ceteris paribus, other things equal.
Take the Ashanagar survey. Regressing monthly household spending (₹ thousand) on income, household size and a town dummy gives
With one regressor, least squares chose the line with the smallest sum of squared vertical gaps. With several it does the same in more dimensions: it picks the k + 1 coefficients that make the sum of squared residuals Σe² as small as possible. You cannot draw the surface for three regressors, but nothing in the logic changes.
Setting the slope of Σe² to zero in every direction gives k + 1 equations, the normal equations. They say two things that every later result leans on: the residuals add up to zero, and they are uncorrelated with every regressor. The matrix form of the same equations is the subject of lesson 2.
With k coefficients b₀, b₁, …, the residual of household i is ei = yi − b₀ − b₁xi1 − … and the criterion is the sum of their squares:
The sum of squares has one minimum, where its slope in every direction is zero. Differentiating with respect to bj and cancelling the −2:
That is k + 1 equations, one per coefficient. In matrix form they say X′e = 0.
The j = 0 equation is Σei = 0: the residuals sum to zero, so their mean is zero. The others say Σxijei = 0: the residuals are uncorrelated with each regressor. For the survey regression of spending on income, household size and town, the four sums are 0, 0, 0, 0, which are zero up to rounding.
Put e = y − Xb into X′e = 0:
The last step needs X′X to have an inverse, which fails exactly when one column of X is an exact combination of the others.
The fitted values are a combination of the columns of X, so they are orthogonal to the residuals too: Σŷe = 0. Then SST = Σ(y − ȳ)² splits cleanly into SSR + SSE with no cross term, which is why R² = SSR ÷ SST is a share between 0 and 1. For the survey regression, SST = 12,313.3, SSR = 8,395 and SSE = 3,918.2, and 8,395 + 3,918.2 = 12,313.3.
In survey data nothing is literally held fixed: households differ in everything at once. The regression does something cleverer. To get the effect of income on spending with household size and town held constant, it first takes household size and town out of both variables, removing whatever they explain of spending and of income. Then it draws the ordinary line through what is left. That slope is the multiple-regression coefficient, exactly.
Try it. Pick a story, tick the controls, and compare the two pictures. The same households are in both, and colour shows town and village.
Horizontal: years of schooling of the head. Vertical: head's monthly earnings (₹ thousand).
Both axes after the ticked controls are removed from schooling and from earnings, each measured from its own average.
Nothing is held constant yet, so the right-hand picture is the left one with the centre moved to zero, and the slope is the raw 1.81. Tick a control to take its influence out of both variables.
In the spending story the raw slope of spending on income is 0.534, but with size and town held constant it falls to 0.442, close to the true 0.45. In the earnings story the slope of earnings on schooling shrinks as you tick the controls, and with both it lands on the truth. The coefficient you read from a regression depends on which controls are in it.
Regress any variable on Z and keep the residual. Write M for that operation, so Mv is v with Z taken out. Two facts: MZ = 0, because Z is entirely explained by Z, and M e = e, because e is already orthogonal to Z.
So the cleaned-up y equals b₁ times the cleaned-up x₁, plus the same residual e as before.
The residual e is orthogonal to Mx₁, since Mx₁ is x₁ minus a combination of the columns of Z and e is orthogonal to all of those. A simple regression through the origin of My on Mx₁, whose error is orthogonal to the regressor, has slope
For the survey, take spending on income with household size and the town dummy removed from both. The slope of what is left is 0.442383. The coefficient on income in the regression with all three variables is 0.442383. They are the same number, as the lab on this page shows.
Exams give you a fitted equation and ask what happens to the predicted value when something changes. The rule has one step: for each variable that changes, multiply its coefficient by the size of its change, then add. Variables that do not change contribute nothing. Here is the table from the opening question.
| Variable | Meaning | Coefficient | Std. error |
|---|---|---|---|
| Intercept | 119.2 | 23.9 | |
| BD | bedrooms | 0.485 | 2.61 |
| BA | bathrooms | 23.4 | 10.76 |
| HS | house size, sq ft | 0.156 | 0.011 |
| PS | plot size, sq ft | 0.002 | 0.00048 |
| A | age, years | 0.090 | 0.311 |
| PC | 1 if poor condition | −35.6 | 10.5 |
Delhi School 2019, scenario 3. Dependent variable: price in ₹ thousand. n = 107, R² = 0.72, standard error of the regression 41.5.
Dummy variables work the same way. Moving a house from good to poor condition changes PC from 0 to 1 and nothing else, so the predicted price falls by exactly the dummy’s coefficient, ₹35,600. A dummy’s coefficient is a difference between two groups with all else equal.
The normal equations force several features on any least-squares fit, and exams test them as statements to be called true or false. With an intercept in the model:
Without an intercept, the first of these fails: the residuals need not sum to zero, and R² is computed differently (lesson 2 returns to this). Here is a five-statement drill.
Coefficients carry the units of their variables, so they cannot be compared: ₹0.44 thousand per ₹ thousand of income is not comparable with ₹0.9 thousand per person. A standardised coefficient removes the units. It says how many standard deviations y moves when x moves by one standard deviation:
| Variable | Coefficient | Std. deviation of x | Standardised |
|---|---|---|---|
| Income (₹ thousand) | 0.442 | 6.612 | 0.645 |
| Household size (persons) | 0.904 | 1.569 | 0.313 |
| Town (1) or village (0) | 1.466 | 0.492 | 0.159 |
Spending has a standard deviation of 4.53 (₹ thousand) in this survey.
Income dominates: a one-standard-deviation rise in income goes with a 0.65 standard-deviation rise in spending, against 0.31 for size and 0.16 for the town dummy. Size’s raw coefficient is about twice income’s, but household sizes vary little, so a standard-deviation change in size is a small step, and the town dummy, with the largest raw coefficient of all, only switches between two groups. In the Delhi School version of this question you are given b, sx and sy and asked for the product b × sx ÷ sy.
A large standardised coefficient says a variable moves y a lot per typical change in x. It does not say the variable can be changed, or that the relationship is causal. Use it to compare sizes, not to rank policies.
Definitions and one-step calculations: a t statistic, an R², which assumption is which. Most CUET and JNU questions sit here.
This topic’s hardest questions, from the DSE entrance, are worked through in Lesson 18: The algebra of least squares.
These are questions from the TestStop bank. A free account answers 10 a day, each with its worked solution; All-Access opens every set with no daily limit.