According to Wikipedia the beta probability distribution has two shape parameters: α and β.

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 α and β?

**Answer**

Despite an apparent lack of documentation on the output of `beta.fit`

, it does output in the following order:

α, β, loc (lower limit), scale (upper limit – lower limit)

**Attribution***Source : Link , Question Author : Peter Smit , Answer Author : jdj081*