Quiz 5 Solution

The following formulas fold for all α with |α|<1:

  1. 1+α+α2+α3+=k=0αk=11α
  2. 1+2α+3α2+4α3+=k=1kαk1=1(1α)2

Question 1

A fair coin is tossed repeatedly until it comes up heads, and the number N of tosses needed is recorded.  Each toss is independent of all other tosses.  Let A be the event that N is an even number. What is the conditional probability mass function (pmf) of N given that A occurred?  Hint: Pr(A)=13.

Solution:  Note that SN={1,2,3,}, and A is the event that N{2,4,6,8,}.   We have

pN(nA)=Pr(N=nA)=Pr(N(A{n}))Pr(A)

={pN(n)1/3,n{2,4,6,}0,otherwise

={32n,n{2,4,6,}0,otherwise

Question 2

An urn contains two green balls and one yellow ball.  In each trial of a random experiment, a ball is sampled from the urn, its colour is noted, and the ball is returned to the urn.  Different trials are independent.   Let X denote the number of trials needed until the yellow ball is drawn from the urn.  The range of X is then SX={1,2,3,}.    What is the expected value, E(X),  of X?

SolutionX is a positive geometric random variable with parameter p=13, and so has expected value E(X)=1p=3.

We can also compute the expected value explicitly (repeating an example from the lectures) as follows.  Note that pX(k)=p(1p)k1 with p=13, where k{1,2,3,}.  Then

E(X)=kSXkpX(k)=k=1kp(1p)k1

=pk=1k(1p)k1

=p1(1(1p))2 (this is one of the sums noted at the top)

=pp2=1p=3.

Question 3

For the experiment of the previous question, what is the expected value of X given that X1?  (In other words, given that the yellow ball isn't drawn from the urn on the very first trial, what is the expected number of trials needed until it actually is drawn?)

Solution:  Intuitively, we expect 3 additional trials following the first (unsuccessful) trial for a total of 4.

We can verify this explicitly as follows. We have, for p=13,

pX(kX1)=Pr(X=kX1)

=Pr(X=k and X1)Pr(X1)

={0,k=1,Pr(X=k)1Pr(X=1),k>1

={0,k=1,p(1p)k11p,k>1

={0,k=1,p(1p)k2,k>1.

Thus E(XX1)=kSXkpX(kX1)

=k=2kp(1p)k2  (omitting k=1 term with value zero)

=p1p(2(1p)+3(1p)2+4(1p)3+) (this is the second sum at the top with the first term missing)

=p1p(1+1+2(1p)+3(1p)2+4(1p)3+)

=p1p(1+1(1(1p))2)

=p1p(1+1p2)

=p1p1p2p2=1+pp=1+1p=4.

Question 4

The number of patrons entering the library over the noon hour is a Poisson random variable with an expected value of 6.   What is the probability that fewer than 3 patrons enter the library over the noon hour?

Solution:  Let X denote the number of patrons entering the library over the noon hour.  Since X is a Poisson random variable with an expected value of 6, we have pX(k)=exp(6)6kk!, for k{0,1,2,}.  It follows that

Pr(X<3)=k=02pX(k)=e6(1+6+622)=25exp(6)0.0619688.

Question 5

For the same library as in the previous question, what is the probability that more than 9 patrons enter the library over the noon hour?

Solution:  With X defined as in Question 4, Pr(X>9)=1Pr(X9)=1exp(6)(1+6+622!++699!)0.083924.

Question 6

A data center has 105 disk drives.  Suppose that disks fail independently on any given day with probability 2105.  Find the probability that there are no disk failures on a given day.

Solution:  The number of disk failures is has a binomial distribution with parameters n=105 and p=2105.   We use the Poisson approximation with parameter α=np=2, and probability mass function pX(k)=exp(2)2kk!, k=0,1,2,.  Then Pr(X=0)=pX(0)=exp(2)0.135335.

Question 7

For the same data center as in the previous question, find the probability that there are more than 4 disk failures on a given day.

Solution:  Using the same Poisson approximation, we have Pr(X>4)=1Pr(X4)=1exp(2)(1+2+222+233!+244!)

=17exp(2)0.052653