I am trying to fit a lognormal distribution to some data using LOGNFIT. Performing a maximum likelihood estimation of the corresponding parameters using MLE yields different results. In particular, the second parameter (standard deviation) is different. The following code illustrates the problem:
x = [2 3 4 5];p = lognfit(x)q = mle(x,'distribution','logn')
Notice the difference in the second return parameter:
p = 1.1969 0.3956 q = 1.1969 0.3426
I would like to know why the maximum likelihood estimate of the second parameter is different.
Best Answer