Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Calculate the median of a list along with its uncertainty
ResourceFunction["MedianQuantileAround"][{x1,x2,…}] gives an Around object whose value is the median of the xi and whose uncertainty is the interquartile range. | |
ResourceFunction["MedianQuantileAround"][{x1,x2,…},δ] gives an Around object with uncertainty specified by δ. | |
ResourceFunction["MedianQuantileAround"][{x1,x2,…},{δ-,δ+}] gives an Around object with upper and lower uncertainties specified by δ- and δ+. |
Calculate the median of some numbers with uncertainty represented by interquartile range:
In[1]:= |
Out[1]= |
The size of the inter-quantile range to use can be specified as a second argument:
In[2]:= |
Out[2]= |
MedianQuantileAround also works on quantities with units:
In[3]:= |
Out[3]= |
MedianQuantileAround does not work with symbolic expressions:
In[4]:= |
Out[4]= |
This work is licensed under a Creative Commons Attribution 4.0 International License