Anonymous user
Cumulative standard deviation: Difference between revisions
m
link syntax
(add E example) |
m (link syntax) |
||
Line 1:
{{task|Probability and statistics}}
Write a stateful function, class, generator or coroutine that takes a series of floating point numbers, one at a time, and returns the running [[wp:Standard Deviation|standard deviation]] of the series. The task implementation should use the most natural programming style of those listed for the function in the implementation language; the task ''must'' state which is being used. Do not apply [[wp:Bessel's correction|Bessel's correction]]; the returned standard deviation should always be computed as if the sample seen so far is the entire population.
Use this to compute the standard deviation of the demonstration set: <math>2, 4, 4, 4, 5, 5, 7, 9</math>
|