How can I fit data into Gaussian model?

I have a matrix of 38-by-50 which represents 38 sample and 50 genes reading. I need to cluster this data matrix using Gaussian mixture model. Please, how can I fit this data with GMM by using gmdistribution? Thanks

Réponses (1)

Shashank Prasanna
Shashank Prasanna le 11 Nov 2013
That's a very small dataset. Do you know how many clusters are there? Did you try:
n = numbers_of_clusters
obj = gmdistribution.fit(X,n)
Use the examples from the documentation:

3 commentaires

Ahmed Alabdaly
Ahmed Alabdaly le 11 Nov 2013
Shashank,many thanks for your answer but I think there is a misunderstanding to my question. In this example, we produce the data from the values of (mu,sigma) but in my case I have these data which is 38-by-50 matrix. I couldn't apply the function gmdistribution.fit(X,K) unless for k=1! I want to cluster this matrix by using Gaussian mixture model. Thanks
Marc
Marc le 12 Nov 2013
No you misunderstood I think... 38 experiments with 50 data points is a small data set. The stats toolbox will suffice just fine. Show some data and code where you are having some issues and maybe we can help.
Ahmed Alabdaly
Ahmed Alabdaly le 2 Déc 2013
Thanks, I've attached the data file. I've used the code obj=gmdistriution.fit(X,2) but there is error, in case of n=1 its ok but only one cluster can I get.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by