AP Statistics Chapter 8
Total Page:16
File Type:pdf, Size:1020Kb
Probability Models Chapter 16 Objectives: • Binomial Distribution – Conditions – Calculate binomial probabilities – Cumulative distribution function – Calculate means and standard deviations – Use normal approximation to the binomial distribution • Geometric Distribution – Conditions – Cumulative distribution function – Calculate means and standard deviations Bernoulli Trials • The basis for the probability models we will examine in this chapter is the Bernoulli 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. • Examples of Bernoulli Trials – Flipping a coin – Looking for defective products – Shooting free throws The Binomial Distribution The Binomial Model • 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). 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. Binomial Setting • Conditions required for a binomial distribution 1. Each observation falls into one of just two categories, “success” or “failure” (only two possible outcomes). 2. There are a fixed number n of observations. 3. The n observations are all independent. 4. The probability of success, called p, is the same for each observation. Definition: • Binomial Random Variable – The random variable X = number of successes produced in a binomial setting. – Examples: • The number of doubles in 4 rolls of a pair of dice (on each roll you either get doubles or you don’t). • The number of patients with type A blood in a random sample of 10 patients (either each person has type A blood or they don’t). Definition: • Binomial Distribution (model)– A class of discrete random variable distribution, where the count X = the number of successes, in the binomial setting with parameters n and p. – n is the number of observations – p is the probability of a success on any one observation. – Notation: B(n,p) Binomial Probability Number success observations Example • Blood type is inherited. If both parents carry genes for the O and A blood types, each child has probability 0.25 of getting two O genes and so of having blood type O. Different children inherit independently of each other. The number of O blood types among 5 children of these parents is the count X off successes in 5 independent observations. • How would you describe this with “B” notation? • X=B(5,.25) Example • Deal 10 cards from a shuffled deck and count the number X of red cards. These 10 observations, and each gives either a red or a black card. A “success” is a red card. • How would you describe this using “B” notation? • This is not a Binomial distribution because once you pull one card out, the probabilities change. Determining if a situation is (yes) or is not (no) binomial? 1. Surveying people by asking them what 1. NO they think of the current president. 2. Surveying 1012 people and recording 2. YES whether there is a “should not” response to this question: “do you think the cloning of humans should or should not be allowed?” 3. NO 3. Rolling a fair die 50 times. 4. YES 4. Rolling a fair die 50 times and finding the number of times that a 5 occurs. 5. Recording the gender of 250 newborn 5. YES babies. 6. Spinning a roulette wheel 12 times. 6. NO 7. Spinning a roulette wheel 12 times and 7. YES finding the number of times that the outcome is an odd number. Combinations - nCk • In n trials, there are n! C nk k!! n k ways to have k successes. – Read nCk as “n choose k.” • Note: n! = n (n – 1) … 2 1, and n! is read as “n factorial.” Binomial Formula • Binomial Coefficient – The number of ways of arranging k successes among n observations (combinations). – The binomial coefficient counts the number of ways in which k successes can be distributed among n observations. – is read “combinations n choose k” Binomial Coefficient • Uses factorial notation, for any positive whole number n, its factorial is – Also, – TI-83/84 can find the combination function under the math menu/prb. – Find = 10 Binomial Probability Model • If X has the binomial distribution with n observations and probability p of success on each observation, the possible values of X are 0, 1, 2,…,n. If k is any one of these values, The Binomial Model (cont.) Binomial probability model for Bernoulli trials: Binom(n,p) n = number of trials p = probability of success 1 – p = probability of failure = q k = # of successes in n trials n k nk P( X k ) p 1 p k Example: A biologist is studying a new hybrid tomato. It is known that the seeds of this hybrid tomato have probability 0.70 of germinating. The biologist plants 10 seeds. a) What is the probability that exactly 8 seeds will germinate? b) What is the probability that at least 8 seeds will germinate? Solution: Binomial Setting? 1. Each trial has only two 1. Yes outcomes, success or failure? 2. Fixed number of trials? 2. Yes 3. Trials are independent? 3. Yes 4. Probability of success is 4. Yes the same for each trial? Solution: a) We wish to find P(X = 8), the probability of exactly eight success. n=10 p=.7 (1-p)=.3 k=8 Solution: b) In this case, we are interested in the probability of 8 or more seeds germinating, P(X ≥ 8). P(X ≥ 8) = P(X = 8) + P(X = 9) + P(X = 10) P(X ≥ 8) = .233 + .121 + .028 P(X ≥ 8) = .382 Finding Binomial Probabilities using the TI-83/84 • pdf – Given a discrete random variable X, the probability distribution function (pdf) assigns a probability to each value of X. – Used to find binomial probabilities for single values of X (ie. X = 3). – Found under 2nd (DISTR)/0:binompdf – Input binompdf(n,p,X) for one value of X or binompdf(n,p,{X1,X2,…,Xn}) for multiple values of X. Finding Binomial Probabilities using the TI-83/84 • cdf – Given a discrete random variable X, the cumulative distribution function (cdf) calculates a cumulative probability from X=0 to and including a specified value of X. – Used to find binomial probabilities for an interval of values of X (ie. 0≤X≤3). – Found under 2nd (DISTR)/0:binomcdf – Input binomcdf(n,p,X) for interval X=0 up to and including X. Binomial Distributions on the calculator • Binomial Probabilities n k nk • B(n,p) with k successes pp1 • binompdf(n,p,k) k • Corinne makes 75% of her free throws. • What is the probability of 12 5 making exactly 7 of 12 .757 .25 free throws. • binompdf(12,.75,7)=.10327 Binomial Distributions on the calculator 12 75 12 6 6 • Binomial Probabilities .75 .25 .75 .25 76 • B(n,p) with k successes 12 5 7 12 4 8 • binomcdf(n,p,k) .75 .25 .75 .25 • Corinne makes 75% of 54 her free throws. 12 3 9 12 2 10 .75 .25 .75 .25 • What is the probability of 32 making at most 7 of 12 12 1 11 12 0 12 free throws. .75 .25 .75 .25 10 • binomcdf(12,.75,7)=.1576 Binomial Distributions on the calculator • Binomial Probabilities 12 75 12 8 4 • B(n,p) with k successes .75 .25 .75 .25 78 • binomcdf(n,p,k) 12 12 • Corinne makes 75% of her 9 3 10 2 .75 .25 .75 .25 free throws. 9 10 • What is the probability of 12 11 1 12 12 0 .75 .25 .75 .25 making at least 7 of 12 free 11 12 throws. • 1-binomcdf(12,.75,6) = .9456 Example: • A quality engineer selects an SRS of 10 switches from a large shipment for detailed inspection. Unknown to the engineer, 10% of the switches in the shipment fail to meet the specifications. 1. Let X be the number of bad switches in the sample, what is the distribution of X? • B(10,.1) 1. What is the probability of exactly two bad switches? • P(X = 2) • Binompdf(10,.1,2) • .1937 Continued 3. What is the probability that no more than 1 of the 10 switches in the sample fail inspection? • P(X ≤ 1) = P(X = 0) + P(X = 1) binomcdf (10,.1,1) P(X1) = .7361 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… The Normal Model to the Rescue! • 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 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.