diff --git a/src/java/org/apache/commons/math/stat/descriptive/moment/Skewness.java b/src/java/org/apache/commons/math/stat/descriptive/moment/Skewness.java index 03df4e385..504a5c366 100644 --- a/src/java/org/apache/commons/math/stat/descriptive/moment/Skewness.java +++ b/src/java/org/apache/commons/math/stat/descriptive/moment/Skewness.java @@ -167,7 +167,7 @@ public class Skewness extends AbstractStorelessUnivariateStatistic implements Se accum += Math.pow((values[i] - m), 2.0); accum2 += (values[i] - m); } - double stdDev = Math.sqrt((accum - (Math.pow(accum2, 2) / (length))) / + double stdDev = Math.sqrt((accum - (Math.pow(accum2, 2) / length)) / (length - 1)); double accum3 = 0.0;