Principal component regression
Part of a series on 
Regression analysis 

Models 
Estimation 
Background 

In statistics, principal component regression (PCR) is a regression analysis technique that is based on principal component analysis (PCA). More specifically, PCR is used for estimating the unknown regression coefficients in a standard linear regression model.
In PCR, instead of regressing the dependent variable on the explanatory variables directly, the principal components of the explanatory variables are used as regressors. One typically uses only a subset of all the principal components for regression, making PCR a kind of regularized procedure and also a type of shrinkage estimator.
Often the principal components with higher variances (the ones based on eigenvectors corresponding to the higher eigenvalues of the sample variancecovariance matrix of the explanatory variables) are selected as regressors. However, for the purpose of predicting the outcome, the principal components with low variances may also be important, in some cases even more important.^{[1]}
One major use of PCR lies in overcoming the multicollinearity problem which arises when two or more of the explanatory variables are close to being collinear.^{[2]} PCR can aptly deal with such situations by excluding some of the lowvariance principal components in the regression step. In addition, by usually regressing on only a subset of all the principal components, PCR can result in dimension reduction through substantially lowering the effective number of parameters characterizing the underlying model. This can be particularly useful in settings with highdimensional covariates. Also, through appropriate selection of the principal components to be used for regression, PCR can lead to efficient prediction of the outcome based on the assumed model.
The principle
The PCR method may be broadly divided into three major steps:
 1. [math]\displaystyle{ \;\; }[/math] Perform PCA on the observed data matrix for the explanatory variables to obtain the principal components, and then (usually) select a subset, based on some appropriate criteria, of the principal components so obtained for further use.
 2. [math]\displaystyle{ \;\; }[/math] Now regress the observed vector of outcomes on the selected principal components as covariates, using ordinary least squares regression (linear regression) to get a vector of estimated regression coefficients (with dimension equal to the number of selected principal components).
 3. [math]\displaystyle{ \;\; }[/math] Now transform this vector back to the scale of the actual covariates, using the selected PCA loadings (the eigenvectors corresponding to the selected principal components) to get the final PCR estimator (with dimension equal to the total number of covariates) for estimating the regression coefficients characterizing the original model.
Details of the method
Data representation: Let [math]\displaystyle{ \mathbf{Y}_{n \times 1} = \left(y_1,\ldots,y_n\right)^T }[/math] denote the vector of observed outcomes and [math]\displaystyle{ \mathbf{X}_{n \times p} = \left(\mathbf{x}_1,\ldots,\mathbf{x}_n\right)^T }[/math] denote the corresponding data matrix of observed covariates where, [math]\displaystyle{ n }[/math] and [math]\displaystyle{ p }[/math] denote the size of the observed sample and the number of covariates respectively, with [math]\displaystyle{ n \geq p }[/math]. Each of the [math]\displaystyle{ n }[/math] rows of [math]\displaystyle{ \mathbf{X} }[/math] denotes one set of observations for the [math]\displaystyle{ p }[/math] dimensional covariate and the respective entry of [math]\displaystyle{ \mathbf{Y} }[/math] denotes the corresponding observed outcome.
Data preprocessing: Assume that [math]\displaystyle{ \mathbf{Y} }[/math] and each of the [math]\displaystyle{ p }[/math] columns of [math]\displaystyle{ \mathbf{X} }[/math] have already been centered so that all of them have zero empirical means. This centering step is crucial (at least for the columns of [math]\displaystyle{ \mathbf{X} }[/math]) since PCR involves the use of PCA on [math]\displaystyle{ \mathbf{X} }[/math] and PCA is sensitive to centering of the data.
Underlying model: Following centering, the standard Gauss–Markov linear regression model for [math]\displaystyle{ \mathbf{Y} }[/math] on [math]\displaystyle{ \mathbf{X} }[/math] can be represented as: [math]\displaystyle{ \mathbf{Y} = \mathbf{X}\boldsymbol{\beta} + \boldsymbol{\varepsilon}, \; }[/math] where [math]\displaystyle{ \boldsymbol{\beta} \in \mathbb{R}^p }[/math] denotes the unknown parameter vector of regression coefficients and [math]\displaystyle{ \boldsymbol{\varepsilon} }[/math] denotes the vector of random errors with [math]\displaystyle{ \operatorname{E}\left(\boldsymbol{\varepsilon}\right) = \mathbf{0} \; }[/math] and [math]\displaystyle{ \; \operatorname{Var}\left(\boldsymbol{\varepsilon}\right) = \sigma^2I_{n \times n} }[/math] for some unknown variance parameter [math]\displaystyle{ \sigma^2 \gt 0 \;\; }[/math]
Objective: The primary goal is to obtain an efficient estimator [math]\displaystyle{ \widehat{\boldsymbol\beta} }[/math] for the parameter [math]\displaystyle{ \boldsymbol\beta }[/math], based on the data. One frequently used approach for this is ordinary least squares regression which, assuming [math]\displaystyle{ \mathbf{X} }[/math] is full column rank, gives the unbiased estimator: [math]\displaystyle{ \widehat{\boldsymbol\beta}_\mathrm{ols} = (\mathbf{X}^{T}\mathbf{X})^{1} \mathbf{X}^{T}\mathbf{Y} }[/math] of [math]\displaystyle{ \boldsymbol{\beta} }[/math]. PCR is another technique that may be used for the same purpose of estimating [math]\displaystyle{ \boldsymbol{\beta} }[/math].
PCA step: PCR starts by performing a PCA on the centered data matrix [math]\displaystyle{ \mathbf{X} }[/math]. For this, let [math]\displaystyle{ \mathbf{X} = U \Delta V^{T} }[/math] denote the singular value decomposition of [math]\displaystyle{ \mathbf{X} }[/math] where, [math]\displaystyle{ \Delta_{p \times p} = \operatorname{diag}\left[\delta_1,\ldots,\delta_p\right] }[/math] with [math]\displaystyle{ \delta_1 \geq \cdots \geq \delta_p \geq 0 }[/math] denoting the nonnegative singular values of [math]\displaystyle{ \mathbf{X} }[/math], while the columns of [math]\displaystyle{ U_{n \times p} = [\mathbf{u}_1,\ldots,\mathbf{u}_p] }[/math] and [math]\displaystyle{ V_{p \times p} = [\mathbf{v}_1,\ldots,\mathbf{v}_p] }[/math] are both orthonormal sets of vectors denoting the left and right singular vectors of [math]\displaystyle{ \mathbf{X} }[/math] respectively.
The principal components: [math]\displaystyle{ V \Lambda V^T }[/math] gives a spectral decomposition of [math]\displaystyle{ \mathbf{X}^T \mathbf{X} }[/math] where [math]\displaystyle{ \Lambda_{p \times p} = \operatorname{diag}\left[\lambda_1,\ldots,\lambda_p\right] = \operatorname{diag}\left[\delta_1^2,\ldots,\delta_p^2\right] = \Delta^2 }[/math] with [math]\displaystyle{ \lambda_1 \geq \cdots \geq \lambda_p \geq 0 }[/math] denoting the nonnegative eigenvalues (also known as the principal values) of [math]\displaystyle{ \mathbf{X}^T \mathbf{X} }[/math], while the columns of [math]\displaystyle{ V }[/math] denote the corresponding orthonormal set of eigenvectors. Then, [math]\displaystyle{ \mathbf{X}\mathbf{v}_j }[/math] and [math]\displaystyle{ \mathbf{v}_j }[/math] respectively denote the [math]\displaystyle{ j^{th} }[/math] principal component and the [math]\displaystyle{ j^{th} }[/math] principal component direction (or PCA loading) corresponding to the [math]\displaystyle{ j^\text{th} }[/math] largest principal value [math]\displaystyle{ \lambda_j }[/math] for each [math]\displaystyle{ j \in \{1,\ldots,p\} }[/math].
Derived covariates: For any [math]\displaystyle{ k \in \{1,\ldots,p\} }[/math], let [math]\displaystyle{ V_{k} }[/math] denote the [math]\displaystyle{ p \times k }[/math] matrix with orthonormal columns consisting of the first [math]\displaystyle{ k }[/math] columns of [math]\displaystyle{ V }[/math]. Let [math]\displaystyle{ W_k = \mathbf{X}V_{k} }[/math] [math]\displaystyle{ = [\mathbf{X}\mathbf{v}_1,\ldots,\mathbf{X}\mathbf{v}_k] }[/math] denote the [math]\displaystyle{ n \times k }[/math] matrix having the first [math]\displaystyle{ k }[/math] principal components as its columns. [math]\displaystyle{ W }[/math] may be viewed as the data matrix obtained by using the transformed covariates [math]\displaystyle{ \mathbf{x}_i^k = V_k^T \mathbf{x}_i \in \mathbb{R}^{k} }[/math] instead of using the original covariates [math]\displaystyle{ \mathbf{x}_i \in \mathbb{R}^p \;\; \forall \;\; 1 \leq i \leq n }[/math].
The PCR estimator: Let [math]\displaystyle{ \widehat{\gamma}_k = (W_k^T W_k)^{1} W_k^T \mathbf{Y} \in \mathbb{R}^k }[/math] denote the vector of estimated regression coefficients obtained by ordinary least squares regression of the response vector [math]\displaystyle{ \mathbf{Y} }[/math] on the data matrix [math]\displaystyle{ W_{k} }[/math]. Then, for any [math]\displaystyle{ k \in \{1,\ldots,p\} }[/math], the final PCR estimator of [math]\displaystyle{ \boldsymbol{\beta} }[/math] based on using the first [math]\displaystyle{ k }[/math] principal components is given by: [math]\displaystyle{ \widehat{\boldsymbol{\beta}}_k = V_k \widehat{\gamma}_k \in \mathbb{R}^p }[/math].
Fundamental characteristics and applications of the PCR estimator
Two basic properties
The fitting process for obtaining the PCR estimator involves regressing the response vector on the derived data matrix [math]\displaystyle{ W_{k} }[/math] which has orthogonal columns for any [math]\displaystyle{ k \in \{1,\ldots,p\} }[/math] since the principal components are mutually orthogonal to each other. Thus in the regression step, performing a multiple linear regression jointly on the [math]\displaystyle{ k }[/math] selected principal components as covariates is equivalent to carrying out [math]\displaystyle{ k }[/math] independent simple linear regressions (or univariate regressions) separately on each of the [math]\displaystyle{ k }[/math] selected principal components as a covariate.
When all the principal components are selected for regression so that [math]\displaystyle{ k = p }[/math], then the PCR estimator is equivalent to the ordinary least squares estimator. Thus, [math]\displaystyle{ \widehat{\boldsymbol{\beta}}_{p} = \widehat{\boldsymbol{\beta}}_\mathrm{ols} }[/math]. This is easily seen from the fact that [math]\displaystyle{ W_{p} = \mathbf{X}V_{p} = \mathbf{X}V }[/math] and also observing that [math]\displaystyle{ V }[/math] is an orthogonal matrix.
Variance reduction
For any [math]\displaystyle{ k \in \{1,\ldots,p\} }[/math], the variance of [math]\displaystyle{ \widehat{\boldsymbol{\beta}}_{k} }[/math] is given by
 [math]\displaystyle{ \operatorname{Var}(\widehat{\boldsymbol{\beta}}_k) = \sigma^2 \; V_k (W_k^T W_k)^{1} V_k^T = \sigma^2 \; V_k \; \operatorname{diag}\left(\lambda_1^{1},\ldots,\lambda_k^{1}\right) V_k^{T} = \sigma^2 \sideset{}{}\sum_{j = 1}^k \frac{\mathbf{v}_j\mathbf{v}_j^T}{\lambda_j}. }[/math]
In particular:
 [math]\displaystyle{ \operatorname{Var}(\widehat{\boldsymbol{\beta}}_{p}) = \operatorname{Var}(\widehat{\boldsymbol{\beta}}_\mathrm{ols}) = \sigma^2 \sideset{}{}\sum_{j = 1}^{p}\frac{\mathbf{v}_j\mathbf{v}_j^{T}}{\lambda_j}. }[/math]
Hence for all [math]\displaystyle{ k \in \{1,\ldots, p1\} }[/math] we have:
 [math]\displaystyle{ \operatorname{Var}(\widehat{\boldsymbol{\beta}}_\mathrm{ols})  \operatorname{Var}(\widehat{\boldsymbol{\beta}}_{k}) = \sigma^2 \sideset{}{}\sum_{j = k+1}^p\frac{\mathbf{v}_j\mathbf{v}_j^T}{\lambda_j}. }[/math]
Thus, for all [math]\displaystyle{ k \in \{1,\ldots, p\} }[/math] we have:
 [math]\displaystyle{ \operatorname{Var}(\widehat{\boldsymbol{\beta}}_\mathrm{ols})  \operatorname{Var}(\widehat{\boldsymbol{\beta}}_k) \succeq 0 }[/math]
where [math]\displaystyle{ A \succeq 0 }[/math] indicates that a square symmetric matrix [math]\displaystyle{ A }[/math] is nonnegative definite. Consequently, any given linear form of the PCR estimator has a lower variance compared to that of the same linear form of the ordinary least squares estimator.
Addressing multicollinearity
Under multicollinearity, two or more of the covariates are highly correlated, so that one can be linearly predicted from the others with a nontrivial degree of accuracy. Consequently, the columns of the data matrix [math]\displaystyle{ \mathbf{X} }[/math] that correspond to the observations for these covariates tend to become linearly dependent and therefore, [math]\displaystyle{ \mathbf{X} }[/math] tends to become rank deficient losing its full column rank structure. More quantitatively, one or more of the smaller eigenvalues of [math]\displaystyle{ \mathbf{X}^{T}\mathbf{X} }[/math] get(s) very close or become(s) exactly equal to [math]\displaystyle{ 0 }[/math] under such situations. The variance expressions above indicate that these small eigenvalues have the maximum inflation effect on the variance of the least squares estimator, thereby destabilizing the estimator significantly when they are close to [math]\displaystyle{ 0 }[/math]. This issue can be effectively addressed through using a PCR estimator obtained by excluding the principal components corresponding to these small eigenvalues.
Dimension reduction
PCR may also be used for performing dimension reduction. To see this, let [math]\displaystyle{ L_k }[/math] denote any [math]\displaystyle{ p \times k }[/math] matrix having orthonormal columns, for any [math]\displaystyle{ k \in \{1,\ldots,p\}. }[/math] Suppose now that we want to approximate each of the covariate observations [math]\displaystyle{ \mathbf{x}_i }[/math] through the rank [math]\displaystyle{ k }[/math] linear transformation [math]\displaystyle{ L_k \mathbf{z}_i }[/math] for some [math]\displaystyle{ \mathbf{z}_i \in \mathbb{R}^{k} (1 \leq i \leq n) }[/math].
Then, it can be shown that
 [math]\displaystyle{ \sum_{i=1}^{n} \left \\mathbf{x}_i  L_{k}\mathbf{z}_i \right \^2 }[/math]
is minimized at [math]\displaystyle{ L_k = V_k, }[/math] the matrix with the first [math]\displaystyle{ k }[/math] principal component directions as columns, and [math]\displaystyle{ \mathbf{z}_i = \mathbf{x}_{i}^{k} = V_{k}^{T}\mathbf{x}_i, }[/math] the corresponding [math]\displaystyle{ k }[/math] dimensional derived covariates. Thus the [math]\displaystyle{ k }[/math] dimensional principal components provide the best linear approximation of rank [math]\displaystyle{ k }[/math] to the observed data matrix [math]\displaystyle{ \mathbf{X} }[/math].
The corresponding reconstruction error is given by:
 [math]\displaystyle{ \sum_{i=1}^{n} \left \\mathbf{x}_i  V_{k}\mathbf{x}_{i}^{k} \right \^2 = \begin{cases} \sum_{j = k+1}^{n} \lambda_j & 1 \leqslant k \lt p \\ 0 & k = p \end{cases} }[/math]
Thus any potential dimension reduction may be achieved by choosing [math]\displaystyle{ k }[/math], the number of principal components to be used, through appropriate thresholding on the cumulative sum of the eigenvalues of [math]\displaystyle{ \mathbf{X}^{T}\mathbf{X} }[/math]. Since the smaller eigenvalues do not contribute significantly to the cumulative sum, the corresponding principal components may be continued to be dropped as long as the desired threshold limit is not exceeded. The same criteria may also be used for addressing the multicollinearity issue whereby the principal components corresponding to the smaller eigenvalues may be ignored as long as the threshold limit is maintained.
Regularization effect
Since the PCR estimator typically uses only a subset of all the principal components for regression, it can be viewed as some sort of a regularized procedure. More specifically, for any [math]\displaystyle{ 1 \leqslant k \lt p }[/math], the PCR estimator [math]\displaystyle{ \widehat{\boldsymbol{\beta}}_k }[/math] denotes the regularized solution to the following constrained minimization problem:
 [math]\displaystyle{ \min_{\boldsymbol{\beta}_{*} \in \mathbb{R}^{p}} \left \\mathbf{Y}  \mathbf{X}\boldsymbol{\beta}_* \right \^2 \quad \text{ subject to } \quad \boldsymbol{\beta}_* \perp \{\mathbf{v}_{k+1}, \ldots, \mathbf{v}_p\}. }[/math]
The constraint may be equivalently written as:
 [math]\displaystyle{ V_{(pk)}^{T}\boldsymbol{\beta}_* = \mathbf{0}, }[/math]
where:
 [math]\displaystyle{ V_{(pk)} = \left[\mathbf{v}_{k+1},\ldots,\mathbf{v}_p\right]_{p\times (pk)}. }[/math]
Thus, when only a proper subset of all the principal components are selected for regression, the PCR estimator so obtained is based on a hard form of regularization that constrains the resulting solution to the column space of the selected principal component directions, and consequently restricts it to be orthogonal to the excluded directions.
Optimality of PCR among a class of regularized estimators
Given the constrained minimization problem as defined above, consider the following generalized version of it:
 [math]\displaystyle{ \min_{\boldsymbol{\beta}_{*} \in \mathbb{R}^{p}} \\mathbf{Y}  \mathbf{X}\boldsymbol{\beta}_*\^2 \quad \text{ subject to } \quad L_{(pk)}^{T}\boldsymbol{\beta}_* = \mathbf{0} }[/math]
where, [math]\displaystyle{ L_{(pk)} }[/math] denotes any full column rank matrix of order [math]\displaystyle{ p \times (pk) }[/math] with [math]\displaystyle{ 1 \leqslant k \lt p }[/math].
Let [math]\displaystyle{ \widehat{\boldsymbol{\beta}}_L }[/math] denote the corresponding solution. Thus
 [math]\displaystyle{ \widehat{\boldsymbol{\beta}}_L = \arg \min_{\boldsymbol{\beta}_{*} \in \mathbb{R}^{p}} \\mathbf{Y}  \mathbf{X}\boldsymbol{\beta}_*\^2 \quad \text{ subject to } \quad L_{(pk)}^{T}\boldsymbol{\beta}_* = \mathbf{0}. }[/math]
Then the optimal choice of the restriction matrix [math]\displaystyle{ L_{(pk)} }[/math] for which the corresponding estimator [math]\displaystyle{ \widehat{\boldsymbol{\beta}}_{L} }[/math] achieves the minimum prediction error is given by:^{[3]}
 [math]\displaystyle{ L^{*}_{(pk)} = V_{(pk)} \Lambda_{(pk)}^{1/2}, }[/math]
where
 [math]\displaystyle{ \Lambda_{(pk)}^{1/2} = \operatorname{diag} \left(\lambda_{k+1}^{1/2},\ldots,\lambda_p^{1/2}\right). }[/math]
Quite clearly, the resulting optimal estimator [math]\displaystyle{ \widehat{\boldsymbol{\beta}}_{L^{*}} }[/math] is then simply given by the PCR estimator [math]\displaystyle{ \widehat{\boldsymbol{\beta}}_{k} }[/math] based on the first [math]\displaystyle{ k }[/math] principal components.
Efficiency
Since the ordinary least squares estimator is unbiased for [math]\displaystyle{ \boldsymbol{\beta} }[/math], we have
 [math]\displaystyle{ \operatorname{Var}(\widehat{\boldsymbol{\beta}}_\mathrm{ols}) = \operatorname{MSE} (\widehat{\boldsymbol{\beta}}_\mathrm{ols}), }[/math]
where, MSE denotes the mean squared error. Now, if for some [math]\displaystyle{ k \in \{1,\ldots,p\} }[/math], we additionally have: [math]\displaystyle{ V_{(pk)}^T\boldsymbol{\beta} = \mathbf{0} }[/math], then the corresponding [math]\displaystyle{ \widehat{\boldsymbol{\beta}}_k }[/math] is also unbiased for [math]\displaystyle{ \boldsymbol{\beta} }[/math] and therefore
 [math]\displaystyle{ \operatorname{Var}(\widehat{\boldsymbol{\beta}}_k) = \operatorname{MSE} (\widehat{\boldsymbol{\beta}}_k). }[/math]
We have already seen that
 [math]\displaystyle{ \forall j \in \{ 1, \ldots, p\}: \quad \operatorname{Var}(\widehat{\boldsymbol{\beta}}_\mathrm{ols})  \operatorname{Var}(\widehat{\boldsymbol{\beta}}_j) \succeq 0, }[/math]
which then implies:
 [math]\displaystyle{ \operatorname{MSE} (\widehat{\boldsymbol{\beta}}_\mathrm{ols})  \operatorname{MSE} (\widehat{\boldsymbol{\beta}}_k) \succeq 0 }[/math]
for that particular [math]\displaystyle{ k }[/math]. Thus in that case, the corresponding [math]\displaystyle{ \widehat{\boldsymbol{\beta}}_{k} }[/math] would be a more efficient estimator of [math]\displaystyle{ \boldsymbol{\beta} }[/math] compared to [math]\displaystyle{ \widehat{\boldsymbol{\beta}}_\mathrm{ols} }[/math], based on using the mean squared error as the performance criteria. In addition, any given linear form of the corresponding [math]\displaystyle{ \widehat{\boldsymbol{\beta}}_{k} }[/math] would also have a lower mean squared error compared to that of the same linear form of [math]\displaystyle{ \widehat{\boldsymbol{\beta}}_\mathrm{ols} }[/math].
Now suppose that for a given [math]\displaystyle{ k \in \{1,\ldots,p\}, V_{(pk)}^T{\boldsymbol{\beta}} \neq \mathbf{0} }[/math]. Then the corresponding [math]\displaystyle{ \widehat{\boldsymbol{\beta}}_k }[/math] is biased for [math]\displaystyle{ \boldsymbol{\beta} }[/math]. However, since
 [math]\displaystyle{ \forall k \in \{ 1, \ldots, p\}: \quad \operatorname{Var}(\widehat{\boldsymbol{\beta}}_\mathrm{ols})  \operatorname{Var}(\widehat{\boldsymbol{\beta}}_k) \succeq 0, }[/math]
it is still possible that [math]\displaystyle{ \operatorname{MSE}(\widehat{\boldsymbol{\beta}}_\mathrm{ols})  \operatorname{MSE}(\widehat{\boldsymbol{\beta}}_k) \succeq 0 }[/math], especially if [math]\displaystyle{ k }[/math] is such that the excluded principal components correspond to the smaller eigenvalues, thereby resulting in lower bias.
In order to ensure efficient estimation and prediction performance of PCR as an estimator of [math]\displaystyle{ \boldsymbol{\beta} }[/math], Park (1981) ^{[3]} proposes the following guideline for selecting the principal components to be used for regression: Drop the [math]\displaystyle{ j^{th} }[/math] principal component if and only if [math]\displaystyle{ \lambda_j \lt (p\sigma^2)/ \boldsymbol{\beta}^T \boldsymbol{\beta}. }[/math] Practical implementation of this guideline of course requires estimates for the unknown model parameters [math]\displaystyle{ \sigma^2 }[/math] and [math]\displaystyle{ \boldsymbol{\beta} }[/math]. In general, they may be estimated using the unrestricted least squares estimates obtained from the original full model. Park (1981) however provides a slightly modified set of estimates that may be better suited for this purpose.^{[3]}
Unlike the criteria based on the cumulative sum of the eigenvalues of [math]\displaystyle{ \mathbf{X}^T\mathbf{X} }[/math], which is probably more suited for addressing the multicollinearity problem and for performing dimension reduction, the above criteria actually attempts to improve the prediction and estimation efficiency of the PCR estimator by involving both the outcome as well as the covariates in the process of selecting the principal components to be used in the regression step. Alternative approaches with similar goals include selection of the principal components based on crossvalidation or the Mallow's C_{p} criteria. Often, the principal components are also selected based on their degree of association with the outcome.
Shrinkage effect of PCR
In general, PCR is essentially a shrinkage estimator that usually retains the high variance principal components (corresponding to the higher eigenvalues of [math]\displaystyle{ \mathbf{X}^T\mathbf{X} }[/math]) as covariates in the model and discards the remaining low variance components (corresponding to the lower eigenvalues of [math]\displaystyle{ \mathbf{X}^T\mathbf{X} }[/math]). Thus it exerts a discrete shrinkage effect on the low variance components nullifying their contribution completely in the original model. In contrast, the ridge regression estimator exerts a smooth shrinkage effect through the regularization parameter (or the tuning parameter) inherently involved in its construction. While it does not completely discard any of the components, it exerts a shrinkage effect over all of them in a continuous manner so that the extent of shrinkage is higher for the low variance components and lower for the high variance components. Frank and Friedman (1993)^{[4]} conclude that for the purpose of prediction itself, the ridge estimator, owing to its smooth shrinkage effect, is perhaps a better choice compared to the PCR estimator having a discrete shrinkage effect.
In addition, the principal components are obtained from the eigendecomposition of [math]\displaystyle{ \mathbf{X} }[/math] that involves the observations for the explanatory variables only. Therefore, the resulting PCR estimator obtained from using these principal components as covariates need not necessarily have satisfactory predictive performance for the outcome. A somewhat similar estimator that tries to address this issue through its very construction is the partial least squares (PLS) estimator. Similar to PCR, PLS also uses derived covariates of lower dimensions. However unlike PCR, the derived covariates for PLS are obtained based on using both the outcome as well as the covariates. While PCR seeks the high variance directions in the space of the covariates, PLS seeks the directions in the covariate space that are most useful for the prediction of the outcome.
2006 a variant of the classical PCR known as the supervised PCR was proposed.^{[5]} In a spirit similar to that of PLS, it attempts at obtaining derived covariates of lower dimensions based on a criterion that involves both the outcome as well as the covariates. The method starts by performing a set of [math]\displaystyle{ p }[/math] simple linear regressions (or univariate regressions) wherein the outcome vector is regressed separately on each of the [math]\displaystyle{ p }[/math] covariates taken one at a time. Then, for some [math]\displaystyle{ m \in \{1,\ldots, p\} }[/math], the first [math]\displaystyle{ m }[/math] covariates that turn out to be the most correlated with the outcome (based on the degree of significance of the corresponding estimated regression coefficients) are selected for further use. A conventional PCR, as described earlier, is then performed, but now it is based on only the [math]\displaystyle{ n \times m }[/math] data matrix corresponding to the observations for the selected covariates. The number of covariates used: [math]\displaystyle{ m \in \{1,\ldots, p\} }[/math] and the subsequent number of principal components used: [math]\displaystyle{ k \in \{1,\ldots, m\} }[/math] are usually selected by crossvalidation.
Generalization to kernel settings
The classical PCR method as described above is based on classical PCA and considers a linear regression model for predicting the outcome based on the covariates. However, it can be easily generalized to a kernel machine setting whereby the regression function need not necessarily be linear in the covariates, but instead it can belong to the Reproducing Kernel Hilbert Space associated with any arbitrary (possibly nonlinear), symmetric positivedefinite kernel. The linear regression model turns out to be a special case of this setting when the kernel function is chosen to be the linear kernel.
In general, under the kernel machine setting, the vector of covariates is first mapped into a highdimensional (potentially infinitedimensional) feature space characterized by the kernel function chosen. The mapping so obtained is known as the feature map and each of its coordinates, also known as the feature elements, corresponds to one feature (may be linear or nonlinear) of the covariates. The regression function is then assumed to be a linear combination of these feature elements. Thus, the underlying regression model in the kernel machine setting is essentially a linear regression model with the understanding that instead of the original set of covariates, the predictors are now given by the vector (potentially infinitedimensional) of feature elements obtained by transforming the actual covariates using the feature map.
However, the kernel trick actually enables us to operate in the feature space without ever explicitly computing the feature map. It turns out that it is only sufficient to compute the pairwise inner products among the feature maps for the observed covariate vectors and these inner products are simply given by the values of the kernel function evaluated at the corresponding pairs of covariate vectors. The pairwise inner products so obtained may therefore be represented in the form of a [math]\displaystyle{ n \times n }[/math] symmetric nonnegative definite matrix also known as the kernel matrix.
PCR in the kernel machine setting can now be implemented by first appropriately centering this kernel matrix (K, say) with respect to the feature space and then performing a kernel PCA on the centered kernel matrix (K', say) whereby an eigendecomposition of K' is obtained. Kernel PCR then proceeds by (usually) selecting a subset of all the eigenvectors so obtained and then performing a standard linear regression of the outcome vector on these selected eigenvectors. The eigenvectors to be used for regression are usually selected using crossvalidation. The estimated regression coefficients (having the same dimension as the number of selected eigenvectors) along with the corresponding selected eigenvectors are then used for predicting the outcome for a future observation. In machine learning, this technique is also known as spectral regression.
Clearly, kernel PCR has a discrete shrinkage effect on the eigenvectors of K', quite similar to the discrete shrinkage effect of classical PCR on the principal components, as discussed earlier. However, the feature map associated with the chosen kernel could potentially be infinitedimensional, and hence the corresponding principal components and principal component directions could be infinitedimensional as well. Therefore, these quantities are often practically intractable under the kernel machine setting. Kernel PCR essentially works around this problem by considering an equivalent dual formulation based on using the spectral decomposition of the associated kernel matrix. Under the linear regression model (which corresponds to choosing the kernel function as the linear kernel), this amounts to considering a spectral decomposition of the corresponding [math]\displaystyle{ n \times n }[/math] kernel matrix [math]\displaystyle{ \mathbf{X}\mathbf{X}^T }[/math] and then regressing the outcome vector on a selected subset of the eigenvectors of [math]\displaystyle{ \mathbf{X}\mathbf{X}^T }[/math] so obtained. It can be easily shown that this is the same as regressing the outcome vector on the corresponding principal components (which are finitedimensional in this case), as defined in the context of the classical PCR. Thus, for the linear kernel, the kernel PCR based on a dual formulation is exactly equivalent to the classical PCR based on a primal formulation. However, for arbitrary (and possibly nonlinear) kernels, this primal formulation may become intractable owing to the infinite dimensionality of the associated feature map. Thus classical PCR becomes practically infeasible in that case, but kernel PCR based on the dual formulation still remains valid and computationally scalable.
See also
 Principal component analysis
 Partial least squares regression
 Ridge regression
 Canonical correlation
 Deming regression
 Total sum of squares
References
 ↑ Jolliffe, Ian T. (1982). "A note on the Use of Principal Components in Regression". Journal of the Royal Statistical Society, Series C 31 (3): 300–303. doi:10.2307/2348005.
 ↑ Dodge, Y. (2003) The Oxford Dictionary of Statistical Terms, OUP. ISBN 0199206139
 ↑ ^{3.0} ^{3.1} ^{3.2} Sung H. Park (1981). "Collinearity and Optimal Restrictions on Regression Parameters for Estimating Responses". Technometrics 23 (3): 289–295. doi:10.2307/1267793.
 ↑ Lldiko E. Frank; Jerome H. Friedman (1993). "A Statistical View of Some Chemometrics Regression Tools". Technometrics 35 (2): 109–135. doi:10.1080/00401706.1993.10485033.
 ↑ Eric Bair; Trevor Hastie; Debashis Paul; Robert Tibshirani (2006). "Prediction by Supervised Principal Components". Journal of the American Statistical Association 101 (473): 119–137. doi:10.1198/016214505000000628.
Further reading
 Amemiya, Takeshi (1985). Advanced Econometrics. Harvard University Press. pp. 57–60. ISBN 9780674005600. https://archive.org/details/advancedeconomet00amem/page/57.
 Theil, Henri (1971). Principles of Econometrics. Wiley. pp. 46–55. ISBN 9780471858454. https://archive.org/details/principlesofecon0000thei/page/46.
Original source: https://en.wikipedia.org/wiki/Principal component regression.
Read more 