How does matlab do maximum likelihood on custom functions?
Ältere Kommentare anzeigen
I am trying to fit a custom function ( generalized Normal distribution type II http://en.wikipedia.org/wiki/Generalized_normal_distribution)to my data and i am using mle function. I wonder what is the method that Matlab uses, is it a search method?
Akzeptierte Antwort
Weitere Antworten (1)
gujax
am 20 Okt. 2020
0 Stimmen
Hi,
I would like to explore the above question further...
If I use a standard distribution listed in Matlab document and not my custom, how is mle evaluated? For example if the distribution is Poisson, does mle evaluate minimum of log pdf i.e. does it convert to log pdf? So If i provide a pdf, do I have to state that its a log pdf?
Thanks
1 Kommentar
Jeff Miller
am 20 Okt. 2020
1) Just guessing here, but matlab probably obtains the mle's differently for different distributions, because: for some distributions the mle's are simple functions of the data values, and for other distributions you have to use numerical search.
2) When doing numerical search, matlab probably converts to log pdf to minimize numerical problems.
3) If you provide your own pdf, you definitely would have to provide the pdf or indicate that it is the log pdf (if the mle function has an option for that). The parameters that maximize the product of the pdf values are not necessarily the same as those that maximize the product of the log pdf values.
Kategorien
Mehr zu Probability Distributions and Hypothesis Tests finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!