Taken from this thread, and specifically this post.
Quick summary: if you have S successes out of N launches under your belt, then (S+1)/(N+2) is your best estimate of the future probability of success. Obviously this is the same problem as figuring out how biased your coin is based on some number of flips. The problem has been driving me nuts as I can’t find a good explanation of the derivation.
Stranger mentions that it’s a first level Bayesian estimate, and for a while I played around with Bayes’ formula, making no progress. I know how to apply the formula in some circumstances, but in this case I had a hard time even figuring out what the priors and stuff were.
I eventually ran across the wiki page on Maximum Likelihood, and in particular the section on Discrete distribution, continuous parameter space. It solves the same problem–but comes to the conclusion that our best estimate is S/N, not (S+1)/(N+2).
But then I applied an idea I was bouncing around with my earlier Bayes stuff. Instead of finding the maxima for p (by finding the zeroes of the derivative), I figure out the center of mass. Or first moment, I think? Anyway, integrate x*f(x) and divide by the integral of f(x) from 0 to 1. Lo and behold, it seems to work. For instance, if my likelihood function is p[sup]3/sup[sup]4[/sup] (3 successes out of 7 trials), then the CoM is .0015873/.0035714, or 4/9. That’s what I’d expect from the (S+1)/(N+2) formula, so I think I’m on the right track here.
However, I didn’t use Bayes. And I don’t know how to integrate p[sup]s/sup[sup]n[/sup] in the general case (I used Wolfram Alpha for the numerical answer). Is there some easier way to get there? Is my approach even a legitimate alternate method? What’s going on? Thanks.