Skip to content

Tag: statistics

How to efficiently calculate a running standard deviation

I have an array of lists of numbers, e.g.: I would like to efficiently calculate the mean and standard deviation at each index of a list, across all array elements. To do the mean, I have been looping through the array and summing the value at a given index of a list. At the end, I divide each value in