I need to estimate the shape and scale parameters of a Weibull distribution from a sample data using MLE. I checked the WeibullDistribution class of Apache commons Math but it doesn't have such functionality. Any suggestion? I need to use the class in my java application.
There are no methods that calculate directly MLE estimations for Weibull distribution in Apache Commons Math, but since you know the estimating equations for scale and shape, you can use the method solve() of the class NewtonRaphsonSolver of Apache Commons Math to compute the estimation of the shape parameter, which use Newton-Rhapson approach, whereas for the scale I think you can just use the evaluate() method of the Sum class after you have the result for shape.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With