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.