Download presentation
Presentation is loading. Please wait.
Published byRhoda Howard Modified over 9 years ago
1
Copyright © 2010 Pearson Education, Inc. Chapter 17 Probability Models
2
Copyright © 2010 Pearson Education, Inc. Bernoulli Trials The basis for the probability models we will examine in this chapter is the Bernoulli (Ber-Noo-Lee) trial. We have Bernoulli trials if: there are two possible outcomes (success and failure). the probability of success, p, is constant. the trials are independent.
3
Copyright © 2010 Pearson Education, Inc. The Geometric Model A single Bernoulli trial is usually not all that interesting. A Geometric probability model tells us the probability for a random variable that counts the number of Bernoulli trials until the first success. Geometric models are completely specified by one parameter, p, the probability of success, and are denoted Geom(p).
4
Copyright © 2010 Pearson Education, Inc. The Geometric Setting Each observation is in one of two categories: success or failure. The probability is the same for each observation. Observations are independent. (Knowing the result of one observation tells you nothing about the other observations.) The variable of interest is the number of trials required to obtain the first success.
5
Copyright © 2010 Pearson Education, Inc. The Geometric Model Example: A new sales gimmick is to sell bags of candy that have 30% of M&M’s covered with speckles. These “groovy” candies are mixed randomly with the normal candies as they are put into the bags for distribution and sale. You buy a bag and remove candies one at a time looking for the speckles. Note that this situation involves Bernoulli trials. There are two outcomes: success = speckles, failure = ordinary. The probability of success, based on the information from the candy company, is 30%. Trials can be assumed independent – there is no reason to believe that finding a speckled candy reveals anything about whether the next one out of the bag will have speckles.
6
Copyright © 2010 Pearson Education, Inc. The Geometric Model Example (cont.): A new sales gimmick is to sell bags of candy that have 30% of M&M’s covered with speckles. These “groovy” candies are mixed randomly with the normal candies as they are put into the bags for distribution and sale. You buy a bag and remove candies one at a time looking for the speckles. What’s the probability that the first speckled one we see is the fourth candy we get? Note that the skills to answer this question come from the very first day of the probability unit.
7
Copyright © 2010 Pearson Education, Inc. The Geometric Model Example (cont.): What’s the probability that the first speckled one is the tenth one? Write a general formula. What’s the probability that the first speckled candy is one of the first three we look at? How many do we expect to have to check, on average, to find a speckled one?
8
Copyright © 2010 Pearson Education, Inc. The Geometric Model (cont.) Geometric probability model for Bernoulli trials: Geom(p) p = probability of success q = 1 – p = probability of failure X = number of trials until the first success occurs P(X = x) = q x-1 p
9
Copyright © 2010 Pearson Education, Inc. The Geometric Model (cont.) Postini is a global company specializing in communications security. The company monitors over 1 billion Internet messages per day and recently reported that 91% of emails are spam. Let’s assume that your emails are typical—91% spam. We’ll also assume that you aren’t using a spam filter, so every message goes to your inbox. And, since spam comes from many different sources, we’ll consider your messages to be independent. Overnight your inbox collects email. When you first check you email the next day, about how many spam emails should you expect to have to wade through and discard before you find a real message? What’s the probability that the 4 th message in your inbox is the first one that isn’t spam?
10
Copyright © 2010 Pearson Education, Inc. Independence One of the important requirements for Bernoulli trials is that the trials be independent. When we don’t have an infinite population, the trials are not independent. But, there is a rule that allows us to pretend we have independent trials: The 10% condition: Bernoulli trials must be independent. If that assumption is violated, it is still okay to proceed as long as the sample is smaller than 10% of the population.
11
Copyright © 2010 Pearson Education, Inc. Another Geometric Model Example People with O-negative blood are “universal donors.” Only about 6% of people have O-negative blood. 1. If donors line up at random for a blood drive, how many do you expect to examine before you find someone who has O-negative blood? 2. What’s the probability that the first O-negative donor found is one of the four people in line?
12
Copyright © 2010 Pearson Education, Inc. Geometric Probabilities Using Calculator 2 nd DISTR geometpdf( Note the pdf for Probability Density Function Used to find any individual outcome Format: geometpdf(p,x) 2 nd DISTR geometcdf( Note the cdf for Cumulative Density Function Used to find the first success on or before the x th trial Format: geometcdf(p,x) Try the last example using the calculator! Much easier…
13
Copyright © 2010 Pearson Education, Inc. The Binomial Model The geometric model counts the number of trials before the first success. A Binomial model tells us the probability for a random variable that counts the number of successes in a fixed number of Bernoulli trials. Two parameters define the Binomial model: n, the number of trials; and, p, the probability of success. We denote this Binom(n, p).
14
Copyright © 2010 Pearson Education, Inc. The Binomial Model (cont.) In n trials, there are ways to have k successes. Read n C k as “n choose k.” Note: n! = n (n – 1) … 2 1, and we’re not overly excited about n n! is read as “n factorial.”
15
Copyright © 2010 Pearson Education, Inc. The Binomial Model (cont.) Binomial probability model for Bernoulli trials: Binom(n,p) n = number of trials p = probability of success q = 1 – p = probability of failure X = # of successes in n trials P(X = x) = n C x p x q n–x
16
Copyright © 2010 Pearson Education, Inc. Binomial Model Example Recap: The communications monitoring company has reported that 91% of e-mail messages are spam. Suppose your inbox contains 25 messages. What are the mean and standard deviation of the number of real messages you should expect to find in your inbox? What is the probability that you will find only 1 or 2 real messages?
17
Copyright © 2010 Pearson Education, Inc. Binomial Probability on Calculator 2 nd DISTR binompdf( Note the pdf for Probability Density Function Used to find any individual outcome Format: binompdf(n,p,x) 2 nd DISTR binomcdf( Note the cdf for Cumulative Density Function Used for getting x or fewer successes among n trials Format: binomcdf(n,p,x) Note: if you wanted to find up to a #, use the complement rule. All possible probabilities in the model will add up to 1.
18
Copyright © 2010 Pearson Education, Inc. Binomial Model Example #2 20 donors come to a blood drive. Recall that 6% of people are “universal donors.” What are the mean and standard deviation of the number of universal donors among them? What is the probability that there are 2 or 3 universal donors?
19
Copyright © 2010 Pearson Education, Inc. The Normal Model to the Rescue! When dealing with a large number of trials in a Binomial situation, making direct calculations of the probabilities becomes tedious (or outright impossible). Fortunately, the Normal model comes to the rescue…
20
Copyright © 2010 Pearson Education, Inc. The Normal Model to the Rescue (cont.) As long as the Success/Failure Condition holds, we can use the Normal model to approximate Binomial probabilities. Success/failure condition: A Binomial model is approximately Normal if we expect at least 10 successes and 10 failures: np ≥ 10 and nq ≥ 10
21
Copyright © 2010 Pearson Education, Inc. Normal Model Example Recall the communications monitoring company Postini has reported that 91% of email messages are spam. Recently, you installed a spam filter. You observe that over the past week it okayed only 151 of 1422 emails you received, classifying the rest as junk. Should you worry the filtering is too aggressive? What’s the probability that no more than 151 of 1422 emails is a real message?
22
Copyright © 2010 Pearson Education, Inc. Continuous Random Variables When we use the Normal model to approximate the Binomial model, we are using a continuous random variable to approximate a discrete random variable. So, when we use the Normal model, we no longer calculate the probability that the random variable equals a particular value, but only that it lies between two values.
23
Copyright © 2010 Pearson Education, Inc. What Can Go Wrong? Be sure you have Bernoulli trials. You need two outcomes per trial, a constant probability of success, and independence. Remember that the 10% Condition provides a reasonable substitute for independence. Don’t confuse Geometric and Binomial models. Don’t use the Normal approximation with small n. You need at least 10 successes and 10 failures to use the Normal approximation.
24
Copyright © 2010 Pearson Education, Inc. What have we learned? Bernoulli trials show up in lots of places. Depending on the random variable of interest, we might be dealing with a Geometric model Binomial model Normal model
25
Copyright © 2010 Pearson Education, Inc. What have we learned? (cont.) Geometric model When we’re interested in the number of Bernoulli trials until the next success. Binomial model When we’re interested in the number of successes in a certain number of Bernoulli trials. Normal model To approximate a Binomial model when we expect at least 10 successes and 10 failures.
26
Copyright © 2010 Pearson Education, Inc. Assignments: pp. 401 – 404 Day 1: # 1, 3, 9 – 15 ODD, 23 Day 2: # 2, 5, 10, 12, 17, 19, 21, 29, 32 Day 3: # 14 – 22 EVEN, 25, 27, 37
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.