Mean = Expected Value = μ
Std Dev = Sqrt(Average((X - μ)^2)) = σ,
so it's the square root of the average of the quantity squared of each data point less the mean
(But I'd be surprised if your programming language of choice didn't have something already premade)
|