60
1 Slide Cengage Learning. All Rights Reserved. May not be scanned, copied duplicated, or posted to a publicly accessible website, in whole or in part. Slides by John Loucks St. Edward’s University

Slides by John Loucks St . Edward’s University

  • Upload
    levana

  • View
    32

  • Download
    2

Embed Size (px)

DESCRIPTION

Slides by John Loucks St . Edward’s University. .40. .30. .20. .10. 0 1 2 3 4. Chapter 5 Discrete Probability Distributions. Random Variables. Discrete Probability Distributions. Expected Value and Variance. Binomial Probability Distribution. - PowerPoint PPT Presentation

Citation preview

Page 1: Slides by John Loucks St . Edward’s University

1 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Slides by

JohnLoucks

St. Edward’sUniversity

Page 2: Slides by John Loucks St . Edward’s University

2 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Chapter 5 Discrete Probability Distributions

.10

.20

.30

.40

0 1 2 3 4

Random Variables Discrete Probability Distributions Expected Value and Variance Binomial Probability Distribution Poisson Probability Distribution Hypergeometric Probability

Distribution

Page 3: Slides by John Loucks St . Edward’s University

3 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

A random variable is a numerical description of the outcome of an experiment.

Random Variables

A discrete random variable may assume either a finite number of values or an infinite sequence of values.

A continuous random variable may assume any numerical value in an interval or collection of intervals.

Page 4: Slides by John Loucks St . Edward’s University

4 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Let x = number of TVs sold at the store in one day, where x can take on 5 values (0, 1, 2, 3, 4)

Example: JSL Appliances

Discrete Random Variablewith a Finite Number of Values

We can count the TVs sold, and there is a finiteupper limit on the number that might be sold (whichis the number of TVs in stock).

Page 5: Slides by John Loucks St . Edward’s University

5 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Let x = number of customers arriving in one day, where x can take on the values 0, 1, 2, . . .

Discrete Random Variablewith an Infinite Sequence of Values

We can count the customers arriving, but there isno finite upper limit on the number that might arrive.

Example: JSL Appliances

Page 6: Slides by John Loucks St . Edward’s University

6 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Random Variables

Question Random Variable x Type

Familysize

x = Number of dependents reported on tax return

Discrete

Distance fromhome to store

x = Distance in miles from home to the store site

Continuous

Own dogor cat

x = 1 if own no pet; = 2 if own dog(s) only; = 3 if own cat(s) only; = 4 if own dog(s) and cat(s)

Discrete

Page 7: Slides by John Loucks St . Edward’s University

7 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

The probability distribution for a random variable describes how probabilities are distributed over the values of the random variable.

We can describe a discrete probability distribution with a table, graph, or formula.

Discrete Probability Distributions

Page 8: Slides by John Loucks St . Edward’s University

8 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

The probability distribution is defined by a probability function, denoted by f(x), which provides the probability for each value of the random variable.

The required conditions for a discrete probability function are:

Discrete Probability Distributions

f(x) > 0

f(x) = 1

Page 9: Slides by John Loucks St . Edward’s University

9 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

• a tabular representation of the probability distribution for TV sales was developed.

• Using past data on TV sales, …

Number Units Sold of Days

0 80 1 50 2 40 3 10 4 20

200

x f(x) 0 .40 1 .25 2 .20 3 .05 4 .10 1.00

80/200

Discrete Probability Distributions Example: JSL Appliances

Page 10: Slides by John Loucks St . Edward’s University

10 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

.10.20.30.40.50

0 1 2 3 4Values of Random Variable x (TV sales)

Prob

abilit

y

Discrete Probability Distributions Example: JSL Appliances

Graphicalrepresentationof probabilitydistribution

Page 11: Slides by John Loucks St . Edward’s University

11 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Discrete Uniform Probability Distribution

The discrete uniform probability distribution is the simplest example of a discrete probability distribution given by a formula.

The discrete uniform probability function is

f(x) = 1/n

where:n = the number of values the random variable may assume

the values of the

random variable

are equally likely

Page 12: Slides by John Loucks St . Edward’s University

12 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Expected Value

The expected value, or mean, of a random variable is a measure of its central location.

The expected value is a weighted average of the values the random variable may assume. The weights are the probabilities.

The expected value does not have to be a value the random variable can assume.

E(x) = = xf(x)

Page 13: Slides by John Loucks St . Edward’s University

13 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Variance and Standard Deviation

The variance summarizes the variability in the values of a random variable.

The variance is a weighted average of the squared deviations of a random variable from its mean. The weights are the probabilities.

Var(x) = 2 = (x - )2f(x)

The standard deviation, , is defined as the positive square root of the variance.

Page 14: Slides by John Loucks St . Edward’s University

14 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

expected number of TVs sold in a day

x f(x) xf(x) 0 .40 .00 1 .25 .25 2 .20 .40 3 .05 .15 4 .10 .40

E(x) = 1.20

Expected Value Example: JSL Appliances

Page 15: Slides by John Loucks St . Edward’s University

15 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

01234

-1.2-0.2 0.8 1.8 2.8

1.440.040.643.247.84

.40

.25

.20

.05

.10

.576

.010

.128

.162

.784

x - (x - )2 f(x) (x - )2f(x)

Variance of daily sales = 2 = 1.660

x

TVssquare

d

Standard deviation of daily sales = 1.2884 TVs

Variance Example: JSL Appliances

Page 16: Slides by John Loucks St . Edward’s University

16 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Excel Formula Worksheet

Using Excel to Compute the ExpectedValue, Variance, and Standard Deviation

A B C1 Sales Probability Sq.Dev.from Mean2 0 0.40 =(A2-$B$8)^23 1 0.25 =(A3-$B$8)^24 2 0.20 =(A4-$B$8)^25 3 0.05 =(A5-$B$8)^26 4 0.10 =(A6-$B$8)^278 Mean =SUMPRODUCT(A2:A6,B2:B6)9 Variance =SUMPRODUCT(C2:C6,B2:B6)

10 Std.Dev. =SQRT(B9)

Page 17: Slides by John Loucks St . Edward’s University

17 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Excel Value WorksheetA B C

1 Sales Probability Sq.Dev.from Mean2 0 0.40 1.443 1 0.25 0.044 2 0.20 0.645 3 0.05 3.246 4 0.10 7.8478 Mean 1.29 Variance 1.66

10 Std.Dev. 1.2884

Using Excel to Compute the ExpectedValue, Variance, and Standard Deviation

Page 18: Slides by John Loucks St . Edward’s University

18 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Binomial Probability Distribution Four Properties of a Binomial Experiment

3. The probability of a success, denoted by p, does not change from trial to trial.

4. The trials are independent.

2. Two outcomes, success and failure, are possible on each trial.

1. The experiment consists of a sequence of n identical trials.

stationarity

assumption

Page 19: Slides by John Loucks St . Edward’s University

19 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Binomial Probability Distribution

Our interest is in the number of successes occurring in the n trials.

We let x denote the number of successes occurring in the n trials.

Page 20: Slides by John Loucks St . Edward’s University

20 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

where: x = the number of successes p = the probability of a success on one trial n = the number of trials f(x) = the probability of x successes in n trials n! = n(n – 1)(n – 2) ….. (2)(1)

( )!( ) (1 )!( )!x n xnf x p p

x n x

Binomial Probability Distribution Binomial Probability Function

Page 21: Slides by John Loucks St . Edward’s University

21 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

( )!( ) (1 )!( )!x n xnf x p p

x n x

Binomial Probability Distribution Binomial Probability

Function

Probability of a particular sequence of trial outcomes with x successes in n trials

Number of experimental outcomes providing exactly

x successes in n trials

Page 22: Slides by John Loucks St . Edward’s University

22 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Binomial Probability Distribution Example: Evans Electronics

Evans Electronics is concerned about a lowretention rate for its employees. In recent

years,management has seen a turnover of 10% of

thehourly employees annually.

Choosing 3 hourly employees at random, what is

the probability that 1 of them will leave the company

this year?

Thus, for any hourly employee chosen at random,

management estimates a probability of 0.1 that the

person will not be with the company next year.

Page 23: Slides by John Loucks St . Edward’s University

23 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Binomial Probability Distribution Example: Evans Electronics

The probability of the first employee leaving and the

second and third employees staying, denoted (S, F, F),

is given byp(1 – p)(1 – p)With a .10 probability of an employee leaving

on anyone trial, the probability of an employee

leaving onthe first trial and not on the second and third

trials isgiven by

(.10)(.90)(.90) = (.10)(.90)2 = .081

Page 24: Slides by John Loucks St . Edward’s University

24 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Binomial Probability Distribution Example: Evans Electronics

Two other experimental outcomes also result in one

success and two failures. The probabilities for all

three experimental outcomes involving one success

follow.Experimental

Outcome(S, F, F)(F, S, F)(F, F, S)

Probability ofExperimental Outcome

p(1 – p)(1 – p) = (.1)(.9)(.9) = .081

(1 – p)p(1 – p) = (.9)(.1)(.9) = .081

(1 – p)(1 – p)p = (.9)(.9)(.1) = .081

Total = .243

Page 25: Slides by John Loucks St . Edward’s University

25 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Binomial Probability Distribution

f x nx n x

p px n x( ) !!( )!

( )( )

1

1 23!(1) (0.1) (0.9) 3(.1)(.81) .2431!(3 1)!f

Let: p = .10, n = 3, x = 1

Example: Evans ElectronicsUsing theprobabilityfunction

Page 26: Slides by John Loucks St . Edward’s University

26 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Binomial Probability Distribution

1st Worker 2nd Worker 3rd Worker x Prob.

Leaves (.1)

Stays (.9)

3

2

0

22

Leaves (.1)

Leaves (.1)S (.9)

Stays (.9)

Stays (.9)

S (.9)

S (.9)

S (.9)

L (.1)

L (.1)

L (.1)

L (.1) .0010

.0090

.0090

.7290

.0090

11

.0810

.0810

.0810

1

Example: Evans Electronics Using a tree diagram

Page 27: Slides by John Loucks St . Edward’s University

27 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Using Excel to ComputeBinomial Probabilities

Excel Formula WorksheetA B

1 3 = Number of Trials (n ) 2 0.1 = Probability of Success (p ) 34 x f (x )5 0 =BINOM.DIST(A5,$A$1,$A$2,FALSE)6 1 =BINOM.DIST(A6,$A$1,$A$2,FALSE)7 2 =BINOM.DIST(A7,$A$1,$A$2,FALSE)8 3 =BINOM.DIST(A8,$A$1,$A$2,FALSE)9

Page 28: Slides by John Loucks St . Edward’s University

28 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Using Excel to ComputeBinomial Probabilities

Excel Value WorksheetA B

1 3 = Number of Trials (n ) 2 0.1 = Probability of Success (p ) 34 x f (x )5 0 0.7296 1 0.2437 2 0.0278 3 0.0019

Page 29: Slides by John Loucks St . Edward’s University

29 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Using Excel to ComputeCumulative Binomial Probabilities

Excel Formula WorksheetA B

1 3 = Number of Trials (n ) 2 0.1 = Probability of Success (p ) 34 x Cumulative Probability5 0 =BINOM.DIST(A5,$A$1,$A$2,TRUE )6 1 =BINOM.DIST(A6,$A$1,$A$2,TRUE )7 2 =BINOM.DIST(A7,$A$1,$A$2,TRUE )8 3 =BINOM.DIST(A8,$A$1,$A$2,TRUE )9

Page 30: Slides by John Loucks St . Edward’s University

30 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Using Excel to ComputeCumulative Binomial Probabilities

Excel Value WorksheetA B

1 3 = Number of Trials (n ) 2 0.1 = Probability of Success (p ) 34 x Cumulative Probability5 0 0.7296 1 0.9727 2 0.9998 3 1.0009

Page 31: Slides by John Loucks St . Edward’s University

31 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Binomial Probabilitiesand Cumulative Probabilities

With modern calculators and the capability of statistical software packages, such tables arealmost unnecessary.

These tables can be found in some statisticstextbooks.

Statisticians have developed tables that giveprobabilities and cumulative probabilities for abinomial random variable.

Page 32: Slides by John Loucks St . Edward’s University

32 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Binomial Probability Distribution

(1 )np p

E(x) = = np

Var(x) = 2 = np(1 p)

Expected Value

Variance

Standard Deviation

Page 33: Slides by John Loucks St . Edward’s University

33 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Binomial Probability Distribution

3(.1)(.9) .52 employees

E(x) = np = 3(.1) = .3 employees out of 3

Var(x) = np(1 – p) = 3(.1)(.9) = .27

• Expected Value

• Variance

• Standard Deviation

Example: Evans Electronics

Page 34: Slides by John Loucks St . Edward’s University

34 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

A Poisson distributed random variable is often useful in estimating the number of occurrences over a specified interval of time or space

It is a discrete random variable that may assume an infinite sequence of values (x = 0, 1, 2, . . . ).

Poisson Probability Distribution

Page 35: Slides by John Loucks St . Edward’s University

35 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Examples of a Poisson distributed random variable:

the number of knotholes in 14 linear feet of pine board

the number of vehicles arriving at a toll booth in one hour

Poisson Probability Distribution

Bell Labs used the Poisson distribution to model the arrival of phone calls.

Page 36: Slides by John Loucks St . Edward’s University

36 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Poisson Probability Distribution Two Properties of a Poisson Experiment

2. The occurrence or nonoccurrence in any interval is independent of the occurrence or nonoccurrence in any other interval.

1. The probability of an occurrence is the same for any two intervals of equal length.

Page 37: Slides by John Loucks St . Edward’s University

37 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Poisson Probability Function

Poisson Probability Distribution

f x ex

x( )

!

where: x = the number of occurrences in an interval f(x) = the probability of x occurrences in an interval = mean number of occurrences in an interval e = 2.71828 x! = x(x – 1)(x – 2) . . . (2)(1)

Page 38: Slides by John Loucks St . Edward’s University

38 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Poisson Probability Distribution Poisson Probability Function

In practical applications, x will eventually becomelarge enough so that f(x) is approximately zero andthe probability of any larger values of x becomesnegligible.

Since there is no stated upper limit for the numberof occurrences, the probability function f(x) isapplicable for values x = 0, 1, 2, … without limit.

Page 39: Slides by John Loucks St . Edward’s University

39 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Poisson Probability Distribution Example: Mercy Hospital

Patients arrive at the emergency room of Mercy

Hospital at the average rate of 6 per hour onweekend evenings. What is the probability of 4 arrivals in 30

minuteson a weekend evening?

Page 40: Slides by John Loucks St . Edward’s University

40 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Poisson Probability Distribution

4 33 (2.71828)(4) .16804!f

= 6/hour = 3/half-hour, x = 4

Example: Mercy Hospital Using theprobabilityfunction

Page 41: Slides by John Loucks St . Edward’s University

41 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Using Excel to ComputePoisson Probabilities

Excel Formula Worksheet

… and so on … and so on

A B1 3 = Mean No. of Occurrences ()2

3Number of Arrivals (x ) Probability f (x )

4 0 =POISSON.DIST(A4,$A$1,FALSE)5 1 =POISSON.DIST(A5,$A$1,FALSE)6 2 =POISSON.DIST(A6,$A$1,FALSE)7 3 =POISSON.DIST(A7,$A$1,FALSE)8 4 =POISSON.DIST(A8,$A$1,FALSE)9 5 =POISSON.DIST(A9,$A$1,FALSE)

10 6 =POISSON.DIST(A10,$A$1,FALSE)

Page 42: Slides by John Loucks St . Edward’s University

42 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Using Excel to ComputePoisson Probabilities

Excel Value Worksheet

… and so on … and so on

A B1 3 = Mean No. of Occurrences ()2

3Number of Arrivals (x ) Probability f (x )

4 0 0.04985 1 0.14946 2 0.22407 3 0.22408 4 0.16809 5 0.1008

10 6 0.0504

Page 43: Slides by John Loucks St . Edward’s University

43 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Poisson Probability Distribution

Poisson Probabilities

0.00

0.05

0.10

0.15

0.20

0.25

0 1 2 3 4 5 6 7 8 9 10Number of Arrivals in 30 Minutes

Prob

abili

ty

actually, the

sequencecontinues:11, 12, …

Example: Mercy Hospital

Page 44: Slides by John Loucks St . Edward’s University

44 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Excel Formula Worksheet

… and so on … and so on

Using Excel to ComputeCumulative Poisson Probabilities

A B1 3 = Mean No. of Occurrences ( )2

3Number of Arrivals (x ) Cumulative Probability

4 0 =POISSON.DIST(A4,$A$1,TRUE)5 1 =POISSON.DIST(A5,$A$1,TRUE)6 2 =POISSON.DIST(A6,$A$1,TRUE)7 3 =POISSON.DIST(A7,$A$1,TRUE)8 4 =POISSON.DIST(A8,$A$1,TRUE)9 5 =POISSON.DIST(A9,$A$1,TRUE)

10 6 =POISSON.DIST(A10,$A$1,TRUE)

Page 45: Slides by John Loucks St . Edward’s University

45 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Excel Value Worksheet

… and so on … and so on

Using Excel to ComputeCumulative Poisson Probabilities

A B1 3 = Mean No. of Occurrences ( )2

3Number of Arrivals (x) Cumulative Probability

4 0 0.04985 1 0.19916 2 0.42327 3 0.64728 4 0.81539 5 0.9161

10 6 0.9665

Page 46: Slides by John Loucks St . Edward’s University

46 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Poisson Probability Distribution

A property of the Poisson distribution is thatthe mean and variance are equal.

= 2

Page 47: Slides by John Loucks St . Edward’s University

47 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Poisson Probability Distribution

Variance for Number of ArrivalsDuring 30-Minute Periods

= 2 = 3

Example: Mercy Hospital

Page 48: Slides by John Loucks St . Edward’s University

48 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Hypergeometric Probability Distribution

The hypergeometric distribution is closely related to the binomial distribution.

However, for the hypergeometric distribution:

the trials are not independent, and

the probability of success changes from trial to trial.

Page 49: Slides by John Loucks St . Edward’s University

49 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Hypergeometric Probability Function

Hypergeometric Probability Distribution

nN

xnrN

xr

xf )(

where: x = number of successes n = number of trials

f(x) = probability of x successes in n trials N = number of elements in the population r = number of elements in the population

labeled success

Page 50: Slides by John Loucks St . Edward’s University

50 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Hypergeometric Probability Function

Hypergeometric Probability Distribution

( )

r N rx n x

f xNn

for 0 < x < r

number of waysx successes can be selectedfrom a total of r successes

in the population

number of waysn – x failures can be selectedfrom a total of N – r failures

in the population

number of waysn elements can be selected from a population of size N

Page 51: Slides by John Loucks St . Edward’s University

51 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Hypergeometric Probability Distribution Hypergeometric Probability Function

If these two conditions do not hold for a value of x, the corresponding f(x) equals 0.

However, only values of x where: 1) x < r and2) n – x < N – r are valid.

The probability function f(x) on the previous slideis usually applicable for values of x = 0, 1, 2, … n.

Page 52: Slides by John Loucks St . Edward’s University

52 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Hypergeometric Probability Distribution

Bob Neveready has removed two dead batteries

from a flashlight and inadvertently mingled them

with the two good batteries he intended asreplacements. The four batteries look

identical.

Example: Neveready’s Batteries

Bob now randomly selects two of the fourbatteries. What is the probability he selects

the twogood batteries?

Page 53: Slides by John Loucks St . Edward’s University

53 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Hypergeometric Probability Distribution

2 2 2! 2!2 0 2!0! 0!2! 1( ) .1674 4! 6

2 2!2!

r N rx n x

f x Nn

where: x = 2 = number of good batteries selected

n = 2 = number of batteries selected N = 4 = number of batteries in total r = 2 = number of good batteries in total

Using theprobabilityfunction

Example: Neveready’s Batteries

Page 54: Slides by John Loucks St . Edward’s University

54 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Using Excel to ComputeHypergeometric Probabilities

Excel Formula WorksheetA B

1 2 Number of Successes (x ) 2 2 Number of Trials (n ) 3 2 Number of Elements in the Population Labeled Success (r ) 4 4 Number of Elements in the Population (N ) 5 6 f (x ) =HYPGEOM.DIST(A1,A2,A3,A4)7

Page 55: Slides by John Loucks St . Edward’s University

55 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Using Excel to ComputeHypergeometric Probabilities

Excel Value WorksheetA B

1 2 Number of Successes (x ) 2 2 Number of Trials (n ) 3 2 Number of Elements in the Population Labeled Success (r ) 4 4 Number of Elements in the Population (N ) 5 6 f (x ) 0.16677

Page 56: Slides by John Loucks St . Edward’s University

56 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Hypergeometric Probability Distribution

( ) rE x nN

2( ) 11

r r N nVar x nN N N

Mean

Variance

Page 57: Slides by John Loucks St . Edward’s University

57 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Hypergeometric Probability Distribution

22 14

rnN

2 2 2 4 2 12 1 .3334 4 4 1 3

• Mean

• Variance

Example: Neveready’s Batteries

Page 58: Slides by John Loucks St . Edward’s University

58 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Hypergeometric Probability Distribution

Consider a hypergeometric distribution with n trials and let p = (r/n) denote the probability of a success on the first trial. If the population size is large, the term (N – n)/(N – 1) approaches 1.

The expected value and variance can be written E(x) = np and Var(x) = np(1 – p).

Note that these are the expressions for the expected value and variance of a binomial distribution.

continued

Page 59: Slides by John Loucks St . Edward’s University

59 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

Hypergeometric Probability Distribution

When the population size is large, a hypergeometric distribution can be approximated by a binomial distribution with n trials and a probability of success p = (r/N).

Page 60: Slides by John Loucks St . Edward’s University

60 Slide© 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied

or duplicated, or posted to a publicly accessible website, in whole or in part.

End of Chapter 5