I have a sample size of 100 experiments out of which 15 are unfavorable events. I do this measurement for different initial conditions of my experiment. The sample size remains constant but the no. of unfavorable events change in each case. I calculate the probability of success in each case but I want to know the error in this calculation of probability and plot it as error bars in my graph. How to proceed ?