How can I efficiently calculate the binomial cumulative distribution function?

后端 未结 10 931
你的背包
你的背包 2020-12-07 22:10

Let\'s say that I know the probability of a \"success\" is P. I run the test N times, and I see S successes. The test is akin to tossing an unevenly weighted coin (perhaps

10条回答
  •  失恋的感觉
    2020-12-07 22:37

    I think you want to evaluate the incomplete beta function.

    There's a nice implementation using a continued fraction representation in "Numerical Recipes In C", chapter 6: 'Special Functions'.

提交回复
热议问题