Statistics for Real-time Control and Optimization of Water Supply and Distribution infrastructure