Message Boards Message Boards

0
|
3829 Views
|
4 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Compute a GaussianMixture Model of n=3 components from the following data?

Posted 5 years ago

I am trying to compute a GaussianMixture of n=3 components from the following dataset:

mV = {0.563, 0.18, 0.429, 0.292, 0.315, 0.888, 0.5912, 0.196, 0.2, 0.581, 0.265, 0.288, 0.492, 0.6, 0.722, 0.471, 0.232, 0.835, 0.37, 0.265, 0.266, 0.34, 0.239, 0.931, 0.2018, 0.522, 0.635, 0.537, 0.503, 0.201, 0.438, 0.627, 0.356, 0.462, 0.156, 0.875}

I've tried the tutorial online (https://reference.wolfram.com/language/ref/method/GaussianMixture.html) but cannot get similar outputs. I'm very new to Mathematica.

Any help or insights would be greatly appreciated :)

4 Replies

...and that does it :)

Thank you so very much! You've been extremely helpful!

Kindest Regards, Matthew

Posted 5 years ago

In the documentation for "GaussianMixture" you'll find the options "ComponentsNumber" and "CovarianceType":

Method -> {"GaussianMixture", "ComponentsNumber" -> 3, "CovarianceType" -> "Full"}

Unfortunately these options aren't described in LearnedDistribution as selecting Method in LearnedDistribution just gets one a general description of Method that doesn't include LearnedDistribution. In short, the above two necessary options are a bit hidden.

POSTED BY: Jim Baldwin

Hey Jim,

Thanks for the response! It seems the initial problem was an outdated Mathematica. I have upgraded to version 12 and can now run the GaussianMixture function on the dataset.

However, while the data set is partitioned into n clusters (via the FindCluster and/or ClusterComponents function) The Gaussian Mixture seems to automatically choose n=2 components.

So I now need to find away to override the automatic Number of Components aspect of the GaussianMixture function to match the number of clusters (i.e., n=3).

Any thoughts?

Posted 5 years ago

What commands did you try that gave you dissimilar outputs?

POSTED BY: Jim Baldwin
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract