Ridge regression is a method of estimating the
coefficient
In mathematics, a coefficient is a multiplicative factor in some term of a polynomial, a series, or an expression; it is usually a number, but may be any expression (including variables such as , and ). When the coefficients are themselves ...
s of multiple-
regression models in scenarios where the independent variables are highly correlated.
It has been used in many fields including econometrics, chemistry, and engineering.
Also known as Tikhonov regularization, named for
Andrey Tikhonov, it is a method of
regularization of
ill-posed problems. It is particularly useful to mitigate the problem of
multicollinearity in
linear regression
In statistics, linear regression is a linear approach for modelling the relationship between a scalar response and one or more explanatory variables (also known as dependent and independent variables). The case of one explanatory variable is ...
, which commonly occurs in models with large numbers of parameters. In general, the method provides improved
efficiency in parameter estimation problems in exchange for a tolerable amount of
bias (see
bias–variance tradeoff).
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”.
This was the result of ten years of research into the field of ridge analysis.
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.
Overview
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
Dependent and independent variables are variables in mathematical modeling, statistical modeling and experimental sciences. Dependent variables receive this name because, in an experiment, their values are studied under the supposition or demand ...
,
is the
design matrix,
is the
identity matrix
In linear algebra, the identity matrix of size n is the n\times n square matrix with ones on the main diagonal and zeros elsewhere.
Terminology and notation
The identity matrix is often denoted by I_n, or simply by I if the size is immaterial ...
, and the ridge parameter
serves as the constant shifting the diagonals of the moment matrix. It can be shown that this estimator is the solution to the
least squares
The method of least squares is a standard approach in regression analysis to approximate the solution of overdetermined systems (sets of equations in which there are more equations than unknowns) by minimizing the sum of the squares of the r ...
problem subject to the
constraint
Constraint may refer to:
* Constraint (computer-aided design), a demarcation of geometrical characteristics between two or more entities or solid modeling bodies
* Constraint (mathematics), a condition of an optimization problem that the solution ...
, which can be expressed as a Lagrangian:
:
which shows that
is nothing but the
Lagrange multiplier of the constraint. 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
Tikhonov regularization has been invented independently in many different contexts.
It became widely known from its application to integral equations from the work of
Andrey Tikhonov and David L. Phillips. Some authors use the term Tikhonov–Phillips regularization.
The finite-dimensional case was expounded by
Arthur E. Hoerl
Arthur is a common male given name of Brythonic origin. Its popularity derives from it being the name of the legendary hero King Arthur. The etymology is disputed. It may derive from the Celtic ''Artos'' meaning “Bear”. Another theory, more wi ...
, who took a statistical approach, and by Manus Foster, who interpreted this method as a
Wiener–Kolmogorov (Kriging) filter. Following Hoerl, it is known in the statistical literature as ridge regression, named after the shape along the diagonal of the identity matrix.
Tikhonov regularization
Suppose that for a known matrix
and vector
, we wish to find a vector
such that
:
The standard approach is
ordinary least squares linear regression. 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
A low-pass filter is a filter that passes signals with a frequency lower than a selected cutoff frequency and attenuates signals with frequencies higher than the cutoff frequency. The exact frequency response of the filter depends on the fil ...
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
In linear algebra, the identity matrix of size n is the n\times n square matrix with ones on the main diagonal and zeros elsewhere.
Terminology and notation
The identity matrix is often denoted by I_n, or simply by I if the size is immaterial ...
(
), giving preference to solutions with smaller
norms; this is known as regularization. In other cases, high-pass operators (e.g., a
difference operator or a weighted
Fourier operator
The Fourier operator is the kernel of the Fredholm integral of the first kind that defines the continuous Fourier transform, and is a two-dimensional function when it corresponds to the Fourier transform of one-dimensional functions. It is compl ...
) 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 (A
TA)
−1 exists.
regularization is used in many contexts aside from linear regression, such as
classification with
logistic regression
In statistics, the logistic model (or logit model) is a statistical model that models the probability of an event taking place by having the log-odds for the event be a linear function (calculus), linear combination of one or more independent var ...
or
support vector machines, and matrix factorization.
Generalized Tikhonov regularization
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
In probability theory, the expected value (also called expectation, expectancy, mathematical expectation, mean, average, or first moment) is a generalization of the weighted average. Informally, the expected value is the arithmetic mean of a ...
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
:
Lavrentyev regularization
In some situations, one can avoid using the transpose
, as proposed by
Mikhail Lavrentyev. 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
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 space
In mathematics, Hilbert spaces (named after David Hilbert) allow generalizing the methods of linear algebra and calculus from (finite-dimensional) Euclidean vector spaces to spaces that may be infinite-dimensional. Hilbert spaces arise natu ...
s, 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
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
In linear algebra, the generalized singular value decomposition (GSVD) is the name of two different techniques based on the singular value decomposition (SVD). The two versions differ because one version decomposes two matrices (somewhat like the ...
.
Finally, it is related to the
Wiener filter:
:
where the Wiener weights are
and
is the
rank of
.
Determination of the Tikhonov factor
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
Discrepancy may refer to:
Mathematics
* Discrepancy of a sequence
* Discrepancy theory in structural modelling
* Discrepancy of hypergraphs, an area of discrepancy theory
* Discrepancy (algebraic geometry)
Statistics
* Discrepancy function in the ...
,
cross-validation,
L-curve method,
restricted maximum likelihood and
unbiased predictive risk estimator
Bias is a disproportionate weight ''in favor of'' or ''against'' an idea or thing, usually in a way that is closed-minded, prejudicial, or unfair. Biases can be innate or learned. People may develop biases for or against an individual, a group ...
.
Grace Wahba proved that the optimal parameter, in the sense of
leave-one-out cross-validation minimizes
:
where
is the
residual sum of squares
In statistics, the residual sum of squares (RSS), also known as the sum of squared estimate of errors (SSE), is the sum of the squares of residuals (deviations predicted from actual empirical values of data). It is a measure of the discrepanc ...
, and
is the
effective number of degrees of freedom
In statistics, the number of degrees of freedom is the number of values in the final calculation of a statistic that are free to vary.
Estimates of statistical parameters can be based upon different amounts of information or data. The number of i ...
.
Using the previous SVD decomposition, we can simplify the above expression:
:
:
and
:
Relation to probabilistic formulation
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. 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
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. 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
In probability theory and statistics, the multivariate normal distribution, multivariate Gaussian distribution, or joint normal distribution is a generalization of the one-dimensional ( univariate) normal distribution to higher dimensions. One ...
. 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
Independent or Independents may refer to:
Arts, entertainment, and media Artist groups
* Independents (artist group), a group of modernist painters based in the New Hope, Pennsylvania, area of the United States during the early 1930s
* Independe ...
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.
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.
See also
*
LASSO estimator is another regularization method in statistics.
*
Elastic net regularization
*
Matrix regularization
Notes
References
Further reading
*
*
*
*
*
{{Authority control
Linear algebra
Estimation methods
Inverse problems
Regression analysis