Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Pareto

The Pareto Distribution


Description

Density, distribution function, quantile function and random generation for the Pareto distribution with scale and shape parameters.

Usage

dpareto(x, scale = 1, shape = 1, log = FALSE)

ppareto(q, scale = 1, shape = 1, lower.tail = TRUE, log.p = FALSE)

qpareto(p, scale = 1, shape = 1, lower.tail = TRUE, log.p = FALSE)

rpareto(n, scale = 1, shape = 1)

Arguments

x, q

vector of quantiles.

scale

scale parameter.

shape

shape parameter.

log, log.p

logical; if TRUE, probabilities p are given as log(p), default: FALSE.

lower.tail

logical; if TRUE, probabilities are P[X ≤ x] otherwise, P[X > x], default: TRUE.

p

vector of probabilities.

n

number of observations.

Details

The Pareto distribution function with scale parameter s and shape parameter α has density given by

f(x)=α s^α/x^(α+1)

for x≥ s. The cumulative distribution function is

F(x)=1-(s/x)^α

for x≥ s. See https://en.wikipedia.org/wiki/Pareto_distribution for more details.

Value

dpareto gives the density, ppareto gives the distribution function, qpareto gives the quantile function, and rpareto generates random deviates.

Invalid arguments will result in return value NaN, with a warning.

See Also

Examples

dpareto(seq(1, 5), 1, 1)
qpareto(ppareto(seq(1, 5), 1, 1), 1 ,1)
rpareto(5, 1, 1)

mistr

Mixture and Composite Distributions

v0.0.4
GPL-3
Authors
Lukas Sablica [aut, cre] (<https://orcid.org/0000-0001-9166-4563>), Kurt Hornik [aut] (<https://orcid.org/0000-0003-4198-9911>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.