Skip to content

Instantly share code, notes, and snippets.

@SirmaXX
Created May 29, 2020 02:11
Show Gist options
  • Save SirmaXX/7f9bec0414dbb601846a33cd47f4fd90 to your computer and use it in GitHub Desktop.
Save SirmaXX/7f9bec0414dbb601846a33cd47f4fd90 to your computer and use it in GitHub Desktop.
step step anova calculator
'''
Step Step anova calculator
Author :SirmaX
'''
from math import sqrt
values= [0.95,
0.71,
0.69,
0.86,
0.85,
0.71,
0.72,
0.62,
0.72,
0.51,
0.73,
0.68,
0.74,
0.64,
0.44
]
print("uzunluk")
x = len(values)
print( x)
sum = 0
for l in values:
sum += l
print("toplam")
print( sum)
print("ortalama")
mean=sum/x
print(mean)
newsum=0
mss=0
print("kare ortalaması")
for k in values:
cikarma=k-mean
newsum=((k-mean)*(k-mean))
mss += newsum
s3 = " %.4f - %.4f = %.4f karesi %.4f" % (k, mean,cikarma,newsum)
print(s3)
print("sonuc")
print(mss)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment