Why my StdDev calculation does not match the Wiki?
Author: Panache
Creation Date: 4/17/2019 3:01 AM
profile picture

Panache

#1
I'm having a problem with Wealth-Lab's StdDev producing a different result than the calculation of it as described in the WIKI. To demonstrate my problem, run the following code on 3 Bars of data.
CODE:
Please log in to see this code.

What am I doing wrong?
profile picture

Panache

#2
The answer is that the calculation of the population standard deviation divides the sum of the squared deviations by n, not n - 1, so the Wealth-Lab calculation is correct.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).