Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

5.3 Series Convergence via Comparison Tests

Series pop up all over the place when we try to work with unbounded random variables.

For example, suppose that X{1,2,3,4,...,}X \in \{1,2,3,4,...,\infty\} with PMF(x)=p(x)\text{PMF}(x) = p(x) for some function pp. Then each of the following are defined by a series:

  1. Survival Function: Pr(X>x)=n=x+1p(n).\text{Pr}(X > x) = \sum_{n = x+1}^{\infty} p(n).

  2. Expected Value: E[X]=n=1np(n).\mathbb{E}[X] = \sum_{n = 1}^{\infty} n p(n).

  3. Variance: Var[X=E[X2]E[X]2\text{Var}[X = \mathbb{E}[X^2] - \mathbb{E}[X]^2 where E[X2]=n=1n2p(n).\mathbb{E}[X^2] = \sum_{n = 1}^{\infty} n^2 p(n).

In each case we need to evaluate a series.

In Section 5.1 we saw that not all series converge, even if the entries of the corresponding sequence converges to zero. We set up a contrast between two cases:

Sequence NameFormulaSeriesSeries ValueConvergence
Geometricrnr^nn=0rn\sum_{n=0}^{\infty} r^n11r\frac{1}{1 - r}if 1<r<1-1 < r < 1
Harmonicn1n^{-1}n=1n1\sum_{n=1}^{\infty} n^{-1}\inftydiverges

Before we learn how to evaluate the value of series, we should learn how to determine whether they converge. This chapter will introduce three convergence tests. They all work by comparing a series of interest to a series (or integral) whose behavior we already understand.

Integral Comparison Test

Our first test is the test we used to show that the Harmonic series diverges.

To use this test, check that the sequence {a(1),a(2),a(3),...}\{a(1),a(2),a(3),...\} can be expressed as sample values of a smooth, nonnegative, decreasing function (e.g. x1x^{-1}), then:

  1. Compute the integral x=1f(x)dx\int_{x = 1}^{\infty} f(x) dx.

  2. Determine convergence:

    • If the integral converges, then the series converges.

    • If the integral diverges, then the series diverges.

This test also works if a(n)=f(n)a(n) = f(n) for all nkn \geq k for some kk, or if a(n)a(n) converges to f(n)f(n) as nn diverges.

Just apply the integral test:

x=1xγdx={11γx1γx=1 if 0<γ<1log(x)x=1 if γ=11(γ1)x(γ1)x=1 if γ>1\int_{x = 1}^{\infty} x^{-\gamma} dx = \begin{cases} \frac{1}{1 - \gamma} x^{1 - \gamma}|_{x = 1}^{\infty} & \text{ if } 0 < \gamma < 1 \\ \log(x)|_{x = 1}^{\infty} & \text{ if } \gamma = 1 \\ -\frac{1}{(\gamma - 1)} x^{-(\gamma - 1)}|_{x = 1}^{\infty} & \text{ if } \gamma > 1 \\\end{cases}

When γ1\gamma \leq 1, the integral diverges since limxx1γ\lim_{x \rightarrow \infty} x^{1 - \gamma} diverges if γ<1\gamma < 1, and limxlog(x)\lim_{x \rightarrow \infty} \log(x) diverges.

In contrast, fi γ>1\gamma > 1, then x(γ1)x^{-(\gamma - 1)} is xx to a negative power, so 1(γ1)x(γ1)x=1=1γ1(10)=1γ1-\frac{1}{(\gamma - 1)} x^{-(\gamma - 1)}|_{x = 1}^{\infty} = \frac{1}{\gamma - 1}(1 - 0) = \frac{1}{\gamma - 1}. In this case the integral converges, so the series converges as well.

So, we can add all power laws to the list of series that we can sort by convergence. Any power law that decays faster than harmonic produces a convergent series.

Direct and Limit Comparison Tests

Often, we can prove convergence (or divergence) of a series, by comparing to a series we know converges (or diverges).

For example, knowing that the series n=1n2\sum_{n=1}^{\infty} n^{-2} converges establishes that n=1n3\sum_{n=1}^{\infty} n^{-3} converges since the sequence n3n^{-3} converges to zero faster than the sequence n2n^{-2}. This is an example of a comparison test:

These rules are common sense. If a sequence converges faster than a convergent series, then it defines a convergent series. If it converges slower than a diverging series, then it also defines a diverging series.

We can compare rates directly, or via a limit. Each produces a different variant of the same general test.

In a direct comparison we look to bound the sequence of interest, {a(n)}n=1\{a(n)\}_{n=1}^{\infty} directly with a reference sequence {b(n)}n=1\{b(n)\}_{n=1}^{\infty}. For example, the series n=1(n3+2n2)1\sum_{n = 1}^{\infty} (n^3 + 2 n^2)^{-1} must converge since (n3+2n2)1n3(n^3 + 2 n^2)^{-1} \leq n^{-3} and the series n=1n3\sum_{n=1}^{\infty} n^{-3} converges by the integral comparison test.

Alternately, the sequence 1/n!(n×(n1))21/n! \leq (n \times (n-1))^{-2} for all n>2n > 2. The series n=2(n×(n1))2\sum_{n=2}^{\infty} (n \times (n - 1))^{-2} will converge since (n×(n1))2=O(n2)(n \times (n - 1))^{-2} = \mathcal{O}(n^{-2}), and we already know that the series n=2n2\sum_{n = 2}^{\infty} n^{-2} converges. The latter argument based on order of convergence is an example of a limit comparison test:

The limit comparison test is often easier to use than the direct comparison test since it does not require an inequality, only matching orders of convergence.

Example

Suppose that X{1,2,3,4,...,}X \in \{1,2,3,4,...,\infty\} and PMF(x)g(x)=(1+12x2)1.5\text{PMF}(x) \propto g(x) = (1 + \frac{1}{2} x^2)^{-1.5}.

  1. Is this a valid distribution? To check, try to normalize it:

    x=1(1+12x2)1.5= ?\sum_{x = 1}^{\infty} \left(1 + \frac{1}{2} x^2 \right)^{-1.5} = \text{ ?}

    We can normalize the distribtion as long as the series converges.

    To show it converges, we could use either a direct, or a limit, comparison test.

    • Direct Comparison: (1+12x2)1.5(12x2)1.5=21.5x3(1 + \frac{1}{2} x^2)^{-1.5} \leq (\frac{1}{2} x^2)^{-1.5} = 2^{1.5} x^{-3}. The series x=1x3\sum_{x = 1}^{\infty} x^{-3} converges, so the series x=1(1+12x2)1.5\sum_{x = 1}^{\infty} (1 + \frac{1}{2} x^2)^{-1.5} must also converge.

    • Limit Comparison: We saw, above, that g(x)g(x) is bounded above by a multiple of x3x^{-3}, so g(x)=O(x3)g(x) = \mathcal{O}(x^{-3}). Try the comparison:

      L=limx(1+12x2)1.5x3=limxx3(12x2+1)1.5L = \lim_{x \rightarrow \infty} \frac{(1 + \frac{1}{2} x^2)^{-1.5}}{x^{-3}} = \lim_{x \rightarrow \infty} \frac{x^3}{(\frac{1}{2} x^2 + 1)^{1.5}}

      When xx is large, x2x^2 is very large, so will dominate the added +1 in the denominator. So stripping out all but the leading terms:

      L=limxx3(12x2)1.5=21.5limxx3(x2)1.5=21.5limxx3x3=21.5<.L = \lim_{x \rightarrow \infty} \frac{x^3}{(\frac{1}{2} x^2)^{1.5}} = 2^{1.5} \lim_{x \rightarrow \infty} \frac{x^3}{(x^2)^{1.5}} = 2^{1.5} \lim_{x \rightarrow \infty} \frac{x^3}{x^3} = 2^{1.5} < \infty.

      So, since x=1x3\sum_{x = 1}^{\infty} x^{-3} converges, our original series converges.

  2. Does it admit a finite expectation? The expectation is finite if the series:

    x=1x(1+12x2)1.5\sum_{x = 1}^{\infty} x \left(1 + \frac{1}{2} x^2 \right)^{-1.5}

    converges. The function:

    x(1+12x2)1.5=O(x×x3)=O(x2)\frac{x}{(1 + \frac{1}{2} x^2)^{1.5}} = \mathcal{O}(x \times x^{-3}) = \mathcal{O}(x^{-2})

    So, a limit comparison test against x2x^{-2} would show that the expectation is a finite number.

  3. Does it have finite variance? The variance is finite if the series:

    x=1x2(1+12x2)1.5\sum_{x = 1}^{\infty} x^2 \left(1 + \frac{1}{2} x^2 \right)^{-1.5}

    converges. This time the sequence behaves like x1x^{-1} for large xx, so we should expect it to diverge.

    To show that it diverges, adopt a limit comparison test:

    L=limxx2(1+12x2)1.5x1=limxx3(12x2+1)1.5=21.5limxx3x3=21.5.L = \lim_{x \rightarrow \infty} \frac{x^2 (1 + \frac{1}{2} x^2)^{-1.5}}{x^{-1}} = \lim_{x \rightarrow \infty} \frac{x^3}{(\frac{1}{2} x^2 + 1)^{1.5}} = 2^{1.5} \lim_{x \rightarrow \infty} \frac{x^3}{x^3} = 2^{1.5}.

    Since the limit is finite, the sequence of interest converges as slowly as a harmonic sequence, so it diverges.

This is an example of a heavy-tailed discrete distribution. It is well-defined since its PMF is nonnegative and can be normalized, and has a finite expectation, but its standard deviation is infinite.

Ratio Tests

So far we’ve mostly focused on tests that compare to power laws. We can also compare to geometric series.

To compare to a geometric series, it is enough to show that a(n+1)a(n+1) converges to some fixed multiple of a(n)a(n).

If a(n+1)=ra(n)a(n+1) = r a(n) then a(n+2)=r2a(n)a(n + 2) = r^2 a(n) and a(n+k)=rka(n)a(n+k) = r^k a(n). So, if a(n+1)a(n+1) approaches a fixed multiple of a(n)a(n), as nn diverges, then the sequence behaves like a geometric/exponential sequence for large nn. If it behaves like a geometric sequence, then it will obey the same convergence rules; converge if r<1|r| < 1, diverge if r>1|r| > 1.

To see whether a(n+1)a(n+1) approaches a fixed multiple of a(n)a(n), evaluate the limiting ratio:

r=limna(n+1)a(n).r = \lim_{n \rightarrow \infty} \frac{|a(n+1)|}{|a(n)|}.

If the limit exists, then the sequence {a(n)}n=1\{|a(n)|\}_{n=1}^{\infty} behaves like a geometric sequence with base rr for large nn.

The ratio test is most useful for sequences that involve products of factorials and exponentials. In the next chapter we will study series of the kind:

n=01n!tn\sum_{n=0}^{\infty} \frac{1}{n!} t^n

as functions of tt. These series converge for all tt since they pass the ratio test:

r=limn1(n+1)!tn+11n!tn=limnn!(n+1)!t=limntn+1=0<1.r = \lim_{n \rightarrow \infty} \frac{\frac{1}{(n+1)!}t^{n+1}}{\frac{1}{n!}t^n} = \lim_{n \rightarrow \infty} \frac{n!}{(n+1)!} t = \lim_{n \rightarrow \infty} \frac{t}{n+1} = 0 < 1.