UvDiscrete

UvDiscrete()

Base class for univariate discrete distributions.

Methods

Name Description
plot Plot the CDF with low-alpha PMF bars on a secondary axis.
pmf Probability mass function alias for :meth:pdf.

plot

UvDiscrete.plot(
    ax=None,
    *,
    show=False,
    cdf_kwargs=None,
    pmf_kwargs=None,
    percentile_guides=True,
    percentiles=DEFAULT_PERCENTILES,
    percentile_guide_kwargs=None,
    **kwargs,
)

Plot the CDF with low-alpha PMF bars on a secondary axis.

Returns the primary Matplotlib Axes object. Importing Matplotlib is deferred so non-plotting use stays lightweight. Extra keyword arguments are passed to the CDF step line for convenient calls like dist.plot(color="steelblue").

pmf

UvDiscrete.pmf(x)

Probability mass function alias for :meth:pdf.