Statistics for Design and implementation of a single phase active power filter