Skip to main content
. Author manuscript; available in PMC: 2023 Jan 27.
Published in final edited form as: Stat Methods Med Res. 2022 Feb 6;31(4):579–593. doi: 10.1177/09622802211013578

Figure 1.

Figure 1.

Illustration of how the L2 penalty moves coefficients and therefore weights closer to equality, in a simulated setting with two positive coefficients for two positively correlated predictors. The intersection of the contours of the normal log likelihood with the shaded feasibility region for an L2-penalized regression with nonnegativity constraints (right) is closer to the dotted line of equality than the intersection with the L1 feasibility region (left). The ordinary least squares (OLS) estimator is also shown, as the minimizer of the log likelihood. Lambda was chosen by the one-standard-error rule.