Overview
Ridge regression minimizes squared error plus a penalty proportional to the squared coefficient norm, reducing variance when features are correlated or data is limited.
Fits linear regression with an L2 penalty that shrinks coefficients.
Compact metadata for implementation and discovery.
Ridge regression minimizes squared error plus a penalty proportional to the squared coefficient norm, reducing variance when features are correlated or data is limited.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n d^2)
Average
O(n d^2)
Worst
O(d^3 + n d^2)
Space
O(d^2)
loss = mean((y - Xw)^2) + lambda * sum(w_i^2)Adds an L2 penalty to ordinary squared-error regression.
Show a fitted line with coefficients shrinking as regularization increases.
Ridge regression improves stability through shrinkage; it does not make a linear model nonlinear.
What each reference supports for this entry.
Statistical learning reference for the model family and tradeoffs of Ridge Regression.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Ridge and Lasso use different regularization penalties.
Ridge regression adds L2 regularization to linear regression.