Nonparametric statistics and model selection