Skip to content

The Mindful Programmer

Articles on computing, mathematics, art, and anything in between

Tag Archives: stan

Efficient and accurate rolling standard deviation

The usual algorithms for computing variance and standard deviation work on the full data set. What if you have a time series and want the standard deviation for a moving window? You could do the computation from fresh every time the window is advanced, but surely there’s a better way.

Posted byJoni2014/05/062019/11/17Posted inMathematics, ProgrammingTags: Algorithms, Floating point, stan, Statistics
The Mindful Programmer, Proudly powered by WordPress.