Codecademy Forums

Difference between K-Nearest Neighbor regression and Linear Regression

What is the mainest difference between K-Nearest Neighbor regression and Linear Regression? Do they complement each other?

I see, that KNN regression predicts not linearly, but on the basis of the nearest neighbors values. Probably, it can be more accurate, than with Linear Regression.

Although, Linear Regression’ advantage is the visualisation power and simplisity.

Thank you.