Documente Academic
Documente Profesional
Documente Cultură
Geometric Distribution
Consider a sequence of independent and identical Bernoulli trials with success
probability p (0, 1). Define the random variable X as the number of trials until
we see a success, and we include the successful trial (for example, if I flip a coin
which shows heads (a success) with probability p, then X is the number of flips to
obtain a head, including the successful flip). We know that:
X X = {1, 2, . . . , }
that is, X is a positive integer. Now, what is the probability that X takes the value
x? Well, suppose X = 1, then we must have:
P(X = 1) = p.
This is because, we have only one Bernoulli trial, and it is a success. Suppose, now
X = 2; then:
P(X = 2) = (1 p)p.
This is because we have two Bernoulli trials, and the first is a failure and the second
a success. Similarly
P(X = 3) = (1 p)2 p.
Thus, it follows that:
P(X = x) = f (x) = (1 p)x1 p
x X = {1, 2, . . . , }.
Any random variable with the above PMF is said to have a geometric distribution
and we write X Ge(p).
The distribution function, for x X:
F (x) =
x
x
X
X
1 (1 p)x
(1 p)y1 p = p
(1 p)y1 = p
= 1 (1 p)x .
p
y=1
y=1
1
ST2334
x(1 p)x1 p
x=1
= p
i
dh
(1 p)x
dp
x=1
i
dh X
(1 p)x
dp
x=1
d h (1 p) i
= p
dp
p
1
=
.
p
= p
Perhaps an easier way (and this is the case for E[X q ], q 1) is via the MGF:
M (t)
= E[eXt ]
X
=
ext (1 p)x1 p
x=1
=
=
=
p X
[(1 p)et ]x
1 p x=1
p
1
(1 p)et
1p
1 (1 p)et
pet
1 (1 p)et
pet
p(1 p)e2t
+
.
t
1 (1 p)e
(1 (1 p)et )2
Setting t = 0, we have
M 0 (t) =
1
.
p
ST2334
= E[eXt ]
X
x1
=
(1 p)xr pr ext
r
1
x=r
X
x1
=
((1 p)et )xr (pet )r
r
1
x=r
r X
x1
pet
((1 p)et )xr (1 (1 p)et )r
=
1 (1 p)et x=r r 1
r
pet
=
t
1 (1 p)e
r
.
p
ST2334