Created
May 25, 2014 06:45
-
-
Save masters3d/c11ada10359f8999b0a1 to your computer and use it in GitHub Desktop.
statistics code.py
This file contains 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
#standard deviation | |
data=[3,3,3,3,3] | |
mean=3 | |
dataminus=[(each-mean)**2 for each in data] | |
variance= sum(dataminus)/len(data) | |
print dataminus | |
print variance | |
print variance**.5 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment