Ridge Regression

For Ridge regression our cost function is

$$ C(\boldsymbol{\theta})=\sum_{i=0}^{p-1}(y_i-\theta_i)^2+\lambda\sum_{i=0}^{p-1}\theta_i^2, $$

and minimizing we have that

$$ \hat{\theta}_i^{\mathrm{Ridge}} = \frac{y_i}{1+\lambda}. $$