Pareto
Pareto Type I Distribution.
The Pareto distribution is a power-law probability distribution commonly used to model the distribution of wealth, insurance losses, and other phenomena where small values are common and large values are rare but possible.
For scale parameter k (minimum possible value) and shape parameter α (Pareto index):
- PDF: f(x) = α * k^α / x^(α+1) for x >= k
- CDF: F(x) = 1 - (k/x)^α for x >= k
- Mean: k * α / (α - 1) for α > 1, otherwise infinite
- Variance: k² * α / ((α-1)² * (α-2)) for α > 2, otherwise infinite
Value parameters
- scale
-
Scale parameter k (minimum possible value of X, must be positive)
- shape
-
Shape parameter α (Pareto index, must be positive)
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait HasInverseCdftrait HasCdf[Double]trait HasVariance[Double]trait HasMean[Double]trait ContinuousDistr[Double]trait Rand[Double]trait Density[Double]class Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Cumulative distribution function
Cumulative distribution function
Attributes
Draw a random sample from the Pareto distribution
Draw a random sample from the Pareto distribution
Attributes
Inverse CDF (quantile function)
Inverse CDF (quantile function)
Attributes
Inverse survival probability
Inverse survival probability
Attributes
Log normalizer (Pareto is already normalized, so this is 0)
Log normalizer (Pareto is already normalized, so this is 0)
Attributes
As plot, applying mods (e.g. Plots.fixedSize) to the spec after the built-in modifications.
As plot, applying mods (e.g. Plots.fixedSize) to the spec after the built-in modifications.
Attributes
As plotCdf, applying mods (e.g. Plots.fixedSize) to the spec after the built-in modifications.
As plotCdf, applying mods (e.g. Plots.fixedSize) to the spec after the built-in modifications.
Attributes
Probability that x < X <= y
Probability that x < X <= y
Attributes
Survival function P(X > x)
Survival function P(X > x)
Attributes
Unnormalized log PDF
Unnormalized log PDF
Attributes
Inherited methods
Returns the unnormalized value of the measure
Overridden by filter/map/flatmap for monadic invocations. Basically, rejection samplers will return None here
Overridden by filter/map/flatmap for monadic invocations. Basically, rejection samplers will return None here
Attributes
- Inherited from:
- Rand
Returns the log unnormalized value of the measure
Returns the log unnormalized value of the measure
Attributes
- Definition Classes
- Inherited from:
- ContinuousDistr
Attributes
- Inherited from:
- ContinuousDistr
Converts a random sampler of one type to a random sampler of another type. Examples: uniform.map(_2) gives a Rand[Double] in the range [0,2] Equivalently, for(x <- uniform) yield 2x
Converts a random sampler of one type to a random sampler of another type. Examples: uniform.map(_2) gives a Rand[Double] in the range [0,2] Equivalently, for(x <- uniform) yield 2x
Value parameters
- f
-
the transform to apply to the sampled value.
Attributes
- Inherited from:
- Rand
Returns the probability density function at that point.
An iterator over the names of all the elements of this product.
An iterator over the names of all the elements of this product.
Attributes
- Inherited from:
- Product
An iterator over all the elements of this product.
An iterator over all the elements of this product.
Attributes
- Returns
-
in the default implementation, an
Iterator[Any] - Inherited from:
- Product
Gets n samples from the distribution.
Gets one sample from the distribution. Equivalent to get
Gets n samples from the distribution into a specified collection type.
Gets n samples from the distribution into a specified collection type.
Attributes
- Inherited from:
- Rand
An infinitely long iterator that samples repeatedly from the Rand
An infinitely long iterator that samples repeatedly from the Rand
Attributes
- Returns
-
an iterator that repeatedly samples
- Inherited from:
- Rand
Returns the probability density function up to a constant at that point.
Returns the probability density function up to a constant at that point.
Attributes
- Inherited from:
- ContinuousDistr
Attributes
- Inherited from:
- Rand
Inherited fields
Attributes
- Inherited from:
- ContinuousDistr