Associated sequences, demimartingales and nonparametric inference.