Monday, 15 October 2018

discrete mathematics - Probability Mass Function: Geometric Distribution over an interval



Equation: Given a random variable Z, let Z Geometric(θ), Find P(5Z9).




Attempt 1:



Try something like P(5Z9)=P(Z=9)P(Z=5)=θ[(1θ)9(1θ)5]



I know this is a valid method for continuous distributions, but I wasn't sure if it would work the same way for a discrete function, like geometric. So I tried to compute it manually in attempt #2.



Attempt 2:



P(5Z9)=P(Z=5)+P(Z=6)+P(Z=7)+P(Z=8)+P(Z=9)=Some answer




I know this one works, but I feel it's a bit too much in terms of computation. Like, if I was given an equation that asked for an interval from 3 to 1000, then there's no way I could manually compute that by hand.



Which is why I was wondering if there was a more efficient method to calculate the geometric distribution over a given interval? I tried to put everything into a summation and derive an equation, but I get stuck after pulling the theta out of the equation such that it's



ni=0(1θ)iθ= θni=0(1θ)i



Anybody have a better solution?


Answer



Your original solution (first attempt) is not quite correct as written. Instead, you should be calculating P(Z5)P(Z>9). Intuitively, this is "the chance that Z is at least 5, but not more than 9." For a geometric distribution, you could write this as P(Z>4)P(Z>9). But it is actually not too difficult to compute P(Z>x) for any geometric distribution; this holds iff the first x trials are failures, so it happens with probability P(Z>x)=(1θ)x (assuming θ is the probability of success in a single trial). In general, this means that, for geometric Z, we have:

P(aZb)=P(Za)P(Z>b)=P(Z>a1)P(Z>b)=(1θ)a1(1θ)b



Also note that your summation (from the second attempt) works as well, once simplified. To find P(aZb), we note that, from the geometric distribution, this is exactly equal to
bk=aθ(1θ)k1

But this is a geometric series with initial term θ(1θ)a1 and common ratio 1θ. The sum of such a finite geometric series with ba+1 terms is:



θ(1θ)a1(1(1θ)ba+1)1(1θ)=(1θ)a1(1(1θ)ba+1)=(1θ)a1(1θ)b
So the two methods agree.


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find lim without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...