ExamSaathi learning library · Government exams · SSC CGL quantitative foundations; published syllabus labelled 2024 · Quantitative aptitude
Multiple regression plane: estimating one variable from two others
Fit the least squares regression plane of v1 on v2 and v3: find the partial regression coefficients b12.3 and b13.2 from summary figures or, for a small table, from the two normal equations, estimate v1, and judge the fit with the standard error of estimate.
Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.
You will learn to
- Write the least squares regression plane of v1 on v2 and v3 in deviation form and explain what a partial regression coefficient such as b12.3 measures.
- Calculate the partial regression coefficients b12.3 and b13.2 of a regression plane from the means, the standard deviations s1, s2, s3 and the correlations r12, r13, r23.
- Solve the two normal equations from a small table of v1, v2 and v3 values to find the multiple regression plane.
- Estimate v1 from the multiple regression plane for given v2 and v3, and find the standard error of estimate s1.23 = s1 x sqrt(1 - R1.23^2).
Before you start
Earlier, one variable was estimated from a single other variable with a regression line. Often two influences act at once: a shop's weekly sales depend on its advertising spend and on the price it charges, and a block's rice yield depends on both rainfall and fertiliser. Here v1 is the variable to be estimated, and v2 and v3 are the two used to estimate it; x is kept for multiplication. You need the mean of each variable, the standard deviations s1, s2 and s3, and the simple correlations r12, r13 and r23, which are supplied rather than worked out. For any row of data, the deviations are d1 = v1 - mean of v1, d2 = v2 - mean of v2 and d3 = v3 - mean of v3, and each set of deviations adds up to 0. Every figure in this lesson is invented for practice.
The plane and its partial regression coefficients
With one helper variable the estimates fall on a line; with two they fall on a flat surface, a plane, lying over the grid of (v2, v3) values. The least squares regression plane of v1 on v2 and v3 is the plane that makes the sum of the squared gaps between each actual v1 and its estimate as small as possible. In deviation form it reads (v1 - mean of v1) = b12.3 x (v2 - mean of v2) + b13.2 x (v3 - mean of v3), so it always passes through the point of the three means. The numbers b12.3 and b13.2 are the partial regression coefficients. b12.3 is the change in the estimate of v1 when v2 goes up by one unit and v3 is held fixed; b13.2 is the change when v3 goes up by one unit and v2 is held fixed. They carry units, such as rupees of sales per rupee of advertising. Opening the brackets gives v1 = a + b12.3 x v2 + b13.2 x v3, where a = mean of v1 - b12.3 x mean of v2 - b13.2 x mean of v3.
Coefficients from means, SDs and correlations
When the summary figures are known, the two coefficients are b12.3 = (s1 / s2) x (r12 - r13 x r23) / (1 - r23^2) and b13.2 = (s1 / s3) x (r13 - r12 x r23) / (1 - r23^2). Note the pattern. The SD of v1, the variable being estimated, sits on top of each ratio. The bottom line 1 - r23^2 shrinks as the two helpers overlap more, and it has no square root. In each top line, a helper's own correlation with v1 loses the other helper's correlation with v1 times r23. When r23 = 0 the helpers do not overlap at all, and each coefficient becomes an ordinary regression slope, for example b12.3 = r12 x s1 / s2. When r23 is not 0, a partial coefficient can be far from the simple slope, or even of the opposite sign, because some of what v2 appears to do by itself is really done by v3, which moves with it.
From a small table: the two normal equations
For raw data, work with deviations. Find the three means, then d1, d2 and d3 for every row, and total five columns: d2^2, d3^2, d2 x d3, d1 x d2 and d1 x d3. Making the sum of squared gaps as small as possible leads to two normal equations: sum of (d1 x d2) = b12.3 x sum of d2^2 + b13.2 x sum of (d2 x d3), and sum of (d1 x d3) = b12.3 x sum of (d2 x d3) + b13.2 x sum of d3^2. Solve them as simultaneous equations, usually by multiplying one so that a coefficient matches and then subtracting. Put the two answers into the deviation form and work out the constant a from the means. Before solving, confirm that each deviation column adds up to 0, since a wrong mean spoils every later column. If the sum of (d2 x d3) happens to be 0, the two equations separate and each coefficient is a simple slope.
How close are the estimates: s1.23
An estimate read from the plane is a best guess, not a promise. The typical size of the miss is the standard error of estimate, s1.23 = s1 x sqrt(1 - R1.23^2), where R1.23 is the multiple correlation of v1 with v2 and v3; in this lesson it is always given. If R1.23 = 0.8, then sqrt(1 - 0.64) = 0.6, so the estimates typically miss by 60 percent of the spread that v1 has on its own. R1.23 = 1 means every point lies on the plane and s1.23 = 0, while R1.23 = 0 leaves s1.23 = s1, no better than quoting the mean of v1 every time. Estimates are also safest for v2 and v3 values within the range of the data; far outside it, the plane may not hold at all.
Common mistakes
Using the simple slope r12 x s1 / s2 for b12.3 when r23 is not 0. Turning s1 / s2 upside down, or putting a square root over 1 - r23^2. Swapping the top lines: b12.3 needs r12 - r13 x r23, while b13.2 needs r13 - r12 x r23. Losing a minus sign, often on a price coefficient or on a negative deviation. Writing the normal equations with the sums in the wrong places; the sum of (d2 x d3) appears in both. Putting raw values into the deviation form, or forgetting to add back the mean of v1. Reading b12.3 as the effect of v2 while v3 is also allowed to change. Multiplying s1 by R1.23, or by 1 - R1.23^2 without the root, when finding s1.23.
A routine for regression plane questions
1. Decide which variable is v1, the one to estimate, and which are the helpers v2 and v3. 2. From summary figures, find 1 - r23^2 first, then b12.3 and b13.2 with their s1 / s2 and s1 / s3 factors. 3. From a table, find the means and deviations, check that each deviation column totals 0, add up the five columns and solve the two normal equations. 4. Write the plane through the means and, if wanted, as v1 = a + b12.3 x v2 + b13.2 x v3. 5. Put in the given v2 and v3 to estimate v1. 6. If R1.23 is given, quote s1.23 = s1 x sqrt(1 - R1.23^2). 7. Sense-check the signs and units, and that the plane returns the mean of v1 when v2 and v3 sit at their means.
Worked examples
A namkeen brand sells through 30 shops in Indore. For each shop it notes weekly sales v1 (Rs. thousand), weekly local advertising spend v2 (Rs. thousand) and the shelf price v3 (Rs.) of its 200 g packet. Means: 60, 10 and 25. Standard deviations: s1 = 12, s2 = 4 and s3 = 2. Correlations: r12 = 0.75, r13 = -0.42 and r23 = 0.1. Find the regression plane of v1 on v2 and v3, and estimate the weekly sales of a shop that spends Rs. 12 thousand on advertising and charges Rs. 24.
- Bottom line: 1 - r23^2 = 1 - 0.01 = 0.99.
- b12.3 = (12 / 4) x (0.75 - (-0.42) x 0.1) / 0.99 = 3 x (0.75 + 0.042) / 0.99 = 3 x 0.792 / 0.99 = 3 x 0.8 = 2.4.
- b13.2 = (12 / 2) x (-0.42 - 0.75 x 0.1) / 0.99 = 6 x (-0.495) / 0.99 = 6 x (-0.5) = -3.
- Plane: v1 - 60 = 2.4 x (v2 - 10) - 3 x (v3 - 25). Opening the brackets, a = 60 - 2.4 x 10 + 3 x 25 = 111, so v1 = 111 + 2.4 x v2 - 3 x v3.
- Meaning: at a fixed price, each extra Rs. 1 thousand of advertising goes with Rs. 2.4 thousand more sales a week; at a fixed advertising spend, each Rs. 1 rise in price goes with Rs. 3 thousand less.
- Estimate for v2 = 12 and v3 = 24: v1 = 60 + 2.4 x (12 - 10) - 3 x (24 - 25) = 60 + 4.8 + 3 = 67.8.
Answer: The plane is v1 = 111 + 2.4 x v2 - 3 x v3, and the estimated weekly sales are Rs. 67.8 thousand, that is Rs. 67,800.
Five students at a Kota coaching centre noted their daily hours of self-study v2, their average hours of sleep a night v3 and their mark v1 out of 50 in a mock test. Written as (v1, v2, v3), the rows were (23, 4, 5), (30, 5, 9), (32, 6, 7), (30, 7, 5) and (35, 8, 9). Fit the least squares plane of v1 on v2 and v3 with the normal equations, and estimate the mark of a student who studies 7 hours a day and sleeps 8 hours a night.
- Means: v1: 150 / 5 = 30; v2: 30 / 5 = 6; v3: 35 / 5 = 7.
- Deviations (d1, d2, d3) row by row: (-7, -2, -2), (0, -1, 2), (2, 0, 0), (0, 1, -2) and (5, 2, 2). Each column adds up to 0.
- Sum of d2^2 = 4 + 1 + 0 + 1 + 4 = 10; sum of d3^2 = 4 + 4 + 0 + 4 + 4 = 16; sum of (d2 x d3) = 4 - 2 + 0 - 2 + 4 = 4.
- Sum of (d1 x d2) = 14 + 0 + 0 + 0 + 10 = 24; sum of (d1 x d3) = 14 + 0 + 0 + 0 + 10 = 24.
- Normal equations: 24 = 10 x b12.3 + 4 x b13.2 and 24 = 4 x b12.3 + 16 x b13.2.
- Multiply the first by 4: 96 = 40 x b12.3 + 16 x b13.2. Subtract the second: 72 = 36 x b12.3, so b12.3 = 2. Then 24 = 4 x 2 + 16 x b13.2 gives b13.2 = 16 / 16 = 1.
- Plane: v1 - 30 = 2 x (v2 - 6) + 1 x (v3 - 7), that is v1 = 11 + 2 x v2 + v3.
- For v2 = 7 and v3 = 8: v1 = 11 + 14 + 8 = 33.
Answer: The plane is v1 = 11 + 2 x v2 + v3 (b12.3 = 2 marks per extra hour of study with sleep fixed, b13.2 = 1 mark per extra hour of sleep with study fixed), and the estimated mark is 33 out of 50.
Across 50 rice-growing blocks of Odisha, the yield v1 (quintals per hectare) has mean 40 and SD 6, the season's rainfall v2 (cm) has mean 80 and SD 12, and fertiliser use v3 (kg per hectare) has mean 100 and SD 20. The correlations are r12 = 0.7, r13 = 0.55 and r23 = 0.25, and the multiple correlation is R1.23 = 0.8. Find the regression plane, estimate the yield of a block with 90 cm of rain and 125 kg of fertiliser per hectare, and find the standard error of estimate.
- 1 - r23^2 = 1 - 0.0625 = 0.9375.
- b12.3 = (6 / 12) x (0.7 - 0.55 x 0.25) / 0.9375 = 0.5 x 0.5625 / 0.9375 = 0.5 x 0.6 = 0.3 quintal per cm of rain.
- b13.2 = (6 / 20) x (0.55 - 0.7 x 0.25) / 0.9375 = 0.3 x 0.375 / 0.9375 = 0.3 x 0.4 = 0.12 quintal per kg of fertiliser.
- Plane: v1 - 40 = 0.3 x (v2 - 80) + 0.12 x (v3 - 100), so a = 40 - 24 - 12 = 4 and v1 = 4 + 0.3 x v2 + 0.12 x v3.
- Estimate: v1 = 40 + 0.3 x (90 - 80) + 0.12 x (125 - 100) = 40 + 3 + 3 = 46.
- Standard error of estimate: s1.23 = 6 x sqrt(1 - 0.8^2) = 6 x sqrt(0.36) = 6 x 0.6 = 3.6.
Answer: The plane is v1 = 4 + 0.3 x v2 + 0.12 x v3; the estimated yield is 46 quintals per hectare, and the standard error of estimate is 3.6 quintals per hectare.
Practice checks
- For 40 two-wheeler showrooms in Lucknow, monthly scooter sales v1 have SD s1 = 10, and monthly advertising spend v3 (Rs. thousand) has SD s3 = 5. The number of sales staff is v2. The correlations are r12 = 0.58, r13 = 0.5 and r23 = 0.2. The partial regression coefficient b13.2 is:
- A tea estate in Assam uses the plane (v1 - 22) = 2.5 x (v2 - 7) - 0.5 x (v3 - 8) to estimate the kilograms of leaf v1 a worker plucks in a day from the hours worked v2 and the day's rainfall v3 in mm. The estimate for a day of 8 hours with 10 mm of rain is:
- A plane estimates the monthly electricity bill v1 of flats in Chennai (s1 = Rs. 500) from floor area and the number of air conditioners, with R1.23 = 0.6. The standard error of estimate s1.23 is:
- From a small table, the deviation totals are: sum of d2^2 = 10, sum of d3^2 = 6, sum of (d2 x d3) = 4, sum of (d1 x d2) = 16 and sum of (d1 x d3) = 2. The partial regression coefficient b13.2 is:
- A shop's regression plane is v1 = 150 + 3 x v2 - 8 x v3, where v1 is weekly sales (Rs. thousand), v2 is advertising (Rs. thousand) and v3 is the price (Rs.). If the shop raises its price by Rs. 2 and keeps its advertising unchanged, the estimated weekly sales:
Sources checked
- SSC CGL Scheme and Syllabus, labelled 2024 — Tier-II Paper-II Statistics (Correlation and Regression: multiple regression); not verified as the full 2026-cycle syllabus
- NIST/SEMATECH e-Handbook of Statistical Methods — Section 4.1.4.1, Linear Least Squares Regression: fitting a function made of several explanatory variables, each multiplied by an unknown parameter, by minimising the sum of squared deviations between the data and the model; mathematical relationships only
- Wikipedia, Coefficient of multiple correlation — The coefficient of multiple correlation as the correlation between the actual values and the values predicted by a linear regression with an intercept, with R^2 as the fraction of the variance explained; mathematical relationships only