User blog comment:Wizongod/Calculating Confidence Intervals for Underlying Probabilities/@comment-25534439-20150206083613

I've been a bit dead lately waiting on the event. While I roughly understand what the math and code are doing, I'm really not well versed enough in combinatorics to offer improvements.

I will mention that the articles on wikipedia: http://en.wikipedia.org/wiki/Checking_whether_a_coin_is_fair and http://en.wikipedia.org/wiki/Beta_distribution may offer an alternative approach that uses faster functions or at least smaller exponents. Maybe.