Probability - University of Michigan
6. Binomial probabilities
6.1 Binomial probabilities and random variables.
Binomial probabilities occur when we repeatedly do something that has two possible outcomes and we count the number of times that one or the other outcome occurs.
Example 1. A bank customer has two options.
1. Go into the bank = g
2. Use the drive through service = d
Suppose the probability that a customer goes into the bank is Pr{g} = 0.6 and the probability that the customer uses the drive through service is Pr{d} = 0.4. Furthermore, suppose whether one customer drives goes in is independent of what all the other customers do. Suppose we observe the next four customers.
a. What is the probability that exactly 2 of them go into the bank?
b. More generally, what is the probability that exactly k of them go into the bank?
c. What is the probability that no more than 2 of them go into the bank?
d. More generally, what is the probability that no more than k of them go into the bank?
e. What is the probability that at least 2 of them go into the bank?
f. More generally, what is the probability that at least k of them go into the bank?
These are typical questions involving binomial probabilities. In order to answer these, let
X1, ..., Xn = a sequence of independent random variables each with two possible outcomes that we take to be the numbers 1 and 0. Suppose that each of the random variables has the same probability distribution. This is called a sequence of Bernoulli trials.
We shall call 1 a success and 0 a failure and the observations of the value of any of the random variables a trial. The probability of a success is the same for any trial. In Example 1 we have n = 4 and a success is the customer going in and a failure is any customer driving through. Thus g corresponds to 1 and d corresponds to 0 and Xk = 1 if the kth custormer goes in and Xk = 0 if the kth customer drives through.
(x1, ..., xn) = { X1 = x1, ..., Xn = xn } = a sequence of n values each of which could be 1 or 0. This is a possible outcome of observing the outcomes of the n trials X1, ..., Xn. There are 2n possible sequences.
In Example 1 where n = 4 there are 16 possible sequences, namely
0000 0001 0010 0011 0100 0101 0110 0111
1000 1001 1010 1011 1100 1101 1110 1111
p = Pr{Xk = 1}
= probability of success in any trial, i.e. the probability that any of the random variables Xk takes on the value 1. p = 0.6 in Example 1.
q = 1 – p = Pr{Xk = 0}
= probability of failure in any trial, i.e. the probability that any of the random variables Xk takes on the value 0. q = 0.6 in Example 1.
Pr{ x1, ..., xn } = Pr{ X1 = x1, ..., Xn = xn } = Pr{X1 = x1} ... Pr{Xn = xn} = the probability of an outcome (x1, ..., xn)
pkqn-k = pk(1 – p )n-k = the probability Pr{ x1, ..., xn } of any particular outcome (x1, ..., xn) which has k successes and n – k failures. For example, Pr{ 1011 } = (0.6)3(0.4) in Example 1.
= = Cn,k = the number of possible outcomes (x1, ..., xn) that has k of the values 1 and n-k of the values 0. This is also called the number of possible combinations of n things taken k at a time or the binomial coefficient of n things taken k at a time. See section 6.3 for a derivation of this formula. In the context of Example 1 the different outcomes where 2 or the 4 customers go in are 0011, 0101, 0110, 1001, 1010 and 1100. So = 6.
N = X1 + ... + Xn = the number of successes in n trials, i.e. the number of times the outcome is 1 in the n observations X1, ..., Xn. N is a binomial random variable.
pkqn-k = pk(1 – p )n-k = bk = b(k; n, p) = Pr{ N = k } = the probability of k successes in n trials. These are called binomial probabilities. This is the probability mass function of N.
Fk = F(k; n, p) = Pr{ N ( k } = b0 + b1 + ... + bk = = the probability of no more than k successes in n trials. These is the cumulative distribution function of N. In question c in Example 1 F2 and in question e we want 1 – F1.
The answer to question a in Example 1 is
b2 = (0.6)2(0.4)2 = 6(0.36)(0.16) = 0.3456.
The answer to b is bk = ; see table at right. Below that is a plot of the bk.
The answer to c is
F2 = b0 +b1 + b2 =(0.6)2(0.4)2 = 0.0256 + 4(0.6)(0.064) + 6(0.36)(0.16) = 0.0256 + 0.1536 + 0.3456 = 0.5248
The answer to d is Fk = bj; see table above.
The answer to e is
b2 + b3 +b4 = (0.6)4(0.4)0
= 6(0.36)(0.16) + 4(0.216)(0.4) + 0.1296 = 0.3456 + 0.3456 + 0.1296 = 0.8208
Another way to answer e is 1 – F1 = 1 – 0.1792 = 0.8208.
Note that the mean of the binomial random variable N is
E(N) = E(X1 + ... + Xn) = E(X1) + ... + E(Xn) = np
since for each k we have
E(Xk) = 0 * Pr{Xk = 0} + 1 Pr{Xk = 1} = p
Problem 1. Suppose that customers that go into the bank require 2 minutes of time to service and customers that drive through require 1 minute of time to service. What is the average time to serve 100 customers?
Example 2. A bakery is deciding how many loaves of its special raisin bread to bake each day. It costs them 50 cents a loaf to make and they sell it retail for $2.00 a loaf. Any loaves that are unsold at the end of the day can be sold to a wholesaler for 20 cents a loaf. The bakery estimates that they have 50 customers each day and the probability that any particular customer will buy the raisin bread is 10%. Furthermore, whether one customer buys the raisin bread is independent of whether any of the other customers buy it. Treat this as a single period inventory problem to determine the optimal number of loaves to bake each day.
The retail price r = 2, the wholesale price w = 0.5 and the salvage price s = 0.2. Let N be the number of loaves they sell. N is a binomial random variable with n = 50 and p = 0.01. So the probability mass function of N is fk = (0.1)k(0.9)n-k and the cumulative distribution function is . We should bake y loaves where y is the first value such that Fy ( = 5/6 ( 0.833. From the table at the right the first y such that Fy exceeds 5/6 is y = 7. So the bakery should bake 7 loaves each day.
Problem 2. The modeling department at MathCo has 5 people. Suppose the probability that any one of them will buy a donut on any given day is p = 0.6 and whether one person buys a donut is independent of whether all the other people buy a donut.
a. What is the probability that exactly 3 people buy a donut?
b. What is the probability that at least 3 people buy a donut?
c. Suppose you buy donuts wholesale for 20 cents and sell them retail to the members of the modeling department for 50 cents. Any unsold donuts you can dispose of for 5 cents. How many donuts should you buy wholesale to maximize your profit? Ans: 4
The table at the right should be helpful.
Problem 3. Your company has a local area network consisting of six computers. It needs at least two of the computers in the network to be working in order for the network to function properly. Suppose that on any given day the probability is 0.9 that any computer will be running and whether one computer is working is independent of whether the other computers are working.
a. What is the probability that on anly given day at least two of the computers will be working?
b. What is the probability that the network will be working every day this week? Assume a five day week.
c. Suppose you are going to replace the six computers in the network with new ones that have a probability p of working on any particular day. Suppose it is desired that the probability that the network be working in a week is 99%. How large should p be?
6.2 Permutations.
In order to derive the formula for , we first need a brief discussion of permutations.
Sometimes when we make k observations (i1, ..., ik) we are only interested in the case where i1, ..., ik are all distinct.
Example 3. How many 3 letter words can we make where all 3 letters are distinct? We can count them as follows. We can choose the first letter arbitrarily. There are 26 possible choices. For each choice of the first letter, there are 25 choices for the second letter if it is to be different from the first. So there are (26) (25) two letter words where the 2 letters are different. For each of these we can choose a third letter in 24 different ways so it is different from the first two. This gives (26) (25) (24) = 15,600 three letter words which have all 3 letters distinct.
This example illustrates the following counting formula. Suppose we have n objects x1, ..., xn and we form a vector (i1, ..., ik) using k of these where k ( n. We are interested in the number of such vectors where i1, ...ik are all distinct. Arguing as above, we see that the number of such vectors is n (n-1)...(n-k+1). This number can be written as n!/(n-k)! and is called the number of permutations of n things taken k at a time. Sometimes it is denoted by P(n,k). Thus
(1) P(n,k) =
= number of ways of selecting k different items in order from n objects
= number of permutations of n things taken k at a time
An important special case is where k = n. A vector (i1, ..., in) which uses all of x1, ..., xn exactly once is just a rearrangement of x1, ..., xn and is often called a permuatation of x1, ..., xn. The number of different permuatations of x1, ..., xn is n!.
Example 4. Suppose a room has 17 people. What is the probability that the people have birthdays which are all distinct?
We shall simplify the problem by assuming that none of them have birthdays which fall on February 29. If we number the people in some fashion from 1 to 17, then the birthdays of the 17 people can be represented by a vector (b1, ..., b17), where each bi is the birthday of the i-th person and can have any of 365 values. So there are 36517 possible outcomes and we assume they are all equally likely. The birthdays being all distinct corresponds to b1, ..., b17 being all distinct. By the paragraph above, the number of vectors (b1, ..., b17) with this property is (365) (364) ... (349). So the probability that they are all distinct is = 0.685.
Problem 4. The OR department at NetCo consists of {Ann, Barb, Carl, Don, Ellen} = {a, b, c, d, e}. The VP in charge of Design is going to choose three of them for a project. One will talk to the customer, another will do the analysis and the third will write the software. How many ways are there to pick three different people from the OR department to fill these three roles. Ans: 60
6.3 Combinations.
Here we are interested in the number of ways we can select k different objects from a set of n objects without regard to order. Here is an example that illustrates this.
Example 5. How many ways can you choose 3 different letters from the 5 letters A, B, C, D, E? In this case we can list the different ways as follows
ABC ABE ACE BCD BDE
ABD ACD ADE BCE CDE
In contrast, there are (5)(4)(3) = 60 three letter words which we can form using 3 different letters chosen from A, B, C, D, E. There is a relationship between the 60 three letter words and the 10 ways to choose 3 letters from 5. Suppose we choose 3 letters from A, B, C, D, E. For example we might choose B, D, and E. Then there are 3! = 6 different ways we can rearrange these to form 3 letter words with all letters different (namely BDE, BED, DBE, DEB, EBD, EDB). Similarly, each choice of 3 letters from A, B, C, D, E gives rise to 6 different 3 letter words. So
# different 3 letter words with all letters different =
(# ways to choose 3 letters) (# permutations of 3 letters)
i.e. 60 = (10) (6).
More generally suppose we want to count the number of different ways of selecting a set of k different objects {i1, ..., ik} from a set of n items {x1, ..., xn}. In the last section this quantity was called the number of combinations of n things taken k at a time and denoted by or C(n,k). It is also called the binomial coefficient of n things taken k at a time. This is related to the number of different ways of selecting a vector (i1, ..., ik) where i1, ..., ik are different elements of {x1, ..., xn}. Arguing as above, we have
# different vectors = (# ways to choose k objects) (# permutations of k objects)
i.e. = (# ways to choose k objects) = k!
So,
(2) = = number of ways of selecting k objects from n
= number of combinations of n things taken k at a time
Example 6. The Michigan State Lottery has a game called Super Lotto where six different balls are drawn at random from a set of 47 balls numbered 1, 2, ..., 47. By (7.5), there are
= = = 10,737,573
ways to do this. Prior to the drawing, people may select their own set of six different numbers from the numbers 1, 2, ..., 47. If their set of six numbers matches the ones drawn by the state, they win a big prize. If we assume that each group of six different numbers is equally likely, then the probability of winning is 1/10,737,573.
Problem 5. The OR department at NetCo consists of {Ann, Barb, Carl, Don, Ellen, Fred} = {a, b, c, d, e, f}. The VP in charge of Design is going to choose three of them for a project. Unlike Problem 4, the three people will share the different aspects of the project. No person has a particular role. How many ways are there to pick three different people from the OR department for this project. Ans: 20
6.4 Random walks.
A random walk is closely related to a sequence of Bernoulli trials. The most common way of thinking about a random walk is as follows. We start at z = 0 on the z axis. We flip a (perhaps unfair) coin with probability of getting a head equal to p. If the coin comes up heads we take a step to the right to z = 1 while if the coin comes up tails we take a step to the left to z = - 1. We continue in this fashion flipping the coin and taking steps to the right or left depending on whether the coin comes up heads or tails. We are interested in the probability of being at position z after n flips. Let Zn be the location after n flips. We are interested in the distribution of Zn. Let pz = pn,k be the probability of being at location z after n flips.
After n = 1 flip we are either at location z = 1 or z = - 1 with probabilities p1 = Pr{Z1 = 1} = p and p-1 = Pr{Z1 = - 1} = 1 - p.
After n = 2 flips we are either at location – 2, 0 or 2 with probabilities p2 = Pr{X2 = 2} = Pr{HH} = p2 and p0 = Pr{X2 = 0} = Pr{HH, TH} = 2p(1-p) and p-2 = Pr{X2 = -2} = Pr{TT} = (1-p)2.
After n flips we could be at any of the location – n, - n+2, - n+4, …, n-2 or n. If we get k heads and n-k tails in the n flips we will be at location z = k – (n-k) = 2k – n. By (7), the probability of this occurring is . Since k = (z+n)/2 one has
(3) pk = Pr{Zn = z} = .
Example 7. We go to the casino and play a game where we can either win a dollar or lose a dollar on each play. Suppose the probability of winning is p = 0.4 and the probability of losing is 0.6. Suppose we play the game n = 5 times. What are the probabilities of that the net winning over these five plays will be z = - 5, - 3, - 1, 1, 3, 5? According to the above formula this will be . Here is a table of values and graph of this distribution.
A slightly different way of expressing the above derivation if (3) is as follows. Note that Zn = Y1 + … + Yn where Y1, …, Yn are independent with Pr{Yj = 1} = p and Pr{Yj = - 1} = 1 – p for j = 1, …, n. If we let Xj = (Yj + 1)/2 then X1, …, Xn are independent with Pr{Xj = 1} = p and Pr{Xj = 0} = 1 – p. So X1, …, Xn are a series of Bernoulli trials. Since Yj = 2Xj – 1, one has Zn = (2X1 – 1) + … + (2Xn – 1) = 2(X1 + … + Xn) – n = 2N – n where N = X1 + … + Xn. Then Pr{Zn = z} = Pr{2N – n = z} = Pr{N = (z+n)/2}. Using (2) this is equal to (3).
-----------------------
|k | |(0.6)k |(0.4)5-k |bk = (0.6)k(0.4)5-k |Fk = bj |
|0 |1 |1 |0.01024 |0.01024 |0.01024 |
|1 |5 |0.6 |0.0256 |0.0768 |0.08704 |
|2 |10 |0.36 |0.064 |0.2304 |0.31744 |
|3 |10 |0.216 |0.16 |0.3456 |0.66304 |
|4 |5 |0.1296 |0.4 |0.2592 |0.92224 |
|5 |1 |0.07776 |1 |0.07776 |1 |
|k | |(0.6)k |(0.4)4-k |bk = (0.6)k(0.4)4-k |Fk = bj |
|0 |1 |1 |0.0256 |0.0256 |0.0256 |
|1 |4 |0.6 |0.064 |0.1536 |0.1792 |
|2 |6 |0.36 |0.16 |0.3456 |0.5248 |
|3 |4 |0.216 |0.4 |0.3456 |0.8704 |
|4 |1 |0.1296 |1 |0.1296 |1 |
|z |Pz |
|- 5 |0.07776 |
|- 3 |0.2592 |
|- 1 |0.3456 |
|1 |0.2304 |
|3 |0.0768 |
|5 |0.01024 |
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- university of michigan admissions staff
- university of michigan admission requirement
- university of michigan sat scores
- university of michigan payroll office
- university of michigan application deadline
- university of michigan act requirements
- university of michigan entrance requirements
- university of michigan transfer deadline
- university of michigan philosophy dept
- university of michigan applicant portal
- university of michigan neurology
- university of michigan hospital neurology