According to Wikipedia the beta probability distribution has two shape parameters: $\alpha$ and $\beta$.
When I call scipy.stats.beta.fit(x)
in Python, where x
is a bunch of numbers in the range $[0,1]$, 4 values are returned. This strikes me as odd.
After googling I found one of the return values must be 'location', since the third variable is 0 if I call scipy.stats.beta.fit(x, floc=0)
.
Does anyone know what the fourth variable is, and if the first two are $\alpha$ and $\beta$?
Best Answer
Despite an apparent lack of documentation on the output of
beta.fit
, it does output in the following order:$\alpha$, $\beta$, loc (lower limit), scale (upper limit - lower limit)