Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Calculate the kurtosis of a list along with its uncertainty
ResourceFunction["KurtosisAround"][{x1,x2,x3,…}] gives an Around object describing the kurtosis and corresponding uncertainty of the xi. |
Calculate the kurtosis of some numbers:
| In[1]:= |
| Out[1]= |
KurtosisAround works with symbolic expressions:
| In[2]:= |
| Out[2]= | ![]() |
KurtosisAround also works with quantities with units, though the answer is dimensionless:
| In[3]:= | ![]() |
| Out[4]= |
The kurtosis is independent of the units:
| In[5]:= |
| Out[5]= |
The standard error has an asymptote of
where n is the number of data points:
| In[6]:= | ![]() |
| Out[6]= |
KurtosisAround applied to symbolic expressions can get unwieldy fast:
| In[7]:= |
| Out[7]= | ![]() |
At least four value are needed to give a plausible error estimate:
| In[8]:= |
| Out[8]= |
Try with 4 values:
| In[9]:= |
| Out[9]= |
Kurtosis can be Indeterminate, in which case there will not be an Around result:
| In[10]:= |
| Out[10]= |
Study the kurtosis and its uncertainty for a sequence of values and compare it to the theoretical value of the distribution (dashed):
| In[11]:= | ![]() |
| Out[12]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License