Home > Net >  How to calculate the probability between two numbers from a probability distribution in python
How to calculate the probability between two numbers from a probability distribution in python

Time:08-09

I've always thought it would be useful to calculate the probability between two values on a probability distribution. While there isn't a built-in way to do this using seaborn or matplotlib, I reckon it just takes some basic calculus, right? Here is some code I found from enter image description here

2. Non-parametric estimation

In the absence of a parametric assumption, various techniques exist to estimate the density directly (rather than identifying it by estimated parameters as seen above). Kernel density estimation is the most popular variant to do so. In this case, as alluded in the question, enter image description here

  • Related