python_math_stat/practica/math/statistic/Variance/Variance.py
2023-10-04 16:07:27 +03:00

18 lines
270 B
Python

# ДИСПЕРСИЯ
list_data = [int(value) for value in input().split()]
n = len(list_data)
Sum = 0
for value in list_data:
Sum += value
SUm=Sum/n
Sum = 0
for value in list_data:
a = (value - SUm)**2
Sum += a
D = (Sum / (n - 1 ))
print (D)