Fixed robust variance calculation