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