Docsity

Comparison of Binomial and Poisson Probabilities with Exponential Random Variables, Assignments of Statistics

Toggle sidebar
bg1
University Solutions: Problem Set 8 ECE 313
of Illinois Fall 1998
1. Let
P
denote the event that the student passes the examination. We will use the theorem of total probability
to calculate the probability of the student passing with either
3
or
5
examiners. If the student has
3
examiners
for his exam, the probability of him passing is given by
P
(
P
)=
1
3
3
X
i
=2
3
i
(0
:
8)
i
(0
:
2)
3
,
i
+
2
3
3
X
i
=2
3
i
(0
:
4)
i
(0
:
6)
3
,
i
=0
:
5333
If the student has
5
examiners, the probability of him passing is
P
(
P
)=
1
3
5
X
i
=3
5
i
(0
:
8)
i
(0
:
2)
5
,
i
+
2
3
5
X
i
=3
5
i
(0
:
4)
i
(0
:
6)
5
,
i
=0
:
5256
Therefore, it is marginally advantageous for the student to only have
3
examiners.
2. (a)
X
, which is a RV denoting the number of passengers that do not show up for the flight, is a binomial RV
with parameters
(75
;
0
:
2)
. The probability that everyone who showsup for the flight gets a seat can be
written in terms of the CDF of
X
as
P
(
everyone who shows up gets a seat
)=
P
(
X
5) = 1
,
F
X
(5
,
)=1
,
F
X
(4)
:
(b)
Y
Poisson
(15)
. Therefore,
P
(
X
5)
is easily found as
P
(
X
5) = 1
,
F
X
(4)
and
1
,
F
X
(4) = 1
,
(
P
f
Y
=0
g
+
P
f
Y
=1
g
+
P
f
Y
=2
g
+
P
f
Y
=3
g
+
P
f
Y
=4
g
)
=1
,
e
,
15
15
0
0!
+
15
1
1!
+
15
2
2!
+
15
3
3!
+
15
4
4!
=0
:
999143
The actual probability (from the solutions to HW#5) was found to be
0
:
999677
, and therefore, the
relative error is
0
:
999677
,
0
:
999143
0
:
999677
=0
:
05%
.
(c) Let’s compare the binomial probabilities and the Poisson approximations below:
i.
P
f
X
=2
g
;n
=8
;p
=0
:
1
:
Binomial probability:
P
f
X
=2
g
=
,
8
2
(0
:
1)
2
(0
:
9)
6
=0
:
1488
.
Poisson approximation:
=8
0
:
1=0
:
8
, and therefore,
P
f
X
=2
g
=
e
,
0
:
8
(0
:
8)
2
2!
=0
:
1438
.
ii.
P
f
X
=9
g
;n
=10
;p
=0
:
95
:
Binomial probability:
P
f
X
=9
g
=
,
10
9
(0
:
95)
9
(0
:
05) = 0
:
3151
.
Poisson approximation: You have to be careful when applying the Poisson approximation here.
Notice that the above binomial probabilityis also equal to
P
f
X
=1
g
with the same
n
and
p
=0
:
05
.
Now with this scenario,
=10
0
:
05 = 0
:
5
, and therefore,
P
f
X
=9
g
=
e
,
0
:
5
(0
:
5)
1
1!
=0
:
3032
,
and the agreement is close. If you had applied the Poisson approximation blindly, you would have
obtained
P
f
X
=9
g
=0
:
13
, which is quite inaccurate.
1
pf3
pf4
pf5

Partial preview of the text

Download Comparison of Binomial and Poisson Probabilities with Exponential Random Variables and more Assignments Statistics in PDF only on Docsity!

University Solutions: Problem Set 8 ECE 313

of Illinois Fall 1998

1. Let P denote the event that the student passes the examination. We will use the theorem of total probability

to calculate the probability of the student passing with either 3 or 5 examiners. If the student has 3 examiners

for his exam, the probability of him passing is given by

P (P ) =

X

i=

i

i

3 i

X

i=

i

i

3 i

If the student has 5 examiners, the probability of him passing is

P (P ) =

X

i=

i

i

5 i

X

i=

i

i

5 i

Therefore, it is marginally advantageous for the student to only have 3 examiners.

2. (a) X, which is a RV denoting the number of passengers that do not show up for the flight, is a binomial RV

with parameters (75; 0 :2). The probability that everyone who shows up for the flight gets a seat can be

written in terms of the CDF of X as

P (everyone who shows up gets a seat) = P (X  5) = 1 F

X

) = 1 F

X

(b) Y  Poisson (15). Therefore, P (X  5) is easily found as P (X  5) = 1 F

X

(4) and

1 F

X

(4) = 1 (P fY = 0 g + P fY = 1 g + P fY = 2 g + P fY = 3 g + P fY = 4 g)

= 1 e

The actual probability (from the solutions to HW#5) was found to be 0 : 999677 , and therefore, the

relative error is

(c) Let’s compare the binomial probabilities and the Poisson approximations below:

i. P fX = 2 g; n = 8 ; p = 0 : 1 :

Binomial probability: P fX = 2 g =

Poisson approximation:  = 8  0 : 1 = 0 : 8 , and therefore, P fX = 2 g = e

2

ii. P fX = 9 g; n = 10 ; p = 0 : 95 :

Binomial probability: P fX = 9 g =

Poisson approximation: You have to be careful when applying the Poisson approximation here.

Notice that the above binomial probability is also equal to P fX = 1 g with the same n and p = 0 : 05.

Now with this scenario,  = 10  0 : 05 = 0 : 5 , and therefore, P fX = 9 g = e

1

and the agreement is close. If you had applied the Poisson approximation blindly, you would have

obtained P fX = 9 g = 0 : 13 , which is quite inaccurate.

iii. P fX = 0 g; n = 10 ; p = 0 : 1 :

Binomial probability: P fX = 0 g = (0:9)

Poisson approximation:  = 10  0 : 1 = 1 , and so P fX = 0 g = e

0

iv. P fX = 4 g; n = 9 ; p = 0 : 2 :

Binomial probability: P fX = 4 g =

Poisson approximation:  = 9  0 : 2 = 1 : 8 , and so P fX = 4 g = e

4

You see how the Poisson approximation varies in accuracy depending on how large n is and how

small p is.

3. The intensity of the Poisson RV,  = 12 calls/minute.

(a) The parameter  = t = 12  5 = 60 = 1. If the event that either no call or at least 2 calls arrive at the

switchboard is denoted by E , then

P (E ) = 1 P (one call at the switchboard) = 1 e

(b) We are interested in 8 or more occurrences of the event E in 12 independent trials. If we denote this

new event by F and set p = P (E ) = 0 : 6321 , then

P (F ) =

X

i=

i

p

i

(1 p)

12 i

The probability is close to one half giving it even chances of occurring, and therefore you shouldn’t be

overly surprised if this event occurs. However, if you observed that 10 or more intervals had event E

occurring in them, the probability of this event would now be P (F ) = 0 : 1235 , and this might surprise

you somewhat. Alternatively, if the rate of calls coming into the switchboard was  = 36 calls/minute

(more frequent occurrences of calls) resulting in P (E ) = 0 : 856 , the probability of observing at least 8

intervals with event E occurring in them would jump up to P (F ) = 0 : 9765 , i.e., a very likely event.

(c) The switchboard is to be designed to not drop more than 5% of incoming calls. If the capacity of the

switchboard (the number of calls it can service in a minute) is C , then if more than C calls arrive in

a minute, they are ignored or “dropped”. With the RV X denoting the number of incoming calls per

minute, we want to find the minimum value of C such that

P fX > C g  0 : 05 or equivalently P fX  C g > 0 : 95

The evaluation of C has to be done numerically, and is best done via a mathematical package on the

computer, such as Matlab, Mathematica, or some other. We want to find the minimum value of C such

that

C

X

k =

e

k!

> 0 : 95. This turns out to be C = 18.

(c) Just as above, P [E (b)] = e

b= 4

. Now, P [E (a + b) j E (a)] = P [E (a + b) \ E (a)]=P [E (a)] = P [E (a +

b)]=P [E (a)] (why?). P [E (a + b)] = e

(a+b)= 4

, and therefore P [E (a + b) j E (a)] = e

(a+b)= 4

=e

a= 4

e

b= 4

= P [E (b)]. Thus we see that the probability of being served for more than b minutes after being

served for (a possibly unknown) a number of minutes, is the same as the probability of being served for

more than b minutes starting from “scratch”. In other words, it doesn’t matter that a customer has already

been served for a while — loosely speaking, the remaining service time is independent of the elapsed

service time. It is as if the server (in this case, a bank teller) has no memory of how long he/she/it has

already served the customer — this property of the exponential distribution is called the memoryless

property.

(d) From the memoryless property proved above, the probability that you will be served within the next 10

minutes is just given by P (X < 10) = 1 0 : 082 = 0 : 918.

(e) Extra credit problem: See end for solution.

6. In the discrete domain, the random variable that exhibits the same memoryless property is the geometric RV,

say X , whose pmf is given by p

X

(k ) = p(1 p)

k 1

. The CDF of X is F

X

(k ) = 1 (1 p)

k

. Therefore, in the

setting of Problem 5, P [E (b)] = (1 p)

b

and P [E (a + b) j E (a)] = (1 p)

a+b

=(1 p)

a

= (1 p)

b

= P [E (b)],

where it is understood that a; b are positive integers.

4(e) Extra credit problem: This problem makes use of the memoryless property of the exponential random

variable. There are two ways of solving this problem — the hard way and the easy way. Let’s look at the hard

way first.

Hard way: Let X

; X 2 ; X 3

denote the service times of Calvin, Hobbes, and you respectively. These are inde-

pendent and identically distributed random variables. Let Min = min (X

; X 2

), and Max = max(X

; X 2

i.e., Min represents the minimum of Calvin’s and Hobbes’ service times (this determines when the first per-

son finishes getting served) and Max represents the maximum of their service times (this determines when

the later of the two finishes getting served). Let Z = Min + X

, which is the random variable representing

the time it takes you to finish being served. The probability we are looking for is P fZ < Maxg.

Let us first find the distributions of the RVs Min and Max. F

M in

(u) = P fMin  ug = 1 P fmin (X 1

; X 2

ug. Now min(X

; X 2

) > u ) X 1

> u; and X

> u. Therefore

F

M in

(u) = 1 P fX 1

u; X 2

ug

(a)

= 1 P fX 1

ug  P fX 2

ug

(b)

1 F

X

(u)

where equality (a) follows from the independence of X

and X

, and equality (b) follows because they are

identically distributed. Here X represents the exponential RV in the problem, with CDF F

X

(u) and pdf

f X

(u). Differentiating this to get the density function for Min, we get f

M in

(u) = 2(1 F

X

(u))f

X

(u).

Next,

F

M ax

(u) = P fMax  ug = P fmax(X 1

; X 2

)  ug

(a)

= P fX 1

 u; X 2

 ug

(b)

= P fX 1

 ug  P fX 2

 ug

(c)

= F

X

(u);

where equalities (a); (b), and (c) follow from the definition of the maximum, independence of X

and X

and their identical distribution respectively. Differentiating this we get the pdf for Max as f

M ax

(u) =

2 F

X

(u)  f

X

(u).

Now we compute the pdf of Z = Min + X

. This is done through conditional densities and Bayes’ rule in

the continuous case. First compute the CDF of Z.

F

Z

(u) = P fZ  ug = P fMin + X 3

 ug

(a)

Z

u

P fX 3

 u m j Min = mgf M in

(m)dm

Z

u

2 F

X

(u m)f

M in

(m)dm =

Z

u

2 F

X

(u m)

1 F

X

(m)

f X

(m)dm

Z

u

2 (1 e

(um)

) e

m

e

m

dm

where equality (a) follows from Bayes’ rule applied to continuous RVs. Notice that the upper limit to the

integral is u and not 1 (Why?). If we take f

X

(u) = e

u

and correspondingly, F

X

(u) = 1 e

u

(in the

problem,  = 1 = 4 , but it is more convenient and instructive to work with a generic ), then carrying out the

integral above gives F

Z

(u) = 1 + e

2 u

2 e

u

And now we are ready to compute the probability we are looking for: P fZ < Maxg. Again using Bayes’

rule we get

P fZ < Maxg =

Z

1

P fZ < x j Max = xgf M ax

(x)dx

Z

1

1 + e

2 x

2 e

x

2(1 e

x

)  e

x

dx

Z

1

e

x

3 e

2 x

+ 3 e

3 x

e

4 x

dx

! Isthisamazingorwhat!!

Thus the probability of you not being the last to finish getting served is quite large (1=2) inspite of you starting

later! This seems like a lot of calculations for such a simple answer, and indeed it is. The memoryless property

of the exponential RV was made use of very implicitly in the lines of mathematical skullduggery above. Let’s

make more explicit use of this property below.

Easy way: From the memoryless property of the exponential RV, it doesn’t matter when you start being served

(remember, you had to make use of this to solve 4(d)?). The time to finish getting served for the person who

is still in his queue when you start getting served does not depend on how long he has already been served.

Therefore you can completely ignore the service time of the person who finishes first, and just compare your

service time X

to the service time of the person left, which can be taken as X (a generic exponential RV with

the same distribution as X

). Thus, the probability we are looking for is P fX

< Xg, and this is 1 = 2 for any

pair of identically distributed RVs. To see this, use Bayes’ rule

P fX 3

< Xg =

Z

1

P fX 3

< x j X = xgf X

(x)dx

(a)

Z

1

F

X

(x)f

X

(x)dx