Why is the covariance normalization step included in _estimate_wishart_full(_Bayesian_mixture.py)? · scikit-learn scikit-learn · Discussion #30759 · GitHub
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand that this step is normalizing the covariance matrices by the degrees of freedom, but I would like to gain a clearer understanding of why this is necessary.
In Bishop’s Pattern Recognition and Machine Learning (PRML), the Wishart distribution is typically parameterized without this explicit normalization step.
The previous lines in the function construct self.covariances_ by adding the prior covariance, weighted sample covariance, and a term involving the prior mean.
Could someone clarify the reasoning behind this normalization step? Is it related to ensuring a proper estimate of the posterior covariance under the Bayesian Gaussian mixture framework?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am reviewing the _estimate_wishart_full function in _Bayesian_mixture.py, and I noticed the following comment and line of code:
Contrary to the original bishop book, we normalize the covariances
self.covariances_ /= self.degrees_of_freedom_[:, np.newaxis, np.newaxis]
I understand that this step is normalizing the covariance matrices by the degrees of freedom, but I would like to gain a clearer understanding of why this is necessary.
In Bishop’s Pattern Recognition and Machine Learning (PRML), the Wishart distribution is typically parameterized without this explicit normalization step.
The previous lines in the function construct self.covariances_ by adding the prior covariance, weighted sample covariance, and a term involving the prior mean.
Could someone clarify the reasoning behind this normalization step? Is it related to ensuring a proper estimate of the posterior covariance under the Bayesian Gaussian mixture framework?
Any insights would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions