Look at https://juliastats.org/HypothesisTests.jl/stable/methods/#StatsBase.confint-Tuple{BinomialTest}. Benchmark against our own solution...