Minimize the residual sum of squaresSetting its three partial derivatives to zero gives the normal equationsThese equations characterize the linear least squares minimizers, since is a convex quadratic. A unique coefficient vector additionally requires full column rank of the design matrix.
The centered regressors make the first normal equation read . DefineThe remaining equations are and . Provided , matrix inversion givesBy the Cauchy-Schwarz inequality, . If , the two regressor columns are linearly dependent, and their separate slopes are not uniquely identifiable. One still has well-defined linear least squares fitted values, but cannot use the displayed divisions by .
If the two regressors are strongly associated, the data may provide little support for varying one while holding the other fixed. Multicollinearity makes the separate slope estimates unstable, and exact linear dependence makes them unidentifiable. A conditional slope may also be an extrapolation beyond combinations actually observed.
Furthermore, a slope in a linear regression model is not automatically a causal effect. A causal interpretation needs appropriate design or assumptions excluding confounding; independence of the errors across observations and zero mean alone do not establish those assumptions. The coefficients describe the specified linear mean relation, but changing a regressor by intervention can have a different interpretation.
Principal component analysis finds orthogonal directions of greatest sample variation, ordered by the variance explained. It can summarize correlated variables, reveal lower-dimensional structure, and provide a reduced representation by retaining only the first few principal components. Centering is standard; scaling may also be appropriate when the variables have incomparable units.
Let be the column-centered data matrix. Its sample covariance matrix is . The loadings matrix has orthonormal eigenvectors of as columns, ordered by nonincreasing eigenvalues:Each principal component loading specifies the coefficients of a principal direction in the original variables. Signs are arbitrary, and equal eigenvalues permit orthogonal changes of basis within their eigenspaces.
The principal component scores are the projections of centered observations onto the loading directions:If the symbol already denotes centered data, this simplifies to . The principal component loadings are directions; the principal component scores are coordinates of individual observations in those directions.
Here both regressor columns are already centered, so and . Writing , the linear predictor is . ThusThe intercept stays , because centering made the transformation a rotation of the regressor columns without an added translation.
The new score columns are orthogonal, since is diagonal. This decouples the slope normal equations; with positive eigenvalues and the stated error covariance, the two estimated score coefficients are uncorrelated. It also makes variance explained and possible dimension reduction explicit.
The trade-off is interpretation: each principal component is a mixture of the original variables, so its regression coefficient is less directly connected to changing one original input. Keeping both components is an invertible reparameterization and gives exactly the same fitted values and residual sum of squares. It does not repair a zero eigenvalue or remove instability associated with a very small one. Dropping a low-variance component may improve numerical stability and reduce estimator variance, but changes the model and can discard predictive information, since principal component analysis uses predictor variance rather than the response. This is the distinction between a full rotation and principal component regression with truncation.
Articles by others on the same topic
There are currently no matching articles.