Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Weibull Parameter estimation using Apache Commons Math

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.

like image 631
Tesse M Avatar asked Dec 12 '17 18:12

Tesse M


Video Answer


1 Answers

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.

like image 108
Spock Avatar answered Oct 24 '22 08:10

Spock