which formula does root use to calculate kurtosis. I am calculating but getting different results, what can I do.
One possible reason of the discrepancy is the way underflow/overflows are used and the fact that mean and standard deviation (used in the kurtosis calculation) are computed at filling time
For the skewness, see the source code here. Here the third standardised momentum is computed.
Also one important remark.
There is issue TH1::GetSkewness() and TH1:: GetKurtosis() return `-nan` for empty histogram · Issue #13878 · root-project/root · GitHub
ROOT methods return NaN value for empty histograms.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.