I have the following problem: I need the inverse of the covariance matrix using the following data:
x = [255, 239, 213]
y = [255, 240, 245]
I get the following covariance matrix using numpy.cov()
cov_matrix = np.cov(np.array([[255.0, 255.0], [239.0, 240.0], [213.0, 245.0]]))
Then, when I use numpu.linalg.inv() I get this error
inv_matrix = np.linalg.inv(cov_matrix)
LinAlgError: Singular matrix
How is it possible?