Reputation: 22634
It seems like even if distributions are continuous, I only have an access to the pdf
method. However, I need the probability itself, say in [2, 2.0001]
. Is there any method that I can call for a point probability? According to the document https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.beta.html, it doesn't seem like to have one.
How do you get the probability at one point, in the most economic way?
Upvotes: 0
Views: 248
Reputation: 726
You can use the cdf
method.
So the probability of an event occuring in some interval [a,b]
is just cdf(b)-cdf(a)
.
Upvotes: 3