Quadratic average