I am trying to calculate Z-scores using PHP. Essentially, I am looking for the most efficient way to calculate the mean and standard deviation of a data set (PHP array). Any suggestions on how to do this in PHP?
I am trying to do this in the smallest number of steps.
to calculate the mean you can do:
standard deviation is like so:
right off this page