You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because var and std apply Bessel's correction by default. When your sample size is $n = 1$, the sum of squared deviations from the mean is multiplied by $\frac{1}{n} = 1$ without the correction, which will give you 0. But with the correction, $\frac{1}{n - 1} = \frac{1}{0} = \text{NaN}$ since Julia's Base float types and arithmetic follow the IEEE 754 standard.
Is this normal? I thought they should return 0.
The text was updated successfully, but these errors were encountered: