the binomial probability distribution and related topics

79
The Binomial Probability Distribution and Related Topics

Upload: rodger-anderson

Post on 23-Dec-2015

253 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: The Binomial Probability Distribution and Related Topics

The Binomial Probability Distribution and Related Topics

Page 2: The Binomial Probability Distribution and Related Topics

Note: A quantitative variable x is a random variable if the value that x takes on in a

given experiment or observation is a chance or random outcome

Page 3: The Binomial Probability Distribution and Related Topics

Two types of random variable Discrete random variable: can take on only a finite number of values or a

countable number of values

Continuous random variable: can take on any of the countless number of values in a line interval

Page 4: The Binomial Probability Distribution and Related Topics

Example: Discrete random variable: number of students in my statistics class. I can

have 38, 34, 25, 20 students. I can NOT have 25.5 students.

Continuous random variable: Pumping air in a tire. I can have 0 psi, 20.125 psi, 33.5 psi, etc.

Page 5: The Binomial Probability Distribution and Related Topics

Group Activity: Identity discrete or continue random variable A) Measure the time when students, selected at random, submit college

applications.

B) Count the number of bad checks on a day selected at random.

C) Measure the amount of gasoline you put in a car when you fill up the tank.

D) Random sample of how many people voted in the Presidential Election

Page 6: The Binomial Probability Distribution and Related Topics

Answer A) Continuous random variable

B) Discrete random variable

C) Continuous Random Variable

D) Discrete random variable

Page 7: The Binomial Probability Distribution and Related Topics

Probability Distribution Probability distribution is an assignment of probabilities to each distinct

value of a discrete random variable or to each interval of values of a continuous random variable

Page 8: The Binomial Probability Distribution and Related Topics

Note: Features of the probability distribution of a discrete random variable

1) The probability distribution has a probability assigned to each distinct value of the random variable

2) The sum of all the assigned probabilities must be 1

Page 9: The Binomial Probability Distribution and Related Topics

Example of discrete probability distributionAP Calc BC Test Scores Number of subjects

1 5000

2 15000

3 32000

4 23000

A) Convert this chart into the probability distribution (relative frequency table) then graph it

B) P(3 or 4)=

Page 10: The Binomial Probability Distribution and Related Topics

Answer AAP Score X Probability P(X)

1 0.07

2 0.35

3 0.43

4 0.31

1 2 3 40

0.10.20.30.40.5

Probability distribution of AP Test scores

AP Score

Prob

abili

ty P

(X)

Page 11: The Binomial Probability Distribution and Related Topics

Answer B P(3 or 4) = P(3)+P(4)=.74

Page 12: The Binomial Probability Distribution and Related Topics

Group Activity: Frequencies of Alphabets in a 1000-Letter Sample

Letter Freq Prob Letter Freq ProbA 73 N 78B 9 O 74C 30 P 27D 44 Q 3E 130 R 77F 28 S 63G 16 T 93H 35 U 27I 74 V 13J 2 W 16K 3 X 5L 35 Y 19M 25 Z 1

Page 13: The Binomial Probability Distribution and Related Topics

Questions: A) Fill out the probability chart

B)do the probabilities of all the letters add up to 1?

C) If a letter is selected at random what is the probability that it will be a vowel?

Page 14: The Binomial Probability Distribution and Related Topics

A) Just do it

B) yes of course

C) P(a,e,i,o, or u) = 0.378

Page 15: The Binomial Probability Distribution and Related Topics

Mean and standard deviation again!?!Yes! But it’s for discrete population probability distribution.

;

;

X is the value of a random variable,

P(x) is the probability of that variable, and sum is taken for all the values of the random variable

Page 16: The Binomial Probability Distribution and Related Topics

Note: Why was that in population symbol? It is because sum is taken over all

values of the random variable (i.e. the entire sample space)

Page 17: The Binomial Probability Distribution and Related Topics

Example: Sad factNumber of times Student study before test

1 2 3 4 5

Percentage of students

60% 26% 8% 5% 1%

Page 18: The Binomial Probability Distribution and Related Topics

AnswerX P(x) xP(x) x-u (x-u)^2 (x-u)^2*P(x)

1 .6 0.6 -.67 .4489 .26934

2 .26 0.52 0.33 .1089 .028314

3 .08 0.24 1.33 1.7689 .141512

4 .05 0.35 2.33 5.4289 .271445

5 .01 0.05 3.33 11.0889 .110889

u= 1.67 =.8215

So the mean is 1.67

And the standard deviation is .9064

Page 19: The Binomial Probability Distribution and Related Topics

Group Activity At a carnival, you pay $2.00 to play a coin flipping game with 3 fair coins.

One of each coin one side has the number 0 and another with number 1. You flip the three coins at one time and you win $1.00 for every 1 that appears on top. Are your expected earnings equal to the cost to play?

Page 20: The Binomial Probability Distribution and Related Topics

Fill this out and find , so who is making money here?

Number of 1s, x Frequency P(x) xP(x)

0

1

2

3

Page 21: The Binomial Probability Distribution and Related Topics

Linear Functions of a Random Variable Let a and b be any constants, and let x be a random variable. Then the new

random variable L = a+bx is called a linear function of x

Then the linear function L= a + bx has mean, variance, and standard deviation as follows:

=

Page 22: The Binomial Probability Distribution and Related Topics

Linear Combinations of Independent Random variables

And

Page 23: The Binomial Probability Distribution and Related Topics

Uh….so what does that mean? Here are some examples:

Let and

A) Let L = 3 + 2, compute the mean, variance, and SD of L

=

Page 24: The Binomial Probability Distribution and Related Topics

Continue Let and

B) Let W=. Find the mean, variance, and standard deviation of W

Page 25: The Binomial Probability Distribution and Related Topics

Group Work Let and

C) W= . Find the mean, variance and standard deviation of W

D) Find the mean, variance and standard deviation of W

Page 26: The Binomial Probability Distribution and Related Topics

Answer C) 25, 337, 18.36

D) 125, 2628, 51.26

Page 27: The Binomial Probability Distribution and Related Topics

Homework Practice Pg 178 #1-17 every other odd

Page 28: The Binomial Probability Distribution and Related Topics

Binomial Probabilities

Page 29: The Binomial Probability Distribution and Related Topics

Features of a binomial experiment 1) There are a fixed number of trials. We denote this number by the letter n

2) The n trials are independent and repeated under identical conditions

3) Each trial has only two outcomes: success, denoted by S and failure, denoted by F

4) For each individual trial, the probability of success is the same. We denote the probability of success by p and that of failure by q. Since each trial results in either success or failure, p+q=1 and q=1-p

5) The central problem of a binomial experiment is to find the probability of r successes out of n trials.

Page 30: The Binomial Probability Distribution and Related Topics

Example: Read pg 183 Read pg 183 example 4

Page 31: The Binomial Probability Distribution and Related Topics

Group Work: You are taking the final and you are running out of time. You have 3

multiple choice questions left and each question has 4 choices.

1) What’s the probability of getting all 3 questions correct?

2) What’s the probability of getting at least 1 correct?

Page 32: The Binomial Probability Distribution and Related Topics

Answers There are 8 outcomes. S is success, F is Failure.

SSS SSF SFS FSS SFF FSF FFS FFF

P(S)= .25

P(F)= .75

1) SSS = (.25)(.25)(.25)=.016

2) Getting at least 1 correct means, all of the outcomes other than FFF. FFF = (.75)(.75)(.75)= .422. So 1-.422=.578

Page 33: The Binomial Probability Distribution and Related Topics

Continue with the last one: 1) What’s P(1)? (One correct)

2) What’s P(2)? (two correct)

Page 34: The Binomial Probability Distribution and Related Topics

Answer 1) .422

2) .141

Page 35: The Binomial Probability Distribution and Related Topics

Are there any way to do this without doing all the outcomes? Yes! It’s called Binomial probability distribution

Page 36: The Binomial Probability Distribution and Related Topics

What is Binomial Probability Distribution? You can use this when the outcomes is either success or fail.

N=number of trials

p=probability of success on each trial

q=1-p=probability of failure on each trial

r=random variable representing the number of success out of n trials

Page 37: The Binomial Probability Distribution and Related Topics

Example: Basketball shooting exampleMr. Liu makes 30% of his shots. What’s the probability that he makes at least 2 fg out of 4 shots?

n=4

p=.3

q=.7

r=2,3,4

Page 38: The Binomial Probability Distribution and Related Topics

Group Work: Privacy is a concern for many users of the Internet. One survey showed that

62% of Internet users are somewhat concerned about the confidentiality of their e-mail. Based on this information, what is the probability that for a random sample of 10 internet users, 6 are concerned about the privacy of their e-mail?

Page 39: The Binomial Probability Distribution and Related Topics

Answer

10𝐶 6 ( .62 )6 ( .38 )4=.2487

Page 40: The Binomial Probability Distribution and Related Topics

Group Work A biologist is studying a new hybrid tomato. It is known that the seeds of

this hybrid tomato have probability of .70 of germinating. The biologist plants 10 seeds.

A) What’s the probability that exactly 8 seeds germinate?

B) What’s the probability that 4 or less will germinate?

Page 41: The Binomial Probability Distribution and Related Topics

Homework Practice Pg 191 #2-24 every other even

Page 42: The Binomial Probability Distribution and Related Topics

Additional Properties of the Binomial Distribution

Page 43: The Binomial Probability Distribution and Related Topics

How to Graph a Binomial Distribution 1) Place r values on the horizontal axis

2) Place P(r) values on the vertical axis

3) Construct a bar over each r value extending from r-0.5 to r+0.5. The height of the corresponding bar is P(r).

Page 44: The Binomial Probability Distribution and Related Topics

Example of a graph of binomial distribution

Page 45: The Binomial Probability Distribution and Related Topics

Group Work: A waiter at the restaurant has learned from experience that the probability

that a lone diner will leave a tip is only 0.7. During one lunch hour, the waiter serves six people who are dining by themselves. Calculate the probabilities and then make a graph of the binomial probability distribution that shows the probabilities that 0,1,2,3,4,5, or all 6 lone diners leave tips

Hint: Use binomial probability formula

Page 46: The Binomial Probability Distribution and Related Topics

Answerr (people leaving tip) P(r)

0 .001

1 .010

2 .060

3 .185

4 .324

5 .303

6 .118

Page 47: The Binomial Probability Distribution and Related Topics

Group Work: Jamal enjoys playing basketball. He figures that he makes about 45% of his

shot attempts during the game. Calculate the probabilities and make a histogram showing the probability that Jamal will make 0,1,2,3,4,5 shots out of 5 attempted field goals

Based on the probabilities, make a prediction how many shots Jamal will make out of 5?

Page 48: The Binomial Probability Distribution and Related Topics

How to calculate the mean and standard deviation.

expected number of successes for random variable r

is the standard deviation for the random variable r

r is a random variable representing the number of successes in a binomial distribution

n is the number of trials

p is the probability of success on a single trial

q=1-p is the probability of failure on a single trial

Page 49: The Binomial Probability Distribution and Related Topics

Practice!

Page 50: The Binomial Probability Distribution and Related Topics

Answer 4.2 1.12

Page 51: The Binomial Probability Distribution and Related Topics

Find out the expected value and standard deviation for Jamal’s basketball shooting. A) What is the expected value for Jamal? Is it the same as you predicted

before?

B) What is the standard deviation of the binomial distribution?

Page 52: The Binomial Probability Distribution and Related Topics

Unusual Value Note:

Chebysev’s Theorem tells us that no matter what the data distribution looks like, at least 75% will fall within 2 standard deviations of the mean.

When distribution is mound-shaped and symmetrical, about 95% of the data are within 2 standard deviations of the mean.

Data value might be an outlier when it is more than 2.5 standard deviations away from the mean.

For binomial distribution, it is unusual for the number of successes r to be higher than

Page 53: The Binomial Probability Distribution and Related Topics

What does it mean? If 4.2 1.12

then =7 and =1.4

That means anything higher than 7 and lower than 1.4 are outliers.

Page 54: The Binomial Probability Distribution and Related Topics

How to express binomial probabilities using equivalent formulas

Page 55: The Binomial Probability Distribution and Related Topics

Example: Investments can be profitable as well as risky. Suppose you consider

companies with a 35% estimated risk of default and suppose you want to be 95% certain of meeting your goal of at least 4 good stock. How many stocks should you buy to meet this goal?

Please look at the table Appendix II starting in A11. It is a binomial table.

We want

Since the probability of success is .65 , we look at the binomial table under p=0.65 and different values of n to find the smallest value of n that will satisfy the relation.

Page 56: The Binomial Probability Distribution and Related Topics

Answer N=10 because 1-0-0-0.004-0.021=.975

Page 57: The Binomial Probability Distribution and Related Topics

Homework Practice Pg 203 #1-23 odd

Page 58: The Binomial Probability Distribution and Related Topics

The Geometric and Poisson Probability Distributions

Page 59: The Binomial Probability Distribution and Related Topics

Why do we use Geometric Distribution? Suppose we have an experiment in which we repeat binomial trials until we

get our first success, and then we stop. Let n be the number of the trial on which we get our first success. In this context, n is not a fixed number. In fact, n could be any of the numbers 1,2,3… so on. What is the probability that our first success comes on the nth trials? Geometric probability distribution tells us that.

Page 60: The Binomial Probability Distribution and Related Topics

Geometric Probability distribution

Where n is the number of the trial on which the first success occurs (n=1,2,3…) and p is the probability of success on each trial. Note: p must be the same for each trial.

Page 61: The Binomial Probability Distribution and Related Topics

Note: In many real-life situations, we keep on trying until we achieve success. This

is true in areas as diverse as diplomacy, military science, real estate sales, general marketing strategies, medical science, engineering, and technology

Page 62: The Binomial Probability Distribution and Related Topics

Example: Robotics class made a robot designed to look for ultrasonic sensor within a

certain time frame. If it does not locate it, it will try again and find it. From experience, it is only 80% successful. The robot will keep trying until it finds the sensor or the time is up and it ends.

A) what is the probability that the robot’s first success will be on attempts n=1, 2, or 3?

B) If the robot has a max of 3 tries, what is the probability that the robot will find the sensor?

Page 63: The Binomial Probability Distribution and Related Topics

Answer A)

B) P(n=1or2or3)=P(1)+P(2)+P(3)=.80+.16+.032=.992 or 99.2% of the time it will find the sensor

n

1 (.80)(.20)^0=.80

2 (.80)(.20)^1=.16

3 (.80)(.20)^2=.032

Page 64: The Binomial Probability Distribution and Related Topics

Poisson Probability Distribution Poisson distribution applies to accident rates, arrival times, defect rates, the

occurrence of bacteria in the air, and many other areas of everyday life.

Page 65: The Binomial Probability Distribution and Related Topics

Poisson Probability Distribution Let (lambda) be the mean number of successes over time, volume, area,

and so forth. Let r be the number of successes (r=0,1,2,3,…) in a corresponding interval of time, volume, area and so forth. Then the probability of r successes in the interval is

e is approximately equal to 2.7183

Using some mathematics involving infinite series, it can be shown that the population mean and standard deviation of the Poisson distribution are

Page 66: The Binomial Probability Distribution and Related Topics

Example: You are Indiana Jones. You went to an excavation site to try to dig up

different things from the past. You have a record of getting .68 things per hour. Suppose you decide to find out how many different things you can dig up in 7 hours.

A) Use the information provided to find a probability distribution for r, in a period of 7 hours

B) What is the probability that in 7 hours, you will dig 0,1,2 or 3 things?

C) What’s the probability of digging 4 or more things?

Page 67: The Binomial Probability Distribution and Related Topics

Answer A)

B)

C)

Page 68: The Binomial Probability Distribution and Related Topics

Group Work You went to a frozen lake called I-Get-To-Catch-Fish Lake. It is told that on

average, fishermen can fish up to .76 fishes per hour. Suppose you and your buddy went to go fishing for 6 hours

A) Find a probability distribution for r, the number of fish you catch in a period of 6 hours

B) What the probability that in 6 hours you will get 0,1,2,3, or 4 fish?

C) What’s the probability you catch 5 of more fish?

Page 69: The Binomial Probability Distribution and Related Topics

Answer A)

B)

C)

Page 70: The Binomial Probability Distribution and Related Topics

How to Approximate Binomial Probabilities Using Poisson Probabilities Poisson distribution can be used as a probability distribution for “rare”

events.

Suppose you have a binomial distribution with

n= number of trials

r= number of successes

p=probability of success on each trial

If then r has a binomial distribution that is approximated by a Poisson distribution with (expected value)

Page 71: The Binomial Probability Distribution and Related Topics

Example: INFJ is a rare personality type. It occurs in only about 2.1% of the

population. Suppose a high school graduating class has 170 students, and suppose success of the event is the personality type INFJ

A) Let r be the number of success in the n=170 trials. p=P(S)=.021, will the Poisson distribution be a good approximation to the binomial?

B) Estimate the probability that this graduating class has 0,1,2,3 or 4 people who have the INFJ personality type

C) Estimate the probability that this class has five or more INFJ personality types.

Page 72: The Binomial Probability Distribution and Related Topics

Answer A) Since n=170 is greater than 100 and Poisson distribution should be a

good approximation to the binomial.

B)

C)

Page 73: The Binomial Probability Distribution and Related Topics

Select appropriate distribution Identify the type of probability distribution needed to solve the problem:

binomial, geometric, Poisson, or Poisson approximation to the binomial. Then solve the problem.

Denver, Colorado, is prone to severe hailstorms. Insurance agents claim that a homeowner in Denver can expect to replace his or her rough once every 10 years. What is the probability that in 12 years a homeowner in Denver will need to replace the roof twice?

Page 74: The Binomial Probability Distribution and Related Topics

Answer Poisson Distribution

Since 1 per 10 years = 0.1 per year

Page 75: The Binomial Probability Distribution and Related Topics

Select appropriate distribution Identify the type of probability distribution needed to solve the problem:

binomial, geometric, Poisson, or Poisson approximation to the binomial. Then solve the problem.

A telephone network substation will keep trying to connect a long-distance call to a trunk line until the fourth attempt has been made. After the fourth unsuccessful attempt, the call number goes into a buffer memory bank, and the caller gets a recorded message to be patient. During peak calling periods, the probability of a call connecting to trunk line is 65% on each try. What percentage of all calls made during peak time will wind up in the buffer memory bank?

Page 76: The Binomial Probability Distribution and Related Topics

Answer Geometric probability

P(S)=0.65=p

P(5 or more)=1-p(4 or less)=1-.65-.2275-.0796-.0276=.015 or 1.5%

Page 77: The Binomial Probability Distribution and Related Topics

Select appropriate distribution Identify the type of probability distribution needed to solve the problem:

binomial, geometric, Poisson, or Poisson approximation to the binomial. Then solve the problem.

The murder rate is 3.6 murders per 100,000 inhabitants. In a community of 1254 people, what is the probability that at least one person will be murdered?

Page 78: The Binomial Probability Distribution and Related Topics

Answer Poisson approximation to the binomial

n=1254

p=3.6/100000 = .000036

np=.045

Since n=1254 >100 and np=.045 <10 we can use the poisson approximation

.956

P(1 or more)=1-p(0)=1-.956=.044 or 4.4%

Page 79: The Binomial Probability Distribution and Related Topics

Homework Practice P217 #1-26 every other even