## The ultimate confidence intervals calculator by G. D'Agostini

### Purpose

This Javascript code calculates frequentist confidence intervals that cover the true value with a given probability, i.e. the statement "the given interval encloses the true value" is true in a given fractio of the cases and false in the remaining cases. In other words, if a larger of users interrogate the calculator, it is garanteed that:
• the percentage of times in which the resulting interval contains the true value is equal to `coverage probability';
• in the remaining percentage of times the interval does not cover the true value.

### Use the calculator

To use the calculator, go though the following steps:
1. Think at the physical quantity of your interest, expressed in a suitable unit, e.g. a SI unit, or what is customary in your discipline.
(No! You don't need to make an experiment! Why do you want to spend time and money if what you neeed is just frequentist coverage?)
2. Select the desired coverage probability:
68.3%
90%
95%
99%