Separate Drawing of Gaussian Mixture Model
古いコメントを表示
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 件のコメント
Image Analyst
2016 年 1 月 27 日
Care to attach your data and code so people can try some things?
Amr Hashem
2017 年 3 月 26 日
what is the code u use to fit the Gaussian of mixtures one dimentional?
Trisha Kibaya
2018 年 8 月 20 日
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
2018 年 8 月 24 日
編集済み: Ji Hoon Jeong
2018 年 8 月 24 日
Trisha Kibaya
2018 年 8 月 28 日
Thanks a lot, this helped a lot!
採用された回答
その他の回答 (2 件)
yusra Ch
2020 年 9 月 5 日
0 投票
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
1 件のコメント
Ji Hoon Jeong
2020 年 9 月 18 日
cynthia thing
2020 年 12 月 31 日
0 投票
Hi , could you share the code for the histogram with fitted mixture model curve like the first picture above?
Much appreciated
カテゴリ
ヘルプ センター および File Exchange で Gaussian Mixture Models についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!