Binomial Confidence Interval

Introduction

This program calculates a non-asymptotic binomial confidence interval. For sample sizes > 1000, a large sample approximation is used.

Program Code

The program is written in JavaScript.

Source

The program uses the relationship between inverse F-distribution, inverse beta function and binomial (from Rollin Brant) to get the "exact" binomial confidence interval. For large samples, a normal approximation is calculated using the Wilson Score confidence interval method.