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

7 lines
216 B
Python
Raw Normal View History

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