Exercise 7: Nonparametric Regression
Nonparametric Regression
For the
Boston
data, usemedv
as the response andlstat
as the predictor, then do- Kernel Smoother
- Local Linear Regression
- LOESS
Try to find the best parameter of each method to get the best fit.