7 lines
216 B
Python
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)
|