Statistics for Prediction techniques based on non-parametric methods. Application to energy series