Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get variance of list python

def get_variance(arr):
    mean = sum(arr) / len(arr)
    summ = 0
    for x in arr:
        summ+=(x-mean)**2
    return summ/len(arr)
 
PREVIOUS NEXT
Tagged: #variance #list #python
ADD COMMENT
Topic
Name
5+2 =