Lets suppose there is an event that gives a random outcome each time it happens. The set of possible events is finite, but their probabilities differ, sometimes by orders of magnitude. (imagine a heavily weighted dice)
How does one establish an upper bound for the probability of an event that is not in the set of possible outcomes? (eg. prove that with 99% probability a six sided dice will not give you a 7)
Usually when you sample a random event like this you can estimate the probability of a given outcome by $P_i = \frac{n_i}{N}$, where $P_i$ is the estimated probability of the $i$-th event, $n_i$ is the number of samples where the $i$-th event happened and $N$ is the total number of samples taken.
Obviously if the event is impossible, the estimated probability will always be zero. But as long as we have a finite number of samples, we cannot know for sure that the event is indeed impossible, or just have a really low non-zero probability. So the best we can do is to establish an upper bound, with a given confidence.
My question is: how to actually calculate that upper bound, based on the number of samples taken and the desired confidence? The solution is probably really simple, but so far the solution has eluded my attempts to find it via search. (but probably I was using the wrong search terms)