Created
May 25, 2014 20:36
-
-
Save masters3d/88a26188e3933c0f7cb6 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=[0,1] | |
mean=(sum(data)+.0000)/len(data) | |
dataminus=[(each-mean)**2 for each in data] | |
variance= sum(dataminus)/len(data) | |
#print dataminus | |
print "this is the varience" | |
print variance | |
print "this is the standard div" | |
print variance**.5 | |
print "___________________" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment