The Binomial Probability Theorem can be applied when there are two mutually exclusive events such as "it will rain" and "it will not rain".
In the formula below, the following definitions hold:
p is one event q is the other event x is the number of successes of event p n is the total number (successes and failures)