The problem is I can not get estimation of parameters of any custom probability distribution (distributions are not built in Mathematica), here is an example:
First: I entered random numbers of custom distribution (I entered the PDF of Weibull distribution) and I want its parameters to be estimated then I have an infinite loop somewhere, and the program runs for hours on a relatively fast machine, without producing anything..the steps on Mathematica are:
custom[a_, b_] := ProbabilityDistribution[(a/b) ((x/b)^(a - 1)) E^-(x/b)^a, {x, 0, \[Infinity]}]
PDF[custom[a, b]]
W = RandomVariate[custom[2, 3], 50]
FindDistributionParameters[W, custom[a, b]]
Second: I entered the same steps but I replace final step with
FindDistributionParameters[W, WeibullDistribution[a, b]]
. I got the answer in one second
{a -> 1.99144, b -> 2.6355}
The problem is if the custom distribution is not built in Mathematica what will be happened to estimate its parameters???