Jump to content

Ridge regression: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Tikhonov regularization: hermitian matrix instead of transpose for complex A
 
(25 intermediate revisions by 17 users not shown)
Line 1: Line 1:
{{Short description|Regularization technique for ill-posed problems}}
{{Short description|Regularization technique for ill-posed problems}}
{{Regression bar}}
{{Regression bar}}
'''Ridge regression''' is a method of estimating the [[coefficient]]s of multiple-[[regression model]]s in scenarios where the independent variables are highly correlated.<ref name=Hilt>{{cite book |last1=Hilt |first1=Donald E. |last2=Seegrist |first2=Donald W. |title=Ridge, a computer program for calculating ridge regression estimates |date=1977 |doi=10.5962/bhl.title.68934 |url=https://www.biodiversitylibrary.org/bibliography/68934 }}{{pn|date=April 2022}}</ref> It has been used in many fields including econometrics, chemistry, and engineering.<ref name=Gruber /> Also known as '''Tikhonov regularization''', named for [[Andrey Nikolayevich Tikhonov|Andrey Tikhonov]], it is a method of [[regularization (mathematics)|regularization]] of [[ill-posed problem]]s.{{efn|In [[statistics]], the method is known as '''ridge regression''', in [[machine learning]] it and its modifications are known as '''weight decay''', and with multiple independent discoveries, it is also variously known as the '''Tikhonov–Miller method''', the '''Phillips–Twomey method''', the '''constrained linear inversion''' method, '''{{math|''L''<sub>2</sub>}} regularization''', and the method of '''linear regularization'''. It is related to the [[Levenberg–Marquardt algorithm]] for [[non-linear least squares|non-linear least-squares]] problems.}} it is particularly useful to mitigate the problem of [[multicollinearity]] in [[linear regression]], which commonly occurs in models with large numbers of parameters.<ref>{{cite book |first=Peter |last=Kennedy |author-link=Peter Kennedy (economist) |title=A Guide to Econometrics |location=Cambridge |publisher=The MIT Press |edition=Fifth |year=2003 |isbn=0-262-61183-X |pages=205–206 |url=https://books.google.com/books?id=B8I5SP69e4kC&pg=PA205 }}</ref> In general, the method provides improved [[Efficient estimator|efficiency]] in parameter estimation problems in exchange for a tolerable amount of [[Bias of an estimator|bias]] (see [[bias–variance tradeoff]]).<ref>{{cite book |first=Marvin |last=Gruber |title=Improving Efficiency by Shrinkage: The James–Stein and Ridge Regression Estimators |location=Boca Raton |publisher=CRC Press |year=1998 |pages=7–15 |isbn=0-8247-0156-9 |url=https://books.google.com/books?id=wmA_R3ZFrXYC&pg=PA7 }}</ref>
'''Ridge regression''' is a method of estimating the [[coefficient]]s of multiple-[[regression model]]s in scenarios where the independent variables are highly correlated.<ref name=Hilt>{{cite book |last1=Hilt |first1=Donald E. |last2=Seegrist |first2=Donald W. |title=Ridge, a computer program for calculating ridge regression estimates |date=1977 |doi=10.5962/bhl.title.68934 |url=https://www.biodiversitylibrary.org/bibliography/68934 }}{{pn|date=April 2022}}</ref> It has been used in many fields including econometrics, chemistry, and engineering.<ref name=Gruber /> Also known as '''Tikhonov regularization''', named for [[Andrey Nikolayevich Tikhonov|Andrey Tikhonov]], it is a method of [[regularization (mathematics)|regularization]] of [[ill-posed problem]]s.{{efn|In [[statistics]], the method is known as '''ridge regression''', in [[machine learning]] it and its modifications are known as '''weight decay''', and with multiple independent discoveries, it is also variously known as the '''Tikhonov–Miller method''', the '''Phillips–Twomey method''', the '''constrained linear inversion''' method, '''{{math|''L''<sub>2</sub>}} regularization''', and the method of '''linear regularization'''. It is related to the [[Levenberg–Marquardt algorithm]] for [[non-linear least squares|non-linear least-squares]] problems.}} It is particularly useful to mitigate the problem of [[multicollinearity]] in [[linear regression]], which commonly occurs in models with large numbers of parameters.<ref>{{cite book |first=Peter |last=Kennedy |author-link=Peter Kennedy (economist) |title=A Guide to Econometrics |location=Cambridge |publisher=The MIT Press |edition=Fifth |year=2003 |isbn=0-262-61183-X |pages=205–206 |url=https://books.google.com/books?id=B8I5SP69e4kC&pg=PA205 }}</ref> In general, the method provides improved [[Efficient estimator|efficiency]] in parameter estimation problems in exchange for a tolerable amount of [[Bias of an estimator|bias]] (see [[bias–variance tradeoff]]).<ref>{{cite book |first=Marvin |last=Gruber |title=Improving Efficiency by Shrinkage: The James–Stein and Ridge Regression Estimators |location=Boca Raton |publisher=CRC Press |year=1998 |pages=7–15 |isbn=0-8247-0156-9 |url=https://books.google.com/books?id=wmA_R3ZFrXYC&pg=PA7 }}</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>{{cite journal |last1=Hoerl |first1=Arthur E. |last2=Kennard |first2=Robert W. |title=Ridge Regression: Biased Estimation for Nonorthogonal Problems |journal=Technometrics |date=1970 |volume=12 |issue=1 |pages=55–67 |doi=10.2307/1267351 |jstor=1267351 }}</ref><ref>{{cite journal |last1=Hoerl |first1=Arthur E. |last2=Kennard |first2=Robert W. |title=Ridge Regression: Applications to Nonorthogonal Problems |journal=Technometrics |date=1970 |volume=12 |issue=1 |pages=69–82 |doi=10.2307/1267352 |jstor=1267352 }}</ref><ref name=Hilt /> This was the result of ten years of research into the field of ridge analysis.<ref name=Beck>{{cite book |last1=Beck |first1=James Vere |last2=Arnold |first2=Kenneth J. |title=Parameter Estimation in Engineering and Science |date=1977 |publisher=James Beck |isbn=978-0-471-06118-2 |page=287 |url=https://books.google.com/books?id=_qAYgYN87UQC&pg=PA287 }}</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>{{cite journal |last1=Hoerl |first1=Arthur E. |last2=Kennard |first2=Robert W. |title=Ridge Regression: Biased Estimation for Nonorthogonal Problems |journal=Technometrics |date=1970 |volume=12 |issue=1 |pages=55–67 |doi=10.2307/1267351 |jstor=1267351 }}</ref><ref>{{cite journal |last1=Hoerl |first1=Arthur E. |last2=Kennard |first2=Robert W. |title=Ridge Regression: Applications to Nonorthogonal Problems |journal=Technometrics |date=1970 |volume=12 |issue=1 |pages=69–82 |doi=10.2307/1267352 |jstor=1267352 }}</ref><ref name=Hilt /> This was the result of ten years of research into the field of ridge analysis.<ref name=Beck>{{cite book |last1=Beck |first1=James Vere |last2=Arnold |first2=Kenneth J. |title=Parameter Estimation in Engineering and Science |date=1977 |publisher=James Beck |isbn=978-0-471-06118-2 |page=287 |url=https://books.google.com/books?id=_qAYgYN87UQC&pg=PA287 }}</ref>


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>{{cite book |last1=Jolliffe |first1=I. T. |title=Principal Component Analysis |date=2006 |publisher=Springer Science & Business Media |isbn=978-0-387-22440-4 |page=178 |url=https://books.google.com/books?id=6ZUMBwAAQBAJ&pg=PA178 }}</ref><ref name=Gruber>{{cite book |last1=Gruber |first1=Marvin |title=Improving Efficiency by Shrinkage: The James--Stein and Ridge Regression Estimators |date=1998 |publisher=CRC Press |isbn=978-0-8247-0156-7 |page=2 |url=https://books.google.com/books?id=wmA_R3ZFrXYC&pg=PA2 }}</ref>
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>{{cite book |last1=Jolliffe |first1=I. T. |title=Principal Component Analysis |date=2006 |publisher=Springer Science & Business Media |isbn=978-0-387-22440-4 |page=178 |url=https://books.google.com/books?id=6ZUMBwAAQBAJ&pg=PA178 }}</ref><ref name=Gruber>{{cite book |last1=Gruber |first1=Marvin |title=Improving Efficiency by Shrinkage: The James--Stein and Ridge Regression Estimators |date=1998 |publisher=CRC Press |isbn=978-0-8247-0156-7 |page=2 |url=https://books.google.com/books?id=wmA_R3ZFrXYC&pg=PA2 }}</ref>


==Overview==
==Overview==
In the simplest case, the problem of a [[Singular matrices|near-singular]] [[moment matrix]] <math>(\mathbf{X}^\mathsf{T}\mathbf{X})</math> is alleviated by adding positive elements to the [[Main diagonal|diagonals]], thereby decreasing its [[condition number]]. Analogous to the [[ordinary least squares]] estimator, the simple ridge estimator is then given by
In the simplest case, the problem of a [[Singular matrices|near-singular]] [[moment matrix]] <math>\mathbf{X}^\mathsf{T}\mathbf{X}</math> is alleviated by adding positive elements to the [[Main diagonal|diagonals]], thereby decreasing its [[condition number]]. Analogous to the [[ordinary least squares]] estimator, the simple ridge estimator is then given by
:<math>\hat{\beta}_{R} = (\mathbf{X}^{\mathsf{T}} \mathbf{X} + \lambda \mathbf{I})^{-1} \mathbf{X}^{\mathsf{T}} \mathbf{y}</math>
<math display="block">\hat{\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 {{cite journal |first1=Ghadban |last1=Khalaf |first2=Ghazi |last2=Shukur |title=Choosing Ridge Parameter for Regression Problems |journal=[[Communications in Statistics – Theory and Methods]] |volume=34 |year=2005 |issue=5 |pages=1177–1182 |doi=10.1081/STA-200056836 |s2cid=122983724 }}</ref> It can be shown that this estimator is the solution to the [[least squares]] problem subject to the [[Constraint (mathematics)|constraint]] <math>\beta^\mathsf{T}\beta = c</math>, which can be expressed as a Lagrangian:
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 {{cite journal |first1=Ghadban |last1=Khalaf |first2=Ghazi |last2=Shukur |title=Choosing Ridge Parameter for Regression Problems |journal=[[Communications in Statistics – Theory and Methods]] |volume=34 |year=2005 |issue=5 |pages=1177–1182 |doi=10.1081/STA-200056836 |s2cid=122983724 }}</ref> It can be shown that this estimator is the solution to the [[least squares]] problem subject to the [[Constraint (mathematics)|constraint]] <math>\beta^\mathsf{T}\beta = c</math>, which can be expressed as a Lagrangian:
:<math>\min_{\beta} \, (\mathbf{y} - \mathbf{X} \beta)^\mathsf{T}(\mathbf{y} - \mathbf{X} \beta) + \lambda (\beta^\mathsf{T}\beta - c)</math>
<math display="block">\min_{\beta} \, \left(\mathbf{y} - \mathbf{X} \beta\right)^\mathsf{T} \left(\mathbf{y} - \mathbf{X} \beta\right) + \lambda \left(\beta^\mathsf{T}\beta - c\right)</math>
which shows that <math>\lambda</math> is nothing but the [[Lagrange multiplier]] of the constraint. Typically, <math>\lambda</math> is chosen according to a heuristic criterion, so that the constraint will not be satisfied exactly. Specifically in the case of <math>\lambda = 0</math>, in which the [[Non-binding constraint|constraint is non-binding]], the ridge estimator reduces to [[ordinary least squares]]. A more general approach to Tikhonov regularization is discussed below.
which shows that <math>\lambda</math> is nothing but the [[Lagrange multiplier]] of the constraint.<ref>{{Cite arXiv|last=van Wieringen |first=Wessel |date=2021-05-31 |title=Lecture notes on ridge regression |class=stat.ME |eprint=1509.09169 }}</ref> Typically, <math>\lambda</math> is chosen according to a heuristic criterion, so that the constraint will not be satisfied exactly. Specifically in the case of <math>\lambda = 0</math>, in which the [[Non-binding constraint|constraint is non-binding]], the ridge estimator reduces to [[ordinary least squares]]. A more general approach to Tikhonov regularization is discussed below.


==History==
==History==
Tikhonov regularization has been invented independently in many different contexts.
Tikhonov regularization was invented independently in many different contexts.
It became widely known through its application to integral equations in the works of [[Andrey Nikolayevich Tikhonov|Andrey Tikhonov]]<ref>{{Cite journal| last=Tikhonov | first=Andrey Nikolayevich | author-link=Andrey Nikolayevich Tikhonov | year=1943 | title=Об устойчивости обратных задач |trans-title=On the stability of inverse problems | journal=[[Doklady Akademii Nauk SSSR]] | volume=39 | issue=5 | pages=195–198|url=http://a-server.math.nsc.ru/IPP/BASE_WORK/tihon_en.html| archive-url=https://web.archive.org/web/20050227163812/http://a-server.math.nsc.ru/IPP/BASE_WORK/tihon_en.html | archive-date=2005-02-27 }}</ref><ref>{{Cite journal| last=Tikhonov | first=A. N. | year=1963 | title=О решении некорректно поставленных задач и методе регуляризации | journal=Doklady Akademii Nauk SSSR | volume=151 | pages=501–504}}. Translated in {{Cite journal| journal=Soviet Mathematics | volume=4 | pages=1035–1038 | title=Solution of incorrectly formulated problems and the regularization method }}</ref><ref>{{Cite book| last=Tikhonov | first=A. N. |author2=V. Y. Arsenin | year=1977 | title=Solution of Ill-posed Problems | publisher=Winston & Sons | location=Washington | isbn=0-470-99124-0}}</ref><ref>{{cite book |last1=Tikhonov |first1=Andrey Nikolayevich |last2=Goncharsky |first2=A. |last3=Stepanov |first3=V. V. |last4=Yagola |first4=Anatolij Grigorevic |title=Numerical Methods for the Solution of Ill-Posed Problems |date=30 June 1995 |publisher=Springer Netherlands |location=Netherlands |isbn=0-7923-3583-X |url=https://www.springer.com/us/book/9780792335832 |access-date=9 August 2018 |ref=TikhonovSpringer1995Numerical}}</ref><ref>{{cite book |last1=Tikhonov |first1=Andrey Nikolaevich |last2=Leonov |first2=Aleksandr S. |last3=Yagola |first3=Anatolij Grigorevic |title=Nonlinear ill-posed problems |date=1998 |publisher=Chapman & Hall |location=London |isbn=0-412-78660-5 |url=https://www.springer.com/us/book/9789401751698 |access-date=9 August 2018 |ref=TikhonovChapmanHall1998Nonlinear}}</ref> and David L. Phillips.<ref>{{Cite journal | last1 = Phillips | first1 = D. L. | doi = 10.1145/321105.321114 | title = A Technique for the Numerical Solution of Certain Integral Equations of the First Kind | journal = Journal of the ACM | volume = 9 | pages = 84–97 | year = 1962 | s2cid = 35368397 | doi-access = free }}</ref> Some authors use the term '''Tikhonov–Phillips regularization'''.
It became widely known from its application to integral equations from the work of
The finite-dimensional case was expounded by [[Arthur E. Hoerl]], who took a statistical approach,<ref>{{cite journal |last1=Hoerl |first1=Arthur E. |title=Application of Ridge Analysis to Regression Problems |journal=Chemical Engineering Progress |date=1962 |volume=58 |issue=3 |pages=54–59 |ref=AEHoerl1962V58I3}}</ref> and by Manus Foster, who interpreted this method as a [[Kriging|Wiener–Kolmogorov (Kriging)]] filter.<ref>{{Cite journal | last1 = Foster | first1 = M. | title = An Application of the Wiener-Kolmogorov Smoothing Theory to Matrix Inversion | doi = 10.1137/0109031 | journal = Journal of the Society for Industrial and Applied Mathematics | volume = 9 | issue = 3 | pages = 387–392 | year = 1961 }}</ref> Following Hoerl, it is known in the statistical literature as ridge regression,<ref>{{cite journal | last = Hoerl | first = A. E. |author2=R. W. Kennard | year = 1970 | title=Ridge regression: Biased estimation for nonorthogonal problems | journal=Technometrics | volume=12 | issue=1 | pages = 55–67 | doi=10.1080/00401706.1970.10488634}}</ref> named after ridge analysis ("ridge" refers to the path from the constrained maximum).<ref>{{Cite journal |last=Hoerl |first=Roger W. |date=2020-10-01 |title=Ridge Regression: A Historical Context |url=https://www.tandfonline.com/doi/full/10.1080/00401706.2020.1742207 |journal=Technometrics |language=en |volume=62 |issue=4 |pages=420–425 |doi=10.1080/00401706.2020.1742207 |issn=0040-1706}}</ref>
[[Andrey Nikolayevich Tikhonov|Andrey Tikhonov]]<ref>{{Cite journal| last=Tikhonov | first=Andrey Nikolayevich | author-link=Andrey Nikolayevich Tikhonov | year=1943 | title=Об устойчивости обратных задач |trans-title=On the stability of inverse problems | journal=[[Doklady Akademii Nauk SSSR]] | volume=39 | issue=5 | pages=195–198|url=http://a-server.math.nsc.ru/IPP/BASE_WORK/tihon_en.html| archive-url=https://web.archive.org/web/20050227163812/http://a-server.math.nsc.ru/IPP/BASE_WORK/tihon_en.html | archive-date=2005-02-27 }}</ref><ref>{{Cite journal| last=Tikhonov | first=A. N. | year=1963 | title=О решении некорректно поставленных задач и методе регуляризации | journal=Doklady Akademii Nauk SSSR | volume=151 | pages=501–504}}. Translated in {{Cite journal| journal=Soviet Mathematics | volume=4 | pages=1035–1038 | title=Solution of incorrectly formulated problems and the regularization method }}</ref><ref>{{Cite book| last=Tikhonov | first=A. N. |author2=V. Y. Arsenin | year=1977 | title=Solution of Ill-posed Problems | publisher=Winston & Sons | location=Washington | isbn=0-470-99124-0}}</ref><ref>{{cite book |last1=Tikhonov |first1=Andrey Nikolayevich |last2=Goncharsky |first2=A. |last3=Stepanov |first3=V. V. |last4=Yagola |first4=Anatolij Grigorevic |title=Numerical Methods for the Solution of Ill-Posed Problems |date=30 June 1995 |publisher=Springer Netherlands |location=Netherlands |isbn=079233583X |url=https://www.springer.com/us/book/9780792335832 |access-date=9 August 2018 |ref=TikhonovSpringer1995Numerical}}</ref><ref>{{cite book |last1=Tikhonov |first1=Andrey Nikolaevich |last2=Leonov |first2=Aleksandr S. |last3=Yagola |first3=Anatolij Grigorevic |title=Nonlinear ill-posed problems |date=1998 |publisher=Chapman & Hall |location=London |isbn=0412786605 |url=https://www.springer.com/us/book/9789401751698 |access-date=9 August 2018 |ref=TikhonovChapmanHall1998Nonlinear}}</ref> and David L. Phillips.<ref>{{Cite journal | last1 = Phillips | first1 = D. L. | doi = 10.1145/321105.321114 | title = A Technique for the Numerical Solution of Certain Integral Equations of the First Kind | journal = Journal of the ACM | volume = 9 | pages = 84–97 | year = 1962 | s2cid = 35368397 }}</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>{{cite journal |last1=Hoerl |first1=Arthur E. |title=Application of Ridge Analysis to Regression Problems |journal=Chemical Engineering Progress |date=1962 |volume=58 |issue=3 |pages=54–59 |ref=AEHoerl1962V58I3}}</ref> and by Manus Foster, who interpreted this method as a [[Kriging|Wiener–Kolmogorov (Kriging)]] filter.<ref>{{Cite journal | last1 = Foster | first1 = M. | title = An Application of the Wiener-Kolmogorov Smoothing Theory to Matrix Inversion | doi = 10.1137/0109031 | journal = Journal of the Society for Industrial and Applied Mathematics | volume = 9 | issue = 3 | pages = 387–392 | year = 1961 }}</ref> Following Hoerl, it is known in the statistical literature as ridge regression,<ref>{{cite journal | last = Hoerl | first = A. E. |author2=R. W. Kennard | year = 1970 | title=Ridge regression: Biased estimation for nonorthogonal problems | journal=Technometrics | volume=12 | issue=1 | pages = 55–67 | doi=10.1080/00401706.1970.10488634}}</ref> named after the shape along the diagonal of the identity matrix.


== Tikhonov regularization ==
== Tikhonov regularization ==
Suppose that for a known matrix <math>A</math> and vector <math>\mathbf{b}</math>, we wish to find a vector <math>\mathbf{x}</math> such that{{Clarify|reason=what are the relative dimensions of A, b and x/ is A a square or non-square matrix?; are x and y of the same dimension|date=May 2020}}
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>A\mathbf{x} = \mathbf{b}.</math>
<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.{{Clarify|reason=does this represent a system of linear equations (i.e. are x and b both of the same dimension as one side of the - supposedly square - matrix? then, as far as I know, the standard approach for solving it is any of a wide range of solvers ''not'' including linear regression|date=May 2020}} 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 [[Well-posed problem|ill posed]]. In such cases, ordinary least squares estimation leads to an [[Overdetermined system|overdetermined]], or more often an [[Underdetermined system|underdetermined]] system of equations. Most real-world phenomena have the effect of [[low-pass filters]] 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>.

The standard approach is [[ordinary least squares]] linear regression.{{Clarify|reason=does this represent a system of linear equations (i.e. are x and b both of the same dimension as one side of the - supposedly square - matrix? then, as far as I know, the standard approach for solving it is any of a wide range of solvers ''not'' including linear regression|date=May 2020}} 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 [[Well-posed problem|ill posed]]. In such cases, ordinary least squares estimation leads to an [[Overdetermined system|overdetermined]], or more often an [[Underdetermined system|underdetermined]] system of equations. Most real-world phenomena have the effect of [[low-pass filters]]{{Clarify|reason=If multiplying a matrix by x is a filter, what in A is a frequency, and what values correspond to high or low frequencies?|date=November 2022}} 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 [[Residual (numerical analysis)|residuals]], which can be compactly written as
Ordinary least squares seeks to minimize the sum of squared [[Residual (numerical analysis)|residuals]], which can be compactly written as
: <math>\|A\mathbf{x} - \mathbf{b}\|_2^2,</math>
<math display="block">\left\|A\mathbf{x} - \mathbf{b}\right\|_2^2,</math>
where <math>\|\cdot\|_2</math> is the [[Norm (mathematics)#Euclidean norm|Euclidean norm]].
where <math>\|\cdot\|_2</math> is the [[Norm (mathematics)#Euclidean norm|Euclidean norm]].


In order to give preference to a particular solution with desirable properties, a regularization term can be included in this minimization:
In order to give preference to a particular solution with desirable properties, a regularization term can be included in this minimization:
: <math>\|A\mathbf{x} - \mathbf{b}\|_2^2 + \|\Gamma \mathbf{x}\|_2^2</math>
<math display="block">\left\|A\mathbf{x} - \mathbf{b}\right\|_2^2 + \left\|\Gamma \mathbf{x}\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 [[Norm (mathematics)|norms]]; this is known as '''{{math|''L''<sub>2</sub>}} regularization'''.<ref>{{cite conference |first=Andrew Y. |last=Ng |author-link=Andrew Ng |year=2004 |title=Feature selection, L1 vs. L2 regularization, and rotational invariance |conference=Proc. [[International Conference on Machine Learning|ICML]] |url=https://icml.cc/Conferences/2004/proceedings/papers/354.pdf}}</ref> In other cases, high-pass operators (e.g., a [[difference operator]] or a weighted [[discrete fourier transform|Fourier operator]]) may be used to enforce smoothness if the underlying vector is believed to be mostly continuous.
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 [[Norm (mathematics)|norms]]; this is known as '''{{math|''L''<sub>2</sub>}} regularization'''.<ref>{{cite conference |first=Andrew Y. |last=Ng |author-link=Andrew Ng |year=2004 |title=Feature selection, L1 vs. L2 regularization, and rotational invariance |conference=Proc. [[International Conference on Machine Learning|ICML]] |url=https://icml.cc/Conferences/2004/proceedings/papers/354.pdf}}</ref> In other cases, high-pass operators (e.g., a [[difference operator]] or a weighted [[discrete fourier transform|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{x}</math>, is given by
This regularization improves the conditioning of the problem, thus enabling a direct numerical solution. An explicit solution, denoted by <math>\hat{x}</math>, is given by
: <math>\hat{x} = (A^\top A + \Gamma^\top \Gamma)^{-1} A^\top \mathbf{b}.</math>
<math display="block">\hat{x} = \left(A^\mathsf{T} A + \Gamma^\mathsf{T} \Gamma\right)^{-1} A^\mathsf{T} \mathbf{b}.</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 (A<sup>T</sup>A)<sup>−1</sup> exists.
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 (''A''<sup>T</sup>''A'')<sup>−1</sup> 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 matrix]] <math>A^\mathsf{H}</math>.


{{math|''L''<sub>2</sub>}} regularization is used in many contexts aside from linear regression, such as [[Statistical classification|classification]] with [[logistic regression]] or [[support vector machine]]s,<ref>{{cite journal |author1=R.-E. Fan |author2=K.-W. Chang |author3=C.-J. Hsieh |author4=X.-R. Wang |author5=C.-J. Lin |title=LIBLINEAR: A library for large linear classification |journal=[[Journal of Machine Learning Research]] |volume=9 |pages=1871–1874 |year=2008}}</ref> and matrix factorization.<ref>{{cite journal |last1=Guan |first1=Naiyang |first2=Dacheng |last2=Tao |first3=Zhigang |last3=Luo |first4=Bo |last4=Yuan |title=Online nonnegative matrix factorization with robust stochastic approximation |journal=IEEE Transactions on Neural Networks and Learning Systems |volume=23 |issue=7 |year=2012 |pages=1087–1099|doi=10.1109/TNNLS.2012.2197827 |pmid=24807135 |s2cid=8755408 }}</ref>
{{math|''L''<sub>2</sub>}} regularization is used in many contexts aside from linear regression, such as [[Statistical classification|classification]] with [[logistic regression]] or [[support vector machine]]s,<ref>{{cite journal |author1=R.-E. Fan |author2=K.-W. Chang |author3=C.-J. Hsieh |author4=X.-R. Wang |author5=C.-J. Lin |title=LIBLINEAR: A library for large linear classification |journal=[[Journal of Machine Learning Research]] |volume=9 |pages=1871–1874 |year=2008}}</ref> and matrix factorization.<ref>{{cite journal |last1=Guan |first1=Naiyang |first2=Dacheng |last2=Tao |first3=Zhigang |last3=Luo |first4=Bo |last4=Yuan |title=Online nonnegative matrix factorization with robust stochastic approximation |journal=IEEE Transactions on Neural Networks and Learning Systems |volume=23 |issue=7 |year=2012 |pages=1087–1099|doi=10.1109/TNNLS.2012.2197827 |pmid=24807135 |s2cid=8755408 }}</ref>


=== Application to existing fit results ===
===Generalized Tikhonov regularization===
For general multivariate normal distributions for <math>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>x</math> to minimize


Since Tikhonov Regularization simply adds a quadratic term to the objective function in optimization problems,
: <math>\|Ax - b\|_P^2 + \|x - x_0\|_Q^2,</math>
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{x}_0</math>,
the solution in the presence of <math>\Gamma \ne 0</math> can be expressed as:
<math display="block">\hat{x} = B \hat{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>,
where we have used <math>\|x\|_Q^2</math> to stand for the weighted norm squared <math>x^\top Q x</math> (compare with the [[Mahalanobis distance]]). In the Bayesian interpretation <math>P</math> is the inverse [[covariance matrix]] of <math>b</math>, <math>x_0</math> is the [[expected value]] of <math>x</math>, and <math>Q</math> is the inverse covariance matrix of <math>x</math>. The Tikhonov matrix is then given as a factorization of the matrix <math>Q = \Gamma^\top \Gamma</math> (e.g. the [[Cholesky factorization]]) and is considered a [[Whitening transformation|whitening filter]].
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>{{cite journal|arxiv=2207.02125 |doi=10.1088/1748-0221/17/10/P10021 |title=Post-hoc regularisation of unfolded cross-section measurements |date=2022 |last1=Koch |first1=Lukas |journal=Journal of Instrumentation |volume=17 |issue=10 |pages=10021 |bibcode=2022JInst..17P0021K }}</ref>
This generalized problem has an optimal solution <math>x^*</math> which can be written explicitly using the formula


===Generalized Tikhonov regularization===
: <math>x^* = (A^\top PA + Q)^{-1} (A^\top Pb + Qx_0),</math>
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 transformation|whitening filter]].


This generalized problem has an optimal solution <math>\mathbf x^*</math> which can be written explicitly using the formula
or equivalently
<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>x^* = x_0 + (A^\top PA + Q)^{-1} (A^\top P(b - Ax_0)).</math>
<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 regularization==
==Lavrentyev regularization==
In some situations, one can avoid using the transpose <math>A^\top</math>, as proposed by [[Mikhail Lavrentyev]].<ref>{{cite book |first=M. M. |last=Lavrentiev |title=Some Improperly Posed Problems of Mathematical Physics |publisher=Springer |location=New York |year=1967 }}</ref> For example, if <math>A</math> is symmetric positive definite, i.e. <math>A = A^\top > 0</math>, so is its inverse <math>A^{-1}</math>, which can thus be used to set up the weighted norm squared <math>\|x\|_P^2 = x^\top A^{-1} x</math> in the generalized Tikhonov regularization, leading to minimizing
In some situations, one can avoid using the transpose <math>A^\mathsf{T}</math>, as proposed by [[Mikhail Lavrentyev]].<ref>{{cite book |first=M. M. |last=Lavrentiev |title=Some Improperly Posed Problems of Mathematical Physics |publisher=Springer |location=New York |year=1967 }}</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>\|Ax - b\|_{A^{-1}}^2 + \|x - x_0\|_Q^2</math>
<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,
or, equivalently up to a constant term,
: <math>x^\top (A+Q)x - 2 x^\top (b + Qx_0)</math>.
<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>x^*</math> which can be written explicitly using the formula
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>
: <math>x^* = (A + Q)^{-1} (b + Qx_0)</math>,

which is nothing but the solution of the generalized Tikhonov problem where <math>A = A^\top =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^\top A + \Gamma^\top \Gamma.</math>


==Regularization in Hilbert space==
==Regularization in Hilbert space==
Typically discrete linear ill-conditioned problems result from discretization of [[integral equation]]s, 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 space]]s, 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^\top \Gamma </math> is then a [[Hermitian adjoint|self-adjoint]] bounded invertible operator.
Typically discrete linear ill-conditioned problems result from discretization of [[integral equation]]s, 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 space]]s, 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 [[Hermitian adjoint|self-adjoint]] bounded invertible operator.


==Relation to singular-value decomposition and Wiener filter==
==Relation to singular-value decomposition and Wiener filter==
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
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>

:<math>A = U \Sigma V^\top</math>

with singular values <math>\sigma _i</math>, the Tikhonov regularized solution can be expressed as
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>

:<math>\hat{x} = V D U^\top b,</math>

where <math>D</math> has diagonal values
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">{{cite book |last1=Hansen |first1=Per Christian |title=Rank-Deficient and Discrete Ill-Posed Problems: Numerical Aspects of Linear Inversion |date=Jan 1, 1998 |publisher=SIAM |location=Philadelphia, USA |isbn=978-0-89871-403-6 |edition=1st }}</ref>
:<math>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">{{cite book |last1=Hansen |first1=Per Christian |title=Rank-Deficient and Discrete Ill-Posed Problems: Numerical Aspects of Linear Inversion |date=Jan 1, 1998 |publisher=SIAM |location=Philadelphia, USA |isbn=9780898714036 |edition=1st }}</ref>


Finally, it is related to the [[Wiener filter]]:
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>

:<math>\hat{x} = \sum _{i=1}^q f_i \frac{u_i^\top 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 (linear algebra)|rank]] of <math>A</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 (linear algebra)|rank]] of <math>A</math>.


Line 93: Line 96:
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 (statistics)|cross-validation]], [[L-curve method]],<ref>P. C. Hansen, "The L-curve and its use in the
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 (statistics)|cross-validation]], [[L-curve method]],<ref>P. C. Hansen, "The L-curve and its use in the
numerical treatment of inverse problems", [https://www.sintef.no/globalassets/project/evitameeting/2005/lcurve.pdf]</ref> [[restricted maximum likelihood]] and [[unbiased predictive risk estimator]]. [[Grace Wahba]] proved that the optimal parameter, in the sense of [[cross-validation (statistics)#Leave-one-out cross-validation|leave-one-out cross-validation]] minimizes<ref>{{cite journal |last=Wahba |first=G. |year=1990 |title=Spline Models for Observational Data |journal=CBMS-NSF Regional Conference Series in Applied Mathematics |publisher=Society for Industrial and Applied Mathematics |bibcode=1990smod.conf.....W }}</ref><ref>{{cite journal |last3=Wahba |first3=G. |first1=G. |last1=Golub |first2=M. |last2=Heath |year=1979 |title=Generalized cross-validation as a method for choosing a good ridge parameter |journal=Technometrics |volume=21 |issue=2 |pages=215–223 |url=http://www.stat.wisc.edu/~wahba/ftp1/oldie/golub.heath.wahba.pdf |doi=10.1080/00401706.1979.10489751}}</ref>
numerical treatment of inverse problems", [https://www.sintef.no/globalassets/project/evitameeting/2005/lcurve.pdf]</ref> [[restricted maximum likelihood]] and [[unbiased predictive risk estimator]]. [[Grace Wahba]] proved that the optimal parameter, in the sense of [[cross-validation (statistics)#Leave-one-out cross-validation|leave-one-out cross-validation]] minimizes<ref>{{cite journal |last=Wahba |first=G. |year=1990 |title=Spline Models for Observational Data |journal=CBMS-NSF Regional Conference Series in Applied Mathematics |publisher=Society for Industrial and Applied Mathematics |bibcode=1990smod.conf.....W }}</ref><ref>{{cite journal |last3=Wahba |first3=G. |first1=G. |last1=Golub |first2=M. |last2=Heath |year=1979 |title=Generalized cross-validation as a method for choosing a good ridge parameter |journal=Technometrics |volume=21 |issue=2 |pages=215–223 |url=http://www.stat.wisc.edu/~wahba/ftp1/oldie/golub.heath.wahba.pdf |doi=10.1080/00401706.1979.10489751}}</ref>
<math display="block">G = \frac{\operatorname{RSS}}{\tau^2}

:<math>G = \frac{\operatorname{RSS}}{\tau^2} = \frac{\|X \hat{\beta} - y\|^2}{[\operatorname{Tr}(I - X(X^T X + \alpha^2 I)^{-1} X^T)]^2},</math>
= \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]].
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:
Using the previous SVD decomposition, we can simplify the above expression:
:<math>\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} = \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>

:<math>\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
and
<math display="block">\tau = m - \sum_{i=1}^q \frac{\sigma_i^2}{\sigma_i^2 + \alpha^2}

:<math>\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>
= m - q + \sum_{i=1}^q \frac{\alpha^2}{\sigma _i^2 + \alpha^2}.</math>


==Relation to probabilistic formulation==
==Relation to probabilistic formulation==
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>{{cite book |last1=Tarantola |first1=Albert |title=Inverse Problem Theory and Methods for Model Parameter Estimation |date=2005 |publisher=Society for Industrial and Applied Mathematics (SIAM) |location=Philadelphia |isbn=0898717922 |edition=1st |url=http://www.ipgp.jussieu.fr/~tarantola/Files/Professional/SIAM/index.html |access-date=9 August 2018 |ref=ATarantolaSIAM2004}}</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>.
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>{{cite book |last1=Tarantola |first1=Albert |title=Inverse Problem Theory and Methods for Model Parameter Estimation |date=2005 |publisher=Society for Industrial and Applied Mathematics (SIAM) |location=Philadelphia |isbn=0-89871-792-2 |edition=1st |url=http://www.ipgp.jussieu.fr/~tarantola/Files/Professional/SIAM/index.html |access-date=9 August 2018 |ref=ATarantolaSIAM2004}}</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>.


==Bayesian interpretation==
==Bayesian interpretation==
{{main|Bayesian interpretation of regularization}}
{{main|Bayesian interpretation of regularization}}
{{Further|Minimum mean square error#Linear MMSE estimator for linear observation process}}
{{Further|Minimum mean square error#Linear MMSE estimator for linear observation process}}
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 probability|Bayesian point of view]]. 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]]. 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 [[statistical independence|independent]] with zero mean and standard deviation <math>\sigma _b</math>. Under these assumptions the Tikhonov-regularized solution is the [[maximum a posteriori|most probable]] solution given the data and the ''a priori'' distribution of <math>x</math>, according to [[Bayes' theorem]].<ref>{{cite book |author=Vogel, Curtis R. |title=Computational methods for inverse problems |publisher=Society for Industrial and Applied Mathematics |location=Philadelphia |year=2002 |isbn=0-89871-550-4 }}</ref>
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 probability|Bayesian point of view]].<ref>{{cite book |first1=Edward |last1=Greenberg |first2=Charles E. Jr. |last2=Webster |title=Advanced Econometrics: A Bridge to the Literature |location=New York |publisher=John Wiley & Sons |year=1983 |pages=207–213 |isbn=0-471-09077-8 }}</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]]. 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 [[statistical independence|independent]] with zero mean and standard deviation <math>\sigma _b</math>. Under these assumptions the Tikhonov-regularized solution is the [[maximum a posteriori|most probable]] solution given the data and the ''a priori'' distribution of <math>x</math>, according to [[Bayes' theorem]].<ref>{{cite book |author=Vogel, Curtis R. |title=Computational methods for inverse problems |publisher=Society for Industrial and Applied Mathematics |location=Philadelphia |year=2002 |isbn=0-89871-550-4 }}</ref>


If the assumption of [[normal distribution|normality]] is replaced by assumptions of [[homoscedasticity]] and uncorrelatedness of [[errors and residuals in statistics|errors]], and if one still assumes zero mean, then the [[Gauss–Markov theorem]] entails that the solution is the minimal [[Bias of an estimator|unbiased linear estimator]].<ref>{{cite book |last=Amemiya |first=Takeshi |author-link=Takeshi Amemiya |year=1985 |title=Advanced Econometrics |publisher=Harvard University Press |pages=[https://archive.org/details/advancedeconomet00amem/page/60 60–61] |isbn=0-674-00560-0 |url-access=registration |url=https://archive.org/details/advancedeconomet00amem/page/60 }}</ref>
If the assumption of [[normal distribution|normality]] is replaced by assumptions of [[homoscedasticity]] and uncorrelatedness of [[errors and residuals in statistics|errors]], and if one still assumes zero mean, then the [[Gauss–Markov theorem]] entails that the solution is the minimal [[Bias of an estimator|unbiased linear estimator]].<ref>{{cite book |last=Amemiya |first=Takeshi |author-link=Takeshi Amemiya |year=1985 |title=Advanced Econometrics |publisher=Harvard University Press |pages=[https://archive.org/details/advancedeconomet00amem/page/60 60–61] |isbn=0-674-00560-0 |url-access=registration |url=https://archive.org/details/advancedeconomet00amem/page/60 }}</ref>

Latest revision as of 18:19, 21 September 2024

Ridge regression is a method of estimating the coefficients of multiple-regression models in scenarios where the independent variables are highly correlated.[1] It has been used in many fields including econometrics, chemistry, and engineering.[2] Also known as Tikhonov regularization, named for Andrey Tikhonov, it is a method of regularization of ill-posed problems.[a] It is particularly useful to mitigate the problem of multicollinearity in linear regression, which commonly occurs in models with large numbers of parameters.[3] In general, the method provides improved efficiency in parameter estimation problems in exchange for a tolerable amount of bias (see bias–variance tradeoff).[4]

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".[5][6][1] This was the result of ten years of research into the field of ridge analysis.[7]

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.[8][2]

Overview

[edit]

In the simplest case, the problem of a near-singular moment matrix 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 where is the regressand, is the design matrix, is the identity matrix, and the ridge parameter serves as the constant shifting the diagonals of the moment matrix.[9] It can be shown that this estimator is the solution to the least squares problem subject to the constraint , which can be expressed as a Lagrangian: which shows that is nothing but the Lagrange multiplier of the constraint.[10] Typically, is chosen according to a heuristic criterion, so that the constraint will not be satisfied exactly. Specifically in the case of , in which the constraint is non-binding, the ridge estimator reduces to ordinary least squares. A more general approach to Tikhonov regularization is discussed below.

History

[edit]

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[11][12][13][14][15] and David L. Phillips.[16] Some authors use the term Tikhonov–Phillips regularization. The finite-dimensional case was expounded by Arthur E. Hoerl, who took a statistical approach,[17] and by Manus Foster, who interpreted this method as a Wiener–Kolmogorov (Kriging) filter.[18] Following Hoerl, it is known in the statistical literature as ridge regression,[19] named after ridge analysis ("ridge" refers to the path from the constrained maximum).[20]

Tikhonov regularization

[edit]

Suppose that for a known real matrix and vector , we wish to find a vector such that where and may be of different sizes and may be non-square.

The standard approach is ordinary least squares linear regression.[clarification needed] However, if no satisfies the equation or more than one 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 filters[clarification needed] in the forward direction where maps to . 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 that is in the null-space of , rather than allowing for a model to be used as a prior for . Ordinary least squares seeks to minimize the sum of squared residuals, which can be compactly written as where 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: for some suitably chosen Tikhonov matrix . In many cases, this matrix is chosen as a scalar multiple of the identity matrix (), giving preference to solutions with smaller norms; this is known as L2 regularization.[21] 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 , is given by The effect of regularization may be varied by the scale of matrix . For this reduces to the unregularized least-squares solution, provided that (ATA)−1 exists. Note that in case of a complex matrix , as usual the transpose has to be replaced by the Hermitian matrix .

L2 regularization is used in many contexts aside from linear regression, such as classification with logistic regression or support vector machines,[22] and matrix factorization.[23]

Application to existing fit results

[edit]

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 yields the solution , the solution in the presence of can be expressed as: with the "regularisation matrix" .

If the parameter fit comes with a covariance matrix of the estimated parameter uncertainties , then the regularisation matrix will be and the regularised result will have a new covariance

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. [24]

Generalized Tikhonov regularization

[edit]

For general multivariate normal distributions for and the data error, one can apply a transformation of the variables to reduce to the case above. Equivalently, one can seek an to minimize where we have used to stand for the weighted norm squared (compare with the Mahalanobis distance). In the Bayesian interpretation is the inverse covariance matrix of , is the expected value of , and is the inverse covariance matrix of . The Tikhonov matrix is then given as a factorization of the matrix (e.g. the Cholesky factorization) and is considered a whitening filter.

This generalized problem has an optimal solution which can be written explicitly using the formula or equivalently, when Q is not a null matrix:

Lavrentyev regularization

[edit]

In some situations, one can avoid using the transpose , as proposed by Mikhail Lavrentyev.[25] For example, if is symmetric positive definite, i.e. , so is its inverse , which can thus be used to set up the weighted norm squared in the generalized Tikhonov regularization, leading to minimizing or, equivalently up to a constant term,

This minimization problem has an optimal solution which can be written explicitly using the formula which is nothing but the solution of the generalized Tikhonov problem where

The Lavrentyev regularization, if applicable, is advantageous to the original Tikhonov regularization, since the Lavrentyev matrix can be better conditioned, i.e., have a smaller condition number, compared to the Tikhonov matrix

Regularization in Hilbert space

[edit]

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 as a compact operator on Hilbert spaces, and and as elements in the domain and range of . The operator is then a self-adjoint bounded invertible operator.

Relation to singular-value decomposition and Wiener filter

[edit]

With , this least-squares solution can be analyzed in a special way using the singular-value decomposition. Given the singular value decomposition with singular values , the Tikhonov regularized solution can be expressed as where has diagonal values 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.[26]

Finally, it is related to the Wiener filter: where the Wiener weights are and is the rank of .

Determination of the Tikhonov factor

[edit]

The optimal regularization parameter 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,[27] 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[28][29] where is the residual sum of squares, and is the effective number of degrees of freedom.

Using the previous SVD decomposition, we can simplify the above expression: and

Relation to probabilistic formulation

[edit]

The probabilistic formulation of an inverse problem introduces (when all uncertainties are Gaussian) a covariance matrix representing the a priori uncertainties on the model parameters, and a covariance matrix representing the uncertainties on the observed parameters.[30] In the special case when these two matrices are diagonal and isotropic, and , and, in this case, the equations of inverse theory reduce to the equations above, with .

Bayesian interpretation

[edit]

Although at first the choice of the solution to this regularized problem may look artificial, and indeed the matrix seems rather arbitrary, the process can be justified from a Bayesian point of view.[31] 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 is sometimes taken to be a multivariate normal distribution. For simplicity here, the following assumptions are made: the means are zero; their components are independent; the components have the same standard deviation . The data are also subject to errors, and the errors in are also assumed to be independent with zero mean and standard deviation . Under these assumptions the Tikhonov-regularized solution is the most probable solution given the data and the a priori distribution of , according to Bayes' theorem.[32]

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.[33]

See also

[edit]

Notes

[edit]
  1. ^ In statistics, the method is known as ridge regression, in machine learning it and its modifications are known as weight decay, and with multiple independent discoveries, it is also variously known as the Tikhonov–Miller method, the Phillips–Twomey method, the constrained linear inversion method, L2 regularization, and the method of linear regularization. It is related to the Levenberg–Marquardt algorithm for non-linear least-squares problems.

References

[edit]
  1. ^ a b Hilt, Donald E.; Seegrist, Donald W. (1977). Ridge, a computer program for calculating ridge regression estimates. doi:10.5962/bhl.title.68934.[page needed]
  2. ^ a b Gruber, Marvin (1998). Improving Efficiency by Shrinkage: The James--Stein and Ridge Regression Estimators. CRC Press. p. 2. ISBN 978-0-8247-0156-7.
  3. ^ Kennedy, Peter (2003). A Guide to Econometrics (Fifth ed.). Cambridge: The MIT Press. pp. 205–206. ISBN 0-262-61183-X.
  4. ^ Gruber, Marvin (1998). Improving Efficiency by Shrinkage: The James–Stein and Ridge Regression Estimators. Boca Raton: CRC Press. pp. 7–15. ISBN 0-8247-0156-9.
  5. ^ Hoerl, Arthur E.; Kennard, Robert W. (1970). "Ridge Regression: Biased Estimation for Nonorthogonal Problems". Technometrics. 12 (1): 55–67. doi:10.2307/1267351. JSTOR 1267351.
  6. ^ Hoerl, Arthur E.; Kennard, Robert W. (1970). "Ridge Regression: Applications to Nonorthogonal Problems". Technometrics. 12 (1): 69–82. doi:10.2307/1267352. JSTOR 1267352.
  7. ^ Beck, James Vere; Arnold, Kenneth J. (1977). Parameter Estimation in Engineering and Science. James Beck. p. 287. ISBN 978-0-471-06118-2.
  8. ^ Jolliffe, I. T. (2006). Principal Component Analysis. Springer Science & Business Media. p. 178. ISBN 978-0-387-22440-4.
  9. ^ For the choice of in practice, see Khalaf, Ghadban; Shukur, Ghazi (2005). "Choosing Ridge Parameter for Regression Problems". Communications in Statistics – Theory and Methods. 34 (5): 1177–1182. doi:10.1081/STA-200056836. S2CID 122983724.
  10. ^ van Wieringen, Wessel (2021-05-31). "Lecture notes on ridge regression". arXiv:1509.09169 [stat.ME].
  11. ^ Tikhonov, Andrey Nikolayevich (1943). "Об устойчивости обратных задач" [On the stability of inverse problems]. Doklady Akademii Nauk SSSR. 39 (5): 195–198. Archived from the original on 2005-02-27.
  12. ^ Tikhonov, A. N. (1963). "О решении некорректно поставленных задач и методе регуляризации". Doklady Akademii Nauk SSSR. 151: 501–504.. Translated in "Solution of incorrectly formulated problems and the regularization method". Soviet Mathematics. 4: 1035–1038.
  13. ^ Tikhonov, A. N.; V. Y. Arsenin (1977). Solution of Ill-posed Problems. Washington: Winston & Sons. ISBN 0-470-99124-0.
  14. ^ Tikhonov, Andrey Nikolayevich; Goncharsky, A.; Stepanov, V. V.; Yagola, Anatolij Grigorevic (30 June 1995). Numerical Methods for the Solution of Ill-Posed Problems. Netherlands: Springer Netherlands. ISBN 0-7923-3583-X. Retrieved 9 August 2018.
  15. ^ Tikhonov, Andrey Nikolaevich; Leonov, Aleksandr S.; Yagola, Anatolij Grigorevic (1998). Nonlinear ill-posed problems. London: Chapman & Hall. ISBN 0-412-78660-5. Retrieved 9 August 2018.
  16. ^ Phillips, D. L. (1962). "A Technique for the Numerical Solution of Certain Integral Equations of the First Kind". Journal of the ACM. 9: 84–97. doi:10.1145/321105.321114. S2CID 35368397.
  17. ^ Hoerl, Arthur E. (1962). "Application of Ridge Analysis to Regression Problems". Chemical Engineering Progress. 58 (3): 54–59.
  18. ^ Foster, M. (1961). "An Application of the Wiener-Kolmogorov Smoothing Theory to Matrix Inversion". Journal of the Society for Industrial and Applied Mathematics. 9 (3): 387–392. doi:10.1137/0109031.
  19. ^ Hoerl, A. E.; R. W. Kennard (1970). "Ridge regression: Biased estimation for nonorthogonal problems". Technometrics. 12 (1): 55–67. doi:10.1080/00401706.1970.10488634.
  20. ^ Hoerl, Roger W. (2020-10-01). "Ridge Regression: A Historical Context". Technometrics. 62 (4): 420–425. doi:10.1080/00401706.2020.1742207. ISSN 0040-1706.
  21. ^ Ng, Andrew Y. (2004). Feature selection, L1 vs. L2 regularization, and rotational invariance (PDF). Proc. ICML.
  22. ^ R.-E. Fan; K.-W. Chang; C.-J. Hsieh; X.-R. Wang; C.-J. Lin (2008). "LIBLINEAR: A library for large linear classification". Journal of Machine Learning Research. 9: 1871–1874.
  23. ^ Guan, Naiyang; Tao, Dacheng; Luo, Zhigang; Yuan, Bo (2012). "Online nonnegative matrix factorization with robust stochastic approximation". IEEE Transactions on Neural Networks and Learning Systems. 23 (7): 1087–1099. doi:10.1109/TNNLS.2012.2197827. PMID 24807135. S2CID 8755408.
  24. ^ Koch, Lukas (2022). "Post-hoc regularisation of unfolded cross-section measurements". Journal of Instrumentation. 17 (10): 10021. arXiv:2207.02125. Bibcode:2022JInst..17P0021K. doi:10.1088/1748-0221/17/10/P10021.
  25. ^ Lavrentiev, M. M. (1967). Some Improperly Posed Problems of Mathematical Physics. New York: Springer.
  26. ^ Hansen, Per Christian (Jan 1, 1998). Rank-Deficient and Discrete Ill-Posed Problems: Numerical Aspects of Linear Inversion (1st ed.). Philadelphia, USA: SIAM. ISBN 978-0-89871-403-6.
  27. ^ P. C. Hansen, "The L-curve and its use in the numerical treatment of inverse problems", [1]
  28. ^ Wahba, G. (1990). "Spline Models for Observational Data". CBMS-NSF Regional Conference Series in Applied Mathematics. Society for Industrial and Applied Mathematics. Bibcode:1990smod.conf.....W.
  29. ^ Golub, G.; Heath, M.; Wahba, G. (1979). "Generalized cross-validation as a method for choosing a good ridge parameter" (PDF). Technometrics. 21 (2): 215–223. doi:10.1080/00401706.1979.10489751.
  30. ^ Tarantola, Albert (2005). Inverse Problem Theory and Methods for Model Parameter Estimation (1st ed.). Philadelphia: Society for Industrial and Applied Mathematics (SIAM). ISBN 0-89871-792-2. Retrieved 9 August 2018.
  31. ^ Greenberg, Edward; Webster, Charles E. Jr. (1983). Advanced Econometrics: A Bridge to the Literature. New York: John Wiley & Sons. pp. 207–213. ISBN 0-471-09077-8.
  32. ^ Vogel, Curtis R. (2002). Computational methods for inverse problems. Philadelphia: Society for Industrial and Applied Mathematics. ISBN 0-89871-550-4.
  33. ^ Amemiya, Takeshi (1985). Advanced Econometrics. Harvard University Press. pp. 60–61. ISBN 0-674-00560-0.

Further reading

[edit]