Skip to contents

Functions to compute the probability density function, cumulative distribution function, and quantile function for the Pareto distribution.

Usage

pareto_pdf(x, shape = 1, scale = 1)

pareto_lpdf(x, shape = 1, scale = 1)

pareto_cdf(x, shape = 1, scale = 1)

pareto_lcdf(x, shape = 1, scale = 1)

pareto_quantile(p, shape = 1, scale = 1)

Arguments

x

quantile

shape

shape parameter (default is 1)

scale

scale parameter (default is 1)

p

probability (0 <= p <= 1)

Value

A single numeric value with the computed probability density, log-probability density, cumulative distribution, log-cumulative distribution, or quantile depending on the function called.

See also

Boost Documentation for more details on the mathematical background.

Examples

# Pareto distribution with shape = 1, scale = 1
pareto_pdf(1)
#> [1] 1
pareto_lpdf(1)
#> [1] 0
pareto_cdf(1)
#> [1] 0
pareto_lcdf(1)
#> [1] -Inf
pareto_quantile(0.5)
#> [1] 2