diff --git a/src/Numerics/Statistics/DescriptiveStatistics.cs b/src/Numerics/Statistics/DescriptiveStatistics.cs index b89784b4..6e392615 100644 --- a/src/Numerics/Statistics/DescriptiveStatistics.cs +++ b/src/Numerics/Statistics/DescriptiveStatistics.cs @@ -357,10 +357,8 @@ namespace MathNet.Numerics.Statistics if (n > 3) { - Kurtosis = (((double)n * (n + 1)) - / ((n - 1) * (n - 2) * (n - 3)) - * (kurtosis / (Variance * Variance))) - - ((3.0 * (n - 1) * (n - 1)) / ((n - 2) * (n - 3))); + Kurtosis = ((double)n * n - 1) / ((n - 2) * (n - 3)) + * (n * kurtosis / (variance * variance) - 3 + 6.0 / (n + 1)); } } }