Ridge regression

Why do straight lines sometimes fail to fit our data perfectly?

Image: Amatulic at English Wikipedia (same as Anachronist on Wikimedia), Public domain, via Wikimedia Commons

Ridge regression

Why do straight lines sometimes fail to fit our data perfectly?

Imagine trying to predict a friend's height based on their shoe size. You notice that friends with similar shoe sizes tend to have similar heights, but sometimes the predictions are off.

Ridge regression helps when shoe sizes (independent variables) are too closely related, making it hard to predict height (dependent variable) accurately. It adds a small bias to the predictions to improve accuracy.

Example

If one friend wears shoes size 8 and another friend wears shoes size 9, and both friends are 170 cm tall, Ridge regression might predict a height of 169 cm for a friend wearing shoes size 8.5, instead of 170 cm, to avoid overestimating height due to shoe size correlation.

Remember this

Ridge regression introduces a tiny bias to reduce the impact of multicollinearity, leading to more reliable predictions.

Related concepts

Swipe through 100 ML concepts daily

Open Pocket Polymath