Skip to content

2015-5: He's so mean, he has no standard deviation

The standard deviation of a population is calculated by taking the square root of the average of the squared differences of the values from their average value. The mathematical formula is:

where is the mean average value and n is the number of values.

Write a function that returns the population standard deviation of its numeric array right argument.

Examples:

     (your_function) 1 2 3 4 5
1.414213562
     (your_function) 10 10⍴⍳100  ⍝ and higher dimensions as well
28.86607005
your_function ←

Solutions

Video Thumbnail YouTube

Chat transcript Code on GitHub