Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute the pooled standard deviation of multiple lists of data
ResourceFunction["PooledStandardDeviation"][{l1,l2,…}] computes a weighted norm of the standard deviations of each list li in which the weights are proportionate to the lengths of the constituent lists minus one. |
Compute the pooled standard deviation of two lists of data:
In[1]:= |
Out[1]= |
Compute the pooled standard deviation of symbolic data, assuming that the elements of the data are real:
In[2]:= |
Out[2]= |
PooledStandardDeviation can work on collections of any finite length:
In[3]:= |
Out[3]= |
PooledStandardDeviation can work on complex values:
In[4]:= |
Out[4]= |
Compute Hedge’s g statistic, which makes use of the pooled standard deviation to measure the effect size for the difference between means:
In[5]:= |
Out[5]= |
The pooled variance, which can be computed using the resource function PooledVariance, can also be computed by taking the square of the pooled standard deviation. Indeed, this is precisely how PooledStandardDeviation performs its computation:
In[6]:= |
Out[6]= |
The pooled standard deviation of a collection is not the same as the standard deviation of the flattened collection, even if the lengths of all the elements of the collection are the same:
In[7]:= |
Out[7]= |
PooledStandardDeviation will not evaluate unless each inner list has a length greater than 1:
In[8]:= |
Out[8]= |
This work is licensed under a Creative Commons Attribution 4.0 International License