1 chapter 4 discrete random variables 4.1 discrete and continuous 4.2 probability distribution 4.3...

57
1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6 Hypergeometric Homework: 3,5,7,9,11,13,15,21,23,27,31, 43,52,53,61,63,68,69,77

Upload: daisy-wells

Post on 26-Dec-2015

226 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

1

Chapter 4 Discrete Random Variables4.1 Discrete and Continuous

4.2 Probability Distribution

4.3 Expectation and Variance

4.4 Binominal

4.5 Poisson

4.6 Hypergeometric

Homework: 3,5,7,9,11,13,15,21,23,27,31,

43,52,53,61,63,68,69,77

Page 2: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

2

Last chapter we discussed several useful concepts of dealing with probability problems. However, it is very difficult to write down sample spaces of some random experiments. In these cases the concept random variable is very useful. A random variable is a variable that assumes values associated with the random outcomes of a random experiment, where one and only one numerical values is assigned to each sample point. It is random because we can not predict the outcome of a random experiment. It is a variable because there are more than one possible sample points in a random experiment.

Page 3: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

3

<Example 4.1>: (Basic)

One hundred fair coins are tossed and the up faces are observed.

(a) Is it convenient to write down the sample space for this random experiment?

(b) Do we need to write down the sample space if we are interested in counting the number of heads in this random experiment?

<Solutions>:(a) No, it takes vary long time to write the sample space of

this random experiment.

(b) No, we can use the concept of random variable to solve our problem.

Page 4: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

4

Section 4.1: Discrete and Continuous Random Variable

Some random variable can assume values on countable many numbers (such as integers) and some random variable can assume values on one or more intervals. For example, the distance between you home and UCF is between 0 and 100 miles that is an interval, i.e. the distance between your home and UCF is a continuous random variable. But the number of head in coin tossing experiment is a countable number, i.e. the number of heads in a coin tossing experiment is a discrete random variable.

Page 5: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

5

<Example 4.2> (Basic)

List five discrete random variables and five continuous random variables.

Page 6: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

6

Sec 4.2: Probability Distributions for Discrete Random Variables

This chapter will focus on the discussion of discrete random variable. A complete description of a discrete random variable requires that we specify all the possible values the random variable can assume and the probability associated with each value. Usually, we can use the following four steps to complete a probability table.

Step 1: Find out the variable of interest.

Step 2: List all the sample points in the sample space.

Step 3: List all the possible values of this random variable.

Step 4: Assign the probabilities to all the possible values.

Page 7: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

7

<Example 4.3>: (Basic)

A company has five applicants for two positions: three from UCF and two from UF. Suppose that the five applicants are equally qualified and no preference is given for choosing either school. Let x be the number of UCF graduates chosen to fill the two positions.

(a) What is the random variable of interest?

(b) Write down the sample space.

(c) Write the probability table.

Page 8: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

8

The probability distribution of a discrete random variable is a graph, a table, or a formula that specifies the probability associated with each possible value the random variable can assume. The probability distribution should not include values that have zero probabilities. The rules to assign probability discussed in Section 3.2 should be followed as well. Thus, the probability of any value of a random variable is between 0 and 1 and the sum of the probabilities of all possible values of a random variable is equal to one.

Page 9: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

9

<Example 4.4>: (Basic)

A random variable has the following probability table:

x 0 1 2 3 4

p(x) 0.1 0.2 0.3 ? 0.15

(a) Find P(x=3).

(b) Is x a continuous random variable?

Page 10: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

10

<Example 4.5>: (Advance)

A lady claims that she can taste the difference between PEPSI and COKE. Therefore, we conduct an experiment to confirm her claim. Four cups of cola that some are COKE colas and some are PEPSI colas are displayed in front of her. After tasting these colas, she needs to identify the contents in each cups. We are interested in the correct decisions made by her in this experiment.

(a) What is the random variable of interest?

(b) Write down the sample space.

(c) Write the probability table.

Page 11: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

11

Sec 4.3: Expectation and Variance of a Discrete Random Variable

We discussed how to obtain the sample mean, the sample variance, and the sample standard deviation in chapter 2. Now, we introduce the formulas of getting the population mean, the population variance, and the population standard deviation of a discrete random variable. Suppose X is a discrete random variable with probability distribution p(x). The expectation of X is the population mean of X. Let , , and be the population mean, the population variance, and the population standard deviation of X, respectively. Then

= E(x) xp(x),

= E[(x-)2] = (x-)2 p(x), and = 2

2

Page 12: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

12

<Example 4.6>: (Basic)

Consider the probability table of random variable x below.

x p(x)

1 0.1

3 0.2

5 0.3

6 0.3

10 0.1

Page 13: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

13

(a) Find the expectation of this random variable.

<Solution>:

x p(x) xp(x)

1 0.1 0.1

3 0.2 0.6

5 0.3 1.5

6 0.3 1.8

10 0.1 1.0

mean = xp(x) = 0.1 + 0.6 + 1.5 + 1.8 + 1.0 = 5

Page 14: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

14

(b) Find the standard deviation of this random variable.

<Solution>:

x- (x-)2 (x-)2p(x)

-4 16 1.6

-2 4 0.8

0 0 0

1 1 0.3

5 25 2.5

the variance = p(x)5.2 and the standard deviation = = 2.28.

2 ( )x 2

Page 15: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

15

(c) What is the probability that x falls within the interval (

(d) Does the result satisfy the Chebyshev’s Rule?

(e) Does the result satisfy the Empirical Rule? Explain.

Solutions>c

Thus, the probability that x falls within the interval (is 0.9 (0.9=0.1+0.2+0.3+0.3).

(d) Yes.

(e) No, because the random variable x does not have a mound-shape distribution.

Page 16: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

16

<Example 4.7>: (Basic)

You need to pay one dollar to buy an instant lottery ticket. In this instant lottery game, you have 10% chance to win a one dollar bill and 5% chance to win a five dollar bill. You are interested in the money which you can win in a single play.

Page 17: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

17

(a) Write down the probability table.

<Solution>:

x p(x)

1 0.1

5 0.05

0 0.85

Note: The lottery official does (not?) want you to know that you have 85% chance to “win” nothing.

Page 18: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

18

(b) Find the mean.

<Solution>:

x p(x) xp(x)

1 0.1 0.1

5 0.05 0.25

0 0.85 0

mean = xp(x) = 0.1+0.25+0 = 0.35

Page 19: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

19

(c) Find the standard deviation of the game.

<Solution>:

x- (x-)2 (x-)2p(x)

0.65 0.4225 0.04225

4.65 21.6225 1.081125

-0.35 0.1225 0.104125

the variance = xp(x) and the standard deviation = 1.10793.

Page 20: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

20

(d) Do you believe the lottery officials claim ``the more you play the more you win’’?

<Solution>:Clearly, I don’t believe it because lottery

revenue is another form of taxes for the lottery players.

Page 21: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

21

<Example 4.8>: (Basic)

A study selected a sample of fifth grade pupils and recorded how many years of school they eventually completed. Let X be the highest year of school that a randomly selected fifth grader completes. (Students who go on to college are included in the outcome of x=12.) The probability is as follows:

x 4 5 6 7 8 9 10 11 12

p(x) .01 .007 .007 ? .032 .068 .070 .041 .752

(a) Find P(X = 7).

<Solution>: P(X=7)=1-(0.01+0.007+0.013+0.032+

0.068+0.070+0.041+0.752) = 0.007.

Page 22: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

22

(b) Find the mean and standard deviation.

<Solutions>:x p(x) x * p(x) (x-)2 (x-)2p(x)

4 0.01 0.04 52.577001 0.52577001

5 0.007 0.035 39.075001 0.273525007

6 0.007 0.042 27.573001 0.193011007

7 0.013 0.091 18.071001 0.234923013

8 0.032 0.256 10.569001 0.338208032

9 0.068 0.612 5.067001 0.344556068

10 0.070 0.700 1.565001 0.10955007

11 0.041 0.451 0.063001 0.002583041

12 0.752 9.024 0.561001 0.421872752

11.251 2.44400

Thus, =11.251, and

Page 23: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

23

(c) Find P(x >= 9).

(d) Can you apply the Empirical rule to find the probability of X falls into the interval (

Solutions>c) P(X 9) = .068+.070+.041+.762 = 0.931

(d)

Thus, the probability that x falls within the interval (is 0. 934. Although the probability is close to 0.95, we can only apply the chebyshev’s Rule because the empirical distribution of this random variable is not mound-shape.

Page 24: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

24

Sec 4.4: The Binomial Random Variable

The responses of many experiments have only two alternatives such as "Yes or No”, "True or False", "Male or Female”, and "Failure or Success". These types of experiments have some characteristic in common. First, they consist of n identical and independent trials. Second, there are only two possible outcomes, denoted by S and F on each trail. Third, the possibility of each outcome remains unchanged from trial to trial, that is, the probability of S is p and probability of F is q=(1-p) in each trial.

Page 25: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

25

Fourth, we are interested in the random variable x represented the number of S happened in n trails (n is a fixed number). Therefore, it is worth to develop a special probability model to deal with this kind of random variables. Any random variable that has these four characteristics is called binomial random variable and can be dealt with by using this special probability model.

Page 26: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

26

<Example 4.9>: (Basic) List several random variables that have only two possible outcomes.

<Solutions>:

Gender of a student in STA 3023;

Win or Loss in a football game;

Pass or Fail in an exam;

Hit or Miss in a state lottery drawing;

True or False to answer a question;

Page 27: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

27

<Example 4.10>: (Basic) For each of the following situations, indicate whether a binomial distribution is a reasonable probability model for the random variable X.

(a) A couple decides to continue to have children until their first girl is born; X is the total number of children the couple has.

(b) Fifty students are taught about binomial probabilities by a television program. After completing their study, all students take the same examination; X is the number of students who passed this exam.

(c) A chemist repeats a solubility test 10 times on the same substance. Each test is conducted at a temperature 10 degrees higher than the previous test.

Page 28: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

28

Suppose that X is a binomial random variable. The probability of success on any single trial is p and there are n trials in this random experiment. The probability density function of X is

where

p = the probability of success on any single trial

n = total number of trials

q = 1 - p

x = number of successes in n trials.

P X x p xn

xp q x nx n x( ) ( ) , , , ,( )

0 1 2

Page 29: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

29

Let and be the mean and standard deviation of the binomial random variable X. In stead of using the expectation summation rules to calculate and we can find and easily using the formulas

= np,

= npq = np(1-p), and

npq np p( ).1

Page 30: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

30

<Example 4.11>: (Basic) To test the side effect of a newly developed medicine, we conduct an animal experiment. Five dogs are given this drug and each dog has 20% chance to develop certain symptoms. We are interested in the number of dogs that develop this symptom.

(a) Is this a binomial random variable?

Page 31: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

31

(b) Write down the probability table of this random variable.

<solution to part (b)>:

Probability Table: X P(X=x)

0 0.32768

1 0.4096

2 0.2048

3 0.0512

4 0.0064

5 0.00032

Page 32: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

32

(c) Find the mean and standard deviation of this random variable.

<solution to part (c)>:

= np = 5 * 0.2 = 1;

= npq = 5 * 0.2 * 0.8 = 0.8;

= 0.894.

Page 33: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

33

<Example 4.12>: (Basic)

A firm receives a shipment of 500 hi-fi speakers. For any randomly selected sample of 9 speakers, if 2 or more of the speakers are defective then rejects this shipment. What is the probability that this firm will accept the shipment if the proportion of defective is

(a) 0.20.

(b) 0.10.

(c) 0.05.

Page 34: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

34

<Example 4.13>: (Basic) An oil exploration firm plans to drill six holes. Due to experience, the probability of each hole yielding oil is 0.12. Since the holes are in quite different locations, the outcome of drilling one hole is statistically independent of drilling of any other holes.

(a) Give the expectation and standard deviation of the number of holes that results in oil.

<Solution to part (a)>:

(a) n = 6 and p = 0.12;

= np = 6 * 0.12 = 0.72;

= = 0.796;np p( ) . ( . )1 6 012 1 012

Page 35: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

35

(b) If the firm will be able to stay in business only if two or more holes produce oil, what is the probability that it can survive.

<Solution to part (b)>:

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

P(X=6) = 0.129534197 +0.023551672+

0.00240869376+0.000131383296

+0.000002985984 0.156

Page 36: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

36

Note:

(1) We can not use the Binomial probabilities Table to obtain this probability because p = 0.12 is not in the Table.

(2) We can obtain this probability much easier with the concept of complement event:

P(X 2) = 1 - P(X1)

= 1 - P(X=0) - P(X=1)

= 1 - 0.4644044086 - 0.37996698

0.156

Page 37: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

37

Section 4.5: The Poisson Random Variable

The random variables produced by many random experiments can be well described by using Poisson probability model.

Typical examples are as follows:

(1) the number of customers served per hour in a given restaurant,

(2) the number of alcohol related traffic accidents per month at a busy intersection,

(3) the number of diseased trees per acre in a certain national park,

(4) the number of telephone calls received per minute during your lunch hour.

Page 38: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

38

Poisson random variable has the following common characteristics.

(1). The experiment consists of counting the number of times that a certain event occurs during a given unit of time or in a given area or volume.

(2). The probability of an event occurs in a given unit of time is same for all time units.

(3). The number of events that occur in one unit of time, area, or volume is independent of the number that occur in other units.

Page 39: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

39

The probability density function of a Poisson random variable is

Both the mean and the variance of a Poisson random variable equals to i.e. and .

p xex

xx

( )!

, , , .

0 1 2

Page 40: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

40

<Example 4.14>: (Basic)

Suppose x is a Poisson random variable, use Table III on page 804 to find the following probabilities.

(a) P(x 2) when = 1.

<Solution to part (a)>:

part of Table III

x =0 1 2 3 4 5 6

Thus, P(X2) = 0.920.

Page 41: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

41

(b) P(x 2) when = 2.

<Solution to part (b)>

part of Table III

x =0 1 2 3 4 5 6 7 8

Since P(x 2) = 1 - P(x 1) = 1 - 0.406 = 0.594.

Page 42: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

42

(c) P(x >3) where 2 = 3.

<Solution to part (c)>:

part of Table IIIx=0 1 2 3 4 5 6 7 8

Since P(x > 3) = 1 - P(x 2) = 1 - 0.423 = 0.577.

Page 43: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

43

Note:

For Poisson random variable, we can find P(x a) from the table directly if a is an integer. We need to apply the concept of complement event to find the probability of P(x > a) or P(x a). We need to know that P(x > a) = 1 - P(x a) and P(x a ) = 1 - P(x a-1).

Page 44: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

44

<Example 4.15>: (basic) We know that the mean of a Poisson random variable is equal to 2. Find the probabilities of x equal to 1, 2, and 3.

<Solutions>:

We can use the probability function to compute the probability of a Poisson random variable as well.

p xex

ex( )

! !. ;

1

21

0 2711 2

p xex

ex( )

! !. ;

2

22

0 2712 2

p xex

ex( )

! !. .

3

23

01803 2

Page 45: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

45

<Example 4.16>: (Intermediate)

According to the records of an airline, the number of people who buy tickets but fail to show up for the early morning flight between Orlando and Washington D.C. is a Poisson random variable. We know that the standard deviation of this random variable is 2. Determine the probabilities that the number of no shows in an early flight

(a) is equal to 5,

(b) is less than or equal to 3,

(c) is greater than or equal to 6.

Page 46: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

46

<Solutions to EX 4.16>:

(a)

(b) p(x 3) = 0.433. (From Table III)

(c ) p(x6) = 1 - p(x5) = 1 - 0.785 = 0.215.

p xex

ex( )

! !. .

5

45

01565 4

Page 47: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

47

Section 4.6 The Hypergeometric Random Variable

Hypergeometric random variable is another popular discrete random variable. Suppose there are a total of N balls: r red balls and (N-r) white balls, in a bag. And n balls are randomly selected from this bag without replacement. Let X denote the number of red balls in the n balls selected. Then the distribution of X is called a

Hypergeometric distribution,

with parameters N, r and n.

Page 48: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

48

p x

r

x

N r

n xN

n

x n N r r n( ) max( , _ ), ,min( , ),

0

The probability density function of this hypogeometric distribution is given by:

The probability density function of this hypogeometric distribution is given by:

nrN 2

2 1

r N r n N n

N N

( ) ( )

( ).

Page 49: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

49

<Example 4.17>: (Basic) Given that x is a hypergeometric random variable, compute p(x), and for each of the following cases:

(a) N=5, n=3, r=3, x=1.

<Solutions>:

P X p( ) ( ) . .

1 1

3

1

5 3

3 15

3

3 110

0 3

22 21

3 5 3 3 5 3

5 5 10 36

r N r n N n

N N

( ) ( )

( )

( ) ( )

( ). .

3 35

18.

Page 50: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

50

(b) N=9, n=5, r=3, x=3.

<Solution to part (b)>:

P X p( ) ( ) . .

3 3

3

3

9 3

5 39

5

1 15126

0119

5 39

167.

22 21

3 9 3 5 9 5

9 9 10 556

r N r n N n

N N

( ) ( )

( )

( ) ( )

( ). .

Page 51: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

51

Collection of Definitions:

Random Variable

A random variable is a rule that assigns one and only one numerical value to each sample point in a random experiment.

Discrete Random Variable A discrete random variable is a random variable that can assume only countable number of values.

Continuous Random Variable

A continuous random variable is a random variable that can assume values in one or more intervals.

Page 52: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

52

Probability DistributionThe probability distribution of a discrete random variable is a way, such as a graph, a table, or a formula, that specifies the probability associated with each possible value the random can assume.

Expectation of a Discrete Random Variable

The expectation of a discrete random variable is the population mean of this random variable. We can use the following formula to compute the expectation of a discrete random variable

= E(x)xp(x).

Page 53: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

53

Variance of Discrete Random Variable

The variance of a discrete random variable is the population variance of the random variable, given by formula

= E[(x-)2] = (x-)2 p(x).

Standard Deviation of Discrete Random Variable

The standard deviation of a discrete random variable is equal to the square root of the variance of this random variable, i.e. 2 .

Page 54: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

54

Binomial Distribution

The probability density function of a binomial random variable is

Here

p = the probability of success on any single trial ;

n = total number of trials;

x = number of successes in n trials;

q = 1 - p;

The mean of a binomial random variable is

np, i.e. = np;

The variance of a binomial random variable is

npq, i.e. = npq = np(1-p).

P X x p xn

xp qx n x( ) ( ) .( )

Page 55: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

55

Poisson Random Variable

The probability density function of a Poisson random variable is

Both the mean and the variance of a Poisson random variable equals to i.e.

and .

p xex

xx x

( )!

, , , .

0 1 2

Page 56: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

56

Hypergeometric Random Variable The probability density function of a Hypergeometric random variable is

where

N = total number of balls in the bag;

r = the number of red balls in the bag;

n = the number of balls drawn without replacement;

x = the number of red balls in the n balls selected.

p x

r

x

N r

n xN

n

x n N r r n( ) max( , _ ), ,min( , ),

0

Page 57: 1 Chapter 4 Discrete Random Variables 4.1 Discrete and Continuous 4.2 Probability Distribution 4.3 Expectation and Variance 4.4 Binominal 4.5 Poisson 4.6

57

The mean of a Hypergeometric random variable is

and the variance of a Hypergeometric random

variable is 2

2 1

r N r n N n

N N

( ) ( )

( ).

nrN