Skip to content

Instantly share code, notes, and snippets.

@jrmoran
Created December 18, 2011 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrmoran/1492146 to your computer and use it in GitHub Desktop.
Save jrmoran/1492146 to your computer and use it in GitHub Desktop.
standard deviation
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