Kamil Slowikowski
About Archive

Benchmark the binomial probability mass function in Python

It turns out that sympy and scipy have the slowest implementations of the binomial mass function. A pure Python version is just 30 times slower than C in my benchmark. Feel free to copy the code from the IPython notebook and test it for yourself.