Pareto#

class Pareto(shape, scale)[source]#

Bases: ContinuousDistribution

Class for the two-parameter Pareto distribution.

The Pareto distribution is a power-law probability distribution commonly used to model phenomena with heavy-tailed behavior, such as income distribution, city population sizes, or file sizes.

Parameters:
  • shape (float) – Shape parameter. Must be positive.

  • scale (float) – Scale parameter. Must be positive.

Variables:
  • shape (float) – Shape parameter of the distribution.

  • scale (float) – Scale (minimum) parameter of the distribution.

Methods

pdf(X)

Probability density function (PDF).

ppf(P)

Percent Point Function (PPF) or quantile function.

lpdf(X)

Log of the Probability Density Function (LPDF).

log_gradients(X)

Calculates the gradients of the log-PDF w.r.t.

generate(size)

Generates random samples from the distribution.