Regularization constrains or penalizes fitting to control the complexity or instability of a learned rule. A penalty formulation iswhere is empirical loss function and measures a chosen notion of complexity. Ridge regression penalizes squared coefficient size, the Lasso penalizes the L1 norm, and a roughness penalty penalizes derivatives of a fitted function. Early stopping can regularize an iterative fitting procedure without an explicit added penalty.
For a scalar observation with centered noise of variance , minimizing gives . Its mean squared error is : shrinkage reduces variance while introducing bias. This illustrates why regularization can improve prediction, but does not improve risk at every parameter value for every tuning choice. Cross-validation or a validation set can choose strength while a reserved test set assesses the fitted procedure.
New to topics? Read the docs here!