Can I use the in-built function 'mle' for Maximum Likelihood Estimate that maximizes the log-likelihood of a vector in MATLAB for this purpose?

6 ビュー (過去 30 日間)
In my work I have a vector of particular length 'L'. I want to maximize the log-likelihood estimate of the vector using maximum likelihood estimation. I have followed the following procedure:
x=[vector(1:L)];
pd = fitdist(x,'Normal');
z=log(normpdf(x,pd(1),pd(2)); %for finding log-likelihood
However, I do not know whether the above program maximizes the log-likelihood. I am getting a scalar value in 'z', can I use that scalar value to plot back the desired signal? The distribution is assumed to be Normal distribution. Is there any other way to do the problem?

回答 (1 件)

Torsten
Torsten 2022 年 9 月 6 日
x=[vector(1:L)];
pd = fitdist(x,'Normal');
nll = negloglik(pd)

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by