Math 2.0

Statistics Definition

Ridge regression

Builds on Ordinary least squaresLeast squaresPositive definite matrix

Definition

Let XX be a real n×pn \times p matrix, let y∈ℝny \in \R^n, and let λ>0\lambda > 0. The ridge regression estimator with parameter λ\lambda is the minimiser of ∥y−Xb∥2+λ∥b∥2\norm{y - X b}^2 + \lambda \norm{b}^2 over b∈ℝpb \in \R^p, where ∥⋅∥\norm{\cdot} is the Euclidean norm. It equals β^λ=(XTX+λIp)−1XTy.\hat\beta_\lambda = (X^T X + \lambda I_p)^{-1} X^T y.

Remarks

The matrix XTX+λIpX^T X + \lambda I_p is positive definite for λ>0\lambda > 0, so the minimiser exists and is unique for every XX, whatever its rank. The formula comes from setting the gradient −2XT(y−Xb)+2λb-2 X^T (y - X b) + 2 \lambda b to zero.

Example: take p=1p = 1, X=(1,2)TX = (1, 2)^T, y=(1,2)Ty = (1, 2)^T and λ=1\lambda = 1. Then XTX=5X^T X = 5 and XTy=5X^T y = 5, so β^1=5/6\hat\beta_1 = 5/6, while the ordinary least squares slope is 11.

Non-example: with λ=0\lambda = 0 the problem is plain least squares, and if XTXX^T X is singular, for example when two columns of XX are equal, the minimiser is not unique.

In practice the regressors are usually standardised and the intercept is not penalised. For each λ>0\lambda > 0 there is t>0t > 0 such that β^λ\hat\beta_\lambda also minimises ∥y−Xb∥2\norm{y - Xb}^2 under the constraint ∥b∥2≤t\norm{b}^2 \le t. In a normal linear model, β^λ\hat\beta_\lambda is the posterior mode for a centred normal prior on β\beta.

Reading path

To understand this page from the ground up, read these 22 pages in order. The foundations come first.

Show the path as a graph
Matrix, definition, no evidence levelMatrixdefinitionOrdinary least squares, concept, no evidence levelOrdinary least squaresconceptPositive definite matrix, concept, no evidence levelPositive definite mat…conceptVector space, definition, no evidence levelVector spacedefinitionTranspose, definition, no evidence levelTransposedefinitionInner product, definition, no evidence levelInner productdefinitionLinear map, definition, no evidence levelLinear mapdefinitionLinear subspace, definition, no evidence levelLinear subspacedefinitionNorm, definition, no evidence levelNormdefinitionInner product space, definition, no evidence levelInner product spacedefinitionOrthogonal vectors, definition, no evidence levelOrthogonal vectorsdefinitionEndomorphism, definition, no evidence levelEndomorphismdefinitionSum of subspaces, definition, no evidence levelSum of subspacesdefinitionNorm induced by an inner product, definition, no evidence levelNorm induced by an in…definitionOrthogonal complement, definition, no evidence levelOrthogonal complementdefinitionDirect sum of subspaces, definition, no evidence levelDirect sum of subspac…definitionA space is the direct sum of a subspace and its orthogonal complement, statement, no evidence levelA space is the direct…statementProjection, definition, no evidence levelProjectiondefinitionOrthogonal projection, definition, no evidence levelOrthogonal projectiondefinitionOrthogonal projection is the closest point, statement, no evidence levelOrthogonal projection…statementLeast squares, concept, no evidence levelLeast squaresconceptRidge regression, definition, no evidence levelRidge regressiondefinition
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Matrix definition
  2. Ordinary least squares concept
  3. Positive definite matrix concept
  4. Vector space definition
  5. Transpose definition
  6. Inner product definition
  7. Linear map definition
  8. Linear subspace definition
  9. Norm definition
  10. Inner product space definition
  11. Orthogonal vectors definition
  12. Endomorphism definition
  13. Sum of subspaces definition
  14. Norm induced by an inner product definition
  15. Orthogonal complement definition
  16. Direct sum of subspaces definition
  17. A space is the direct sum of a subspace and its orthogonal complement statement
  18. Projection definition
  19. Orthogonal projection definition
  20. Orthogonal projection is the closest point statement
  21. Least squares concept
  22. Ridge regression definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Ridge_regression
About this page
TagKCVKGSYJR9
URIm2://KCVKGSYJR9
Kinddefinition
WritingW0 stub
MSC62J07, 62J05
DefinesRidge regression
UsesOrdinary least squares, Least squares, Positive definite matrix

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.