This question might be silly, but i couldn't find an explanation to that.
I am coding the multivariate probability density function from scratch (for study purposes), and one of the things that i need to compute is the covariance matrix of data. I am using the Iris dataset (150 samples, 4 features), and when i code:
cov_matrix = np.cov(X)
print(cov_matrix.shape) // (150,150)
I don't understand why it is returning a 150x150 matrix, is this an "element-wise covariance matrix"? Shouldn't it be a 4x4 covariance matrix?
Thanks in advance.