Using GMM for input points to find clusters, mean, and covariance

조회 수: 3(최근 30일)
I have this data (200 x and y values) in a file that I can read in and plot. I am following in order to try and determine the mean and covariance of the data. I have run this code. But, I am really lost as to how to use GMM and then determine how many clusters I may need for my data. And then after that, determine the mean and covariance of each of the clusters. It seems like it's in: Can anyone offer guidance as to how I can use this code to get to my number of clusters, and the mean and covariance of the clusters?


Raunak Gupta
Raunak Gupta 2020년 11월 13일
The number of clusters is the only parameter you need to give to fitgmdist and mean and covariance matrix will be calculated based on the data that is being processed. The documentation you mentioned does slightly advance analysis around the covariance matrix being full or diagonalized. If you need analysis on you fitting, then I think following the documentation step-by-step will help.
Otherwise, if you only want to do the clustering then these two documentations will be quick to understand.
For selecting the number of clusters, you can plot the data to see how many discrete clusters visually you can depict from the data. You can change your initial estimate by +-1 to see which one gives least log-likelihood.
Hope this helps!
  댓글 수: 1
Sunshine 2020년 12월 9일
Thanks for your help. Just now seeing your response. So, I didn't get a chance to try it out. I ended up going with a Python implementation.

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by