We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the shifted geometric distribution (left column in https://en.wikipedia.org/wiki/Geometric_distribution)
The text was updated successfully, but these errors were encountered:
If I'm not mistaken this can be currently achieved by
using Distributions GeometricShifted(p) = Geometric(p) + 1 # some tests p = 0.7 mean(GeometricShifted(p)) ≈ 1/p # true var(GeometricShifted(p)) ≈ (1-p)/p^2 # true pdf(GeometricShifted(p), 0) ≈ 0 # true all(pdf(GeometricShifted(p), k) ≈ (1-p)^(k-1)*p for k in 1:100) # true
but I agree, would be nice to have this as a convenience method.
Sorry, something went wrong.
No branches or pull requests
the shifted geometric distribution
(left column in https://en.wikipedia.org/wiki/Geometric_distribution)
The text was updated successfully, but these errors were encountered: