Separate Drawing of Gaussian Mixture Model
Mostra commenti meno recenti
I have a 1D data which need to be separated by two .
So I used
fitgmdist(data,2);
and got
- mu
- sigma
- component proportion
for each of the gaussian distribution.
And here is the graph. (Gray : Data, Blue : psd of GMModel from fitgmdist)

Until here, everything was okay.
So, question.
How can I separate those two gaussian distribution graph?
I tried
- Using makedist('Normal') to create each gaussian distribution.
- Multiply by each component proportion
- Add two distribution up
But somehow I wasn't able to get the same graph overlapping picture above.
Probably I have the wrong concept of "Normalization" or "Gaussian Mixture Model".
Any advise or site to lookup would be grateful.
------------------------------------------------------------ @Image Analyst: data uploaded. thanks for the advice I'll remember that next time :)
5 Commenti
Image Analyst
il 27 Gen 2016
Care to attach your data and code so people can try some things?
Amr Hashem
il 26 Mar 2017
what is the code u use to fit the Gaussian of mixtures one dimentional?
Trisha Kibaya
il 20 Ago 2018
Hi Ji Hoon Jeong, could you please share your codes? I am trying to get the same gaussian model on my one dimensional data but i'm not sure of what I am doing. Thanks a lot.
Ji Hoon Jeong
il 24 Ago 2018
Modificato: Ji Hoon Jeong
il 24 Ago 2018
Trisha Kibaya
il 28 Ago 2018
Thanks a lot, this helped a lot!
Risposta accettata
Più risposte (2)
yusra Ch
il 5 Set 2020
0 voti
Could you plz tell me how did you plot the bleu line in your graph ? I have GM that I want to draw but I dont know how to do it . could you plz help me?
gm =
Gaussian mixture distribution with 2 components in 1 dimensions
Component 1:
Mixing proportion: 0.500000
Mean: 3.3153
Component 2:
Mixing proportion: 0.500000
Mean: -61.5348
The values of Sigma are :
val(:,:,1) =
15.3648
val(:,:,2) =
137.2863
cynthia thing
il 31 Dic 2020
0 voti
Hi , could you share the code for the histogram with fitted mixture model curve like the first picture above?
Much appreciated
Categorie
Scopri di più su Gaussian Mixture Distribution in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!