Fixed formula for Gaussian distribution