|
The theory of probability |
|
|
|
Combinatorics Many problems in probability theory require that we count the number of ways that a particular event can occur. For this, we study the topics of permutations and combinations. We consider permutations in this section and combinations in the next section. Before discussing permutations, it is useful to introduce a general counting technique that will enable us to solve a variety of counting problems, including the problem of counting the number of possible permutations of n objects. Counting Problems. Consider an experiment that takes place in several stages and is such that the number of outcomes m at the nth stage is independent of the outcomes of the previous stages. The number m may be different for different stages. We want to count the number of ways that the entire experiment can be carried out.Example You are eating at Emile's restaurant and the waiter informs you that you have (a) two choices for appetizers: soup or juice; (b) three for the main course: a meat, ¯sh, or vegetable dish; and (c) two for dessert: ice cream or cake. How many possible choices do you have for your complete meal? We illustrate the possible meals by a tree diagram shown in Figure 3.1. Your menu is decided in three stages|at each stage the number of possible choices does not depend on what is chosen in the previous stages: two choices at the first stage, three at the second, and two at the third. From the tree diagram we see that the total number of choices is the product of the number of choices at each stage. In this examples we have 2 ¢ 3 ¢ 2 = 12 possible menus. Our menu example is an example of the following general counting technique.
A Counting Technique. A task is to be carried out in a sequence of r stages. There are n1 ways to carry out the ¯rst stage; for each of these n1 ways, there are n2 ways to carry out the second stage; for each of these n2 ways, there are n3 ways to carry out the third stage, and so forth. Then the total number of ways in which the entire task can be accomplished is given by the product N = n1 ¢ n2 ¢ : : : ¢ nr. Tree Diagrams. It will often be useful to use a tree diagram when studying probabilities of events relating to experiments that take place in stages and for which we are given the probabilities for the outcomes at each stage. For example, assume that the owner of Emile's restaurant has observed that 80 percent of his customers choose the soup for an appetizer and 20 percent choose juice. Of those who choose soup, 50 percent choose meat, 30 percent choose ¯sh, and 20 percent choose the vegetable dish. Of those who choose juice for an appetizer, 30 percent choose meat, 40 percent choose ¯sh, and 30 percent choose the vegetable dish. We can use this to estimate the probabilities at the ¯rst two stages as indicated on the tree diagram of Figure 3.2. We choose for our sample space the set of all possible paths ! = !1, !2, . . . , !6 through the tree. How should we assign our probability distribution? For example, what probability should we assign to the customer choosing soup and then the meat? If 8/10 of the customers choose soup and then 1/2 of these choose meat, a proportion 8=10 ¢ 1=2 = 4=10 of the customers choose soup and then meat. This suggests choosing our probability distribution for each path through the tree to be the product of the probabilities at each of the stages along the path. This results in the probability measure for the sample points ! indicated in Figure 3.2. (Note that m(!1)+¢ ¢ ¢+m(!6) = 1.) From this we see, for example, that the probability that a customer chooses meat is m(!1) +m(!4) = :46. We shall say more about these tree measures when we discuss the concept of conditional probability in Chapter 4. We return now to more counting problems.
Birthday Problem Thus, assuming that each sequence is equally likely, ![]() We denote the product (n)(n - 1) ... (n¡r + 1) by (n)r (read \n down r," or \n lower r"). Thus, |