St · Statistics & Probability

Expected Value of 1/(1 + X) for a Geometric Random Variable

Updated 13 October 2026

At a glance

  1. 1. Check the support

    Determine whether X counts failures from zero or trials from one; the two conventions give different answers.

  2. 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. 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. 4. Substitute p

    Insert the success probability and check the endpoint p=1 separately if needed.

The expression is most naturally read as E[1/(1+X)]\mathbb{E}[1/(1+X)], where XX has a geometric distribution and pp 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 0,1,2,…0,1,2,\ldots, the expectation is −pln⁡(p)/(1−p)-p\ln(p)/(1-p). The formula for support 1,2,3,…1,2,3,\ldots is different; both are derived below.

If X counts failures

Suppose XX is the number of failures before the first success. Then

Pr⁡(X=k)=p(1−p)k,k=0,1,2,…\Pr(X=k)=p(1-p)^k,\qquad k=0,1,2,\ldots

Write q=1−pq=1-p. The expectation is the probability-weighted sum

E[11+X]=p∑k=0∞qkk+1.\mathbb{E}\left[\frac{1}{1+X}\right] = p\sum_{k=0}^{\infty}\frac{q^k}{k+1}.

Use the geometric-series identity ∑k=0∞qk/(k+1)=−ln⁡(1−q)/q\sum_{k=0}^{\infty}q^k/(k+1)=-\ln(1-q)/q for 0<q<10<q<1. Since 1−q=p1-q=p, this gives

E[11+X]=−pln⁡p1−p,0<p<1.\boxed{\mathbb{E}\left[\frac{1}{1+X}\right] = -\frac{p\ln p}{1-p}},\qquad 0<p<1.

At p=1p=1, the variable is always zero, so the expectation is 1. The displayed expression approaches 1 as pp approaches 1, so it can also be extended to that endpoint by continuity. A success probability of p=0p=0 does not produce a proper geometric distribution: a success never occurs.

An integral derivation

The identity 1/(k+1)=∫01tk dt1/(k+1)=\int_0^1 t^k\,dt turns the sum into an integral. Because the terms are nonnegative, the sum and integral can be interchanged:

E[11+X]=p∫01∑k=0∞(qt)k dt=p∫0111−qt dt=−pqln⁡(1−q)=−pln⁡p1−p.\begin{aligned} \mathbb{E}\left[\frac{1}{1+X}\right] &=p\int_0^1\sum_{k=0}^{\infty}(qt)^k\,dt\\ &=p\int_0^1\frac{1}{1-qt}\,dt\\ &=-\frac{p}{q}\ln(1-q) =-\frac{p\ln p}{1-p}. \end{aligned}

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, XX takes values 1,2,3,…1,2,3,\ldots, with

Pr⁡(X=k)=p(1−p)k−1.\Pr(X=k)=p(1-p)^{k-1}.

Now the expectation is

E[11+X]=p∑k=1∞qk−1k+1=p∫01t1−qt dt=p(−ln⁡p−q)q2=p(−ln⁡p−1+p)(1−p)2,0<p<1.\begin{aligned} \mathbb{E}\left[\frac{1}{1+X}\right] &=p\sum_{k=1}^{\infty}\frac{q^{k-1}}{k+1}\\ &=p\int_0^1\frac{t}{1-qt}\,dt\\ &=\frac{p(-\ln p-q)}{q^2}\\ &=\boxed{\frac{p(-\ln p-1+p)}{(1-p)^2}},\qquad 0<p<1. \end{aligned}

At p=1p=1, X=1X=1 with certainty, so the expectation is 1/21/2. Again, the formula has this limit as pp approaches 1.

Worked example

Let p=1/2p=1/2. If XX counts failures, then

E[11+X]=−(1/2)ln⁡(1/2)1/2=ln⁡2≈0.6931.\mathbb{E}\left[\frac{1}{1+X}\right] =-\frac{(1/2)\ln(1/2)}{1/2} =\ln 2\approx 0.6931.

If XX instead counts trials, then

E[11+X]=(1/2)(ln⁡2−1/2)(1/2)2=2ln⁡2−1≈0.3863.\mathbb{E}\left[\frac{1}{1+X}\right] =\frac{(1/2)(\ln 2-1/2)}{(1/2)^2} =2\ln 2-1\approx 0.3863.

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 XX on 0,1,2,…0,1,2,\ldots or on 1,2,3,…1,2,3,\ldots.
  • Using the reciprocal of the mean. In general, E[1/(1+X)]\mathbb{E}[1/(1+X)] is not 1/(1+E[X])1/(1+\mathbb{E}[X]). For example, with p=1/2p=1/2 and support starting at zero, the expectation is ln⁡2\ln 2, not 1/21/2.
  • Shifting the denominator incorrectly. When XX counts trials, it already starts at 1, but the requested quantity is still 1/(1+X)1/(1+X); its first possible value is therefore 1/21/2.

References

  1. A First Course in Probability — Sheldon Ross

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.