linear-models

Understanding Lasso and Ridge Regression

To understand how these algorithms work, let's make up a toy data frame about shark attacks. Imagine that we are trying to find out the factors that are associated with the number of shark attacks at a given location.