pykelihood.distributions.
Distribution#
- class Distribution(*params)#
Base class for all distributions.
- rvs(size: int, \*args, \*\*kwargs) np.ndarray#
Generate random variates.
- cdf(x: Obs)#
Cumulative distribution function.
- isf(q: Obs)#
Inverse survival function.
- ppf(q: Obs)#
Percent point function (inverse of cdf).
- pdf(x: Obs)#
Probability density function.
- sf(x: Obs)#
Survival function.
- logcdf(x: Obs)#
Log of the cumulative distribution function.
- logsf(x: Obs)#
Log of the survival function.
- logpdf(x: Obs)#
Log of the probability density function.
- inverse_cdf(q: Obs)#
Inverse of the cumulative distribution function.
- fit(data: Obs, x0: Sequence[float] = None, score: Callable[["Distribution", Obs], float] = opposite_log_likelihood, scipy_args: Optional[Dict] = None, \*\*fixed_values) SomeDistribution#
Fit the distribution to the data.