cubed
cubed copied to clipboard
Implement `var` and `std`
Similar to the implementation of mean.
The implementation described at https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Parallel_algorithm looks like the one to use here.
Do you have access to this paper? I think it would be a better algorithm for variance, since it's numerically stable: https://dl.acm.org/doi/10.1145/3221269.3223036 (the wiki article references this paper).
Found it here! https://ds.ifi.uni-heidelberg.de/files/Team/eschubert/publications/SSDBM18-covariance-authorcopy.pdf
Slides are a good summary, too: https://ds.ifi.uni-heidelberg.de/files/Team/eschubert/publications/SSDBM18-covariance-slides.pdf