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?
Size:
Color:
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.
Size:
Color: