6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform...

40
6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution 6.5 Poisson Distribution 6.6 Hypergeometric Distribution 6.7 Geometric Distribution

Transcript of 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform...

Page 1: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-1

Discrete Probability Distributions

Chapter Contents

6.1 Discrete Distributions

6.2 Uniform Distribution

6.3 Bernoulli Distribution

6.4 Binomial Distribution

6.5 Poisson Distribution

6.6 Hypergeometric Distribution

6.7 Geometric Distribution

Page 2: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-2

Chapter Learning Objectives (LO’s)

1: Define a discrete random variable.

2: Solve problems using expected value and variance.

3: Define probability distribution, PDF, and CDF.

4: Find Poisson probabilities using tables, formulas, or Excel.

5: Find hypergeometric probabilities using Excel.

6: Calculate geometric probabilities.

7: Find binomial probabilities using tables, formulas, or Excel.

Discrete Probability Distributions

Page 3: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-3

• A random variable is a function or rule that assigns a numerical value to each outcome in the sample space of a random experiment.

Random Variables

• Nomenclature:- Upper case letters are used to represent random variables (e.g., X, Y).- Lower case letters are used to represent values of the random variable (e.g., x, y).

• A discrete random variable has a countable number of distinct values.

1 Discrete Distributions

1: Define a discrete random variable.

Page 4: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-4

Probability Distributions• A discrete probability distribution assigns a probability to each value

of a discrete random variable X.

• To be a valid probability distribution, the following must be satisfied.

Discrete Distributions

Page 5: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-5

If X is the number of heads, then X is a random variable whose probability distribution is as follows:

Possible Events x P(x)

TTT 0 1/8

HTT, THT, TTH 1 3/8

HHT, HTH, THH 2 3/8

HHH 3 1/8

Total 1

Example: Coin Flips Table 6.1)

When a coin is flipped 3 times, the sample space will be

S = {HHH, HHT, HTH, THH, HTT, THT, TTH, TTT}.

Discrete Distributions

Page 6: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-6

Note that the values of X need not be equally likely. However, they must sum to unity.

Note also that a discrete probability distribution is defined only at specific points on the X-axis.

Example: Coin Flips

Discrete Distributions

Page 7: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-7

• The expected value E(X) of a discrete random variable is the sum of all X-values weighted by their respective probabilities.

• E(X) is a measure of central tendency.

Expected Value

2: Solve problems using expected value and variance.

Discrete Distributions

• If there are n distinct values of X, then

Page 8: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-8

Example: Service Calls

E(X) = μ = 0(.05) + 1(.10) + 2(.30) + 3(.25) + 4(.20) + 5(.10) = 2.75

Discrete Distributions

Page 9: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-9

0.00

0.05

0.10

0.15

0.20

0.25

0.30

0 1 2 3 4 5

Number of Service Calls

Pro

bab

ility

This particular probability distribution is not symmetric around the mean m = 2.75.

However, the mean is still the balancing point, or fulcrum.

m = 2.75

E(X) is an average and it does not have to be an observable point.

Example: Service Calls

Discrete Distributions

Page 10: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-10

• The variance is a weighted average of the dispersion about the mean, denoted either as s2 or V(X). It is a measure of variability.

Variance and Standard Deviation

Discrete Distributions

• If there are n distinct values of X, then the variance of a discrete random variable is:

• The standard deviation is the square root of the variance and is denoted s.

Page 11: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-11

Example: Bed and Breakfast

Discrete Distributions

Page 12: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-12

0.00

0.05

0.10

0.15

0.20

0.25

0.30

0 1 2 3 4 5 6 7

Number of Rooms Rented

Pro

bab

ility

The histogram shows that the distribution is skewed to the left and bimodal.

s = 2.06 indicates considerable variation around m.

The mode is 7 rooms rented but

the average is only 4.71 room rentals.

Example: Bed and Breakfast

Discrete Distributions

Page 13: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-13

• A probability distribution function (PDF) is a mathematical function that shows the probability of each X-value.

• A cumulative distribution function (CDF) is a mathematical function that shows the cumulative sum of probabilities, adding from the smallest to the largest X-value, gradually approaching unity.

What is a PDF or CDF?

3: Define probability distribution, PDF, and CDF.

Discrete Distributions

Page 14: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-14

0.00

0.05

0.10

0.15

0.20

0.25

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14

Value of X

Pro

bab

ility

0.00

0.10

0.20

0.30

0.40

0.50

0.60

0.70

0.80

0.90

1.00

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14

Value of X

Pro

bab

ility

Illustrative PDF(Probability Density Function)

Cumulative CDF(Cumulative Density Function)

Consider the following illustrative histograms:

What is a PDF or CDF?

PDF = P(X = x)CDF = P(X ≤ x)

Discrete Distributions

Page 15: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-15

• The binomial distribution arises when a Bernoulli experiment is repeated n times.

• Each trial is independent so the probability of success p remains constant on each trial.

• In a binomial experiment, we are interested in X = number of successes in n trials. So, X = X1 + X2 + ... + Xn

• The probability of a particular number of successes P(X) is determined by parameters n and p.

Characteristics of the Binomial Distribution

Binomial Distribution

LO6-5: Find binomial probabilities using tables, formulas, or Excel.

Page 16: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-16

• A random experiment with only 2 outcomes is a Bernoulli experiment.

• One outcome is arbitrarily labeled a “success” (denoted X = 1) and the other a “failure” (denoted X = 0).

p is the P(success), 1 – p is the P(failure).

• Note that P(0) + P(1) = (1 – p) + p = 1 and 0 ≤ p ≤ 1.

• “Success” is defined as the less likely outcome so that p < .5 for convenience.

Bernoulli Experiments

Bernoulli Distribution

• The expected value (mean) and variance of a Bernoulli experiment is calculated as:

E(X) = and V(X) = (1 - )

Page 17: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-17

Characteristics of the Binomial Distribution

Binomial Distribution

Page 18: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

It has been stated that about 41% of adult workers have a high school diploma but do not pursue any further education.

If 20 adult workers are randomly selected, find the probability that at most 12 of them have a high school diploma but do not pursue any further education.

How many adult workers do you expect to have a high school diploma but do not pursue any further education?

Let X = the number of workers who have a high school diploma but do not pursue any further education.

X takes on the values 0, 1, 2, ..., 20 where n = 20, p = 0.41, and q = 1 – 0.41 = 0.59.

X ~ B(20, 0.41)

Find P(x ≤ 12). P(x ≤ 12) = 0.9738.

Page 19: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-19

• Individual probabilities can be added to obtain any desired event probability.

• For example, the probability that the sample of 4 patients will contain at least 2 uninsured patients is

• HINT: What inequality means “at least?”

Compound Events

= .1536 + .0256 + .0016 = .1808

P(X 2) = P(2) + P(3) + P(4)

Binomial Distribution

Page 20: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-20

• What is the probability that fewer than 2 patients have insurance?

= .4096 + .4096 = .8192

• HINT: What inequality means “fewer than?”

• What is the probability that no more than 2 patients have insurance?

= .4096 + .4096 + .1536 = .9728

• HINT: What inequality means “no more than?”

Compound Events

P(X < 2) = P(0) + P(1)

P(X 2) = P(0) + P(1) + P(2)

Binomial Distribution

Page 21: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-21

It is helpful to sketch a diagram:

Compound Events

Binomial Distribution

Page 22: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-22

Go into 2nd DISTR. The syntax for the instructions are as follows:

To calculate (x = value): binompdf(n, p, number) if "number" is left out, the result is the binomial probability table.

To calculate P(x ≤ value): binomcdf(n, p, number) if "number" is left out, the result is the cumulative binomial probability table.

For this problem: After you are in 2nd DISTR, arrow down to binomcdf.

Press ENTER.

Enter 20,0.41,12). The result is P(x ≤ 12) = 0.9738.

Using a TI-83 or Ti-84 Calculator

Binomial Distribution

If you want to find P(x = 12), use the pdf (binompdf).

If you want to find P(x > 12), use 1 - binomcdf(20,0.41,12).

Page 23: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-23

• It is important to quick oil change shops to ensure that a car’s service time is not considered “late” by the customer.

• Service times are defined as either late or not late.

• X is the number of cars that are late out of the total number of cars serviced.

• Assumptions: - cars are independent of each other - probability of a late car is consistent

Example: Quick Oil Change Shop

Binomial Distribution

Page 24: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-24

• What is the probability that exactly 2 of the next n = 12 cars serviced are late (P(X = 2))?

• P(car is late) = p = .10

• P(car is not late) = 1 - p = .90

Example: Quick Oil Change Shop

Binomial Distribution

If you want to find P(x = 2), use the pdf (binompdf) (12,0. 1,2).

Page 25: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-25

In the 2013 Jerry’s Artarama art supplies catalog, there are 560 pages. Eight of the pages feature signature artists. Suppose we randomly sample 100 pages.

Let X = the number of pages that feature signature artists.

Find the following probabilities:1. the probability that two pages feature signature artists2. the probability that at most six pages feature signature artists3. the probability that more than three pages feature signature artists.

Application: Art Supplies

Binomial Distribution

Page 26: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-26

Find the following probabilities:1. the probability that two pages feature signature artists

P(x = 2) = binompdf (100, 8/560, 2 )= 0.2466

2. the probability that at most six pages feature signature artists

P(x ≤ 6) = binomcdf ( 100, 8/560, 6 ) = 0.9994

3. the probability that more than three pages feature signature artists.

P(x > 3) = 1 – P(x ≤ 3) = 1 – binomcdf (100, 8/560, 3 ) = 1 – 0.9443 = 0.0557

Application: Art Supplies

Binomial Distribution

Page 27: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-27

• The events occur randomly and independently over a continuum of time or space:

• Called the model of arrivals, most Poisson applications model arrivals per unit of time.

Each dot (•) is an occurrence of the event of interest.

6.5 Poisson Distribution

6: Poisson Events Distributed over Time.

Page 28: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-28

• Let X = the number of events per unit of time.

• X is a random variable that depends on when the unit of time is observed.

• For example, we could get X = 3 or X = 1 or X = 5 events, depending on where the randomly chosen unit of time happens to fall.

The Poisson model’s only parameter is l (Greek letter “lambda”) where l represents the mean number of events per unit of time or space.

Poisson Distribution

Page 29: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-29

Characteristics of the Poisson Distribution

Poisson Distribution

Page 30: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-30

Example: Credit Union Customers

• On Thursday morning between 9 A.M. and 10 A.M. customers arrive and enter the queue at the Oxnard University Credit Union at a mean rate of 1.7 customers per minute.

Poisson Distribution

Note the unit for the mean and standard deviation is customers/minute.

• Find the PDF, mean and standard deviation:

Page 31: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-31

• Cumulative probabilities can be evaluated by summing individual X probabilities.

• What is the probability that two or fewer customers will arrive in a given minute?

= .1827 + .3106 + .2640 = .7573

Compound Events

P(X 2) = P(0) + P(1) + P(2)

• What is the probability of at least three customers (the complimentary event)?

P(X 3) = 1 - P(X 2) = 1 - .7573 =.2427

Poisson Distribution

Page 32: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-32

• The hypergeometric distribution is similar to the binomial distribution.

• However, unlike the binomial, sampling is without replacement from a finite population of N items.

• The hypergeometric distribution may be skewed right or left and is symmetric only if the proportion of successes in the population is 50%.

Characteristics of the Hypergeometric Distribution

Hypergeometric Distribution

8: Find hypergeometric probabilities using Excel.

Page 33: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-33

Characteristics of the Hypergeometric Distribution

Hypergeometric Distribution

NOTECurrently, the TI-83+ and TI-84 do not have hypergeometric probability functions. There are a number of computer packages, including Microsoft Excel, that do.

Page 34: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-34

• In a shipment of 10 iPods, 2 were damaged and 8 are good.

• The receiving department at Best Buy tests a sample of 3 iPods at random to see if they are defective.

• Let the random variable X be the number of damaged iPods in the sample.

Example: Damaged iPods

N = 10 (number of iPods in the shipment)n = 3 (sample size drawn from the shipment)s = 2 (number of damaged iPods in the shipment (“successes” in population))N–s = 8 (number of non-damaged iPods in the shipment)x = number of damaged iPods in the sample (“successes” in sample)n–x = number of non-damaged iPods in the sample

Hypergeometric Distribution

Page 35: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-35

• This is not a binomial problem because p is not constant.• What is the probability of getting a damaged iPod on the first draw from the

sample?p1 = 2/10

• Now, what is the probability of getting a damaged iPod on the second draw?

p2 = 1/9 (if the first iPod was damaged) or = 2/9 (if the first iPod was undamaged)

Example: Damaged iPods

• What about on the third draw?

p3 = 0/8 or = 1/8 or = 2/8 depending on what happened in the first two draws.

Hypergeometric Distribution

Page 36: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-36

Since there are only 2 damaged iPods in the population, the only possible values of x are 0, 1, and 2. Here are the probabilities:

Using the Hypergeometric Formula

Hypergeometric Distribution

Page 37: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-37

Since the hypergeometric formula and tables are tedious and impractical, use Excel’s hypergeometric function to find probabilities.

Using Software: Excel

Figure 6.27

Hypergeometric Distribution

Page 38: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-38

• The geometric distribution describes the number of Bernoulli trials until the first success.

• X is the number of trials until the first success.

• X ranges from {1, 2, . . .} since we must have at least one trial to obtain the first success. However, the number of trials is not fixed.

Characteristics of the Geometric Distribution

• p is the constant probability of a success on each trial.

Geometric Distribution

9: Calculate Geometric probabilities.

Page 39: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-39

Characteristics of the Geometric Distribution

Example: Telefund Calling• At Faber University, 15% of the alumni make a donation or pledge during

the annual telefund. • What is the probability that the first donation will occur on the 7th call?

Geometric Distribution

Page 40: 6-1 Discrete Probability Distributions Chapter Contents 6.1 Discrete Distributions 6.2 Uniform Distribution 6.3 Bernoulli Distribution 6.4 Binomial Distribution.

6-40

Assume that the probability of a defective computer component is 0.02. Components are randomly selected.

Find the probability that the first defect is caused by the seventh component tested.

How many components do you expect to test until one is found to be defective?

Let X = the number of computer components tested until the first defect is found.

X takes on the values 1, 2, 3, ... where p = 0.02. X ~ G(0.02)Find P(x = 7). P(x = 7) = 0.0177.

To find the probability that x = 7,• Enter 2nd, DISTR• Scroll down and select geometpdf(• Press ENTER• Enter 0.02, 7); press ENTER to see the result: P(x = 7) = 0.0177To find the probability that x ≤ 7, follow the same instructions EXCEPT select E:geometcdf (as the distribution function.

The probability that the seventh component is the first defect is 0.0177.