Statistics for Shunt active power filtering for power quality improvement