CHAPTER 6 Random Variables

Similar documents
CHAPTER 6 Random Variables

CHAPTER 6 Random Variables

Random Variables CHAPTER 6.3 BINOMIAL AND GEOMETRIC RANDOM VARIABLES

Chapter 8: Binomial and Geometric Distributions

Chapter 6: Random Variables

Probability & Statistics Chapter 5: Binomial Distribution

Binomial Random Variable - The count X of successes in a binomial setting

Section 6.3 Binomial and Geometric Random Variables

Chapter 6 Section 3: Binomial and Geometric Random Variables

Probability & Sampling The Practice of Statistics 4e Mostly Chpts 5 7

Chapter 6: Random Variables. Ch. 6-3: Binomial and Geometric Random Variables

Chapter 8.1.notebook. December 12, Jan 17 7:08 PM. Jan 17 7:10 PM. Jan 17 7:17 PM. Pop Quiz Results. Chapter 8 Section 8.1 Binomial Distribution

chapter 13: Binomial Distribution Exercises (binomial)13.6, 13.12, 13.22, 13.43

Random Variables. Chapter 6: Random Variables 2/2/2014. Discrete and Continuous Random Variables. Transforming and Combining Random Variables

Binomial formulas: The binomial coefficient is the number of ways of arranging k successes among n observations.

Chapter 8: The Binomial and Geometric Distributions

Chapter 8. Binomial and Geometric Distributions

AP Statistics Ch 8 The Binomial and Geometric Distributions

3. The n observations are independent. Knowing the result of one observation tells you nothing about the other observations.

3. The n observations are independent. Knowing the result of one observation tells you nothing about the other observations.

The Binomial distribution

If X = the different scores you could get on the quiz, what values could X be?

Binomial Distributions

Binomial Distributions

CHAPTER 4 DISCRETE PROBABILITY DISTRIBUTIONS

Math 361. Day 8 Binomial Random Variables pages 27 and 28 Inv Do you have ESP? Inv. 1.3 Tim or Bob?

4.1 Probability Distributions

MA 1125 Lecture 14 - Expected Values. Wednesday, October 4, Objectives: Introduce expected values.

***SECTION 8.1*** The Binomial Distributions

Binomial Random Variables. Binomial Distribution. Examples of Binomial Random Variables. Binomial Random Variables

30 Wyner Statistics Fall 2013

5.2 Random Variables, Probability Histograms and Probability Distributions

CHAPTER 6 Random Variables

BINOMIAL EXPERIMENT SUPPLEMENT

CHAPTER 6 Random Variables

DO NOT POST THESE ANSWERS ONLINE BFW Publishers 2014

What is the probability of success? Failure? How could we do this simulation using a random number table?

Chapter 6: Random Variables

Chapter 6: Random Variables

MA 1125 Lecture 12 - Mean and Standard Deviation for the Binomial Distribution. Objectives: Mean and standard deviation for the binomial distribution.

Chapter 5 Student Lecture Notes 5-1. Department of Quantitative Methods & Information Systems. Business Statistics

Chapter 3 - Lecture 5 The Binomial Probability Distribution

Section Random Variables

The Binomial Distribution

II - Probability. Counting Techniques. three rules of counting. 1multiplication rules. 2permutations. 3combinations

The Binomial Distribution

The Binomial Probability Distribution

Statistical Methods in Practice STAT/MATH 3379

Business Statistics. Chapter 5 Discrete Probability Distributions QMIS 120. Dr. Mohammad Zainal

A random variable (r. v.) is a variable whose value is a numerical outcome of a random phenomenon.

Probability Review. The Practice of Statistics, 4 th edition For AP* STARNES, YATES, MOORE

CHAPTER 8 Estimating with Confidence

Part 10: The Binomial Distribution


Chapter 4 and 5 Note Guide: Probability Distributions

Simple Random Sample

The Binomial and Geometric Distributions. Chapter 8

Lecture 9. Probability Distributions. Outline. Outline

1 / * / * / * / * / * The mean winnings are $1.80

AP Stats Review. Mrs. Daniel Alonzo & Tracy Mourning Sr. High

Chapter 4 Discrete Random variables

Part V - Chance Variability

Lecture 9. Probability Distributions

Binomial and multinomial distribution

AP Statistics Section 6.1 Day 1 Multiple Choice Practice. a) a random variable. b) a parameter. c) biased. d) a random sample. e) a statistic.

Chapter 8 Binomial and Geometric Distribu7ons

Statistics 6 th Edition

2) There is a fixed number of observations n. 3) The n observations are all independent

Chapter 6: Random Variables

STT315 Chapter 4 Random Variables & Probability Distributions AM KM

What do you think "Binomial" involves?

MATH 264 Problem Homework I

Chapter 4 Discrete Random variables

Chpt The Binomial Distribution

Binomial Random Variables. Binomial Random Variables

The Binomial Distribution

Binomial and Geometric Distributions

6. THE BINOMIAL DISTRIBUTION

Section Distributions of Random Variables

Midterm Exam III Review

A random variable is a quantitative variable that represents a certain

AP Stats. Review. Mrs. Daniel Alonzo & Tracy Mourning Sr. High

8.1 Binomial Distributions

8.1 Binomial Situations

Chapter 6: Random Variables

Chapter 5: Discrete Probability Distributions

Stat511 Additional Materials

Probability is the tool used for anticipating what the distribution of data should look like under a given model.

The binomial distribution p314

CHAPTER 6 Random Variables

Binomial distribution

Stats CH 6 Intro Activity 1

Chapter 17 Probability Models

Example - Let X be the number of boys in a 4 child family. Find the probability distribution table:

MAKING SENSE OF DATA Essentials series

OCR Statistics 1. Discrete random variables. Section 2: The binomial and geometric distributions. When to use the binomial distribution

STAT 201 Chapter 6. Distribution

Chapter 5. Sampling Distributions

Math 14 Lecture Notes Ch. 4.3

AP Statistics Test 5

Transcription:

CHAPTER 6 Random Variables 6.3 Binomial and Geometric Random Variables The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers

Binomial and Geometric Random Variables Learning Objectives After this section, you should be able to: DETERMINE whether the conditions for using a binomial random variable are met. COMPUTE and INTERPRET probabilities involving binomial distributions. CALCULATE the mean and standard deviation of a binomial random variable. INTERPRET these values in context. FIND probabilities involving geometric random variables. When appropriate, USE the Normal approximation to the binomial distribution to CALCULATE probabilities. (*Not required for the AP Statistics Exam) The Practice of Statistics, 5 th Edition 3

Binomial Settings When the same chance process is repeated several times, we are often interested in whether a particular outcome does or doesn t happen on each repetition. Some random variables count the number of times the outcome of interest occurs in a fixed number of repetitions. They are called binomial random variables. A binomial setting arises when we perform several independent trials of the same chance process and record the number of times that a particular outcome occurs. The four conditions for a binomial setting are: B Binary? The possible outcomes of each trial can be classified as success or failure. Independent? Trials must be independent; that is, knowing the result of one trial must not tell us anything about the result of any other trial. Number? The number of trials n of the chance process must be fixed in advance. Success? There is the same probability p of success on each trial. I N S The Practice of Statistics, 5 th Edition 4

Binomial Random Variables Consider tossing a coin n times. Each toss gives either heads or tails. Knowing the outcome of one toss does not change the probability of an outcome on any other toss. If we define heads as a success, then p is the probability of a head and is 0.5 on any toss. The number of heads in n tosses is a binomial random variable X. The probability distribution of X is called a binomial distribution. The count X of successes in a binomial setting is a binomial random variable. The probability distribution of X is a binomial distribution with parameters n and p, where n is the number of trials of the chance process and p is the probability of a success on any one trial. The possible values of X are the whole numbers from 0 to n. The Practice of Statistics, 5 th Edition 5

Dice, cars, and hoops Problem: Determine whether the random variables below have a binomial distribution. Justify your answer. a) Roll a fair die 10 times and let X = the number of sixes. Binary? Yes; success = six, failure = not a six. Independent? Yes; knowing the outcomes of past rolls tells you nothing about the outcomes of future rolls. Number? Yes; there are n = 10 trials. Success? Yes; the probability of success is always p = 1/6. This is a binomial setting. The number of sixes X is a binomial random variable with n = 10 and p = 1/6. Just as we describe a Normal distribution by writing N(μ,σ), a binomial distribution can be described by writing B(n, p). This binomial distribution would be described as B(10, 1 6 ) The Practice of Statistics, 5 th Edition 6

Dice, cars, and hoops Problem: Determine whether the random variables below have a binomial distribution. Justify your answer. b) Shoot a basketball 20 times from various distances on the court. Let Y = number of shots made. Binary? Yes; success = make the shot, failure = miss the shot. Independent? Yes; evidence suggests that it is reasonable to assume that knowing the outcome of a shot tells us nothing about the outcome of other shots. Number? Yes; there are n = 20 trials. Success? No; the probability of success changes because the shots are taken from various distances. Because the probability of success is not constant, Y is not a binomial random variable. The Practice of Statistics, 5 th Edition 7

Dice, cars, and hoops Problem: Determine whether the random variables below have a binomial distribution. Justify your answer. c) Observe the next 100 cars that go by and let C = color. Binary? No. There are more than two possible colors. Independent? Yes, knowing the color of one car tells you nothing about the color of other cars. Number? Yes; there are n = 100 trials. Success? A success hasn t been defined, so we cannot determine if the probability of success is always the same. Because there are more than two possible outcomes, C is not a binomial random variable. The Practice of Statistics, 5 th Edition 8

Binomial Probabilities In a binomial setting, we can define a random variable (say, X) as the number of successes in n independent trials. We are interested in finding the probability distribution of X. Each child of a particular pair of parents has probability 0.25 of having type O blood. Genetics says that children receive genes from each of their parents independently. If these parents have 5 children, the count X of children with type O blood is a binomial random variable with n = 5 trials and probability p = 0.25 of a success on each trial. In this setting, a child with type O blood is a success (S) and a child with another blood type is a failure (F). What s P(X = 2)? P(SSFFF) = (0.25)(0.25)(0.75)(0.75)(0.75) = (0.25) 2 (0.75) 3 = 0.02637 However, there are a number of different arrangements in which 2 out of the 5 children have type O blood: SSFFF SFSFF SFFSF SFFFS FSSFF FSFSF FSFFS FFSSF FFSFS FFFSS Verify that in each arrangement, P(X = 2) = (0.25) 2 (0.75) 3 = 0.02637 Therefore, P(X = 2) = 10(0.25) 2 (0.75) 3 = 0.2637 The Practice of Statistics, 5 th Edition 9

Rolling doubles In many games involving dice, rolling doubles is desirable. Rolling doubles means that the outcomes of two dice are the same, such as 1 and 1 or 5 and 5. The probability of rolling doubles when rolling two dice is 6/36 = 1/6. If X = the number of doubles in 4 rolls of two dice, then X is binomial with n = 4 and p = 1/6. Problem: Build a binomial probability distribution. What is P(X = 0)? That is, what is the probability that all 4 rolls are not doubles? Because the probability of not getting doubles on a particular roll is 1 1/6 = 5/6, P(X = 0) = P(FFFF) = (5/6)(5/6)(5/6)(5/6) = (5/6) 4 = 0.482. (Note: F represents a failure and S represents a success.) What is P(X = 1)? There are four different ways to roll doubles 1 time in 4 tries. The doubles could occur on the first try (SFFF), the second try (FSFF), the third try (FFSF), or the fourth try (FFFS). Thus, the probability of rolling doubles 1 time in 4 attempts is P(X = 1) = 4(1/6)(5/6) 3 = 0.386. Value: 0 1 2 3 4 Probability: 0.482 0.386 0.116 0.015 0.001 The Practice of Statistics, 5 th Edition 10

Binomial Coefficient Note, in the previous example, any one arrangement of 2 S s and 3 F s had the same probability. This is true because no matter what arrangement, we d multiply together 0.25 twice and 0.75 three times. We can generalize this for any setting in which we are interested in k successes in n trials. That is, P(X = k) = P(exactly k successes in n trials) = number of arrangements p k (1- p) n-k The number of ways of arranging k successes among n observations is given by the binomial coefficient for k = 0, 1, 2,, n where and 0! = 1. n = k n! k!( n k)! n! = n(n 1)(n 2) (3)(2)(1) The Practice of Statistics, 5 th Edition 11

The Binomial Coefficient The ways that exactly 2 of 4 die rolls are doubles: 4 2 = 4! 2! 4 2! = 4! 2! 2! = 4 x 3 x 2 x 1 2 x 1 x 2 x 1 = 4 x 3 2 x 1 = 6 Factorials can be found under MATH PRB 4!/(2!2!) Don t forget the parentheses! This is also the same thing as a COMBINATION (which differs from a PERMUTATION because order does not matter in a combination) so you can also use ncr also under MATH PRB 4 MATH PRB ncr 2 The Practice of Statistics, 5 th Edition 12

Binomial Probability Formula The binomial coefficient counts the number of different ways in which k successes can be arranged among n trials. The binomial probability P(X = k) is this count multiplied by the probability of any one specific arrangement of the k successes. Binomial Probability If X has the binomial distribution with n trials and probability p of success on each trial, the possible values of X are 0, 1, 2,, n. If k is any one of these values, P( X n k k n k = k) = p (1 p) Number of arrangements of k successes Probability of k successes Probability of n-k failures The Practice of Statistics, 5 th Edition 13

How to Find Binomial Probabilities How to Find Binomial Probabilities Step 1: State the distribution and the values of interest. Specify a binomial distribution with the number of trials n, success probability p, and the values of the variable clearly identified. Step 2: Perform calculations show your work! Do one of the following: (i) Use the binomial probability formula to find the desired probability; or (ii) Use binompdf or binomcdf command and label each of the inputs. Step 3: Answer the question. The Practice of Statistics, 5 th Edition 14

Example: How to Find Binomial Probabilities Each child of a particular pair of parents has probability 0.25 of having blood type O. Suppose the parents have 5 children (a) Find the probability that exactly 3 of the children have type O blood. Let X = the number of children with type O blood. We know X has a binomial distribution with n = 5 and p = 0.25. 5 3 2 3 2 P( X = 3) = (0.25) (0.75) = 10(0.25) (0.75) = 0.08789 3 (b) Should the parents be surprised if more than 3 of their children have type O blood? To answer this, we need to find P(X > 3). P( X 3) 5 = (0.25) 4 = = P( X 5(0.25) 4 = 4) + 4 (0.75) (0.75) 1 P( X 1 5) 5 + (0.25) 5 + 1(0.25) = 0.01465 + 0.00098 = = 5 (0.75) 0.01563 5 (0.75) 0 0 Since there is only a 1.5% chance that more than 3 children out of 5 would have Type O blood, the parents should be surprised! The Practice of Statistics, 5 th Edition 15

The Last Kiss Do people have a preference for the last thing they taste? Researchers at the University of Michigan designed a study to find out. The researchers gave 22 students five different Hershey s Kisses (milk chocolate, dark chocolate, crème, caramel, and almond) in random order and asked the student to rate each one. Participants were not told how many Kisses they would be tasting. However, when the 5 th and final Kiss was presented, participants were told that it would be their last one. Of the 22 students, 14 of them gave the final Kiss the highest rating. Problem: Assume that the participants in the study don t have a special preference for the last thing they taste. That is, assume that the probability a person would prefer the last Kiss tasted is p = 0.20. (a) What is the probability that exactly 5 of the 22 participants would prefer the last Kiss they tried? (a) Step 1: State the distribution and the values of interest. Let X = the number of participants who prefer the last Kiss they taste. X has a binomial distribution with n = 22 and p = 0.20. We want to find P(X = 5). Step 2: Perform calculations show your work! P X = 5 = command binompdf(trials:22, p:0.20, x value:5) gives 0.1898. 22 5 (0. 20)5 (0. 80) 17 = 0.1898. Using technology: The Step 3: Answer the question. There is about a 19% chance that exactly 5 participants would choose the last Kiss, assuming that they have no special preference for the last thing they taste. The Practice of Statistics, 5 th Edition 16

The Last Kiss Do people have a preference for the last thing they taste? Researchers at the University of Michigan designed a study to find out. The researchers gave 22 students five different Hershey s Kisses (milk chocolate, dark chocolate, crème, caramel, and almond) in random order and asked the student to rate each one. Participants were not told how many Kisses they would be tasting. However, when the 5 th and final Kiss was presented, participants were told that it would be their last one. Of the 22 students, 14 of them gave the final Kiss the highest rating. Problem: Assume that the participants in the study don t have a special preference for the last thing they taste. That is, assume that the probability a person would prefer the last Kiss tasted is p = 0.20. (b) What is the probability that 14 or more of the 22 participants would prefer the last Kiss they tried? Step 1: State the distribution and the values of interest. Let X = the number of participants who prefer the last Kiss they taste. X has a binomial distribution with n = 22 and p = 0.20. We want to find P(X 14). Step 2: Perform calculations show your work! P(X 14) = 1 P(X 13) =1 [P(X = 1)+ +P(X = 13)]. Using technology: The command 1 binomcdf(trials:22, p:0.20, x value:13) gives 0.00001. Step 3: Answer the question. There is about a 0.001% chance that 14 or more participants would choose the last Kiss, assuming that they have no special preference for the last thing they taste. Because this probability is so small, there is convincing evidence that the participants have a preference for the last thing they taste. It is almost impossible to get 14 or more just by chance. The Practice of Statistics, 5 th Edition 17

Mean and Standard Deviation of a Binomial Distribution We describe the probability distribution of a binomial random variable just like any other distribution by looking at the shape, center, and spread. Consider the probability distribution of X = number of children with type O blood in a family with 5 children. Shape: The probability distribution of X is skewed to the right. It is more likely to have 0, 1, or 2 children with type O blood than a larger value. Center: The median number of children with type O blood is 1. Based on our formula for the mean: m X = åx i p i = (0)(0.2373) +1(0.39551) +...+ (5)(0.00098) =1.25 Spread: The variance of X is s 2 X = å (x i -m X ) 2 p i = (0-1.25) 2 (0.2373) + (1-1.25) 2 (0.3955) +...+ (5-1.25) 2 (0.00098) = 0.9375 The standard deviation of X is s X = 0.9375 = 0.968 x i 0 1 2 3 4 5 p i 0.2373 0.3955 0.2637 0.0879 0.0147 0.00098 The Practice of Statistics, 5 th Edition 18

Mean and Standard Deviation of a Binomial Distribution Mean and Standard Deviation of a Binomial Random Variable If a count X has the binomial distribution with number of trials n and probability of success p, the mean and standard deviation of X are m X = np s X = np(1- p) Note: These formulas work ONLY for binomial distributions. They can t be used for other distributions! The Practice of Statistics, 5 th Edition 19

Mean and Standard Deviation of a Binomial Distribution We describe the probability distribution of a binomial random variable just like any other distribution by looking at the shape, center, and spread. Consider the probability distribution of X = number of children with type O blood in a family with 5 children. x i 0 1 2 3 4 5 p i 0.2373 0.3955 0.2637 0.0879 0.0147 0.00098 μ X = np = 5 0.25 = 1.25 σ X = np(1. p) = 1.25(0.75) = 0.968 Shape: The probability distribution of X is skewed to the right. It is more likely to have 0, 1, or 2 children with type O blood than a larger value. Center: The median number of children with type O blood is 1. Based on our formula for the mean: m X = åx i p i = (0)(0.2373) +1(0.39551) +...+ (5)(0.00098) =1.25 s 2 X = å (x i -m X ) 2 p i = (0-1.25) 2 (0.2373) + (1-1.25) 2 (0.3955) +...+ (5-1.25) 2 (0.00098) = 0.9375 s X = 0.9375 = 0.968 The Practice of Statistics, 5 th Edition 20

Example: Mean and Standard Deviation Mr. Bullard s 21 AP Statistics students did the Activity on page 340. If we assume the students in his class cannot tell tap water from bottled water, then each has a 1/3 chance of correctly identifying the different type of water by guessing. Let X = the number of students who correctly identify the cup containing the different type of water. Find the mean and standard deviation of X. Since X is a binomial random variable with parameters n = 21 and p = 1/3, we can use the formulas for the mean and standard deviation of a binomial random variable. m X = np = 21(1/3) = 7 We d expect about one-third of his 21 students, about 7, to guess correctly. s X = np(1- p) = 21(1/3)(2/3) = 2.16 If the activity were repeated many times with groups of 21 students who were just guessing, the number of correct identifications would differ from 7 by an average of 2.16. The Practice of Statistics, 5 th Edition 21

Rolling doubles If X = number of doubles in 4 attempts, then X follows a binomial distribution with n = 4 and p = 1/6. Here is the probability distribution. Value: 0 1 2 3 4 Probability: 0.482 0.386 0.116 0.015 0.001 The mean of this distribution is μ X = np = 4 1 Τ6 = 0.667. If many students were to attempt to roll doubles four times, the average number of doubles would be about (0.667). The standard deviation is np(1 p) = (4)( 1 Τ6)( 5 Τ6) = 0.746. If many students were to attempt to roll doubles four times, the number of doubles would typically vary by about 0.746 from the mean (0.667). The Practice of Statistics, 5 th Edition 22

Dead batteries Almost everyone has one a drawer that holds miscellaneous batteries of all sizes. Suppose that your drawer contains 8 AAA batteries but only 6 of them are good. You need to choose 4 for your graphing calculator. If you randomly select 4 batteries, what is the probability that all 4 of them will work? Does this meet the requirements for the binomial setting? No. It is not independent, because we are sampling without replacement. If we were to proceed anyway, we would find the probability to be: P X = 4 = 4 4 0.75 4 (0.25) 0 = 0.3164 The actual probability is: 6 8 5 7 4 6 3 5 = 0.2143 With a small change in each probability, the binomial approximates the true total probability very well, but these four probabilities change significantly. How can we test to see when the binomial is appropriate? The Practice of Statistics, 5 th Edition 23

Binomial Distributions in Statistical Sampling The binomial distributions are important in statistics when we wish to make inferences about the proportion p of successes in a population. Almost all real-world sampling, such as taking an SRS from a population of interest, is done without replacement. However, sampling without replacement leads to a violation of the independence condition. When the population is much larger than the sample, a count of successes in an SRS of size n has approximately the binomial distribution with n equal to the sample size and p equal to the proportion of successes in the population. 10% Condition When taking an SRS of size n from a population of size N, we can use a binomial distribution to model the count of successes in the sample as long as n 1 10 N The Practice of Statistics, 5 th Edition 24

Binomial and Geometric Random Variables Section Summary In this section, we learned how to DETERMINE whether the conditions for using a binomial random variable are met. COMPUTE and INTERPRET probabilities involving binomial distributions. CALCULATE the mean and standard deviation of a binomial random variable. INTERPRET these values in context. The Practice of Statistics, 5 th Edition 25

PAGE 410 70, 74, 76, 78 82, 84, 88 HOMEWORK The Practice of Statistics, 5 th Edition 26