Law of total probability

Given a partition of the sample space into disjoint events (), the probability of an event is the sum of the probabilities of given each of the , weighted by the probability of each :