I want to estimate the four parameters of Exponentiated Modified Weibull Extension (EMWE) distribution introduced by Sarhan and Apaloo (2013) with the Maximum Likelihood Estimation (MLE). This distribution is used in reliability and survival analysis to analyze the dataset with bathtub hazard function.

Because the first derivative of the log-likelihood function of the four parameters give implicit solutions then I tried to continue with the Newton-Raphson iteration method. It's just that I am not familiar in determining the good initial guess for this method because my main focus is how to choose the right initial guess to obtain the bathtub hazard function. I'm using RStudio and here is the code:

#Parameter Estimation


I realized that in any optimization problem, there is no systematic choice of an initial guess. In Maximum Likelihood problems, though, a common choice is to choose initial parameters that match the empirical moments (mean, variance, etc...) of the observed data, so I choose:


where theta[1] and theta[4] are the scale parameter, theta[2] and theta[3] as shape parameter, and here is the result:

[1] -1167.797

[1] 1.540561e-06 1.187800e+00 2.166900e-01 6.494100e+00

[1]  4.251830e+07  7.312058e+01  3.922662e+02 -1.815774e+01

              [,1]          [,2]          [,3]          [,4]
[1,] -2.977361e+10 -7.455449e+02  1.093871e+03  3.396184e+02
[2,] -7.455449e+02 -5.215852e+01  6.316999e-04 -2.725559e+01
[3,]  1.093871e+03  6.316999e-04 -1.808591e+03 -2.906025e-04
[4,]  3.396184e+02 -2.725559e+01 -2.906025e-04  5.665718e+00

[1] 2

[1] 1

The estimated parameters are:


To obtain the hazard function plot, I use this code:

#The estimated parameters

#Hazard Function

#Cumulative Distribution Function

#Hazard Function Plot
plot(xi,hazard_EMWE,type="l" ,main="Hazard Function Plot",xlab="x",ylab="Hazard Function",col = "black",lty=1,lwd=3,ylim=c(0.005,0.008))

Here is the plot: enter image description here

Actually, the plot exhibits the bathtub hazard curve, but I thought that I had chosen the bad initial guess so that the cumulative distribution function is badly different with the empirical distribution function. It means that the data doesn't follow the EMWE distribution whereas my expectation is the data have to follow the EMWE distribution.

So my problem here is related to the initial guess that I use. It could be the poor initial value. Does anyone here has solution in choosing the good initial guess for this dataset?

  • 2
    $\begingroup$ Use E-M. Just a few E-M iterations are guaranteed to move the candidate solution towards a (local?) minimum. Then you can pass that suboptimal solution to the N-R to reach the (local?) minimum faster. $\endgroup$ – usεr11852 says Reinstate Monic Mar 3 '16 at 6:46
  • $\begingroup$ @usεr11852 How to construct EM iteration in R? $\endgroup$ – crhburn Mar 4 '16 at 12:39
  • $\begingroup$ It will be particular to your problem. See here for an introduction. $\endgroup$ – usεr11852 says Reinstate Monic Mar 4 '16 at 17:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.