Regularized Regression in Excel and MATLAB CVX | Worked Example
Build a regularized regression model from a small Excel dataset and reproduce it in MATLAB with CVX. The example uses synthetic scooter-rental data to show how residuals and categorical predictors affect the fit. The final step uses an L1 penalty to encourage selected coefficients to agree.
Read walkthrough