how to calculate empirical probability given some bins python code example
Example 1: cdf empírica python
P(x<20): 0.149
P(x<40): 0.654
P(x<60): 1.000
Example 2: cdf empírica python
...
# fit a cdf
ecdf = ECDF(sample)
P(x<20): 0.149
P(x<40): 0.654
P(x<60): 1.000
...
# fit a cdf
ecdf = ECDF(sample)