Commit ceb264a9 authored by Quentin BILLAUD's avatar Quentin BILLAUD
Browse files

Ajout de l'écart type

parent fc5562b1
from math import sqrt
def moyenne (liste):
moyenne = 0
for i in liste:
......@@ -11,3 +13,6 @@ def variance(liste):
variance += (i-moy)*(i-moy)
return variance/len(liste)
def ecart_type(liste):
return sqrt(variance(liste))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment