Ok, this takes a little bit o preparation. I'd like to estimate a distribution for some data. I have a distribution function that is not part of the canonical Mathematica set so I define it via ProbabilityDensity
betaPrimeDistribution[ a_, b_] =
ProbabilityDistribution[
x^(a - 1) (1 + x) ^(-a - b)/Beta[a, b], {x, 0, ∞},
Assumptions -> a > 0 && b > 0];
If I run EstimatedDistribution
on my data
EstimatedDistribution[ data, betaPrimeDistribution[a, b]]
I get the following
ProbabilityDistribution[0.258203/(\[FormalX]^0.68685 (1 + \
\[FormalX])^0.963023), {\[FormalX], 0, ∞}]
So, that is fine. But I have a somewhat largish number of distributions defined via ProbabilityDistribution
, so for ease of parsing, what I want to get out is something like
betaPrimeDistribution[0.314, 0.649]
the same way as if I use distributions that are "known" to Mathematica. So, in short, I'd like EstimatedDistribution
to return the function name, not the resolved expression.
I tried SetDelayed
(:=) in the definition of betaPrimeDistribution
- to no avail.
FindDistributionParameters[]
instead, and plug the parameters generated from that into anInactive[]
version of your custom distribution. $\endgroup$