Statistics for Optimal allocation of distributed generation for power loss reduction and voltage profile improvement