Created
December 18, 2011 02:20
-
-
Save jrmoran/1492146 to your computer and use it in GitHub Desktop.
standard deviation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def std(nums): return math.sqrt(sum([pow(n - sum(nums)/len(nums),2) for n in nums])/len(nums)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment