Theory
Probability and combinatorics
Events and the axioms of probability, counting under constraints, and sampling from a finite population.
This chapter shows how to compute the probability of a result before observing it, when the possible results are finite in number. For example, a batch contains eight items, three of which are defective, and three items are chosen at random. With the methods of this chapter, the probability of finding exactly one defective item among the three turns out to be , about , and the probability of finding at least one is , about .
The possible results are listed, each is assigned a probability, and the probabilities of the results of interest are added. When all results have the same probability, the probability of an event is the number of favorable cases divided by the number of possible cases, so the problem becomes one of counting. There are samples of three items drawn from eight, while there are about seventeen trillion samples of ten items drawn from a hundred, so the second half of the chapter presents combinatorics, that is, the formulas that give these numbers without listing the cases.
Chapters 1 and 2 summarize data that have already been collected, for instance with relative frequencies; a probability, by contrast, is assigned before the result is observed. This chapter begins the part of the course on probability, from Chapter 3 to Chapter 7, which is used to measure the error made when moving from a sample to the whole population. The probabilities of the simple random sample of Chapter 1, drawn without replacement, are computed in this chapter. Chapter 4 studies how a probability changes when part of the result is already known and introduces independence. Chapter 5 uses the counts of this chapter to build the binomial and hypergeometric distributions, which return in the statistical inference of Chapters 8 to 12.
Outcomes, events, and operations
1. Sample space and events
A coin is tossed twice and the result of each toss is recorded, with for heads and for tails; T and C stand for the Italian words for heads and tails. Before the tosses it is known that one of the four sequences , , , will occur, but not which one. An experiment whose possible results are known, but whose actual result is not, is called a random experiment. Rolling a die and drawing an item from a batch to inspect it are also random experiments.
Each possible result of the experiment is called an outcome, or elementary outcome, and an individual outcome is denoted by , read “omega.” The set of all outcomes is called the sample space and is denoted by , read “capital omega.” For the two coin tosses,
The outcome means heads on the first toss and tails on the second, so it differs from the outcome .
A question about the result, such as “did exactly one head come up?”, singles out the outcomes for which the answer is yes. A subset of the sample space, that is, a set , is called an event. In this chapter the sample space is always finite, and each of its subsets is an event. The event “exactly one head” is
The event is said to occur when the observed outcome belongs to . With the outcome the event occurs; with the outcome it does not.
2. Union, intersection, and difference
Set operations produce new events. Let and be events defined on the same sample space.
- The intersection contains the outcomes common to both events, so it means “both and occur.”
- The union contains the outcomes that belong to at least one of the two events, so it means “ or occurs, or both.”
- The difference contains the outcomes of that do not belong to , so it means “ occurs and does not.”
- The complement contains all outcomes for which does not occur.
The symbol denotes the empty set. As an event it is called the impossible event, because it contains no outcomes and therefore never occurs; the event always occurs and is called the certain event.
Events and are mutually exclusive if , that is, if they cannot occur together. When a die is rolled, the events “a comes up” and “an even number comes up” are mutually exclusive. Mutually exclusive events are also called disjoint, which is the name for sets with no elements in common. Several events are pairwise mutually exclusive if every pair of different events among them is mutually exclusive, so no outcome belongs to two of them.
The notation means that every outcome of belongs to , so the occurrence of implies the occurrence of .
Events on a die
When a six-sided die is rolled, let be the event that the number is even, and let be the event that the number is at least . The outcome meets both conditions, the outcome only the second and the outcome only the first, while and lie outside both events.
Likewise , , and , which is the event that the number is odd.
The diagram highlights the outcomes that meet both conditions; the union also includes the two regions on either side.
Remark
The same experiment can be described with different sample spaces. In three tosses of a coin, one can record the sequences of results, of which there are eight:
One can also record only the number of heads, and then the sample space is . This second space does not say on which toss the heads came up.
A coin is called fair if heads and tails have the same probability, ; likewise, a die is fair if each of its six faces has probability . Several tosses are called independent if the result of one toss does not change the probabilities of the results of the others. The precise definition of independence is given in Chapter 4; this chapter uses only one of its consequences. In independent tosses of fair coins or fair dice, all sequences of results have the same probability, that is, they are equally likely. The same holds for any series of independent trials in which the results of each trial all have the same probability.
For three independent tosses of a fair coin, therefore, each of the eight sequences has probability . A head count of collects the three sequences , , , a count of collects the three sequences , , , and and each collect a single sequence. The head counts therefore have probabilities , , , and .
In the space the four outcomes are thus not equally likely, and their probabilities are obtained from the space of sequences. The same count of sequences gives the binomial distribution of Chapter 5.
Axioms and the assignment of probabilities
1. Axioms of probability
When a fair die is rolled, each face is assigned probability . The event “an even number comes up,” which contains three faces, is assigned probability , and the certain event , which contains all six faces, is assigned probability . If the die is rolled many times, the relative frequency of even numbers, defined in Chapter 1, approaches , as stated by the law of large numbers in Chapter 8.
On the finite sample space , a probability measure is a rule that assigns to each event a real number , read “probability of ,” in such a way that the following three properties, called the axioms of probability, hold.
- for every event .
- .
- If are pairwise mutually exclusive events, then
The third property is called additivity. The left-hand side is the probability of the event “one of the occurs,” and the right-hand side is the sum of their probabilities. For the die, the events “a comes up” and “an even number comes up” are mutually exclusive, so the event “a or an even number comes up” has probability .
On an infinite space, as for the continuous random variables of Chapter 6, one also specifies which subsets are events and requires additivity for infinitely many mutually exclusive events listed like the natural numbers; in this chapter the space is always finite. All the formulas of the chapter, such as the complement rule and the inclusion–exclusion formula, follow from the three axioms.
2. Probabilities of elementary outcomes
For a fair die, the probability of “an even number comes up” is the sum of the probabilities of the faces , , . The theorem states that on a finite space every probability measure is computed in this way.
Let be a space with outcomes. Assign to each outcome a number , called the weight of the outcome, so that the weights sum to , that is, . Then the rule
which assigns to each event the sum of the weights of its outcomes, defines a probability measure on . Conversely, every probability measure on this space arises in this way, by setting , where is the event consisting of the single outcome . To compute the probability of an event, it is therefore enough to know the probabilities of the individual outcomes.
Proof
The idea is to break each event down into its outcomes. First, the three axioms are checked for the rule defined by the sum. The weights are nonnegative, so their sums are nonnegative as well. The event contains all the outcomes, so . If the events are pairwise mutually exclusive, each outcome of their union belongs to exactly one of them, so the sum of the weights over the union splits into the sums of the weights over each event.
Conversely, let be a probability measure. Every event is the union of the events formed by its individual outcomes, and these events are pairwise mutually exclusive. By additivity, is therefore the sum of the probabilities . The numbers are nonnegative by the first axiom and have sum by the second.
Three outcomes with unequal probabilities
A wheel has three sectors with probabilities , , and , respectively. The weights sum to , because . The event has probability
The event contains two of the three outcomes, and the value coincides with the share of outcomes only by chance. The event also contains two outcomes, but its probability is .
3. Complements and monotonicity
When a fair die is rolled, the probability of “a does not come up” is . Moreover, the event “a comes up” is contained in “an even number comes up,” and indeed . The two rules hold in general.
For every event ,
If , then ; this property is called monotonicity. In particular, and for every event .
The complement rule is used when the opposite case contains fewer outcomes than the required event, as “no heads” compared with “at least one head.”
Proof
The event and its complement are mutually exclusive, and their union is . By additivity, , from which the formula follows.
If , the events and are mutually exclusive and their union is . By additivity, , and by the first axiom, so .
Finally, , so . Every event is contained in , so by monotonicity, while by the first axiom.
At least one favorable outcome
A fair coin is tossed four times, with independent tosses. Each toss has two results, so there are possible sequences, and they are equally likely. The only sequence with no heads is , which has probability . The event “at least one head” is the complement of that sequence, so by the complement rule its probability is
4. Partitions of the sample space
When a die is rolled, the three events “a or comes up,” “a or comes up,” and “a or comes up” have no outcomes in common and together contain all the faces. Whatever the outcome, therefore, exactly one of the three events occurs.
A partition of is a family of nonempty, pairwise mutually exclusive events whose union is . Each outcome therefore belongs to exactly one event in the family; the events of the partition are also called parts or cells. If the probabilities of the parts are known, the probability of an event made up of some whole parts is obtained, by additivity, as the sum of their probabilities.
Partitions are used in the chapter on conditional probability to distinguish the possible sources of the same result. For example, if a defective item can come from one of three machines, the three events “made by machine ,” “by machine ,” and “by machine ” form a partition.
Mutually exclusive outcome categories
A batch can be accepted, sent for reinspection, or rejected. If the procedure assigns exactly one of these outcomes to each batch, the three categories form a partition. If the probability of reinspection is and the probability of rejection is , the probability that the batch is not accepted at the first inspection is . The sum is justified by additivity, because no batch is classified in both categories at once. Acceptance is the complement of “not accepted,” so its probability is .
Remark
With independent tosses of a fair coin there are sequences, all equally likely, and only one has no heads, so by the complement rule
The same scheme applies to repeated trials with two possible results, called success and failure, when each trial succeeds with the same probability and the trials are independent. Chapter 4 proves that in this case the probability of no successes is the product of the failure probabilities, that is, . Taking the complement therefore gives
With three trials and , for example, this gives . With the coin formula is recovered, because .
End of the free preview
The theory of this topic continues with 7 more sections
- Unions of overlapping events
- Equally likely outcomes and the choice of sample space
- Choices in stages and permutations
- Ordered selections and combinations
- Counting with restrictions
- Sampling without replacement
- Keep studying
Full access also includes the other 7 worked examples of this topic and the solutions of the 14 practice exercises.
Unlock Statistics and probability · €49Read the first 3 worked examples in this chapter for free.