Suppose that holds, then calculate the probability of getting a result outside the interval , with . If this probability falls below then you reject the null hypothesis at the level of significance as the observed result is outside the given interval.

You calculate the probability using the binomial distribution:

where is the probability of exactly success in trials with probability of success on a single trial for the binomial distribution.

CB