Nonparametric curve estimation and applications