Calculate mean and variance of geometric (#856)