I am using two methods for computing the standard deviation of a dataset, which gives different results. Why is that so?
- With the package Distributions function fit()
and - with the ordinary function std()
# Computing with the fit() function of the Distributions package
println("mean and std dev for x_data: ", fit(data[:,1]))
# Computing with the function std()
println("x_data std dev: ", std(data[:,1]))
The result is:
mean and std dev for x_data: Distributions.Normal{Float64}(μ=32846.249322493226, σ=6.1063435696254835)
x_data std dev: 6.110484867876836