20
lecture 4 1 Discrete distributions r important discrete distributions: The Uniform distribution (discrete) The Binomial distribution The Hyper-geometric distribution The Poisson distribution

Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric

Embed Size (px)

Citation preview

Page 1: Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric

lecture 41

Discrete distributions

Four important discrete distributions:

1. The Uniform distribution (discrete)

2. The Binomial distribution

3. The Hyper-geometric distribution

4. The Poisson distribution

Page 2: Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric

lecture 42

Uniform distributionDefinition

Experiment with k equally likely outcomes.

Definition:Let X: S R be a discrete random variable. If

then the distribution of X is the (discrete) uniform distribution.

Probability function:

(Cumulative) distribution function:kxxxxfor

k

xkxF ,,,);( 21

kxXPxXPxXP kk

1)()()( 2211

kxxxxfork

kxf ,,,1

):( 21

Page 3: Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric

lecture 43

Uniform distributionExample

Example: Rolling a dice

X: # eyes

x1 2 3 4 5 6

0.10.20.30.4

f(x)

Probability function:

Distribution function:

Mean value:

E(X) = = 3.5

variance:Var(X) =

=

1+2+3+4+5+6 6

(1-3.5)2

+ … + (6-3.5)2

6 35

12

6,,2,16

)6;( xforx

xF

6,,2,16

1);( xforkxf

Page 4: Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric

lecture 44

Uniform distributionMean & variance

Theorem:Let X be a uniformly distributed with outcomes x1, x2, …, xk Then we have

• mean value of X:

• variance af X:k

)μx()X(Var

k

xμ)X(E

k

1i

2

i

k

1ii

Page 5: Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric

lecture 45

Binomial distributionBernoulli process

Bernoulli process:1. The experiment consists in repeating the same trail n times.

2. Each trail has two possible outcomes: “success” or

“failure”, also known as Bernoulli trail.

3. P(”succes”) = p is the same for all trails.

4. The trails are independent.

Repeating an experiment with two possible outcomes.

Page 6: Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric

lecture 46

Binomial distributionBernoulli process

Definition:Let the random variable X be the number of “successes” in the n Bernoulli trails.

The distribution of X is called the binomial distribution. Notation: X ~ B(n,p)

Page 7: Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric

lecture 47

Binomial distributionProbability & distribution function

Theorem:If X ~ B( n, p ), then X has probability function

and distribution function

)!(!

!

,,2,1,0,)1()(),;(

xnx

n

nxppx

nxXPpnxb xnx

nxpntbxXPpnxBx

t

,,2,1,0,),;()(),;(0

(See Table A.1)

Page 8: Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric

lecture 48

Binomial distributionProblem

BILKA has the option to reject a shipment of batteries if they do not fulfil BILKA’s “accept policy”:

• A sample of 20 batteries is taken: If one or more batteries are defective, the entire shipment is rejected.• Assume the shipment contains 10% defective batteries.

1. What is the probability that the entire shipment is rejected?

2. What is the probability that at most 3 are defective?

Page 9: Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric

lecture 49

Binomial distributionMean & variance

Theorem:If X ~ bn(n,p), then

• mean of X: E(X) = np

• variance of X: Var(X) = np(1-p)

Example continued: What is the expected number of defective batteries?

Page 10: Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric

lecture 410

Hyper-geometric distributionHyper-geometric experiment

Hyper-geometric experiment:1. n elements chosen from N elements without replacement.

2. k of these N elements are ”successes” and N-k are ”failures”

Notice!! Unlike the binomial distribution the selection is done without replacement and the experiments and not independent.

Often used in quality controle.

Page 11: Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric

lecture 411

Hyper-geometric distributionDefinition

Definition:Let the random variable X be the number of “successe” in a hyper-geometric experiment, where n elements are chosen from N elements, of which k are ”successes” and N-k are ”failures”.

The distribution of X is called the hyper-geometric distribution. Notation: X ~ hg(N,n,k)

Page 12: Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric

lecture 412

Hyper-geometric distributionProbability & distribution function

Theorem:If X ~ hg( N, n, k ), then X has probability function

and distribution function

nx

n

N

xn

kN

x

k

xXPknNxh ,,2,1,0,)(),,;(

nxknNthxXPknNxHx

t

,,2,1,0,),,;()(),,;(0

Page 13: Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric

lecture 413

Hyper-geometric distributionProblem

Føtex receives a shipment of 40 batteries. The shipment is unacceptable if 3 or more batteries are defective.

Sample plan: take 5 batteries. If at least one battery is defective the entire shipment is rejected.

What is the probability of exactly one defective battery, if the shipment contains 3 defective batteries ?

Is this a good sample plan ?

Page 14: Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric

lecture 414

Hyper-geometric distributionMean & variance

Theorem:If X ~ hg(N,n,k), then

• mean of X:

• variance of X:

N

k1

N

kn

1N

nN)X(Var

N

kn)X(E

Page 15: Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric

lecture 415

Poisson distributionPoisson process

Poisson process:1. # events in the interval [a,b] is independent of # events in the interval [c,d], where a<b<c<d

2. Probability of 1 event in a short time interval [a, a + ] is proportional to . 3. The probability of more then 1 event in the short time interval is close to 0.

No memory}

Experiment where events are observed during a time interval.

Page 16: Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric

lecture 416

Poisson distributionDefinition

Definition:Let the random variable X be the number of events in a time interval of length t from a Poisson process, which has on average events pr. unit time.

The distribution of X is called the Poisson distribution with parameter = t.

Notation: X ~ Pois() , where = t

Page 17: Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric

lecture 417

Poisson distributionProbability & distribution function

Theorem:If X ~ Pois(), then X has probability function

and distribution function

,2,1,0,!

)();(

xx

exXPxp

x

,2,1,0,);()();(0

xtpxXPxPx

t

(see Table A2)

Page 18: Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric

Poisson distributionExamples

lecture 418

Some examples of X ~ Pois() :

X ~ Pois( 1 ) X ~ Pois( 2 )

X ~ Pois( 4 ) X ~ Pois( 10 )

Page 19: Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric

lecture 419

Poisson distributionMean & variance

Theorem:If X ~ Pois(), then

• mean of X: E(X) =

• variance of X: Var(X) =

Page 20: Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric

lecture 420

Poisson distributionProblem

Netto have done some research: On weekdays before noon an average of 3 customers pr. minute enter a given shop.

1. What is the probability that exactly 2 customers enter during the time interval 11.38 - 11.39 ?

2. What is the probability that at least 2 customers enter in the same time interval ?

3. What is the probability that at least 10 customers enter the shop in the time interval 10.05 - 10.10 ?