topic 3 - discrete distributions basics of discrete distributions - pages 81 - 8481 - 84 mean and...

21
Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 84 Mean and variance of a discrete distribution - pages 93 - 95 , 97 Binomial distribution - pages 85-89 , 95 - 96 , 98 Poisson distribution and process - pages 104 , 106 - 108

Upload: kristin-fox

Post on 17-Jan-2016

227 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 8481 - 84 Mean and variance of a discrete distribution - pages 93 - 95,

Topic 3 - Discrete distributions

• Basics of discrete distributions - pages 81 - 84

• Mean and variance of a discrete distribution - pages 93 - 95, 97

• Binomial distribution - pages 85-89, 95 - 96, 98

• Poisson distribution and process - pages 104, 106 - 108

Page 2: Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 8481 - 84 Mean and variance of a discrete distribution - pages 93 - 95,

Random Variables• A random variable is a function which

maps each element in the sample space of a random process to a numerical value.

• A discrete random variable takes on a finite or countable number of values.

• We will identify the distribution of a discrete random variable X by its probability mass function (pmf), fX(x) = P(X = x).

• Requirements of a pmf:– f(x) ≥ 0 for all possible x

– all

( ) 1x

f x

Page 3: Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 8481 - 84 Mean and variance of a discrete distribution - pages 93 - 95,

Cumulative Distribution Function

• The cumulative distribution function (cdf)

is given by

• An increasing function starting from a value of 0 and ending at a value of 1.

• When we specify a pmf or cdf, we are in essence choosing a probability model for our random variable.

all

( ) ( ) ( )t x

F x P X x f t

Page 4: Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 8481 - 84 Mean and variance of a discrete distribution - pages 93 - 95,

Reliability example• Consider the series system with three

independent components each with reliability p.

• Let Xi be 1 if the ith component works (S) and 0 if it fails (F).

• Xi is called a Bernoulli random variable.

• Let fXi(x) = P(Xi = x) be the pmf for Xi.

• fXi(0) =

• fXi(1) =

p p p

Page 5: Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 8481 - 84 Mean and variance of a discrete distribution - pages 93 - 95,

Reliability example continued

• What is the pmf for X?

3

1

Let be the number of comps. that workii

X X

Outcome X1 X2 X3 X Probability x fX(x

)

Page 6: Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 8481 - 84 Mean and variance of a discrete distribution - pages 93 - 95,

Reliability example continued

• Plot the pmf for X for p = 0.5.

• Plot the cdf for p = 0.5.

Page 7: Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 8481 - 84 Mean and variance of a discrete distribution - pages 93 - 95,

Reliability example continued

• What is the probability there are at most 2 working components if p = 0.5?

• What is the probability the device works if p = 0.5?

Page 8: Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 8481 - 84 Mean and variance of a discrete distribution - pages 93 - 95,

Mean and variance of a discrete random variable

all

2 2

2 2 2

( ( )) ( ) ( ), expected value of ( )

( ), mean of or expected value of

[( ) ], variance of

Show ( )

x

X

X X

X X

E h X h x f x h X

E X X X

E X X

E X

Page 9: Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 8481 - 84 Mean and variance of a discrete distribution - pages 93 - 95,

Reliability example continued

• What is the mean of X if p = 0.5?

• What is the variance of X if p = 0.5?

Page 10: Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 8481 - 84 Mean and variance of a discrete distribution - pages 93 - 95,

Moment generating functions

• The moment generating function for a random variable X is MX(t) = E(etX).

• Verify M ′X(0) = X.

• Likewise M ″X(0) = E(X2).

2 2(0) [ (0)]X X XM M

Page 11: Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 8481 - 84 Mean and variance of a discrete distribution - pages 93 - 95,

Binomial distribution• Bernoulli trials:

– Each trial can result in one of two outcomes (S or F)– Trials are independent– The probability of success, P(S), is a constant p for all

trials

• Suppose X counts the number of successes in n Bernoulli trials.

• The random variable X is said to have a Binomial distribution with parameters n and p.

• X ~ Binomial(n,p)• The X from the reliability example falls into this

category.

Page 12: Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 8481 - 84 Mean and variance of a discrete distribution - pages 93 - 95,

Binomial pmf• What is the probability of any outcome

sequence from n Bernoulli trials that contains x successes and n-x failures?

• How many ways can we arrange the x successes and n-x failures?

• ( ) ( ) (1 ) 0,...,x n xnf x P X x p p x n

x

Page 13: Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 8481 - 84 Mean and variance of a discrete distribution - pages 93 - 95,

Binomial properties

• Recall

• MX(t) = (1 – p + pet)n

0

( )n

n x n x

x

na b a b

x

Page 14: Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 8481 - 84 Mean and variance of a discrete distribution - pages 93 - 95,

Binomial properties

• X = np

• Binomial calculator

2On your own, show (1 )X np p

Page 15: Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 8481 - 84 Mean and variance of a discrete distribution - pages 93 - 95,

Nurse employment case• Contract requires 90% of records handled timely• 32 of 36 sample records handled timely, she was fired!• Can each sample record be considered as a Bernoulli trial?• If the proportion of all records handled timely is 0.9, what

is the probability that 32 or fewer would be handled timely in a sample of 36?

• Binomial Calculator

Page 16: Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 8481 - 84 Mean and variance of a discrete distribution - pages 93 - 95,

Horry county murder case• 13% of the county is African American• Only 22 of 295 summoned were African American• Can a summoned juror be considered as a Bernoulli trial?• If the prop. of African Americans in the jury pool is 0.13,

what is the probability that 22 or fewer would be African American in a sample of 295?

• Binomial Calculator

Page 17: Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 8481 - 84 Mean and variance of a discrete distribution - pages 93 - 95,

Poisson distribution• The Poisson distribution is used as a

probability model for the number of events occurring in an interval where the expected number of events is proportional to the length of the interval.

• Examples– # of computer breakdowns per week– # of telephone calls per hour– # of imperfections in a foot long piece of

wire– # of bacteria in a culture of a certain area

• ( ) ( ) =0,1,....

!

xef x P X x x

x

Page 18: Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 8481 - 84 Mean and variance of a discrete distribution - pages 93 - 95,

Poisson properties

0

Recall !

x

x

ex

( 1)( )te

XM t e

Page 19: Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 8481 - 84 Mean and variance of a discrete distribution - pages 93 - 95,

Poisson properties

• X =

• On your own show,

• Poisson calculator

2 .X

Page 20: Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 8481 - 84 Mean and variance of a discrete distribution - pages 93 - 95,

Poisson example• My car breaks down once a week on average.• Using a Poisson model, what is the probability the car will

break down at least once in a week?• What is the probability it breaks down more than 52 times

in a year?• Poisson Calculator

Page 21: Topic 3 - Discrete distributions Basics of discrete distributions - pages 81 - 8481 - 84 Mean and variance of a discrete distribution - pages 93 - 95,

Other distributions

• Discrete uniform

• Hypergeometric

• Negative Binomial