Statistics for Optimization of the accuracy of semi-indirect energy metering system