Mean, variance, skewness & kurtosis computed with a fold
The sample statistics mean, variance, skewness, and kurtosis can be calculated in one pass through the data. We show how to do this with a fold operation.
John D. Cook | Applied Mathematics Consulting