Statistics Graduate Level Quiz: Least Squares And Normal Equations
10 questions · exam conditions
0:00
Least Squares And Normal EquationsQuestion 1 of 10

An existing full-rank least squares fit has β^=(1,2)T\widehat{\beta}=(1,2)^{\mathsf T} and (XTX)1=I2(X^{\mathsf T}X)^{-1}=I_2. One new observation is added with predictor row xT=(1,1)x^{\mathsf T}=(1,1) and response y=5y=5. What is the updated least squares estimate?

(5/3,8/3)T(5/3,8/3)^{\mathsf T}
(3,4)T(3,4)^{\mathsf T}
(2,3)T(2,3)^{\mathsf T}
(4/3,7/3)T(4/3,7/3)^{\mathsf T}
← Back to quizzes

Statistics Graduate Level Quiz

Statistics Graduate Level Quiz: Least Squares And Normal Equations

Practice Least Squares And Normal Equations in Statistics Graduate Level with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.

What this quiz covers

This quiz focuses on Least Squares And Normal Equations, giving you a quick way to practice the rules, question types, and explanations that matter most for Statistics Graduate Level.

How to use this quiz

Try each quiz question before looking at the correct answer. Use the explanations to review missed ideas, then come back to similar questions until the pattern feels familiar.

All questions

Question 1

An existing full-rank least squares fit has β^=(1,2)T\widehat{\beta}=(1,2)^{\mathsf T} and (XTX)1=I2(X^{\mathsf T}X)^{-1}=I_2. One new observation is added with predictor row xT=(1,1)x^{\mathsf T}=(1,1) and response y=5y=5. What is the updated least squares estimate?

  1. (5/3,8/3)T(5/3,8/3)^{\mathsf T} (correct answer)
  2. (3,4)T(3,4)^{\mathsf T}
  3. (2,3)T(2,3)^{\mathsf T}
  4. (4/3,7/3)T(4/3,7/3)^{\mathsf T}
Explanation: When a single new observation is added to an existing least squares fit, you can avoid refitting from scratch using the rank-1 update formula. Given current estimate β^old\widehat{\beta}_{\text{old}}, matrix (XTX)1(X^\mathsf{T}X)^{-1}, new predictor xx, and new response yy, the updated inverse is: Mnew=(XTX+xxT)1M_{\text{new}} = \left(X^\mathsf{T}X + xx^\mathsf{T}\right)^{-1} and the updated estimate is: β^new=Mnew(XTXβ^old+xy)\widehat{\beta}_{\text{new}} = M_{\text{new}}\left(X^\mathsf{T}X\,\widehat{\beta}_{\text{old}} + xy\right) Here, XTX=I2X^\mathsf{T}X = I_2, so XTXβ^old=(1,2)TX^\mathsf{T}X\,\widehat{\beta}_{\text{old}} = (1,2)^\mathsf{T}. Adding xy=(1,1)T5=(5,5)Txy = (1,1)^\mathsf{T}\cdot 5 = (5,5)^\mathsf{T} gives the updated sufficient statistic (6,7)T(6,7)^\mathsf{T}. Next, XTX+xxT=I2+(11)(1,1)=(2112)X^\mathsf{T}X + xx^\mathsf{T} = I_2 + \begin{pmatrix}1\\1\end{pmatrix}(1,1) = \begin{pmatrix}2&1\\1&2\end{pmatrix} , whose inverse is $$\frac{1}{3}\begin{pmatrix}2&-1\-1&2\end{pmatrix} $$\widehat{\beta}_{\text{new}} = \frac{1}{3}\begin{pmatrix}2&-1\\-1&2\end{pmatrix}\begin{pmatrix}6\\7\end{pmatrix} = \frac{1}{3}\begin{pmatrix}5\\8\end{pmatrix} = \left(\frac{5}{3},\frac{8}{3}\right)^\mathsf{T}$$ This confirms **answer A**. Choice B $$(3,4)^\mathsf{T}$$ results from forgetting to apply $$M_{\text{new}}$$ and simply adding $$xy$$ to $$\widehat{\beta}_{\text{old}}$$. Choice C $$(2,3)^\mathsf{T}$$ comes from naively averaging the old estimate with the new observation's implied coefficients. Choice D $$(4/3, 7/3)^\mathsf{T}$$ arises from a sign error when inverting the updated matrix. **Study tip:** Memorize the rank-1 (Sherman-Morrison) update structure — on graduate exams, sequential updating questions almost always hinge on correctly computing $$(X^\mathsf{T}X + xx^\mathsf{T})^{-1}$$ and updating both the information matrix *and* the sufficient statistic simultaneously.

Question 2

A simple linear regression with intercept is fit using predictor xx. The sufficient statistics are n=5n=5, xi=10\sum x_i=10, xi2=30\sum x_i^2=30, yi=20\sum y_i=20, and xiyi=50\sum x_i y_i=50. The same fitted values are to be expressed using the centered predictor zi=xi2z_i=x_i-2 in the model yi=γ0+γ1zi+eiy_i=\gamma_0+\gamma_1 z_i+e_i. What are the least squares estimates?

  1. (γ^0,γ^1)=(2,1)(\widehat{\gamma}_0,\widehat{\gamma}_1)=(2,1)
  2. (γ^0,γ^1)=(4,1)(\widehat{\gamma}_0,\widehat{\gamma}_1)=(4,1) (correct answer)
  3. (γ^0,γ^1)=(0,1)(\widehat{\gamma}_0,\widehat{\gamma}_1)=(0,1)
  4. (γ^0,γ^1)=(4,1)(\widehat{\gamma}_0,\widehat{\gamma}_1)=(4,-1)
Explanation: When you reparametrize a regression by centering the predictor, the slope is invariant but the intercept shifts to reflect the new origin. This is the key insight: fitting yi=γ0+γ1zi+eiy_i = \gamma_0 + \gamma_1 z_i + e_i with zi=xixˉz_i = x_i - \bar{x} produces the same fitted values as the original model, so γ^1=β^1\widehat{\gamma}_1 = \widehat{\beta}_1, and γ^0=yˉ\widehat{\gamma}_0 = \bar{y} (since the regression line always passes through (zˉ,yˉ)=(0,yˉ)(\bar{z}, \bar{y}) = (0, \bar{y})). First, compute the sufficient statistics you need. From the given data: xˉ=10/5=2\bar{x} = 10/5 = 2, yˉ=20/5=4\bar{y} = 20/5 = 4. The slope from the original model is: β^1=xiyinxˉyˉxi2nxˉ2=505(2)(4)305(4)=1010=1\widehat{\beta}_1 = \frac{\sum x_i y_i - n\bar{x}\bar{y}}{\sum x_i^2 - n\bar{x}^2} = \frac{50 - 5(2)(4)}{30 - 5(4)} = \frac{10}{10} = 1 Since zi=xi2=xixˉz_i = x_i - 2 = x_i - \bar{x}, the centered predictor has mean zero, so γ^1=β^1=1\widehat{\gamma}_1 = \widehat{\beta}_1 = 1 and γ^0=yˉ=4\widehat{\gamma}_0 = \bar{y} = 4. The answer is (B). Choice (A) sets γ^0=2=xˉ\widehat{\gamma}_0 = 2 = \bar{x}, confusing the mean of xx with the mean of yy. Choice (C) sets the intercept to zero, which would only hold if yˉ=0\bar{y} = 0. Choice (D) incorrectly negates the slope, perhaps from a sign error in the centering formula. Your takeaway: centering a predictor never changes the slope — it only re-anchors the intercept to yˉ\bar{y}. Memorize that γ^0=yˉ\widehat{\gamma}_0 = \bar{y} when you center at xˉ\bar{x}; it's a frequent exam shortcut.

Question 3

A through-the-origin model yi=βxi+eiy_i=\beta x_i+e_i is fit by minimizing iwi(yiβxi)2\sum_i w_i(y_i-\beta x_i)^2. Two observations have (x1,y1,w1)=(1,1,4)(x_1,y_1,w_1)=(1,1,4) and (x2,y2,w2)=(2,4,1)(x_2,y_2,w_2)=(2,4,1). What is the weighted least squares estimate of β\beta?

  1. 6/56/5
  2. 33/1733/17
  3. 9/59/5
  4. 3/23/2 (correct answer)
Explanation: Weighted least squares (WLS) generalizes ordinary least squares by giving each observation a weight that reflects its precision or reliability. When you see a WLS problem, your first instinct should be to write down the closed-form estimator rather than re-deriving it from scratch. For a through-the-origin model, minimizing iwi(yiβxi)2\sum_i w_i(y_i - \beta x_i)^2 with respect to β\beta yields the estimator: β^=iwixiyiiwixi2\hat{\beta} = \frac{\sum_i w_i x_i y_i}{\sum_i w_i x_i^2} This is simply the OLS formula with each term weighted by wiw_i. Plugging in the two observations: iwixiyi=(4)(1)(1)+(1)(2)(4)=4+8=12\sum_i w_i x_i y_i = (4)(1)(1) + (1)(2)(4) = 4 + 8 = 12 iwixi2=(4)(1)2+(1)(2)2=4+4=8\sum_i w_i x_i^2 = (4)(1)^2 + (1)(2)^2 = 4 + 4 = 8 β^=128=32\hat{\beta} = \frac{12}{8} = \frac{3}{2} This confirms D is correct. Now for the distractors. A (6/56/5) likely results from mistakenly using wiyi/wixi\sum w_i y_i / \sum w_i x_i, forgetting to square the xix_i terms in the denominator. C (9/59/5) comes from ignoring weights entirely and computing the unweighted OLS estimate xiyi/xi2=(11+24)/(1+4)=9/5\sum x_i y_i / \sum x_i^2 = (1\cdot1 + 2\cdot4)/(1+4) = 9/5. B (33/1733/17) appears to arise from a scrambled weighting scheme, perhaps incorrectly applying weights to only the numerator or denominator but not both consistently. A reliable study tip: always write the WLS normal equations first. The formula β^=(XTWX)1XTWy\hat{\beta} = (\mathbf{X}^T \mathbf{W} \mathbf{X})^{-1} \mathbf{X}^T \mathbf{W} \mathbf{y} reduces to this ratio in the simple no-intercept case — memorizing this structure prevents most computational errors.

Question 4

For a full-rank least squares problem, suppose the unconstrained estimate is β^=(2,1)T\widehat{\beta}=(2,1)^{\mathsf T} and XTX=diag(1,4)X^{\mathsf T}X=\operatorname{diag}(1,4). The model is refit subject to the restriction β1+β2=0\beta_1+\beta_2=0. What is the restricted least squares estimate?

  1. (1/2,1/2)T(1/2,-1/2)^{\mathsf T}
  2. (2,2)T(2,-2)^{\mathsf T}
  3. (2/5,2/5)T(-2/5,2/5)^{\mathsf T} (correct answer)
  4. (1,1)T(-1,1)^{\mathsf T}
Explanation: When you encounter a restricted least squares problem, your goal is to minimize the usual sum of squares subject to a linear constraint. For a constraint of the form Rβ=rR\beta = r, the restricted estimator has the closed-form solution: β~=β^(XTX)1RT[R(XTX)1RT]1(Rβ^r)\tilde{\beta} = \widehat{\beta} - (X^\mathsf{T}X)^{-1}R^\mathsf{T}\left[R(X^\mathsf{T}X)^{-1}R^\mathsf{T}\right]^{-1}(R\widehat{\beta} - r) Here, the constraint β1+β2=0\beta_1 + \beta_2 = 0 means R=(1,1)R = (1,1) and r=0r = 0. With XTX=diag(1,4)X^\mathsf{T}X = \text{diag}(1,4), its inverse is diag(1,1/4)\text{diag}(1, 1/4). First compute Rβ^r=2+10=3R\widehat{\beta} - r = 2 + 1 - 0 = 3. Then R(XTX)1RT=1(1)+1(1/4)=5/4R(X^\mathsf{T}X)^{-1}R^\mathsf{T} = 1(1) + 1(1/4) = 5/4, so the scalar inverse is 4/54/5. The correction term becomes (XTX)1RT(4/5)3=diag(1,1/4)(1,1)T(12/5)=(12/5,3/5)T(X^\mathsf{T}X)^{-1}R^\mathsf{T} \cdot (4/5) \cdot 3 = \text{diag}(1,1/4)(1,1)^\mathsf{T} \cdot (12/5) = (12/5, 3/5)^\mathsf{T}. Subtracting: β~=(2,1)T(12/5,3/5)T=(2/5,2/5)T\tilde{\beta} = (2,1)^\mathsf{T} - (12/5, 3/5)^\mathsf{T} = (-2/5, 2/5)^\mathsf{T}, confirming C. Choice A, (1/2,1/2)T(1/2, -1/2)^\mathsf{T}, satisfies the constraint but ignores the differential weighting from XTXX^\mathsf{T}X — it's what you'd get assuming an identity matrix. Choice B, (2,2)T(2,-2)^\mathsf{T}, incorrectly anchors β1\beta_1 at its unconstrained value and simply negates it. Choice D, (1,1)T(-1,1)^\mathsf{T}, satisfies the constraint but corresponds to no principled derivation given the structure of XTXX^\mathsf{T}X. As a strategy, always remember that XTXX^\mathsf{T}X acts as a precision matrix — parameters estimated more precisely (larger diagonal entries) get pulled less by the constraint. Here, β2\beta_2 has four times the precision, so it shifts less, which is exactly what you see in answer C.

Question 5

A regression of yy on an intercept, xx, and zz is to be fit by ordinary least squares. After centering all three variables, the cross-products are xTx=10x^{\mathsf T}x=10, zTz=5z^{\mathsf T}z=5, xTz=4x^{\mathsf T}z=4, xTy=8x^{\mathsf T}y=8, and zTy=3z^{\mathsf T}y=3.

What is the least squares coefficient of xx in the multiple regression?

  1. 4/54/5
  2. 8/58/5
  3. 5/75/7
  4. 14/1714/17 (correct answer)
Explanation: When you see a multiple regression problem with centered variables and cross-products given, your instinct should be to set up the normal equations directly. Centering eliminates the intercept from the system, so you only need to solve for the slope coefficients. The normal equations for centered variables are: (xTxxTzxTzzTz)(β^xβ^z)=(xTyzTy)\begin{pmatrix} x^\mathsf{T}x & x^\mathsf{T}z \\ x^\mathsf{T}z & z^\mathsf{T}z \end{pmatrix} \begin{pmatrix} \hat{\beta}_x \\ \hat{\beta}_z \end{pmatrix} = \begin{pmatrix} x^\mathsf{T}y \\ z^\mathsf{T}y \end{pmatrix} Substituting the given values: (10445)(β^xβ^z)=(83)\begin{pmatrix} 10 & 4 \\ 4 & 5 \end{pmatrix} \begin{pmatrix} \hat{\beta}_x \\ \hat{\beta}_z \end{pmatrix} = \begin{pmatrix} 8 \\ 3 \end{pmatrix} The determinant is 10(5)4(4)=5016=3410(5) - 4(4) = 50 - 16 = 34. Using Cramer's rule, β^x=8(5)3(4)34=401234=2834=1417\hat{\beta}_x = \frac{8(5) - 3(4)}{34} = \frac{40 - 12}{34} = \frac{28}{34} = \frac{14}{17}, confirming answer D. Now for the distractors. Choice A (4/54/5) comes from naively dividing xTyx^\mathsf{T}y by zTzz^\mathsf{T}z — mixing up which cross-product matrix entry belongs where. Choice B (8/58/5) is the simple regression coefficient of yy on xx alone (xTy/xTx=8/10x^\mathsf{T}y / x^\mathsf{T}x = 8/10... actually it equals 8/108/10), or more likely from ignoring the off-diagonal terms entirely. Choice C (5/75/7) likely arises from an arithmetic error in computing the determinant or numerator, perhaps using 35/4935/49 from a sign mistake. The key study tip: in multiple regression, you cannot simply divide xTyx^\mathsf{T}y by xTxx^\mathsf{T}x as you would in simple regression. The off-diagonal terms in (XTX)1(X^\mathsf{T}X)^{-1} adjust for the correlation between predictors — always solve the full system.

Question 6

A regression model contains an intercept and a treatment indicator DiD_i, where Di=1D_i=1 for treated observations and Di=0D_i=0 for control observations. Additional predictors may also be present. The model is fit by ordinary least squares.

Which statement about the least squares residuals must hold, regardless of the additional predictors?

  1. Only the residual sum over all observations must equal zero.
  2. The treated and control residual sums must each equal zero. (correct answer)
  3. The two group residual sums must be equal but need not be zero.
  4. Only the treated-group residual sum must equal zero.
Explanation: Whenever a regression model includes an intercept and a binary group indicator DiD_i, you should immediately think about the normal equations — the system of equations OLS solves to minimize the sum of squared residuals. Each predictor in the model, including the intercept and DiD_i itself, generates its own normal equation by requiring that the predictor is orthogonal to the residuals. The intercept term produces the equation ie^i=0\sum_i \hat{e}_i = 0, guaranteeing the overall residual sum is zero. But DiD_i generates its own separate normal equation: iDie^i=0\sum_i D_i \hat{e}_i = 0, which means the sum of residuals among treated units only equals zero. Combining these two — since ie^i=Di=0e^i+Di=1e^i=0\sum_i \hat{e}_i = \sum_{D_i=0} \hat{e}_i + \sum_{D_i=1} \hat{e}_i = 0 and Di=1e^i=0\sum_{D_i=1} \hat{e}_i = 0 — you can immediately deduce that Di=0e^i=0\sum_{D_i=0} \hat{e}_i = 0 as well. So both group residual sums must individually equal zero, confirming answer B. Answer A is incomplete — while the overall sum is zero, A misses the stronger constraint that each group sum is separately zero. Answer C is doubly wrong: the two group sums are not merely equal to each other but are each independently zero. Answer D is tempting because the normal equation for DiD_i directly pins down the treated sum, but it neglects that the control sum is then forced to zero by the intercept equation. Study tip: Any time a binary group indicator is included in an OLS model with an intercept, remember that OLS perfectly fits the group means — a powerful fact that implies both group residuals sum to zero, regardless of other covariates.

Question 7

A linear model includes a known offset: yi=oi+β0+β1xi+eiy_i=o_i+\beta_0+\beta_1x_i+e_i. For four observations, the summaries are xi=2\sum x_i=2, xi2=6\sum x_i^2=6, yi=10\sum y_i=10, xiyi=9\sum x_i y_i=9, oi=2\sum o_i=2, and xioi=1\sum x_i o_i=1.

What are the ordinary least squares estimates of β0\beta_0 and β1\beta_1?

  1. (β^0,β^1)=(8/5,  4/5)(\widehat{\beta}_0,\widehat{\beta}_1)=(8/5,\;4/5) (correct answer)
  2. (β^0,β^1)=(21/10,  4/5)(\widehat{\beta}_0,\widehat{\beta}_1)=(21/10,\;4/5)
  3. (β^0,β^1)=(13/5,  4/5)(\widehat{\beta}_0,\widehat{\beta}_1)=(13/5,\;4/5)
  4. (β^0,β^1)=(0,  4/3)(\widehat{\beta}_0,\widehat{\beta}_1)=(0,\;4/3)
Explanation: When a model includes a known offset oio_i, OLS treats it as a fixed, non-estimated component. The trick is to absorb the offset into the response by defining yi=yioiy_i^* = y_i - o_i, then regress yiy_i^* on xix_i with an intercept. Your adjusted summaries become: yi=yioi=102=8\sum y_i^* = \sum y_i - \sum o_i = 10 - 2 = 8 and xiyi=xiyixioi=91=8\sum x_i y_i^* = \sum x_i y_i - \sum x_i o_i = 9 - 1 = 8, with n=4n=4, xi=2\sum x_i = 2, xi2=6\sum x_i^2 = 6. The standard OLS normal equations give: β^1=nxiyixiyinxi2(xi)2=4(8)(2)(8)4(6)4=1620=45\widehat{\beta}_1 = \frac{n\sum x_i y_i^* - \sum x_i \sum y_i^*}{n\sum x_i^2 - (\sum x_i)^2} = \frac{4(8) - (2)(8)}{4(6) - 4} = \frac{16}{20} = \frac{4}{5} β^0=yiβ^1xin=845(2)4=88/54=32/54=85\widehat{\beta}_0 = \frac{\sum y_i^* - \widehat{\beta}_1 \sum x_i}{n} = \frac{8 - \frac{4}{5}(2)}{4} = \frac{8 - 8/5}{4} = \frac{32/5}{4} = \frac{8}{5} This confirms answer A: (β^0,β^1)=(8/5,4/5)(\widehat{\beta}_0, \widehat{\beta}_1) = (8/5,\, 4/5). Choice B likely arises from an arithmetic error when computing β^0\widehat{\beta}_0, perhaps subtracting oi\sum o_i incorrectly from only part of the expression. Choice C comes from forgetting to subtract the offset at all — using raw yi\sum y_i and xiyi\sum x_i y_i directly. Choice D results from an entirely different misapplication, forcing the intercept to zero or misidentifying which parameters to estimate. Your go-to strategy: whenever you see an offset term, immediately redefine y=yoy^* = y - o and run standard OLS on yy^*. Don't let the notation obscure what is fundamentally a simple linear regression after that substitution.

Question 8

A least squares model with design matrix XX has residual vector ee and residual sum of squares 1212. A candidate predictor zz is added. Let PXP_X denote the orthogonal projection onto the column space of XX. It is known that eTz=2e^{\mathsf T}z=2, zTz=10z^{\mathsf T}z=10, and zTPXz=6z^{\mathsf T}P_Xz=6.

What is the residual sum of squares after adding zz to the model?

  1. 88
  2. 1010
  3. 1111 (correct answer)
  4. 58/558/5
Explanation: When you add a new predictor zz to a least squares model, the new RSS equals the old RSS minus the reduction in RSS attributable to zz's component orthogonal to the existing column space. The key formula is: RSSnew=RSSold(eTz)2zT(IPX)z\text{RSS}_{\text{new}} = \text{RSS}_{\text{old}} - \frac{(e^\mathsf{T}z)^2}{z^\mathsf{T}(I - P_X)z} Here's why: the residual vector e=(IPX)ye = (I - P_X)y is already orthogonal to col(X)\text{col}(X), so only the part of zz outside col(X)\text{col}(X)—namely (IPX)z(I - P_X)z—can further reduce the RSS. The reduction equals the squared correlation between ee and (IPX)z(I-P_X)z, normalized by the length of (IPX)z(I-P_X)z. Computing the denominator: zT(IPX)z=zTzzTPXz=106=4z^\mathsf{T}(I - P_X)z = z^\mathsf{T}z - z^\mathsf{T}P_Xz = 10 - 6 = 4. The reduction is therefore (eTz)2zT(IPX)z=224=44=1\frac{(e^\mathsf{T}z)^2}{z^\mathsf{T}(I-P_X)z} = \frac{2^2}{4} = \frac{4}{4} = 1. So RSSnew=121=11\text{RSS}_{\text{new}} = 12 - 1 = 11, confirming C is correct. Choice A (8) results from incorrectly using zTz=10z^\mathsf{T}z = 10 as the denominator, ignoring the projection. Choice B (10) likely comes from subtracting eTz=2e^\mathsf{T}z = 2 directly from the RSS, which has no geometric justification. Choice D (58/5) may arise from computing 124/1012 - 4/10, mistakenly using zTPXzz^\mathsf{T}P_Xz in the denominator instead of zT(IPX)zz^\mathsf{T}(I-P_X)z. Always remember: it's the residualized portion of zz—not zz itself—that drives the reduction in RSS.

Question 9

In a rank-deficient least squares problem, the columns of the design matrix satisfy X3=X1+X2X_3=X_1+X_2. One solution of the normal equations is b0=(1,1,1)Tb_0=(1,1,1)^{\mathsf T}. Which coefficient vector is the minimum-Euclidean-norm least squares solution?

  1. (1,1,1)T(1,1,1)^{\mathsf T}
  2. (2/3,2/3,4/3)T(2/3,2/3,4/3)^{\mathsf T} (correct answer)
  3. (4/3,4/3,2/3)T(4/3,4/3,2/3)^{\mathsf T}
  4. (0,0,2)T(0,0,2)^{\mathsf T}
Explanation: When a design matrix is rank-deficient, the normal equations have infinitely many solutions. The minimum-norm least squares solution is the unique solution with smallest Euclidean norm, given by the Moore-Penrose pseudoinverse: b+=X+yb^+ = X^+y. Critically, it lies in the row space of XX — orthogonal to the null space. Here, the constraint X3=X1+X2X_3 = X_1 + X_2 means the null space of XX contains the vector n=(1,1,1)Tn = (1, 1, -1)^{\mathsf T} (scaled appropriately). Specifically, any vector of the form (1,1,1)Tt(1,1,-1)^{\mathsf T}t added to a solution still satisfies the normal equations. The general solution is b0+t(1,1,1)T=(1+t,1+t,1t)Tb_0 + t(1,1,-1)^{\mathsf T} = (1+t,\, 1+t,\, 1-t)^{\mathsf T}. To find the minimum-norm solution, minimize b2=(1+t)2+(1+t)2+(1t)2\|b\|^2 = (1+t)^2 + (1+t)^2 + (1-t)^2 over tt. Taking the derivative and setting it to zero: 2(1+t)+2(1+t)+2(1t)(1)=02(1+t) + 2(1+t) + 2(1-t)(-1) = 0, which gives 4(1+t)2(1t)=04+4t2+2t=0t=1/34(1+t) - 2(1-t) = 0 \Rightarrow 4+4t-2+2t = 0 \Rightarrow t = -1/3. Substituting: (11/3,11/3,1+1/3)T=(2/3,2/3,4/3)T(1-1/3,\, 1-1/3,\, 1+1/3)^{\mathsf T} = (2/3,\, 2/3,\, 4/3)^{\mathsf T}. That's answer B. A is wrong because (1,1,1)T(1,1,1)^{\mathsf T} is merely one particular solution — it has no special minimality property. C (4/3,4/3,2/3)T(4/3,4/3,2/3)^{\mathsf T} corresponds to t=+1/3t = +1/3, the wrong sign. D (0,0,2)T(0,0,2)^{\mathsf T} uses t=1t = -1, which doesn't minimize the norm. Study tip: On rank-deficient problems, always parameterize the full solution family using the null space vector, then minimize the squared norm — this one calculus step separates the minimum-norm solution from all others.

Question 10

A full-rank ordinary least squares model has response vector yy, design matrix XX, coefficient estimate β^\widehat{\beta}, and residual vector ee. The response is replaced by y=y+Xc+uy^*=y+Xc+u, where cc is fixed and XTu=0X^{\mathsf T}u=0.

Which pair gives the new coefficient estimate and new residual vector?

  1. (β^+c, e+u)(\widehat{\beta}+c,\ e+u) (correct answer)
  2. (β^+c, e)(\widehat{\beta}+c,\ e)
  3. (β^, e+Xc+u)(\widehat{\beta},\ e+Xc+u)
  4. (β^c, e+u+2Xc)(\widehat{\beta}-c,\ e+u+2Xc)
Explanation: When you modify the response vector in OLS, you need to track how the projection machinery responds to each component separately. The key tool is decomposing y=y+Xc+uy^* = y + Xc + u and applying the hat matrix H=X(XTX)1XTH = X(X^\mathsf{T}X)^{-1}X^\mathsf{T}. The new coefficient estimate is β^=(XTX)1XTy\widehat{\beta}^* = (X^\mathsf{T}X)^{-1}X^\mathsf{T}y^*. Expanding: (XTX)1XT(y+Xc+u)=β^+c+(XTX)1XTu(X^\mathsf{T}X)^{-1}X^\mathsf{T}(y + Xc + u) = \widehat{\beta} + c + (X^\mathsf{T}X)^{-1}X^\mathsf{T}u. Since XTu=0X^\mathsf{T}u = 0, the last term vanishes, giving β^=β^+c\widehat{\beta}^* = \widehat{\beta} + c. For the residuals, e=yXβ^=(y+Xc+u)X(β^+c)=yXβ^+u=e+ue^* = y^* - X\widehat{\beta}^* = (y + Xc + u) - X(\widehat{\beta} + c) = y - X\widehat{\beta} + u = e + u. So the answer is A: the new estimate is β^+c\widehat{\beta} + c and the new residual is e+ue + u. B gets the coefficient right but claims the residual is just ee, ignoring that uu is orthogonal to the column space of XX — which means it lives entirely in the residual space and cannot be absorbed by the fitted values. C leaves β^\widehat{\beta} unchanged, forgetting that XcXc is in the column space of XX and is fully absorbed into the coefficient estimate, not the residual. D subtracts cc rather than adding it, a sign error that reflects confusion about the direction of the projection update. A useful pattern to internalize: any signal in the column space of XX shifts the coefficients; any signal orthogonal to XX passes entirely into the residuals. Keeping this decomposition sharp will serve you across many OLS perturbation problems.