[Stable]

dist_pareto(shape, scale)

Arguments

shape, scale

parameters. Must be strictly positive.

See also

Examples

dist <- dist_pareto(shape = c(10, 3, 2, 1), scale = rep(1, 4))
dist
#> <distribution[4]>
#> [1] Pareto(10, 1) Pareto(3, 1)  Pareto(2, 1)  Pareto(1, 1) 

mean(dist)
#> [1] 0.1111111 0.5000000 1.0000000       Inf
variance(dist)
#> [1] 0.0154321 0.7500000       Inf       NaN
support(dist)
#> <support_region[4]>
#> [1] [0,Inf] [0,Inf] [0,Inf] [0,Inf]
generate(dist, 10)
#> [[1]]
#>  [1] 0.08785140 0.07457352 0.02993429 0.15529995 0.07253162 0.22437002
#>  [7] 0.04188697 0.16474516 0.03026867 0.38760274
#> 
#> [[2]]
#>  [1] 0.153353677 0.440735019 0.653806775 2.617373768 0.075311315 0.000992907
#>  [7] 0.403239420 0.022675732 0.149798898 0.248735464
#> 
#> [[3]]
#>  [1] 0.32156979 0.13916908 4.74688321 2.13268125 0.81140982 0.51613143
#>  [7] 0.51232747 0.92230278 0.06128301 0.05721361
#> 
#> [[4]]
#>  [1]  0.9348426  0.6699234  0.5279625 21.7050872  0.1091861  4.0978471
#>  [7]  0.2392511  1.2604271  0.3677951  1.6824046
#> 

density(dist, 2)
#> [1] 5.645029e-05 3.703704e-02 7.407407e-02 1.111111e-01
density(dist, 2, log = TRUE)
#> [1] -9.782150 -3.295837 -2.602690 -2.197225

cdf(dist, 4)
#> [1] 0.9999999 0.9920000 0.9600000 0.8000000

quantile(dist, 0.7)
#> [1] 0.1279449 0.4938016 0.8257419 2.3333333