A property of the covariance is, that cov(x, x) = var(x)
However, in numpy I don't get the same result.
from numpy import var, cov
x = range(10)
y = var(x)
z = cov(x, x)[0][1]
print y, z
Am I doing something wrong here? How can I obtain the correct result?