python_math_stat/practica/math/statistic/Variance/Population_variance.py

7 lines
216 B
Python

# дисперсия в генеральной совокупности
def find_general_variance(x, x_average):
variance = 0
for i in x:
variance += (i - x_average) ** 2
return variance / len(x)