pymc-devs / pymc-devs/pymc-examples

New distributions with `CustomDist`

Open
#589 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

proposal
Dominant language
Python
Stars
398
Forks
325
Avg merge
9d 15m
Merged PRs (30d)
1

Description

Notebook proposal

Title: New distributions with CustomDist

Why should this notebook be added to pymc-examples?

Provide example(s) of the flexibility that PyMC provides with the CustomDist and auto-probability. Touch on when logp or logcdf might be required when defining a distribution and when they could be automatic

Suggested categories:

Related notebooks

This current example (Notebook here) define a RV and distribution

References

https://github.com/pymc-devs/pymc/issues/6994#issuecomment-1806806023

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 by reading examples/howto/custom_distribution.ipynb and the linked PyMC issue discussion. Use the current custom distribution example as the baseline, then define the proposed beginner-level notebook scope around CustomDist, auto-probability, and when logp or logcdf are required or automatic. Done means a new notebook with clear examples covering those cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
documentation, machine-learning
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 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.