Filter löschen
Filter löschen

Flexible number of paramters for MLE with custom function

1 Ansicht (letzte 30 Tage)
Anders
Anders am 21 Feb. 2013
Can the custom pdf function for MLE be written for a flexible number of parameters that is determined from the vector of start values?

Akzeptierte Antwort

Tom Lane
Tom Lane am 22 Feb. 2013
Let's try it. The normpdf function uses the default sigma=1 if no standard deviation value is given.
>> x = 1 + randn(100,1);
>> mle(x,'pdf',@normpdf,'start',0)
ans =
0.8747
>> mle(x,'pdf',@normpdf,'start',[0 2])
ans =
0.8747 1.0787

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by