Confidence intervals for nonparametric regression