Gokberk Gul
Gokberk Gul

Reputation: 150

Scipy Multivariate Normal Change Parameters

I have a 2-d multivariate Gaussian defined as

from scipy.stats import multivariate_normal
...
gauss_0_rv = multivariate_normal(means[0], covariances[0])

In my EM algorithm, I am calculating new mean and covarience in each iteration. Is there a way to assert new parameters to my gaussian RV, or do I have to define a new one and discard/delete the old distribution?

Upvotes: 0

Views: 81

Answers (1)

ev-br
ev-br

Reputation: 26090

Yes. Just call multivariate_normal.pdf(x, mean, cov).

Upvotes: 1

Related Questions