chapter 8 probability distributions 8.1 random variables 8.2 probability distributions 8.3 binomial...

57
Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson distribution 8.7 The mean of a probability distribution 8.8 Standard deviation of a probability distribution obe Acrobat 7. Document

Post on 21-Dec-2015

257 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Chapter 8 Probability Distributions

8.1 Random variables8.2 Probability distributions8.3 Binomial distribution8.4 Hypergeometric distribution8.5 Poisson distribution8.7 The mean of a probability distribution8.8 Standard deviation of a probability distribution

Adobe Acrobat 7.0 Document

Page 2: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

8.1 Random variablesA random variable is some numerical outcomes of a random process

Toss a coin 10 times X=# of heads

Toss a coin until a head X=# of tosses needed

Page 3: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

More random variables

Toss a die X=points showing

Plant 100 seeds of pumpkins X=% germinating

Test a light bulb X=lifetime of bulb

Test 20 light bulbs X=average lifetime of bulbs

Page 4: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Types of random variables

Discrete or Countable valued Counts, finite-possible values

Continuous

Lifetimes, time

Page 5: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

8.2 Probability distributions

For a discrete random variable, the probability of for each outcome x to occur, denoted by f(x), with properties

0 f(x) 1, f(x)=1

Page 6: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Example 8.1

Roll a die, X=# showing

x 1 2 3 4 5 6 f(x) 1/6 1/6 1/6 1/6 1/6 1/6

Page 7: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Example 8.2

Toss a coin twice. X=# of heads

x P(x)0 ¼ P(TT)=P(T)*P(T)=1/2*1/2=1/41 ½ P(TH or HT)=P(TH)+P(HT)=1/2*1/2+1/2*1/2=1/2 2 ¼ P (HH)=P(H)*P(H)=1/2*1/2=1/4

Page 8: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Example 8.3

Pick up 2 cards. X=# of aces

x P(x)0 (48/52)(47/51)

1 P(AN)+P(NA)=(4/52)(48/51)+(48/52)(4/51)

2 P(AA)=(4/52)(3/51)

Page 9: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Probability distributionBy probability distribution, we mean a correspondence that assigns probabilities to the values of a random variable.

Page 10: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

ExerciseCheck whether the correspondence given by

can serve as the probability distribution of some random variable.

Hint: The values of a probability distribution must be numbers on the interval from 0 to 1.The sum of all the values of a probability distribution must be equal to 1.

3( ) , for x=1, 2, and 3

15

xf x

Page 11: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

solutionSubstituting x=1, 2, and 3 into f(x)

They are all between 0 and 1. The sum is

So it can serve as the probability distribution of some random variable.

1 3 4 5 6(1) , (2) , (3)

15 15 15 15f f f

4 5 61

15 15 15

Page 12: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

ExerciseVerify that for the number of heads obtained in four flips of a balanced coin the probability distribution is given by 4

( ) , for x=0, 1, 2, 3, and 416

xf x

Page 13: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

8.3 Binomial distributionIn many applied problems, we are interested in the probability that an event will occur x times out of n.

Page 14: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Roll a die 3 times. X=# of sixes. S=a six, N=not a sixNo six: (x=0)

NNN (5/6)(5/6)(5/6)One six: (x=1)

NNS (5/6)(5/6)(1/6) NSN same SNN same

Two sixes: (x=2)NSS (5/6)(1/6)(1/6)SNS sameSSN same

Three sixes: (x=3)SSS (1/6)(1/6)(1/6)

Page 15: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Binomial distribution

x f(x) 0 (5/6)3

1 3(1/6)(5/6)2

2 3(1/6)2(5/6) 3 (1/6)3

xx

xxf

3

6

5

6

13)(

Page 16: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Toss a die 5 times. X=# of sixes.Find P(X=2)S=six N=not a sixSSNNN1/6*1/6*5/6*5/6*5/6=(1/6)2(5/6)3

SNSNN1/6*5/6*1/6*5/6*5/6=(1/6)2(5/6)3

SNNSN1/6*5/6*5/6*1/6*5/6=(1/6)2(5/6)3

SNNNSNSSNNetc.NSNSNNSNNsNNSSNNNSNSNNNSS

2 31 5

( 2) 10*6 6

P x

[P(S)]# of S

10 ways to choose 2 of 5 places for S. __ __ __ __ __

5 5! 5! 5*4*3!10

2 2!(5 2)! 2!3! 2*1*3!

[1-P(S)]5 - # of S

Page 17: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

In general: n independent trials p probability of a

success x=# of successes

SSNN…S px(1-p)n-x

SNSN…N ways to choose x places for s,

( ) (1 )x n x

n

x

nf x p p

x

Page 18: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Roll a die 20 times. X=# of 6’s,n=20, p=1/6

Flip a fair coin 10 times. X=# of heads

20

4 16

20 1 5( )

6 6

20 1 5( 4)

4 6 6

x x

f xx

p x

1010

2

110

2

1

2

110)(

xxxf

xx

Page 19: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

More example

Pumpkin seeds germinate with probability 0.93. Plant n=50 seedsX= # of seeds germinating

xx

xxf

5007.093.0

50)(

248 07.093.048

50)48(

XP

Page 20: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

To find binomial probabilities:

Direct substitution. (can be hard if n is large)Use approximation (may be introduced later depending on time)Computer software (most common source)Binomial table (Table V in book)

Page 21: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

How to use Table VExample: The probability that a lunar eclipse will be obscured by clouds at an observatory near Buffalo, New York, is 0.60. use table V to find the probabilities that at most three of 8 lunar eclipses will be obscured by clouds at that location.

for n=8, p=0.6

( 3) ( 0) ( 1) ( 2) ( 3)

0.001 0.008 0.041 0.124 0.174

p x p x p x p x p x

Adobe Acrobat 7.0 Document

Page 22: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

ExerciseIn a certain city, medical expenses are given as the reason for 75% of all personal bankruptcies. Use the formula for the binomial distribution to calculate the probability that medical expenses will be given as the reason for two of the next three personal bankruptcies filed in that city.

Page 23: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

In each situation below, is it reasonable to use a binomial distribution for the random variable X? Give a reason for your answer in each case.

a) An auto manufacturer chooses one car from each hour’s production for a detailed quality inspection. One variable recorded is the count X of finish defects (dimples, ripples, etc.) in the car’s paint.

First, what is n, the total number of observations?

There isn’t a fixed number of observations. The sampling could go on indefinitely, so it isn’t binomial.

If there were a fixed n, could it be described as binomial? i.e. Was the outcome binary?

Yes, finish=Defect/No defect, because X is the defect count

Exercise

Page 24: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

ExerciseExerciseb) Joe buys a ticket in his state’s “pick 3” lottery game every week; X is the number of times in a year that he wins a prize.

First, what is n, the total number of observations?

He buys 1 “pick 3” ticket each week & there are 52 weeks “in a year”, so n = 52.

There is a fixed n, so could the number of wins (X) be described as binomial? … i.e. Was the outcome binary?

Yes, each of the 52 “pick 3” tickets = Win/Lose, because X is the count of wins.

So, the distribution of the number of times he wins in a year (X) is binomial.

Page 25: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

8.4 Hypergeometric distribution

Sampling with replacementIf we sample with replacement and the trials are all independent, the binomial distribution applies.Sampling without replacementIf we sample without replacement, a different probability distribution applies.

Page 26: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Example

Pick up n balls from a box without replacement. The box contains a white balls and b black balls

X=# of white balls picked

a successes

b non-successes

n picked

X= # of successes

Page 27: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

In the box: a successes, b non-successes

The probability of getting x successes (white balls):

# of ways to pick n balls with x successes

( )total # of ways to pick n balls

# of ways to pick x successes

=(# of ways to choose x successies)*(# of ways to choose n-x non-successes)

=

p x

a b

x n x

( ) , 0,1,2,...,

a b

x n xf x x a

a b

n

Page 28: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Example

52 cards. Pick n=5. X=# of aces,

then a=4, b=48

5

52

3

48

2

4

)2(XP

Page 29: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Example

A box has 100 batteries. a=98 good ones b= 2 bad ones n=10 X=# of good ones

10

100

2

2

8

98

)8(XP

Page 30: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Continued

P(at least 1 bad one) =1-P(all good)

1 ( 10)

98 2

10 01

100

10

98 97 96 95 94 93 92 91 90 891

100 99 98 97 96 95 94 93 92 91

P X

Page 31: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

8.5 Poisson distributionEvents happen independently in time or space with, on average, λ events per unit time or space.Radioactive decay λ=2 particles per minuteLightening strikes λ=0.01 strikes per acre

Page 32: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Poisson probabilitiesUnder perfectly random occurrences it can be shown that mathematically

( ) , x=0, 1, 2, ...!

xef x

x

Page 33: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Radioactive decayx=# of particles/min λ=2 particles per minutes

3 22( 3) , x=0, 1, 2, ...

3!

eP x

Page 34: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Radioactive decay X=# of particles/hourλ =2 particles/min * 60min/hour=120 particles/hr

125 120120( 125) , x=0, 1, 2, ...

125!

eP x

Page 35: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

exerciseA mailroom clerk is supposed to send 6 of 15 packages to Europe by airmail, but he gets them all mixed up and randomly puts airmail postage on 6 of the packages. What is the probability that only three of the packages that are supposed to go by air get airmail postage?

Page 36: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

exerciseAmong an ambulance service’s 16 ambulances, five emit excessive amounts of pollutants. If eight of the ambulances are randomly picked for inspection, what is the probability that this sample will include at least three of the ambulances that emit excessive amounts of pollutants?

Page 37: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

ExerciseThe number of monthly breakdowns of the kind of computer used by an office is a random variable having the Poisson distribution with λ=1.6. Find the probabilities that this kind of computer will function for a month

Without a breakdown;With one breakdown;With two breakdowns.

Page 38: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

8.7 The mean of a probability distribution

X=# of 6’s in 3 tosses of a die x f(x) 0 (5/6)3

1 3(1/6)(5/6)2

2 3(1/6)2(5/6) 3 (1/6)3

Expected long run average of X?

Page 39: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Just like in section 7.1, the average or mean value of x in the long run over repeated experiments is the weighted average of the possible x values, weighted by their probabilities of occurrence.

33

0

3 2 2 3

3 1 5( )

6 6

5 1 5 1 5 10* 1*3 2*3 3* 1/ 2

6 6 6 6 6 6

x x

Xx

E X xx

Page 40: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

In general

X=# showing on a die

mean: ( ) ( )x E x xf x

1 1 1 1 1 1( ) 1 2 3 4 5 6 3.5

6 6 6 6 6 6E x

Page 41: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Simulation

Simulation: toss a coinn=10, 1 0 1 0 1 1 0 1 0 1, average=0.6

n 100 1,000 10,000 average 0.55 0.509 0.495

Page 42: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

The population is all possible outcomes of the experiment (tossing a die).

Box of equal number of 1’s 2’s 3’s

4’s 5’s 6’s

Population mean=3.5

E(X)=(1)(1/6)+(2)(1/6)+(3)(1/6)+ (4)(1/6)+(5)(1/6)+(6)(1/6) =3.5

Page 43: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

X=# of heads in 2 coin tossesx 0 1 2P(x) ¼ ½ ¼

Population Mean=1

Box of 0’s, 1’s and 2’s with twice as many 1’s as 0’s or 2’s.)

Page 44: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

is the center of gravity of the probability distribution.

For example, 3 white balls, 2 red ballsPick 2 without replacement

X=# of white onesx P(x)0 P(RR)=2/5*1/4=2/20=0.11 P(RW U WR)=P(RW)+P(WR)

=2/5*3/4+3/5*2/4=0.62 P(WW)=3/5*2/4=6/20=0.3 =E(X)=(0)(0.1)+(1)(0.6)+(2)(0.3)=1.2

0.1 0.6 0.30 1 2

Page 45: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

The mean of a probability distribution

Binomial distribution n= # of trials,

p=probability of success on each trial X=# of successes

( ) (1 )x n xnE x x p p np

x

Page 46: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Toss a die n=60 times, X=# of 6’sknown that p=1/6

μ=μX =E(X)=np=(60)(1/6)=10

We expect to get 10 6’s.

Page 47: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Hypergeometric Distribution

a – successes b – non-successes

pick n balls without replacement X=# of successes

( )a b a b

E x xx n x n

ana b

Page 48: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Example50 balls20 red30 blueN=10 chosen without replacementX=# of red

Since 40% of the balls in our box are red, we expect on average 40% of the chosen balls to be red. 40% of 10=4.

20( ) 10*( ) 10*0.4 4

50E x

Page 49: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

ExerciseAmong twelve school buses, five have worn brakes. If six of these buses are randomly picked for inspection, how many of them can be expected to have worn brakes?

Page 50: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

ExerciseIf 80% of certain videocassette recorders will function successfully through the 90-day warranty period, find the mean of the number of these recorders, among 10 randomly selected, that will function successfully through the 90-day warranty period.

Page 51: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

8.8 Standard Deviation of a Probability Distribution

Variance:σ2=weighted average of (X-μ)2

by the probability of each possible

x value = (x- μ)2f(x)

Standard deviation:

2( ) ( )x f x

Page 52: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Example 8.8

Toss a coin n=2 times. X=# of heads μ=np=(2)(½)=1x (x-μ)2 f(x) (x-)2f(x) 0 1 ¼ ¼ 1 0 ½ 0 2 1 ¼ ¼ ________________________ ½ = σ2

σ=0.707

Page 53: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Variance for Binomial distribution

σ2=np(1-p)

where n is # of trials and p is probability of a success.

From the previous example, n=2, p=0.5

Then

σ2=np(1-p)=2*0.5*(1-0.5)=0.5

Page 54: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Variance for Hypergeometric distributions

Hypergeometric:

2

1(1 ) finite population correction factor

a b a b nna b a b a b

np p

Page 55: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

ExampleIn a federal prison, 120 of the 300 inmates are serving times for drug-related offenses. If eight of them are to be chosen at random to appear before a legislative committee, what is the probability that three of the eight will be serving time for drug-related offenses? What is the mean and standard deviation of the distribution?

Page 56: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Alternative formula

σ2=∑x2f(x)–μ2

Example: X binomial n=2, p=0.5 x 0 1 2 f(x) 0.25 0.50 0.25Get σ2 from one of the 3 methods1. Definition for variance2. Formula for binomial distribution3. Alternative formula

Page 57: Chapter 8 Probability Distributions 8.1 Random variables 8.2 Probability distributions 8.3 Binomial distribution 8.4 Hypergeometric distribution 8.5 Poisson

Difference between Binomial and Hypergeometric distributions

A box contains 3 white balls & 2 red balls

1. Pick up 2 without replacement X=# of white balls2. Pick up 2 with replacement Y=# of white balls Distributions for X & Y? Means and variances?