WalzoneInterview Prep
πŸ“ž Interviewing soon? Practice with a realistic AI mock phone interview β€” it calls you, then scores you. First 15 min FREE β†’

Wall Street Quant Β· Linear Algebra Β· question 59 of 155

What is the orthogonality principle in terms of projections?

πŸ“• Buy this interview preparation book: 155 Wall Street Quant questions & answers β€” PDF + EPUB for $5

The orthogonality principle in terms of projections relates to the projection of a vector onto a subspace, specifically within the context of linear regression and least squares problems. The principle states that the error vector, representing the difference between the actual data points and their projections onto the subspace, is orthogonal to (i.e., perpendicular to) the subspace itself. This orthogonality is what ensures that the projection minimizes the error, or the squared distance, between the actual data points and their estimated values.

Let’s consider a vector yβ€„βˆˆβ€„β„n and a subspace S within ℝn, which can be spanned by vectors {x1, x2, ..., xk}. The orthogonal projection of y onto the subspace S is defined as the vector yΜ‚, which lies in S.

The error vector e equals the difference between the original vector y and its projection yΜ‚:


e = yβ€…βˆ’β€…yΜ‚

According to the orthogonality principle, the error vector e is orthogonal to the subspace S and satisfies the following conditions:


eTxi = 0β€Šβ€forβ€Šβ€i = 1, 2, ..., k

Consider a linear regression model where we want to estimate the unknown parameters Ξ² using the data matrix X and the response vector y. We can write the linear regression model as:


y = XΞ²β€…+β€…Ο΅

Here, y is an nβ€…Γ—β€…1 vector of response values, X is an nβ€…Γ—β€…p matrix of features, Ξ² is a pβ€…Γ—β€…1 vector of parameters, and Ο΅ is an nβ€…Γ—β€…1 vector of errors.

To solve for the unknown parameter vector Ξ², we want to find the projection of y onto the column space of X (i.e., the subspace S spanned by the columns of X). According to the orthogonality principle, the error vector Ο΅ is orthogonal to the column space of X:


Ο΅TX = 0

The unknown parameter vector can be found by solving the following normal equations:


XT(yβ€…βˆ’β€…XΞ²) = 0

 ⇒ XTy = XTXΞ²

 ⇒ β = (XTX)β€…βˆ’β€…1XTy

In conclusion, the orthogonality principle in terms of projections helps us find the best approximation or projection of a vector onto a subspace by ensuring that the error vector is orthogonal to that subspace. In the context of linear regression and least squares problems, this ensures that we can find the best possible estimated values for the model parameters.

Reading is step one. Saying it out loud is the interview. Our AI interviewer calls your phone and runs a realistic Wall Street Quant interview β€” then scores it.
πŸ“ž Practice Wall Street Quant β€” free 15 min
πŸ“• Buy this interview preparation book: 155 Wall Street Quant questions & answers β€” PDF + EPUB for $5

All 155 Wall Street Quant questions Β· All topics