Re: MLE - 1st and 2nd derivative of the function
- From: David Winsemius <doe_snot@xxxxxxxxxxx>
- Date: Sat, 13 Jan 2007 13:19:36 -0600
"franco" <franco@xxxxxxxx> wrote in news:1168504928.120892.39320
@k58g2000hse.googlegroups.com:
Hi guys again, it seems I haven't been doing the maximum likelihood
estimation correctly. I quote below, can someone explain to me please
what does it mean that the 2nd and 3rd derivatives of the function
equals zero and how to compute that in R (or any other program but I
have R). Thanks.
We have our initial estimated, subjective parameters for the gamma
mixture and we have our likelihood that is the mixture of negative
binomials representing the distribution of actual observed values. We
'pool' these distributions and determine which expression for the
parameters would be most likely to produce the sample of observed
negative binomial counts (determine the MLE). This maximisation
involves a search in five-dimensional parameter space {θ: α1,α2,
β1, β2, P} for the vector that maximises the likelihood as evidenced
by the first and second derivatives of the function being zero. The
likelihood is
L(θ) = Πij {P f (Nij; α1, β1, Eij) + (1-P) f (Nij; α2, β2, Eij)}
This involves millions of calculations. The computational procedures
required for these calculations are based on the Newton-Raphson method.
This is an old calculus-based technique that was devised to find the
roots of an equation (e.g. the values of the independent variable (e.g.
x) for which the value of the function (e.g. f(x)) equals zero.
To summarise, maximum likelihood estimation involves the following four
steps: (i) obtain your data; (ii) specify a model; (iii) compute the
likelihoods and; (iv) find the value of the parameters that maximises
the likelihood.
A) The quoted text does _not_ say that 2nd and 3rd derivatives should be
zero, and B) are you wondering why you would want the the first
derivative to be zero when you are searching for a maximum? That seems
obvious. At a maximum the slope of a function should be zero.
C) My third puzzlement is why the quoted source would specify the second
derivative to be zero. At a maximum the second derivative should be
negative rather than zero, indicating that the function is concave at
that point.
If you are doing maximization problems in R, the usual method would be a
call to the optim() function, but your prior posting indicates you are
already aware of this. The deriv() function is part of the same package.
--
David Winsemius
.
- Follow-Ups:
- Re: MLE - 1st and 2nd derivative of the function
- From: franco
- Re: MLE - 1st and 2nd derivative of the function
- References:
- MLE - 1st and 2nd derivative of the function
- From: franco
- MLE - 1st and 2nd derivative of the function
- Prev by Date: appropriate statistical procedure
- Next by Date: Re: Concave Multivariate CDF !
- Previous by thread: MLE - 1st and 2nd derivative of the function
- Next by thread: Re: MLE - 1st and 2nd derivative of the function
- Index(es):
Relevant Pages
|