Very fast statistics over simple powers of a sample. These can all
be computed efficiently in just a single pass over a sample, with
that pass subject to stream fusion.
The tradeoff is that some of these functions are less numerically
robust than their counterparts in the Statistics.Sample module.
Where this is the case, the alternatives are noted.
The arithmetic mean of elements in the original Sample.
This is less numerically robust than the mean function in the
Statistics.Sample module, but the number is essentially free to
compute if you have already collected a sample's simple powers.
Maximum likelihood estimate of a sample's variance. Also known
as the population variance, where the denominator is n. This is
the second central moment of the sample.
This is less numerically robust than the variance function in the
Statistics.Sample module, but the number is essentially free to
compute if you have already collected a sample's simple powers.
Compute the excess kurtosis of a sample. This is a measure of
the "peakedness" of its distribution. A high kurtosis indicates
that the sample's variance is due more to infrequent severe
deviations than to frequent modest deviations.
A sample's excess kurtosis is not defined if its variance is
zero.