@interact def show_probability(good=(0.49,0.99,0.05), bad=(0.005,0.5,0.05)): # p = probability of being good/ill/ etc. # good = probability the good ones pass the test # bad = probability the bad ones passthe test def find_probabilities(p): return(p*good/(p*good + (1-p)*bad)) data=[] for i in range(90): p=0.01+i*0.005 data = data + [[p,find_probabilities(p)]] picture = scatter_plot(data) picture.show()