Linear Regression in Matrix Form - Statistics Graduate Level
- Let be rank deficient, and let be any generalized inverse satisfying . Define and . Which statement holds for every such choice of ? Answer: The fitted vector is unique and equals the Euclidean projection of onto , although coefficients may vary. When working with rank-deficient design matrices, the central question is always: what quantities are estimable — meaning invariant across all valid generalized inverses? This question tests exactly that distinction. The key insight is that . Even though is not unique, the product is unique for any generalized inverse of . This is because is the orthogonal projection matrix onto , which is entirely determined by the column space — not by any particular basis. Therefore, is always the orthogonal projection of onto , regardless of which you choose. This confirms D is correct. A is wrong on two counts: is generally not unique (it varies with ), and minimum-norm solutions require the Moore-Penrose pseudoinverse specifically — not just any generalized inverse. The fitted vector, not the coefficient vector, is the invariant quantity. B is incorrect because even when , the coefficients can still vary across different generalized inverses (since the system has infinitely many solutions under rank deficiency). The fitted values are always unique, full stop — not conditionally. C has the invariance relationship backwards. It's the fitted values that are invariant, not the coefficients. Symmetry of is irrelevant to this invariance. Your study anchor: in rank-deficient models, estimable functions of — those of the form — are uniquely determined. Coefficients alone are not estimable, but fitted values always are.
- A full-column-rank design matrix is used to regress by ordinary least squares. Let , and suppose the current residual vector satisfies . A new predictor is added, where and . What is the residual sum of squares for the augmented model? Answer: , obtained by subtracting from the original sum of squares. When you add a predictor to an OLS model, the new residual sum of squares drops by a precise, computable amount. The key formula comes from the Frisch-Waugh-Lovell theorem: the reduction in RSS when adding to a model already containing equals the squared correlation between 's residual (after projecting out ) and 's residual, scaled appropriately. Specifically, the new RSS is: Here, is the part of orthogonal to the column space of , and (since and is idempotent). The reduction term is the OLS coefficient of on , squared and multiplied by — exactly one degree-of-freedom improvement. Plugging in: . This confirms C is correct. A is wrong because it subtracts , which has no geometric or algebraic justification — it simply adds unrelated quantities. B inverts the correct formula, dividing by instead of , conflating the numerator and denominator roles. D flips the fraction entirely, using , which is dimensionally inconsistent and shrinks RSS by a negligible amount. As a study strategy, memorize the added-variable reduction formula . On graduate exams, distractors are typically constructed by swapping numerator and denominator or combining terms additively — always check dimensional consistency.
- For a full-column-rank linear model, let be the unrestricted least-squares estimator. A restricted fit is obtained by imposing . Suppose and . By how much does the residual sum of squares increase under the restriction? Answer: , obtained from the squared discrepancy divided by the quadratic-form scaling factor. When you impose a linear restriction on a least-squares problem, the restricted estimator must "bend" away from the unrestricted optimum, and that detour always increases the residual sum of squares. The exact formula for this increase is derived from the Lagrangian approach to constrained least squares, and it's worth memorizing: the RSS increases by This expression has an intuitive structure — the numerator measures how far the unrestricted estimate violates the constraint, squared, and the denominator is a scaling factor that accounts for the geometry of the design matrix along the direction . Plugging in the given values, you get , confirming that C is correct. Looking at the wrong choices: A divides the unsquared discrepancy (3) by the scaling factor (2), giving . This forgets to square the numerator — a classic algebra slip that loses the squared-error structure of least squares. B reports the raw discrepancy of 3 with no division at all, ignoring both the squaring and the scaling factor entirely — this would only matter if the formula were something far simpler. D multiplies the squared discrepancy by the scaling factor, getting , which inverts the correct relationship; larger actually reduces the penalty, not amplifies it. A reliable study tip: whenever you see a restricted vs. unrestricted RSS comparison, immediately write down and match it to an F-statistic numerator — that connection will help you remember both the formula and its role in hypothesis testing.
- In a linear model with error covariance , where is known and positive definite, generalized least squares minimizes . If and , which statement correctly describes the associated projection geometry in the original coordinates? Answer: , and is the projection onto under the inner product. Whenever you encounter a GLS problem involving projection geometry, your first instinct should be: which inner product defines "orthogonality" here? GLS minimizes a weighted quadratic form, so the geometry lives in a non-Euclidean space. The GLS estimator solves the normal equations derived by differentiating with respect to , yielding , or equivalently . This is the orthogonality condition under the inner product . Under this inner product, is the projection of onto — meaning the residual is "perpendicular" to the column space of in the -metric sense. This confirms D is correct. Choice A describes ordinary least squares (OLS), where and orthogonality is Euclidean. It incorrectly applies standard projection to a setting that requires a weighted metric. Choice B introduces , which appears nowhere in the GLS derivation — this is a fabricated condition with no geometric or algebraic basis. Choice C flips the matrix: using instead of would correspond to minimizing , a different problem entirely — and it incorrectly names the resulting inner product. A reliable study tip: always trace the normal equations directly from the objective function. The matrix appearing in the weight of the quadratic form is exactly the matrix that appears in the orthogonality condition . Here, , so the answer follows immediately.
- A full-rank model containing design matrix is augmented by one predictor . Let . Suppose and . Which pair gives the coefficient of in the augmented regression and the corresponding reduction in residual sum of squares? Answer: The coefficient is , and the reduction in residual sum of squares is . When a model with design matrix is augmented by a new predictor , the Frisch-Waugh-Lovell (FWL) theorem tells you everything you need. The key insight is that the new coefficient and its contribution to fit depend entirely on the residualized versions of and — that is, what remains after projecting out . The matrix is exactly this residual-maker (the annihilator of ). By FWL, the OLS coefficient on in the augmented model equals: The reduction in residual sum of squares (RSS) from adding — sometimes called the "extra sum of squares" — equals: Equivalently, . This confirms A is correct. Choice B inverts the ratio for , giving , and compounds the error with an incorrect RSS. Choice C gets the coefficient right but reports the RSS as 6 — confusing itself for the reduction in RSS. Choice D inverts the coefficient like B but accidentally gets the RSS right, making it a particularly tempting trap. Study tip: Memorize both FWL formulas together — and — since graduate exams routinely test whether you know both quantities and won't conflate them.
- In a full-rank ordinary least-squares fit, the residual sum of squares using all observations is . For observation , the ordinary residual is and the leverage is . The model is refitted after deleting observation . What is the residual sum of squares computed from the remaining observations? Answer: , because deletion reduces the sum by after accounting for refitting. When you delete an observation from a regression model and refit, the new residual sum of squares is not simply the old RSS minus that observation's squared residual — the entire model changes. The key identity connecting full-data quantities to the deleted-model RSS is: This formula works because the change in fit upon deletion depends not just on how large the residual is, but on how influential the observation is via its leverage . High-leverage points "pull" the fit toward themselves, so removing them causes a larger adjustment than their raw residual suggests. Plugging in , , and : This confirms answer B. Answer A makes the intuitive but incorrect assumption that deleting observation simply removes from the RSS, ignoring that refitting shifts all coefficient estimates. Answer C applies the wrong adjustment formula, subtracting instead of the correct leverage-scaled term. Answer D uses , which is the square of the internally studentized residual structure — a plausible-looking but incorrect expression for this quantity. A useful anchor: the deleted residual is the predicted residual for observation from the model fit without it, and is the compact way to remember the correct formula.
- Consider ordinary least squares with hat matrix and residual-maker . The error covariance is , where is known, symmetric, and positive definite but need not equal the identity. Which condition is necessary and sufficient for the fitted vector and residual vector to be uncorrelated? Answer: , so the covariance matrix commutes with the hat matrix, leaving the model space and its complement invariant under . When checking whether two random vectors are uncorrelated, you compute their cross-covariance matrix and set it to zero. Here, . Since and are symmetric and idempotent, this simplifies to . For this to be the zero matrix, you need , which is equivalent to requiring . Notice that holds if and only if , and since , this is precisely the condition . A clean way to see this: premultiplying by nothing and postmultiplying by shows the condition is symmetric, ultimately equivalent to — confirming answer B is both necessary and sufficient. Answer A is too restrictive. Proportionality to the identity guarantees commutativity, but commutativity holds in many cases where , so A is sufficient but not necessary. Answer C concerns the structure of , which governs generalized least squares efficiency, not whether OLS fitted values and residuals are uncorrelated. Diagonality of imposes no direct constraint on . Answer D requires , meaning lives entirely within the column space of . This is far too strong — and also not the right algebraic condition derived from the cross-covariance. A key study habit: always start uncorrelation problems by writing out the cross-covariance explicitly and simplifying using the idempotency and symmetry of projection matrices before evaluating any answer choice.
- A reduced linear model has hat matrix and rank . A nested full model has hat matrix and rank , based on observations. Suppose and the full-model residual sum of squares is . What is the partial statistic, including its numerator and denominator degrees of freedom? Answer: with degrees of freedom and , using the rank difference and full-model error mean square. When comparing nested linear models, the partial statistic measures whether the additional predictors in the full model explain significantly more variance. The formula is: where is the rank difference (numerator df) and is the full-model error df (denominator df). Here, , so the extra sum of squares must be averaged over 2 degrees of freedom: . The full-model residual mean square is . Therefore: with numerator df and denominator df . This confirms C is correct. Choice A fails because it places the unaveraged extra sum of squares (12) in the numerator rather than the mean square (6), inflating to 6.00 — you must divide by the numerator degrees of freedom before forming the ratio. Choice B uses denominator df , which corresponds to , the reduced model's error df. The denominator must use the full model's error df . Choice D takes the ratio of the total extra sum of squares to the total residual sum of squares without any averaging, which is not a valid statistic construction at all. Study tip: Always track two separate averaging steps — divide the extra SS by and the residual SS by — and confirm your denominator df comes from the full model, not the reduced one.
- Let a regression design be , where is the intercept column. Define and . Assume has full column rank. Which expression is the orthogonal projector onto ? Answer: , which projects separately onto orthogonal intercept and centered-predictor spaces. When you see a question about orthogonal projectors onto a partitioned column space, your instinct should be to apply the Frisch–Waugh–Lovell theorem and the formula for projecting onto . The key idea is that you can build by first projecting onto , then projecting the residual of (after removing the intercept) onto its own column space. Formally, represents the columns of orthogonalized against . Since and are orthogonal complements within , the total projector decomposes as: This is exactly answer A, which correctly identifies the two orthogonal subspaces and adds their projectors — a valid operation precisely because they are orthogonal. B is wrong because adds projectors onto non-orthogonal subspaces ( in general), so the sum is not idempotent and does not define a valid orthogonal projector. C subtracts the centered-predictor component instead of adding it, which would remove directions from the fit rather than include them — this produces neither a projector nor the correct range. D replaces with , projecting onto the orthogonal complement of rather than onto itself, so the intercept subspace is entirely missing from the range. As a study tip: whenever the design matrix has a partitioned structure , always orthogonalize against first — projectors add cleanly only when their ranges are orthogonal.