Ridge Regularization (L2 Regularization) › Formula
Michael BrenndoerferJune 6, 20251 min read
Machine Learning from ScratchAll chapters Part 4 of 9Regression Models
Ridge Regularization (L2 Regularization) › FormulaOne section · Sections in this chapter2 / 9 ↓
Sections in this chapter9
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
The Ridge regression objective function is:
where:
- = sum of squared errors (measures how well the model fits the data)
- = regularization parameter (controls the strength of the penalty; larger means stronger regularization)
- = coefficient for feature (the parameter we're trying to estimate)
- = number of features (excluding the intercept )
- = L2 penalty term (sum of squared coefficients)