For weighted OLS, the objective function can be written as
$$ \arg \min_{\beta} ||W^{0.5}(y - X\beta)||^2 $$
This is quite similar to the objective function for plain OLS, except without the $W$ term:
$$ \arg \min_{\beta} ||(y - X\beta)||^2 $$
Now my question is how do we write the analogous weighted forms for weighted lasso and weighted ridge regression?
For unweighted ridge, the objective function is:
$$ \arg \min_{\beta} ||(y - X\beta)||^2 + ||\lambda \beta||^2 $$
and for lasso: $$ \arg \min_{\beta} ||(y - X\beta)||^2 + ||\lambda \beta||_1 $$
It's not clear to me how the weighted form should look like. I imagine the $W$, weights, will be applied to the first norm like it was in OLS, but what about the regularizer term?