I'm new to this topic, this question may be dumb. I did some experiments, results and their occurrence are list below. I need to convert these discrete numbers into probability distribution and cumulative distribution (x axis is results and y-axis is probability).
import pandas as pd
data = {'Result': [1, 2, 4, 6],
'Occurrence': [2,3,4,1],
'Probability':[0.2,0.3,0.4,0.1]}
df= pd.DataFrame(data)
Then find the x corresponding to different probability level in cumulative distribution. Say 50%, 60%, 80% etc.
I did some research, but cannot find the right python package or function to achieve this. Package or function name should be good and an examples will be great. Thanks.