The skewness and the excess have to be divided by potences of the standard deviation to return the correct numbers. However the qualitative answer for the skewness is still correct, which might not be true for the excess.
Analysis:
Obviously the calculated statistical moments are not divided through the potences of the standard deviation, which is available in the variable dError. Add this division and check for the excess, when to substract the 3 from the so-called kurtosis.
Implementation:
The division through the potences of the standard deviation was implemented and the substraction of 3 was moved to the correct location.
Documentation:
Not needed - Bug fix.
Tests:
The stats of a normal distribution were calculated and the values for this distribution are now near zero as expected. Bug fix accepted.
Anonymous
Diff:
Diff:
Diff:
Diff: