Modified Ec computation to include variance