Open
Description
Overview
Provide an implementation of the generalized Pareto distribution as described here:
- Wikipedia: generalized Pareto distribution
This distribution is often used in extreme value theory to model rare events identified as peak over threshold.
Description
Definitions in Stan of the density in the parameterization we want, as well as the cdf, lcdf, lccdf, and rng functions are available in
Implement the following functions with full autodiff and tests.
-
gen_pareto_lpdf
-
gen_pareto_lupdf
-
gen_pareto_cdf
-
gen_pareto_lcdf
-
gen_pareto_lccdf
-
gen_pareto_rng
Additional resources
-
Stan forums: generalized Pareto distribution.
-
Aki Vehtari case study generalized Pareto functions, with implementations as Stan functions
-
Stan forums technical discussion of types of reals in doc and user-defined functions
-
brms issue tracker: request generalized Pareto
Current Version:
v4.3.0