engineering statistics eciv...

36
Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial Distribution 3.2 The Geometric Distribution 3.3 The Hypergeometric Distribution 3.4 The Poisson Distribution ۱ 3.1 The Binomial Distribution

Upload: others

Post on 24-Feb-2021

12 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

Engineering Statistics ECIV 2305

Chapter 3

DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial Distribution 3.2 The Geometric Distribution 3.3 The Hypergeometric Distribution 3.4 The Poisson Distribution

۱3.1 The Binomial Distribution

Page 2: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

Engineering Statistics ECIV 2305

Section 3.1

The Binomial Distribution

۲3.1 The Binomial Distribution

Page 3: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

۳

Before going into the binomial distribution, we will talkabout the Bernoulli Random Variables.

What is a Bernoulli Random Variable? A Bernoulli RV is a discrete RV that can take just two

values. It can be used to model:- The outcome of a coin toss- Whether a valve is open or shut- Whether an item is defective or not

Typically, the outcomes are labeled as 0 and 1 P(X=1) = p → this is the probability of recording 1 or p(success) P(X=0) = 1 – p

3.1 The Binomial Distribution

Page 4: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

٤

If X is a Bernoulli Random Variable, can youdetermine its expectation and variance?

E(X) = ?

Var(X) = ?

An experiment that has only two outcomes is oftenreferred to as a Bernoulli trial.

Hint: Remember that the probability of obtaining 1 is p while the probability of obtaining a zero is 1 – p .

3.1 The Binomial Distribution

Page 5: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

3.1 The Binomial Distribution ٥

Page 6: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

٦

The Binomial Distribution

Consider the following random experiments and randomvariables:

The random variables in the second column are calledbinomial random variables. It is the number of successesobtained within a fixed number of independent “n” trials.

Success is defined according to your interest.

3.1 The Binomial Distribution

Random Variable of InterestExperimentX = number of heads obtainedFlip a coin 10 times

(10 Bernoulli trials)X = number of male birthsNext 20 births at a hospital

(20 Bernoulli trials)X = number of defective parts in a dayA machine produces 25 parts in one day

(25 Bernoulli trials)

Page 7: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

۷

The Binomial Distribution

If n independent Bernoulli trials X1, X2, -----, Xn areperformed; each with a probability “p” of recording a 1,then the random variable X = X1 + X2 + -------- + Xn issaid to have a binomial distribution with parameters n & p

X ~ B(n, p) This random variable takes the values 0, 1, 2, ----, n

i.e. it counts the number of successes in the “n” Bernoulli trials. Inother words: it counts the number of the Bernoulli random variablesthat take the value 1.

The pmf of a B(n, p) random variable is:

3.1 The Binomial Distribution

( ) ( ) n -,--- 2, 1, 0, for 1 =−

== − xppxXP xnx

n

x

)1()(Var and )( pnpXnpXE −==

Page 8: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

۸

Example

Consider the case of 4 trials. Each trial has two outcomes; 0and 1. What is the probability that this binomial randomvariable take a value of 3?

3.1 The Binomial Distribution

Page 9: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

۹

If X is a random variable with a binomial distribution ofparameters n and p ; i.e. X ~ B(n, p),

Evaluate and describe the meaning of :P(X = 0), and P(X = n)

►P(X = 0) = ?

► P(X = n) = ?

3.1 The Binomial Distribution

Page 10: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

3.1 The Binomial Distribution ۱۰

Page 11: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

۱۱

Example

If the probability is 0.05 that a certain type of columns will failunder a given axial load. What is the probability thatamong 16 such columns:

a) Four columns will fail

b) At most 2 will fail

3.1 The Binomial Distribution

Page 12: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

۱۲

Example

Each sample of water has a 10% chance of containing aparticular organic pollutant. Assume that the samples areindependent with regard to the presence of the pollutant.Compute the following probabilities:

a) The probability that in the next 18 samples, exactly twocontain the pollutant

b) The probability that at least four samples contain thepollutant

c) P(3 ≤ X ≤ 7)

3.1 The Binomial Distribution

Page 13: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

۱۳

Cont… example (water samples)

3.1 The Binomial Distribution

Page 14: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

۱٤

Example

For the binomial random variable: X ~ B(6, 0.7)a) Graph the pmf of Xb) Compute the cdf of Xc) Compute E(X) and Var(X)

3.1 The Binomial Distribution

Page 15: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

۱٥

Cont… B~(6, 0.7) example

3.1 The Binomial Distribution

Page 16: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

۱٦

ExampleA fair coin is tossed eight times. Draw the distribution and

compute the expectation and the variance of the number ofheads obtained in the eight tosses.

This is a binomial distribution with n = 8 and p = 0.5→X ~ B(8, 0.5)

3.1 The Binomial Distribution

Page 17: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

3.1 The Binomial Distribution ۱۷

Page 18: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

3.1 The Binomial Distribution ۱۸

Page 19: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

3.1 The Binomial Distribution ۱۹

Page 20: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

۲۰

ExampleA person enjoys playing basketball. He makes about 50% of

the field goals he attempts during a game. Draw thedistribution of the number of successful attempts and findthe mean and variance of the number of successful attempts.

This is a binomial distribution with n = 6 and p = 0.5→X ~ B(6, 0.5)

3.1 The Binomial Distribution

Page 21: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

۲۱

NoteIn the previous example, the distribution was symmetric about

the mean value (μ) . (why?)Conclusion: Whenever p = 0.5 (i.e. B(n, 0.5) ), the graph of

the binomial distribution will be symmetric regardless ofthe number of trials we have.

3.1 The Binomial Distribution

Page 22: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

۲۲

ExampleA fair die is rolled eight times. A player wins $1 whenever a 5

or a 6 is scored, while he wins nothing if any other numberis scored.

a) Draw the distribution and compute the expectation and thevariance of the amount of money a player wins after rollingthe die eight times.

b) What is the probability that no more than $2 is won?This is a binomial distribution with n = 8 and p = 1/3

→X ~ B(8, 1/3)

3.1 The Binomial Distribution

Page 23: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

۲۳

Cont… Rolling a die eight times with winnings

3.1 The Binomial Distribution

Page 24: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

3.1 The Binomial Distribution ۲٤

Page 25: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

The probability that exactly $4 is won is therefore

3.1 The Binomial Distribution ۲٥

Page 26: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

۲٦

NoteIn the previous example, the random variable X counts the

number of successes in n Bernoulli trials. The probabilityof success was p.

What about the random variable : Y = n – X ?Y is a random variable that counts the number of failures in n

Bernoulli trials, where the failure probability is 1 – p .Y~B(n, 1 – p)

In the previous example: Y~B(8, 2/3)The graph of B(8, 2/3) is a reflectionof B(8, 1/3)

3.1 The Binomial Distribution

Page 27: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

3.1 The Binomial Distribution ۲۷

Page 28: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

۲۸

Example (Milk container contents) p 153Recall that there is a probability of 0.261 that a milk container

is underweight. Suppose that the milk containers areshipped to retail outlets in boxes of 20 containers. What isthe distribution of the number of underweight containers ina box?

Each individual milk container represents a Bernoulli trial.X is a random variable representing the number of

underweight containers in a box, which is also a Binomialrandom variable with parameters n =20 and p = 0.261 .

→X ~ B(20, 0.261)

3.1 The Binomial Distribution

Page 29: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

3.1 The Binomial Distribution ۲۹

Page 30: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

۳۰

Cont… milk container contents

3.1 The Binomial Distribution

Page 31: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

3.1 The Binomial Distribution ۳۱

Page 32: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

۳۲

Example (Air Force planes) p 155A group of 16 planes should always be ready for immediate

launch. There is a probability of 0.25 that the engines of aparticular plane will not start at a given attempt.

a) Find the expectation, variance, and the distribution of thenumber of planes successfully launched?

b) Find the probability that exactly 12 planes are successfullylaunched.

3.1 The Binomial Distribution

Page 33: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

۳۳

Cont… air force example the number of planes successfully launched has a

binomial distribution with parameters n = 16 and p = 0.75. Each plane represents a Bernoulli trial with a constant probability p = 0.75 of launching on time.

The expected number of planes launched is

3.1 The Binomial Distribution

Page 34: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

3.1 The Binomial Distribution ۳٤

Page 35: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

۳٥

Example (Tossing a coin n times) p 156A fair coin is tossed n times. What are the expectation and

the variance of the number of heads obtained?

3.1 The Binomial Distribution

Page 36: Engineering Statistics ECIV 2305site.iugaza.edu.ps/btayeh/files/2014/11/Statistic-Sec-3...Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS 3.1 The Binomial

۳٦

Proportions of Successes in Bernoulli Trials

Suppose that X ~ B(n, p) This means that X is a random variable that counts the number of

successes in n independent Bernoulli trials.

The random variable Y = X/n is the proportion of success E(Y) = p , Var(Y) = p(1-p)/n

For example: When a fair coin is tossed n times X: RV representing the number of heads obtained Y: RV representing the proportion of heads obtained = X/n

E(Y) = p = 0.5 , Var(Y) = p(1-p)/n = (0.5)(0.5)/n = 1/(4n)OR Var (Y) = Var(X)/n2 = 1/(4n) (since a = 1/n2)

The variance of the proportion Y decreases as the number of trialsn increases. Table 3.10 in your text book shows that the proportionof heads approaches the mean value of 0.5 as the number of tossesincreases.

3.1 The Binomial Distribution