This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
on 08-15-201603:26 PM - edited on 03-08-201901:51 PM by SydneyF
How can you calculate the standard deviation of the population (SDpop) rather than standard deviation on the sample data (SDsample)?
Please find the attached macro, special thanks to one of our Community users!
Standard deviation of the population (SDpop) and standard deviation on the sample (SDsample) are very similar - the only difference is that in SDpop the sum of the squared variances is divided by n instead of n-1 as it is for SDsample (where n is the number of data points in the vector). This macro takes a vector of doubles which needs to be named 'dataVals' and it returns the standard deviation of the population. Accurate out to the 9th or 10th place.