Statistics for Optimal Coordination of Home Energy Management Systems in a Distribution Grid