Home > AI > Language > Python > Numpy >

np.var

Example 1:


(1)   \begin{equation*}V = \frac{\sum_i^N(x - x_i)^2}{N}\end{equation*}

import numpy as np

results = [1, 2, 3, 4]
print(np.var(results))
# 1.25
Related posts:

Leave a Reply