_beta module

class pyrockfall.stats._beta.Beta(alpha: float, beta: float)[source]

Bases: Distribution

Beta(α, β) on [0, 1].

rvs(size: int = 1, random_state=None) → ndarray[source]

Random variates

pdf(x) → ndarray[source]

Probability density function

cdf(x) → ndarray[source]

Cumulative distribution function

ppf(q) → ndarray[source]

Percent point function (inverse of cdf)

expect(func: Callable, lb: float = 0, ub: float = 1) → float[source]

Expected value of a function of the random variable over [lb, ub]

median() → float[source]

Median of the distribution

mean() → float[source]

Mean of the distribution

var() → float[source]

Variance of the distribution

interval(confidence: float = 1.0) → Tuple[float, float][source]

Confidence interval having equal areas around the median

native_params() → dict[str, float][source]

Constructor-ready, family-specific parameters (e.g., {‘mu’:…, ‘sigma’:…}).

generic_params() → DistributionParameters[source]

Family-agnostic summary: loc, scale, rel_min, rel_max

DistID: DistributionID = 5