Updated I Edited my code with the help of answer of Okkes Dulgerci as
ClearAll["Global`*"]
SeedRandom[];
ClearSystemCache[]
f1[a_, b_, g_] =
ProbabilityDistribution[
3 a b x^(-b - 1) (1 + g x^(-b))^(-a/g -
1) (1 - (1 + g x^(-b))^(-a/g))^2, {x, 0, \[Infinity]}];
f2[a_, b_, g_] =
ProbabilityDistribution[
2 a b x^(-b - 1) (1 + g x^(-b))^(-a/g -
1) (1 - (1 + g x^(-b))^(-a/g)), {x, 0, \[Infinity]}];
f3[a_, b_, g_] =
ProbabilityDistribution[
a b x^(-b - 1) (1 + g x^(-b))^(-a/g - 1) , {x, 0, \[Infinity]}];
t1 = RandomVariate[f1[3, 3, 2], {50, 25}];
t2 = RandomVariate[f2[3, 3, 4], {50, 25}];
t3 = RandomVariate[f3[3, 3, 6], {50, 25}];
lnL[g1_?NumberQ, g2_?NumberQ, g3_?NumberQ, a_?NumberQ, b_?NumberQ] :=
Module[{n = 25, k = 3},
n Log[Factorial[k]] + n k Log[a] + n k Log[b] - (b + 1) ( \!\(
\*UnderoverscriptBox[\(\[Sum]\), \(i =
1\), \(n\)]\((Log[\((t1[[j, i]])\)])\)\) + \!\(
\*UnderoverscriptBox[\(\[Sum]\), \(i =
1\), \(n\)]\((Log[\((t2[[j, i]])\)])\)\) + \!\(
\*UnderoverscriptBox[\(\[Sum]\), \(i =
1\), \(n\)]\((Log[\((t3[[j, i]])\)])\)\)) - (\!\(
\*UnderoverscriptBox[\(\[Sum]\), \(i = 1\), \(n\)]\((\((
\*FractionBox[\(a\), \(g1\)] + 1)\) Log[\((1 + g1\
\*SuperscriptBox[\((t1[[j, i]])\), \(-b\)])\)])\)\) + \!\(
\*UnderoverscriptBox[\(\[Sum]\), \(i = 1\), \(n\)]\((\((
\*FractionBox[\(a\), \(g2\)] + 1)\) Log[\((1 + g2\
\*SuperscriptBox[\((t2[[j, i]])\), \(-b\)])\)])\)\) + \!\(
\*UnderoverscriptBox[\(\[Sum]\), \(i = 1\), \(n\)]\((\((
\*FractionBox[\(a\), \(g3\)] + 1)\)\ Log[\((1 + g3\ \*
SuperscriptBox[
RowBox[{"(",
RowBox[{"t3", "[[",
RowBox[{"j", ",", "i"}], "]]"}], ")"}],
StyleBox[
RowBox[{"-", "b"}],
FontWeight->"Plain"]])\)])\)\))
+ ( \!\(
\*UnderoverscriptBox[\(\[Sum]\), \(i =
1\), \(n\)]\((\((k - 1)\)\ Log[\((1 -
\*SuperscriptBox[\((1 + g1\
\*SuperscriptBox[\((t1[[j, i]])\), \(-b\)])\),
FractionBox[\(-a\), \(g1\)]])\)])\)\) + \!\(
\*UnderoverscriptBox[\(\[Sum]\), \(i =
1\), \(n\)]\((\((k - 2)\) Log[\((1 -
\*SuperscriptBox[\((1 + g2\
\*SuperscriptBox[\((t2[[j, i]])\), \(-b\)])\),
FractionBox[\(-a\), \(g2\)]])\)])\)\))];
Table[FindMaximum[
lnL[g1, g2, g3, a,
b], {{g1, 2}, {g2, 4}, {g3, 6}, {a, 3}, {b, 3}}], {j, 1, 50}]
Now this code works well. But
1) It gives some time initial values as an estimates (I think when not convergent). Can we block them?
2) Whole process repeat 50 times (using table command), is correct?.
BetaPrimeDistribution[]
. $\endgroup$