Skip to content

Implement Geometric Distribution#28

Open
fzaiser wants to merge 1 commit intoprobing-lab:masterfrom
fzaiser:master
Open

Implement Geometric Distribution#28
fzaiser wants to merge 1 commit intoprobing-lab:masterfrom
fzaiser:master

Conversation

@fzaiser
Copy link
Copy Markdown

@fzaiser fzaiser commented Sep 24, 2024

This implements the Geometric distribution on {0, 1, 2, ...}. Geometric(p) is the number of failures until the first success in a sequence of independent trials, each of which has a success probability of p. (Note that there is another definition as the number of trials including the first success, which has the support {1, 2, 3, ...}, but I find that one less useful.)

I followed the implementation of the Exponential distribution closely, but I'm obviously not very familiar with the code base, so please review this carefully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant