Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute the circular standard deviation
ResourceFunction["CircularStandardDeviation"][list] calculates the circular standard deviation for the circular data list. | |
ResourceFunction["CircularStandardDeviation"][list→weights] calculates the circular standard deviation for the circular data list using the weights weights. |
Calculate the circular standard deviation from some data:
| In[1]:= |
| Out[2]= |
Provide weights:
| In[3]:= | ![]() |
| Out[5]= |
Visualize some data:
| In[6]:= |
| Out[7]= | ![]() |
Using the standard StandardDeviation does not take into account the circularity and the result will be much larger:
| In[8]:= |
| Out[8]= |
Taking the circular nature into account give the expected result:
| In[9]:= |
| Out[9]= |
The definition of the function agrees such that a narrow distribution gives the expected result:
| In[10]:= |
| Out[11]= |
An empty list spawns an error but returns 0:
| In[12]:= |
| Out[12]= |
The data and the weights should be commensurate:
| In[13]:= |
The circular standard deviation of a circular uniform distribution is ∞ but numerically it converges extremely slowly to this value:
| In[14]:= |
| Out[14]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License