Smoothing methods for nonparametric regression and density