I assume the question and beta refer to the scipy.stats distribution.
The best place for this kind of question is stackoverflow with the
scipy tag, which will most of the time provide a answer fast.
specifically:
the scipy.stats distribution fit methods uses loc and scale as start
parameters. If you want to fix them and not estimate them, then you
have to prefix the names with an "f" for fixed, i.e.
ps1 = beta.fit(selected, floc=0, fscale=1)
should fit the shape parameter without changing the support of the distribution.
Constraining parameters to specific values in fit also works for shape
parameters, prefixed with an f.
Josef
>
>
>