Each trial has only two possible outcomes success and failure. The possible outcomes are exactly the same for each trial.

Similar documents
EXAM. Exam #1. Math 3342 Summer II, July 21, 2000 ANSWERS

Discrete Distributions

Week 6, 9/24/12-9/28/12, Notes: Bernoulli, Binomial, Hypergeometric, and Poisson Random Variables

Independence 1 2 P(H) = 1 4. On the other hand = P(F ) =

The probability of an event is viewed as a numerical measure of the chance that the event will occur.

(b). What is an expression for the exact value of P(X = 4)? 2. (a). Suppose that the moment generating function for X is M (t) = 2et +1 3

HYPERGEOMETRIC and NEGATIVE HYPERGEOMETIC DISTRIBUTIONS

Class 26: review for final exam 18.05, Spring 2014

Bernoulli and Binomial Distributions. Notes. Bernoulli Trials. Bernoulli/Binomial Random Variables Bernoulli and Binomial Distributions.

Some Special Discrete Distributions

1. Rolling a six sided die and observing the number on the uppermost face is an experiment with six possible outcomes; 1, 2, 3, 4, 5 and 6.

Section 2.4 Bernoulli Trials

AP Statistics Ch 6 Probability: The Study of Randomness

What is Probability? Probability. Sample Spaces and Events. Simple Event

Exam III #1 Solutions

UNIT 4 MATHEMATICAL METHODS SAMPLE REFERENCE MATERIALS

Notes for Math 324, Part 17

Chapter 5 : Probability. Exercise Sheet. SHilal. 1 P a g e

ELEG 3143 Probability & Stochastic Process Ch. 2 Discrete Random Variables

Math 2311 Test 1 Review. 1. State whether each situation is categorical or quantitative. If quantitative, state whether it s discrete or continuous.

PLEASE MARK YOUR ANSWERS WITH AN X, not a circle! 1. (a) (b) (c) (d) (e) 2. (a) (b) (c) (d) (e) (a) (b) (c) (d) (e) 4. (a) (b) (c) (d) (e)...

success and failure independent from one trial to the next?

Chapter 7: Section 7-1 Probability Theory and Counting Principles

HW on Ch Let X be a discrete random variable with V (X) = 8.6, then V (3X+5.6) is. V (3X + 5.6) = 3 2 V (X) = 9(8.6) = 77.4.

Chapter 3: Probability 3.1: Basic Concepts of Probability

Example. What is the sample space for flipping a fair coin? Rolling a 6-sided die? Find the event E where E = {x x has exactly one head}

Discrete Distributions

Probability and Statistics Notes

Stats Review Chapter 6. Mary Stangler Center for Academic Success Revised 8/16

CHAPTER 3 PROBABILITY TOPICS

Probabilistic models

This exam is closed book and closed notes. (You will have access to a copy of the Table of Common Distributions given in the back of the text.

Part 3: Parametric Models

Chapter 4 : Discrete Random Variables

Notes slides from before lecture. CSE 21, Winter 2017, Section A00. Lecture 16 Notes. Class URL:

CSC Discrete Math I, Spring Discrete Probability

Binomial and Poisson Probability Distributions

UC Berkeley Department of Electrical Engineering and Computer Science. EE 126: Probablity and Random Processes. Solutions 5 Spring 2006

CSE 103 Homework 8: Solutions November 30, var(x) = np(1 p) = P r( X ) 0.95 P r( X ) 0.

Probabilistic models

Statistics for Managers Using Microsoft Excel/SPSS Chapter 4 Basic Probability And Discrete Probability Distributions

3.2 Probability Rules

Math 151. Rumbos Fall Solutions to Review Problems for Exam 2. Pr(X = 1) = ) = Pr(X = 2) = Pr(X = 3) = p X. (k) =

Question 2 We saw in class that if we flip a coin K times, the the distribution in runs of success in the resulting sequence is equal to

Practice Questions: Statistics W1111, Fall Solutions

Lecture 20 Random Samples 0/ 13

6.3 Bernoulli Trials Example Consider the following random experiments

Discrete Distributions

Probability and Probability Distributions. Dr. Mohammed Alahmed

Chapter 8: Confidence Intervals

Event A: at least one tail observed A:

Chapter. Probability

Total. Name: Student ID: CSE 21A. Midterm #2. February 28, 2013

CONTINUOUS RANDOM VARIABLES

Expectations. Definition Let X be a discrete rv with set of possible values D and pmf p(x). The expected value or mean value of X, denoted by E(X ) or

Chapter 17 Probability Models

Mutually Exclusive Events

Geometric Distribution The characteristics of a geometric experiment are: 1. There are one or more Bernoulli trials with all failures except the last

4/17/2012. NE ( ) # of ways an event can happen NS ( ) # of events in the sample space

Chapter 15 Sampling Distribution Models

What is a random variable

1 The Basic Counting Principles

p. 4-1 Random Variables

Exam 2 Review Math 118 Sections 1 and 2

IEOR 3106: Introduction to Operations Research: Stochastic Models. Professor Whitt. SOLUTIONS to Homework Assignment 1

5.3 Conditional Probability and Independence

Chapter 7: Theoretical Probability Distributions Variable - Measured/Categorized characteristic

I - Probability. What is Probability? the chance of an event occuring. 1classical probability. 2empirical probability. 3subjective probability

STA Module 4 Probability Concepts. Rev.F08 1

Chapter (4) Discrete Probability Distributions Examples

Discrete Random Variables

PROBABILITY.

Announcements. Lecture 5: Probability. Dangling threads from last week: Mean vs. median. Dangling threads from last week: Sampling bias

( ) P A B : Probability of A given B. Probability that A happens

TOPIC 12 PROBABILITY SCHEMATIC DIAGRAM

MA 250 Probability and Statistics. Nazar Khan PUCIT Lecture 15

Year 10 Mathematics Probability Practice Test 1

Introduction to probability

MATH 3C: MIDTERM 1 REVIEW. 1. Counting

MAT 271E Probability and Statistics

Conditional Probability (cont'd)

Lecture 6. Probability events. Definition 1. The sample space, S, of a. probability experiment is the collection of all

7.1: What is a Sampling Distribution?!?!

The Geometric Distribution

Chapter 3 Probability Distribution

CS 237: Probability in Computing

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 2 MATH00040 SEMESTER / Probability

STA 2023 EXAM-2 Practice Problems From Chapters 4, 5, & Partly 6. With SOLUTIONS

Exercises in Probability Theory Paul Jung MA 485/585-1C Fall 2015 based on material of Nikolai Chernov

Probability (10A) Young Won Lim 6/12/17

Example 1. The sample space of an experiment where we flip a pair of coins is denoted by:

PRACTICE PROBLEMS FOR EXAM 1

BINOMIAL DISTRIBUTION

Math 183 Statistical Methods

Special Mathematics Discrete random variables

Chapter 2.5 Random Variables and Probability The Modern View (cont.)

Introduction to Probability, Fall 2009

Discrete Random Variables

Problem # Number of points 1 /20 2 /20 3 /20 4 /20 5 /20 6 /20 7 /20 8 /20 Total /150

Chapter 2: Discrete Distributions. 2.1 Random Variables of the Discrete Type

Transcription:

Section 8.6: Bernoulli Experiments and Binomial Distribution We have already learned how to solve problems such as if a person randomly guesses the answers to 10 multiple choice questions, what is the probability that they will get all 10 correct? or what is the probability that they will get none correct?. We can even answer the questions what is the probability that they will get at least one correct? and what is the probability that they will get at least one wrong? using the complement rule. There are a number of events on the spectrum between getting all of the questions correct and getting all of them wrong. In this section, we will answers questions such as what is the probability that the person will get exactly three correct? or what is the probability that they will get at least three correct?. The situation above fits the criteria for a type of experiment called a Bernoulli Experiment with (in this case) 10 trials. These experiments involve repeated independent trials of an experiment with 2 outcomes called success and failure for the purposes of abstraction. The criteria for a Bernoulli experiment with n trials are shown below. Bernoulli Experiment with n Trials The experiment is repeated a fixed number of times (n times). Each trial has only two possible outcomes success and failure. The possible outcomes are exactly the same for each trial. The probability of success remains the same for each trial. We use p for the probability of success (on each trial) and q = 1 p for the probability of failure. The trials are independent (The outcome of previous trials has no influence on the outcome of the next trial). We are interested in the random variable X where X = the number of successes. Note the possible values of X are 0, 1, 2,,..., n. Examples 1. We flip a coin 12 times and count the number of heads. Here n = 12. Each flip is a trial. It is reasonable to assume the trials are independent. Each trial has two outcomes heads (success) and tails (failure). The probability of success on each trial is p = 1/2 and the probability of failure is q = 1 1/2 = 1/2. We are interested in the variable X which counts the number of successes in 12 trials. This is an example of a Bernoulli Experiment with 12 trials. 2. A basketball player takes four independent free throws with a probability of 0.7 of getting a basket on each shot. The number of baskets made is recorded. Here each free throw is a trial and trials are assumed to be independent. Each trial has two outcomes basket (success) or no basket (failure). The probability of success is p = 0.7 and the probability of failure is q = 1 p = 0.. We are interested in the variable X which counts the number of successes in 4 trials. This is an example of a Bernoulli experiment with 4 trials.. An urn contains 6 red marbles and 4 blue marbles. Five marbles are drawn from the urn without replacement and the number of red marbles is observed. We might let a trial here consist of drawing a marble from the urn and let success be getting a red. However, this is not a Bernoulli experiment since the trials are not independent (because the mix of reds and blues changes on each trial since we do not replace the marble) and the probability of success and failure vary from trial to trial. 1

4. An urn contains 6 red marbles and 4 blue marbles. A marble is drawn at random from the urn, its color is noted and then it is replaced. Five marbles are drawn from the urn in this way (with replacement) and the number of red marbles is observed. This is repeated five times. This is a Bernoulli experiment where each time we draw a marble from the urn constitutes one trial. Trials are independent since we draw randomly from the urn and the probability of success (getting a red) is the same on each trial p = 6/10 since we replace the marble after each draw. We are interested in the number of successes in five trials of this experiment. Our next goal is to calculate the probability distribution for the random variable X, where X counts the number of successes in a Bernoulli experiment with n trials. We will start with a simple example for which a tree diagram can be drawn, in fact we have already looked at a specific case of this example when we studied tree diagrams. Example A basketball player takes 4 independent free throws with a probability of 0.7 of getting a basket on each shot. Let X = the number of baskets he gets. (a) Use the tree diagram below to find the probability that he gets exactly 2 baskets or P (X = 2). B = gets a basket, M = misses. 0.7 0. B 0.7 0. M 0.7 0. B 0.7 0. M 0.7 0. B 0.7 0. M 0.7 0. B M B M B M B M 0.7 0. 0.7 0. 0.7 0. 0.7 0. 0.7 0. 0.7 0. 0.7 0. 0.7 0. B M B M B M B M B M B M B M B M P (X = 2) = C(4, 2)(0.7) 2 (0.) 2 = 0.2646 2

In general we have the following: If X is the number of success in a Bernoulli experiment with n independent trials, where the probability of success is p in each trial (and the probability of failure is then q = 1 p), then P r(x = k) = C(n, k)p k q n k = ( ) n p k q n k k for k = 0, 1, 2,, n. [ We can see why this is true if we visualize a tree diagram for the n independent trials. The number of paths with exactly k success(out of n trials) is C(n, k) and the probability of every such path equals p k q n k. The event that X = k can result from any one of these outcomes(paths), hence the P (X = k) is the sum of the probabilities of all paths with exactly k successes which is C(n, k)p k q n k. ] Example A basketball player takes 4 independent free throws with a probability of 0.7 of getting a basket on each shot. Let X = the number of baskets he gets. Write out the full probability distribution for X. X 0 1 2 4 P(X) X P(X) 0 C(4, 0)(0.7) 0 (0.) 4 0.0081 1 C(4, 1)(0.7) 1 (0.) 0.0756 2 C(4, 2)(0.7) 2 (0.) 2 0.2646 C(4, )(0.7) (0.) 1 0.4116 4 C(4, 4)(0.7) 4 (0.) 0 0.2401 Note 0.0081+0.0756+0.2646+0.4116+0.2401 = 1 Binomial Random Variables For a Bernoulli experiment with n trials, let X denote the number of successes in the n trials, where the probability of success in each trial is p. The distribution of random variable X is called a binomial distribution with parameters n and p. The expected value of X is E(X) = np and the standard deviation of X is σ(x) = npq where q = 1 p. Example If a basketball player takes 8 independent free throws with a probability of 0.7 of getting a basket on each shot, what is the probability that he gets exactly 6 baskets? C(8, 6)(0.7) 6 (0.) 2 = 0.29647548

Example A student is given a multiple choice exam with 10 questions, each question has five possible answers. The student guesses each of the answers randomly. (a) What is the probability that the student will get exactly 6 of the questions correct? n = 10, k = 6, p = 1 5 = 0.2, so C(10, 6)(0.2)6 (0.8) 4 = 0.005505024 (b) What is the probability that the student will get at least 6 of the questions correct and will pass the class? C(10, 6)(0.2) 6 (0.8) 4 +C(10, 7)(0.2) 7 (0.8) +C(10, 8)(0.2) 8 (0.8) 2 +C(10, 9)(0.2) 9 (0.8) 1 + C(10, 10)(0.2) 10 (0.8) 0 = 0.00669824. (c) What is the expected number of correct answers that will result from this student s strategy? What is the expected standard deviation? E(X) = np = 10 0.2 = 2, σ(x) = npq = 10 0.2 0.8 = 1.6 1.2649110641 Example Assume that the Phillies and the Yankees are in the world series, that the Phillies have a /5 chance of winning any given game, and that the games are independent experiments. What is the probability of a 7 game series. Note A seven game series will occur only when each team wins of the first 6 games. A seven game series will occur whenever the Phillies win exactly of the first 6 games. The probability of this is C(6, )(0.6) (0.4) = 0.27648. It is also true that a seven game series will occur whenever the Yankees win exactly of the first 6 games. The probability of this is C(6, )(0.4) (0.6). Example (Quality Control) The Everlasting Lightbulb company produces lightbulbs, which are packaged in boxes of 20 for shipment. Tests have shown that 4% of their lightbulbs are defective. (a) What is the probability that a box, ready for shipment, contains exactly defective lightbulbs? C(20, )(0.04) (0.96) 17 = 0.06449855. (b) What is the probability that the box, contains or more defective lightbulbs? 4

1 ( C(20, 2)(0.04) 2 (0.96) 18 + C(20, 1)(0.04) 1 (0.96) 19 + C(20, 0)(0.04) 0 (0.96) 20) = 1 0.956172094 = 0.048627906. We can also compute the expected number of defective bulbs, E(X) = 20 0.04 = 0.8, and the expected standard deviation, σ(x) = 20 0.04 0.96 0.87656092. 5

Extras: Using Your Calculator (b) What is the expected number of smokers in your sample? Let X be a binomial Using random the TI: variable where n = 4 and p = 1/. We can use a TI-8 calculator to The TI steps for finding the probability of getting exactly three successes, that is P(X = ), and calculate P (x = ) Example: for finding Assume the probability that the proportion at most 2 successes, of people who respectively, smoke in are: the U.S. population is.2. (a) If you take a random sample of 10 people from the U.S. population, and let X denote the Number of smokers in your sample, what is the probability that the number of smokers in your sample is 5, that is P(X = 5)? (b) What is the expected number of smokers in your sample? Using the TI: The TI steps for finding the probability of getting exactly three successes, that is P(X = ), and for finding the probability at most 2 successes, respectively, are: There are two choices for the binomial distribution on your calculator, binomialpdf and binomialcdf. binomialpdf(4, 1/, ) gives P (x = ), when x is binomial with n =, p = 1/ and k =. binomialcdf(4, 1/, ) gives P (x ) when x is binomial with n =, p = 1/ and k =. pdf means probability density function whereas cdf means cumulative density function. We can also calculate P (x 2) when n = 4, and p = 1 as follows: Chapter 7 --- 6 The directions for different models of TI calculators can be found online. Chapter 7 --- 6 Although taking a random sample for polling from a population is much line drawing marbles from an urn without replacement, if the population is very large, the chemistry of the population does not change very much from trial to trial if we do not replace the subjects. Therefore we can use the binomial distribution as a good approximation to the distribution of the random variable X in the following experiment. Example Suppose that the voting population in Utopia is 00 million and 60% of the voting population intend to vote for Melinda McNulty in the next election. We take a random sample of size 100 from the same voting population and ask each person chosen whether they will vote for Melinda McNulty in the next election or not. Let X be the number of yes in our sample. The possible values of X(The number of successes) are 0, 1, 2,,, 100. n = 100, p = 0.6, q = 1 p = 0.4. You may use your calculator to calculate the following: (a) What is P (X = 60)? 6

(b) What is P (X 20)? (c) What is P (X > 70)? (d) What is P (X < 50)? (e) What is P (50 X 60)? P (X = 60) = 0.081219145; P (X 20) =.4204584166077E 016 P (X > 70) = 0.014775182 P (X < 50) = 0.0167616865 P (50 X 60) = 0.5211629726 Extras : ESP Test Zener Cards One controversial test for ESP involves using a deck of Zener cards. This deck consists of 5 copies of the 5 cards shown below. The tester (sender) shuffles the 25 cards thoroughly, looks at the one on top of the deck and sends the information to the receiver (the person being tested for E.S.P.), without letting them see the card of course. This process is repeated many times. Many of the early results about the test were controversial because of flaws in how the test was conducted and miscalculation of probabilities Zener Cards Skepticism. In this online version: Zener Test, you have to guess 25 cards, each of which is selected randomly by the computer prior to your guess. The actual card will be shown after you click on your chosen symbol. To show evidence of ESP, you need to score at least 10 correct guesses (hits). If the selection of the card is random, this is a Bernoulli Experiment with 25 trials and a probability of p = 0.2 of success(correct guess) in each. (a) What is the expected number of correct answers in the above test if the person taking the test is guessing? E(X) = 25 (0.2) = 2. 7

(b) Use your calculator to find P (X 10)? 0.01718695 (c) Approximately how many students in a class of 100 would you expect to get a score of 10 or greater on this test by randomly guessing? 100 P (X 10) = 100 0.01718695 = 1.718695 so 1 or 2. 8

Old Exam questions Recall the notation C(n, k) = ( ) n k 1 An Olympic pistol shooter has a 2 chance of hitting the target at each shot. Find the probability that he will hit exactly 10 targets in a game of 15 shots. ( 15 ( 15 ( 2 10 (a) 1 ) (d) ( 15 10)( 2 ) 10 ( 1 ) 5 (b) 10)( 2 ) 5 ( 1 ) 10 (e) 1 - ( 1 (b) is hits exactly 10 targets out of 15 shots (d) is hits exactly 5 targets out of 15 shots (a) is does not hit exactly 10 targets out of 15 shots (c) is hits 10 targets in his first 10 shots (e) is does not miss all 5 of his first 5 shots 10)( 2 ) 10 ( 1 ) 5 (c) ) 5 2 A random variable X is the number of successes in a Bernoulli experiment with n trials, each with a probability of success p and a probability of failure q. the probability distribution table of X is shown below: k Pr(X = k) 1 0 81 Which of the following values of n, p, q give rise to this probability distribution? 1 2 4 8 81 24 81 2 81 16 81 (a) n = 4, p = 2, q = 1 (b) n = 4, p = 1, q = 2 (c) n = 4, p = 1 6, q = 5 6 (d) n = 5, p = 1, q = 2 (e) n = 5, p = 2, q = 1 9

The listed probabilities add up to 1 so they are a probability distribution and therefore n = 4. P (X = 0) = C(4, 0)p 0 q 4 = q 4 so q = 1. Hence (a) is the right answer. Peter is taking a quiz with 6 multiple choice questions. Each question has five options for the answer. Peter, who hasn t studied for the quiz, randomly guesses at each answer. Which of the following gives the probability that Peter gets 2 questions or less correct? (a) 1 [( 6 0 ) (.2) 0 (.8) 6 + ( ) 6 1 (.2) 1 (.8) 5 + ( 6 2) (.2) 2 (.8) 4] (b) ( 6 ) 2 (.2) 2 (.8) 4 ( (c) 6 0) (.2) 0 (.8) 6 + ( ) 6 1 (.2) 1 (.8) 5 + ( 6 2) (.2) 2 (.8) 4 (d) (e) 1 [( ) 6 0 (.2) 0 (.8) 6 + ( ) 6 1 (.2) 1 (.8) 5] (b) is gets exactly 2 right (d) is gets exactly right (c) is gets 0,1 or 2 right (a) is does not get 0, 1 or 2 right (e) is does not get 0 or 1 right ( 6 ) (.2) (.8) 10