Why 2-D matrix is being used as covariant in logistic regression?

mean_1 = np.array([1,0.5])
cov_1 = np.array([[1,0.1],[0.1,1.2]])

mean_2 = np.array([4,5])
cov_2 = np.array([[1.2,0.1],[0.1,1.3]])

np.random.multivariate_normal(mean_1,cov_1)
np.random.multivariate_normal(mean_2,cov_2)

Why can’t a vector be used here as used in mean ?

hey @annudhiman ,
where did you wanted to use mean, can you please be more brief.

Actually, I am implementing code for logistic regression, and trying to create dataset for implementation.
There they are using covariance matrix, and i am unable to understand why to use a matrix instead of vector.

covariance matrix in logistic regression ???
can you please provide me your code.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.