Calculate average and sigma of the set