gaussfree.distributions.beta.get_unimodal_beta

gaussfree.distributions.beta.get_unimodal_beta(mode, variance, verbose=False)[source]

Get a unimodal beta distribution with the given mode and variance.

Parameters:
  • mode (float) – The mode of the resulting beta distribution.

  • variance (float) – The variance of the resulting beta distribution. Must be < 1/12.

  • verbose (bool) – If True, print verbose output and plot the prior distribution.

Returns:

The SciPy beta distribution object.

Return type:

scipy.stats.beta