Log likelihood for each distributions.

17 ビュー (過去 30 日間)
JinYoung Kim
JinYoung Kim 2016 年 12 月 7 日
回答済み: Tom Lane 2016 年 12 月 10 日
Hi! I was wondering how to compute in Matlab the log likelihood.
I think which the "fitdist" function includes "likelihood" function(e.g. normlike, gamlike and wbllike, etc).
However, the result of likelihood value is not same result which I was using "Weilbull" distribution.
The "Weibull" and "fitdist(data,'weibull') -> PD.NLogL" were not same value.
Plz understatnd me.
Thanks all.
Best regards.


Tom Lane
Tom Lane 2016 年 12 月 10 日
It's not clear to me what fails to match with what. These match:
>> x = -5*log(rand(100,1));
>> pd = fitdist(x,'weibull');
>> format compact
>> negloglik(pd)
ans =
>> sum(-log(pdf(pd,x)))
ans =
>> wbllike(pd.ParameterValues,x)
ans =

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by