Skip to content

Instantly share code, notes, and snippets.

@danielrobertson
Created February 27, 2014 05:55
Show Gist options
  • Save danielrobertson/9245114 to your computer and use it in GitHub Desktop.
Save danielrobertson/9245114 to your computer and use it in GitHub Desktop.
z-score
def z_score(n, l):
mean = sum(l) / len(l)
return (n - mean) / (stddev(l) / math.sqrt(len(l)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment