Statistics for Machine learning-based analysis of residential electricity consumption behavior for consumers and prosumers