Template:Short description Template:Regression bar Ridge regression (also known as Tikhonov regularization, named for Andrey Tikhonov) is a method of estimating the coefficients of multiple-regression models in scenarios where the independent variables are highly correlated.<ref name=Hilt>Template:Cite bookTemplate:Pn</ref> It has been used in many fields including econometrics, chemistry, and engineering.<ref name=Gruber /> It is a method of regularization of ill-posed problems.Template:Efn It is particularly useful to mitigate the problem of multicollinearity in linear regression, which commonly occurs in models with large numbers of parameters.<ref>Template:Cite book</ref> In general, the method provides improved efficiency in parameter estimation problems in exchange for a tolerable amount of bias (see bias–variance tradeoff).<ref>Template:Cite book</ref>
The theory was first introduced by Hoerl and Kennard in 1970 in their Technometrics papers "Ridge regressions: biased estimation of nonorthogonal problems" and "Ridge regressions: applications in nonorthogonal problems".<ref>Template:Cite journal</ref><ref>Template:Cite journal</ref><ref name=Hilt />
Ridge regression was developed as a possible solution to the imprecision of least square estimators when linear regression models have some multicollinear (highly correlated) independent variables—by creating a ridge regression estimator (RR). This provides a more precise ridge parameters estimate, as its variance and mean square estimator are often smaller than the least square estimators previously derived.<ref name=Jolliffe>Template:Cite book</ref><ref name=Gruber>Template:Cite book</ref>
OverviewEdit
In the simplest case, the problem of a near-singular moment matrix <math>\mathbf{X}^\mathsf{T}\mathbf{X}</math> is alleviated by adding positive elements to the diagonals, thereby decreasing its condition number. Analogous to the ordinary least squares estimator, the simple ridge estimator is then given by <math display="block">\hat{\boldsymbol{\beta}}_{R} = \left(\mathbf{X}^{\mathsf{T}} \mathbf{X} + \lambda \mathbf{I}\right)^{-1} \mathbf{X}^{\mathsf{T}} \mathbf{y}</math> where <math>\mathbf{y}</math> is the regressand, <math>\mathbf{X}</math> is the design matrix, <math>\mathbf{I}</math> is the identity matrix, and the ridge parameter <math>\lambda \geq 0</math> serves as the constant shifting the diagonals of the moment matrix.<ref>For the choice of <math>\lambda</math> in practice, see Template:Cite journal</ref> It can be shown that this estimator is the solution to the least squares problem subject to the constraint <math>\boldsymbol\beta^\mathsf{T}\boldsymbol\beta = c</math>, which can be expressed as a Lagrangian minimization: <math display="block">\hat{\boldsymbol\beta}_{R} = \text{argmin}_{\boldsymbol{\beta}} \, \left(\mathbf{y} - \mathbf{X} \boldsymbol{\beta}\right)^\mathsf{T} \left(\mathbf{y} - \mathbf{X} \boldsymbol\beta\right) + \lambda \left(\boldsymbol\beta^\mathsf{T}\boldsymbol\beta - c\right)</math> which shows that <math>\lambda</math> is nothing but the Lagrange multiplier of the constraint.<ref>Template:Cite arXiv</ref> In fact, there is a one-to-one relationship between <math>c</math> and <math>\beta</math> and since, in practice, we do not know <math>c</math>, we define <math>\lambda</math> heuristically or find it via additional data-fitting strategies, see Determination of the Tikhonov factor.
Note that, when <math>\lambda = 0</math>, in which case the constraint is non-binding, the ridge estimator reduces to ordinary least squares. A more general approach to Tikhonov regularization is discussed below.
HistoryEdit
Tikhonov regularization was invented independently in many different contexts. It became widely known through its application to integral equations in the works of Andrey Tikhonov<ref>Template:Cite journal</ref><ref>Template:Cite journal. Translated in Template:Cite journal</ref><ref>Template:Cite book</ref><ref>Template:Cite book</ref><ref>Template:Cite book</ref> and David L. Phillips.<ref>Template:Cite journal</ref> Some authors use the term Tikhonov–Phillips regularization. The finite-dimensional case was expounded by Arthur E. Hoerl, who took a statistical approach,<ref>Template:Cite journal</ref> and by Manus Foster, who interpreted this method as a Wiener–Kolmogorov (Kriging) filter.<ref>Template:Cite journal</ref> Following Hoerl, it is known in the statistical literature as ridge regression,<ref>Template:Cite journal</ref> named after ridge analysis ("ridge" refers to the path from the constrained maximum).<ref>Template:Cite journal</ref>
Tikhonov regularizationEdit
Suppose that for a known real matrix <math>A</math> and vector <math>\mathbf{b}</math>, we wish to find a vector <math>\mathbf{x}</math> such that <math display="block">A\mathbf{x} = \mathbf{b},</math> where <math>\mathbf{x}</math> and <math>\mathbf{b}</math> may be of different sizes and <math>A</math> may be non-square.
The standard approach is ordinary least squares linear regression.Template:Clarify However, if no <math>\mathbf{x}</math> satisfies the equation or more than one <math>\mathbf{x}</math> does—that is, the solution is not unique—the problem is said to be ill posed. In such cases, ordinary least squares estimation leads to an overdetermined, or more often an underdetermined system of equations. Most real-world phenomena have the effect of low-pass filtersTemplate:Clarify in the forward direction where <math>A</math> maps <math>\mathbf{x}</math> to <math>\mathbf{b}</math>. Therefore, in solving the inverse-problem, the inverse mapping operates as a high-pass filter that has the undesirable tendency of amplifying noise (eigenvalues / singular values are largest in the reverse mapping where they were smallest in the forward mapping). In addition, ordinary least squares implicitly nullifies every element of the reconstructed version of <math>\mathbf{x}</math> that is in the null-space of <math>A</math>, rather than allowing for a model to be used as a prior for <math>\mathbf{x}</math>. Ordinary least squares seeks to minimize the sum of squared residuals, which can be compactly written as <math display="block">\left\|A\mathbf{x} - \mathbf{b}\right\|_2^2,</math> where <math>\|\cdot\|_2</math> is the Euclidean norm.
In order to give preference to a particular solution with desirable properties, a regularization term can be included in this minimization: <math display="block">\left\|A\mathbf{x} - \mathbf{b}\right\|_2^2 + \left\|\Gamma \mathbf{x}\right\|_2^2=\left\|\begin{pmatrix}A\\\Gamma\end{pmatrix}\mathbf{x} - \begin{pmatrix}\mathbf{b}\\\boldsymbol0\end{pmatrix}\right\|_2^2</math> for some suitably chosen Tikhonov matrix <math>\Gamma </math>. In many cases, this matrix is chosen as a scalar multiple of the identity matrix (<math>\Gamma = \alpha I</math>), giving preference to solutions with smaller norms; this is known as Template:Math regularization.<ref>Template:Cite conference</ref> In other cases, high-pass operators (e.g., a difference operator or a weighted Fourier operator) may be used to enforce smoothness if the underlying vector is believed to be mostly continuous. This regularization improves the conditioning of the problem, thus enabling a direct numerical solution. An explicit solution, denoted by <math>\hat\mathbf{x}</math>, is given by <math display="block">\hat\mathbf{x} = \left(A^\mathsf{T} A + \Gamma^\mathsf{T} \Gamma\right)^{-1} A^\mathsf{T} \mathbf{b}= \left(\begin{pmatrix}A\\\Gamma\end{pmatrix}^\mathsf{T}\begin{pmatrix}A\\\Gamma\end{pmatrix}\right)^{-1} \begin{pmatrix}A\\\Gamma\end{pmatrix}^\mathsf{T} \begin{pmatrix}\mathbf{b}\\\boldsymbol0\end{pmatrix}.</math> The effect of regularization may be varied by the scale of matrix <math>\Gamma</math>. For <math>\Gamma = 0</math> this reduces to the unregularized least-squares solution, provided that (ATA)−1 exists. Note that in case of a complex matrix <math>A</math>, as usual the transpose <math>A^\mathsf{T}</math> has to be replaced by the Hermitian transpose <math>A^\mathsf{H}</math>.
Template:Math regularization is used in many contexts aside from linear regression, such as classification with logistic regression or support vector machines,<ref>Template:Cite journal</ref> and matrix factorization.<ref>Template:Cite journal</ref>
Application to existing fit resultsEdit
Since Tikhonov Regularization simply adds a quadratic term to the objective function in optimization problems, it is possible to do so after the unregularised optimisation has taken place. E.g., if the above problem with <math>\Gamma = 0</math> yields the solution <math>\hat\mathbf{x}_0</math>, the solution in the presence of <math>\Gamma \ne 0</math> can be expressed as: <math display="block">\hat\mathbf{x} = B \hat\mathbf{x}_0,</math> with the "regularisation matrix" <math>B = \left(A^\mathsf{T} A + \Gamma^\mathsf{T} \Gamma\right)^{-1} A^\mathsf{T} A</math>.
If the parameter fit comes with a covariance matrix of the estimated parameter uncertainties <math>V_0</math>, then the regularisation matrix will be <math display="block">B = (V_0^{-1} + \Gamma^\mathsf{T}\Gamma)^{-1} V_0^{-1},</math> and the regularised result will have a new covariance <math display="block">V = B V_0 B^\mathsf{T}.</math>
In the context of arbitrary likelihood fits, this is valid, as long as the quadratic approximation of the likelihood function is valid. This means that, as long as the perturbation from the unregularised result is small, one can regularise any result that is presented as a best fit point with a covariance matrix. No detailed knowledge of the underlying likelihood function is needed. <ref>Template:Cite journal</ref>
Generalized Tikhonov regularizationEdit
For general multivariate normal distributions for <math>\mathbf x</math> and the data error, one can apply a transformation of the variables to reduce to the case above. Equivalently, one can seek an <math>\mathbf x</math> to minimize <math display="block">\left\|A \mathbf x - \mathbf b\right\|_P^2 + \left\|\mathbf x - \mathbf x_0\right\|_Q^2,</math> where we have used <math>\left\|\mathbf{x}\right\|_Q^2</math> to stand for the weighted norm squared <math>\mathbf{x}^\mathsf{T} Q \mathbf{x}</math> (compare with the Mahalanobis distance). In the Bayesian interpretation <math>P</math> is the inverse covariance matrix of <math>\mathbf b</math>, <math>\mathbf x_0</math> is the expected value of <math>\mathbf x</math>, and <math>Q</math> is the inverse covariance matrix of <math>\mathbf x</math>. The Tikhonov matrix is then given as a factorization of the matrix <math>Q = \Gamma^\mathsf{T} \Gamma</math> (e.g. the Cholesky factorization) and is considered a whitening filter.
This generalized problem has an optimal solution <math>\mathbf x^*</math> which can be written explicitly using the formula <math display="block">\mathbf x^* = \left(A^\mathsf{T} PA + Q\right)^{-1} \left(A^\mathsf{T} P \mathbf{b} + Q \mathbf{x}_0\right),</math> or equivalently, when Q is not a null matrix: <math display="block">\mathbf x^* = \mathbf x_0 + \left(A^\mathsf{T} P A + Q \right)^{-1} \left(A^\mathsf{T} P \left(\mathbf b - A \mathbf x_0\right)\right).</math>
Lavrentyev regularizationEdit
In some situations, one can avoid using the transpose <math>A^\mathsf{T}</math>, as proposed by Mikhail Lavrentyev.<ref>Template:Cite book</ref> For example, if <math>A</math> is symmetric positive definite, i.e. <math>A = A^\mathsf{T} > 0</math>, so is its inverse <math>A^{-1}</math>, which can thus be used to set up the weighted norm squared <math>\left\|\mathbf x\right\|_P^2 = \mathbf x^\mathsf{T} A^{-1} \mathbf x</math> in the generalized Tikhonov regularization, leading to minimizing <math display="block">\left\|A \mathbf x - \mathbf b\right\|_{A^{-1}}^2 + \left\|\mathbf x - \mathbf x_0 \right\|_Q^2</math> or, equivalently up to a constant term, <math display="block">\mathbf x^\mathsf{T} \left(A+Q\right) \mathbf x - 2 \mathbf x^\mathsf{T} \left(\mathbf b + Q \mathbf x_0\right).</math>
This minimization problem has an optimal solution <math>\mathbf x^*</math> which can be written explicitly using the formula <math display="block">\mathbf x^* = \left(A + Q\right)^{-1} \left(\mathbf b + Q \mathbf x_0\right),</math> which is nothing but the solution of the generalized Tikhonov problem where <math>A = A^\mathsf{T} = P^{-1}.</math>
The Lavrentyev regularization, if applicable, is advantageous to the original Tikhonov regularization, since the Lavrentyev matrix <math>A + Q</math> can be better conditioned, i.e., have a smaller condition number, compared to the Tikhonov matrix <math>A^\mathsf{T} A + \Gamma^\mathsf{T} \Gamma.</math>
Regularization in Hilbert spaceEdit
Typically discrete linear ill-conditioned problems result from discretization of integral equations, and one can formulate a Tikhonov regularization in the original infinite-dimensional context. In the above we can interpret <math>A</math> as a compact operator on Hilbert spaces, and <math>x</math> and <math>b</math> as elements in the domain and range of <math>A</math>. The operator <math>A^* A + \Gamma^\mathsf{T} \Gamma </math> is then a self-adjoint bounded invertible operator.
Relation to singular-value decomposition and Wiener filterEdit
With <math>\Gamma = \alpha I</math>, this least-squares solution can be analyzed in a special way using the singular-value decomposition. Given the singular value decomposition <math display="block">A = U \Sigma V^\mathsf{T}</math> with singular values <math>\sigma _i</math>, the Tikhonov regularized solution can be expressed as <math display="block">\hat{x} = V D U^\mathsf{T} b,</math> where <math>D</math> has diagonal values <math display="block">D_{ii} = \frac{\sigma_i}{\sigma_i^2 + \alpha^2}</math> and is zero elsewhere. This demonstrates the effect of the Tikhonov parameter on the condition number of the regularized problem. For the generalized case, a similar representation can be derived using a generalized singular-value decomposition.<ref name="Hansen_SIAM_1998">Template:Cite book</ref>
Finally, it is related to the Wiener filter: <math display="block">\hat{x} = \sum _{i=1}^q f_i \frac{u_i^\mathsf{T} b}{\sigma_i} v_i,</math> where the Wiener weights are <math>f_i = \frac{\sigma _i^2}{\sigma_i^2 + \alpha^2}</math> and <math>q</math> is the rank of <math>A</math>.
Determination of the Tikhonov factorEdit
The optimal regularization parameter <math>\alpha</math> is usually unknown and often in practical problems is determined by an ad hoc method. A possible approach relies on the Bayesian interpretation described below. Other approaches include the discrepancy principle, cross-validation, L-curve method,<ref>P. C. Hansen, "The L-curve and its use in the numerical treatment of inverse problems", [1]</ref> restricted maximum likelihood and unbiased predictive risk estimator. Grace Wahba proved that the optimal parameter, in the sense of leave-one-out cross-validation minimizes<ref>Template:Cite journal</ref><ref>Template:Cite journal</ref> <math display="block">G = \frac{\operatorname{RSS}}{\tau^2} = \frac{\left\|X \hat{\beta} - y\right\|^2}{ \left[\operatorname{Tr}\left(I - X\left(X^\mathsf{T} X + \alpha^2 I\right)^{-1} X^\mathsf{T}\right)\right]^2},</math> where <math>\operatorname{RSS}</math> is the residual sum of squares, and <math>\tau</math> is the effective number of degrees of freedom.
Using the previous SVD decomposition, we can simplify the above expression: <math display="block">\operatorname{RSS} = \left\| y - \sum_{i=1}^q (u_i' b) u_i \right\|^2 + \left\| \sum _{i=1}^q \frac{\alpha^2}{\sigma_i^2 + \alpha^2} (u_i' b) u_i \right\|^2,</math> <math display="block">\operatorname{RSS} = \operatorname{RSS}_0 + \left\| \sum_{i=1}^q \frac{\alpha^2}{\sigma_i^2 + \alpha^2} (u_i' b) u_i \right\|^2,</math> and <math display="block">\tau = m - \sum_{i=1}^q \frac{\sigma_i^2}{\sigma_i^2 + \alpha^2} = m - q + \sum_{i=1}^q \frac{\alpha^2}{\sigma _i^2 + \alpha^2}.</math>
Relation to probabilistic formulationEdit
The probabilistic formulation of an inverse problem introduces (when all uncertainties are Gaussian) a covariance matrix <math> C_M</math> representing the a priori uncertainties on the model parameters, and a covariance matrix <math> C_D</math> representing the uncertainties on the observed parameters.<ref>Template:Cite book</ref> In the special case when these two matrices are diagonal and isotropic, <math> C_M = \sigma_M^2 I </math> and <math> C_D = \sigma_D^2 I </math>, and, in this case, the equations of inverse theory reduce to the equations above, with <math> \alpha = {\sigma_D}/{\sigma_M} </math>.<ref>Template:Cite journal</ref><ref>Template:Cite journal</ref>
Bayesian interpretationEdit
{{#invoke:Labelled list hatnote|labelledList|Main article|Main articles|Main page|Main pages}} Template:Further Although at first the choice of the solution to this regularized problem may look artificial, and indeed the matrix <math>\Gamma</math> seems rather arbitrary, the process can be justified from a Bayesian point of view.<ref>Template:Cite book</ref> Note that for an ill-posed problem one must necessarily introduce some additional assumptions in order to get a unique solution. Statistically, the prior probability distribution of <math>x</math> is sometimes taken to be a multivariate normal distribution.<ref>Template:Cite journal</ref> For simplicity here, the following assumptions are made: the means are zero; their components are independent; the components have the same standard deviation <math>\sigma _x</math>. The data are also subject to errors, and the errors in <math>b</math> are also assumed to be independent with zero mean and standard deviation <math>\sigma _b</math>. Under these assumptions the Tikhonov-regularized solution is the most probable solution given the data and the a priori distribution of <math>x</math>, according to Bayes' theorem.<ref>Template:Cite book</ref>
If the assumption of normality is replaced by assumptions of homoscedasticity and uncorrelatedness of errors, and if one still assumes zero mean, then the Gauss–Markov theorem entails that the solution is the minimal unbiased linear estimator.<ref>Template:Cite book</ref>
See alsoEdit
- LASSO estimator is another regularization method in statistics.
- Elastic net regularization
- Matrix regularization
NotesEdit
ReferencesEdit
Further readingEdit
Template:Least squares and regression analysis Template:Authority control