Zero-Inflated and Hurdle Models in Matlab (statistical distribution fitting)
13 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I have a very zero-inflated dataset and I am trying to find it in an statistical distribution. I tried several distributions in Matlab (distribution Fitter App) and no one works.
Now I want to to use a zero-inflated or hurdle model, however I do not find any reference nor example in matlab. How could I fit my data to a hurdle distribution in matlab?, in google the only reference I found was PSCL package for R software, but I would like to continue my work in Matlab.Is there something similar?
Thank you .
0 件のコメント
採用された回答
Jeff Miller
2019 年 1 月 20 日
You might be able to fit the distributions you have in mind using Cupid. For example, the following commands would define and plot zero-inflated Poisson and Binomial distributions (at least as I understand the terminology):
zipois = Mixture(.2,ConstantD(0),Poisson(4))
zipois.PlotDens
zibin = Mixture(.2,ConstantD(0),Binomial(4,.8))
zibin.PlotDens
Distribution parameters and mixture probabilities can be tweaked by hand or estimated directly from data (e.g., maximum likelihood). For example,
fakedata = zibin.Random(2000,1);
figure; histogram(fakedata);
zibin.EstML(fakedata,'rffr') % rffr means: Adjust the real-valued mixture probability,
% hold fixed the constant value and the binomial N
% adjust the real-valued binomial probability
zibin.PlotDens;
2 件のコメント
Muhammad Yasirroni
2019 年 4 月 29 日
It seems that I can't open http://https//github.com/milleratotago/Cupid
Jeff Miller
2019 年 4 月 29 日
I am not sure what is going on with the link in the answer above. This is the correct link:
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!