dbldatagen.distributions.beta module
This file defines the Beta statistical distributions related classes
- class Beta(alpha=None, beta=None)[source]
Bases:
DataDistribution
Specify that random samples should be drawn from the Beta distribution parameterized by alpha and beta
- Parameters:
alpha – value for alpha parameter - float, int or other numeric value, greater than 0
beta – value for beta parameter - float, int or other numeric value, greater than 0
See https://en.wikipedia.org/wiki/Beta_distribution
By default the Beta distribution produces values between 0 and 1 so no scaling is needed
- property alpha
Return alpha parameter.
- property beta
Return beta parameter.
- static beta_func(alpha_series: Series, beta_series: Series, random_seed: Series) Series [source]
Generate sample of beta distribution using pandas / numpy
- Parameters:
alpha_series – value for alpha parameter as Pandas Series
beta_series – value for beta parameter as Pandas Series
random_seed – value for randomSeed parameter as Pandas Series
- Returns:
random samples from distribution scaled to values between 0 and 1