Expected Value of 1/(1 + X) for a Geometric Random Variable
At a glance
- 1. Check the support
Determine whether X counts failures from zero or trials from one; the two conventions give different answers.
- 2. Write the probabilities
Use P(X=k)=p(1-p)^k for support starting at zero, or p(1-p)^(k-1) for support starting at one.
- 3. Sum the reciprocal
Evaluate the probability-weighted sum of 1/(1+k), or use 1/(1+k)=the integral of t^k from zero to one.
- 4. Substitute p
Insert the success probability and check the endpoint p=1 separately if needed.
The expression is most naturally read as , where has a geometric distribution and is the probability of success on each independent trial. The answer depends on whether the geometric variable counts failures before the first success or counts the trial on which the first success occurs.
For the convention with support , the expectation is . The formula for support is different; both are derived below.
If X counts failures
Suppose is the number of failures before the first success. Then
Write . The expectation is the probability-weighted sum
Use the geometric-series identity for . Since , this gives
At , the variable is always zero, so the expectation is 1. The displayed expression approaches 1 as approaches 1, so it can also be extended to that endpoint by continuity. A success probability of does not produce a proper geometric distribution: a success never occurs.
An integral derivation
The identity turns the sum into an integral. Because the terms are nonnegative, the sum and integral can be interchanged:
This approach is useful for other expectations involving reciprocal expressions in an integer-valued random variable.
If X counts trials
Some books define a geometric random variable as the number of trials up to and including the first success. In that convention, takes values , with
Now the expectation is
At , with certainty, so the expectation is . Again, the formula has this limit as approaches 1.
Worked example
Let . If counts failures, then
If instead counts trials, then
The different values make clear why you should identify the support before applying a formula.
Common mistakes
- Ignoring the support convention. Check whether the problem defines on or on .
- Using the reciprocal of the mean. In general, is not . For example, with and support starting at zero, the expectation is , not .
- Shifting the denominator incorrectly. When counts trials, it already starts at 1, but the requested quantity is still ; its first possible value is therefore .
References
- A First Course in Probability — Sheldon Ross
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.