stan-dev / stan-dev/math

Generalized Pareto distribution

Open
#2,661 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

distributions feature good first issue new function
Dominant language
C++
Stars
839
Forks
220
Avg merge
2d 4h
Merged PRs (30d)
14

Description

Overview

Provide an implementation of the generalized Pareto distribution as described here:

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
Current Version:

v4.3.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked generalized Pareto case study and Stan forum discussion to confirm the requested parameterization. Then use the six named entry points—gen_pareto_lpdf, gen_pareto_lupdf, gen_pareto_cdf, gen_pareto_lcdf, gen_pareto_lccdf, and gen_pareto_rng—as the implementation checklist. Done means all functions have full autodiff support and tests covering their behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
machine-learning
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.