2.9 Sequences and series

A sequence is an ordered list of objects (usually numbers): x1,x2,,xnx_1, x_2, \ldots, x_n. A series is a special type of sequence that arises from the cumulative sum of another sequence: x1+x2++xnx_1 + x_2 + \cdots + x_n, denoted i=1nxi\sum_{i=1}^n x_i. The limiting behavior of sequences and series (what happens to them as nn \to \infty) is very important to statistics as we are often concerned with what happens to an estimate xnx_n as we collect more data (nn here representing the number of observations). In particular, does xnx_n get closer and closer to the quantity we are trying to estimate?

The study of infinite sequences and series is a big topic; this review is not exhaustive but covers the core definitions and commonly arising results that come up often in statistics.

Finite series

Most of this section centers on infinite sequences and series, but here are some important finite series to be familiar with (you should know the first three by heart, and know where to look up the rest of them when you need them):

i=1n1=ni=1nc=nci=1ni=n(n+1)2i=1ni2=n(n+1)(2n+1)6i=1ni3={n(n+1)2}2i=1ni4=n(n+1)(2n+1)(3n2+3n1)30\begin{align*} \sum_{i=1}^n 1 &= n \\ \sum_{i=1}^n c &= nc \\ \sum_{i=1}^n i &= \frac{n(n+1)}{2} \\ \sum_{i=1}^n i^2 &= \frac{n(n+1)(2n+1)}{6} \\ \sum_{i=1}^n i^3 &= \left\{ \frac{n(n+1)}{2} \right\}^2\\ \sum_{i=1}^n i^4 &= \frac{n(n+1)(2n+1)(3n^2+3n-1)}{30}\\ \end{align*}

Infinite sequences

The limit of a sequence is very similar to the limit of a function that we have previously encountered. A sequence ana_n has limit aa if ana_n gets closer and closer to aa (i.e., the difference ana\lvert a_n-a\rvert gets smaller and smaller) as nn goes to infinity. This is denoted anaa_n \to a5.

As with functions, an\mathbf{a}_n \to \infty means that ana_n just keeps getting bigger, with no bound.

If the limit exists, we say that the sequence converges (or is convergent). Otherwise, we say the sequence diverges (or is divergent). If an\mathbf{a}_n \to \infty, people often say that the “limit is infinity”, although keep in mind that if this happens, the sequence diverges (it just diverges in a particular way).

All of the limit laws we discussed earlier for functions are equally valid when stated in terms of sequences. For example, if anaa_n \to a and bnbb_n \to b, we have

limn{anbn}=ab,\lim_{n \to \infty} \{ a_n b_n \} = ab,

just like we did for functions.

Techniques: It is often unclear what the limit of a ratio is – both numerator and denominator could be going to infinity, or both going to zero. Two techniques to remember are dividing by the largest power and L’Hôpital’s rule.

To illustrate the first:

n25n3+n+3=n15n31+n2+3n30\begin{align*} \frac{n^2 - 5}{n^3 + n + 3} &= \frac{n^{-1} - 5n^{-3}}{1 + n^{-2} + 3n^{-3}} \\ &\to 0 \end{align*}

To illustrate the second:

limnlognn=limnn11=0\begin{align*} \lim_{n \to \infty} \frac{\log n}{n} &= \lim_{n \to \infty} \frac{n^{-1}}{1} \\ &= 0 \end{align*}

Recall that L’Hôpital’s rule only holds if the ratio of the derivatives converges and the original fraction is indeterminate.

Some special sequences: It is useful to know the limits of some sequences, because they come up frequently:

rn{0if r<11if r=1diverges otherwiser^n \to \begin{cases} 0 \quad \text{if } \lvert r\rvert < 1 \\ 1 \quad \text{if } r = 1 \\ \text{diverges otherwise} \end{cases}

nr{0if r<01if r=0diverges otherwisen^r \to \begin{cases} 0 \quad \text{if } r < 0 \\ 1 \quad \text{if } r = 0 \\ \text{diverges otherwise} \end{cases}

r1/n{1if r>00if r=0undefined otherwiser^{1/n} \to \begin{cases} 1 \quad \text{if } r > 0 \\ 0 \quad \text{if } r = 0 \\ \text{undefined otherwise} \end{cases}

na(1+r)n0 for all a if r>0\frac{n^a}{(1+r)^n} \to 0 \text{ for all } a \text{ if } r > 0

Monotone convergence theorem: Another way of establishing that a sequence converges is the monotone convergence theorem, which states that every bounded, monotonic sequence converges.

Infinite series

Similarly, we say that the series i=1ai\sum_{i=1}^\infty a_i converges if the sequence of partial sums sn=i=1nais_n = \sum_{i=1}^n a_i converges. If snss_n \to s, then ss is the called the sum of the series. Otherwise, the series is said to diverge.

Note that if the series n=1an\sum_{n=1}^\infty a_n converges, then an0a_n \to 0. The converse, however, is not true. For example, the following is known as the harmonic series:

limni=1n1n=1+12+13+14=.\lim_{n \to \infty} \sum_{i=1}^n \frac{1}{n} = 1 + \frac{1}{2} + \frac{1}{3} + \frac{1}{4} \cdots = \infty.

Note that series obey some of the limit rules, but not all of them. For example, the following are true if n=1an=a\sum_{n=1}^\infty a_n = a and n=1bn=b\sum_{n=1}^\infty b_n = b:

n=1can=can=1(an+bn)=a+bn=1(anbn)=ab\begin{align*} \sum_{n=1}^\infty c a_n &= c a \\ \sum_{n=1}^\infty (a_n + b_n) &= a + b \\ \sum_{n=1}^\infty (a_n - b_n) &= a - b \\ \end{align*}

However, not all of the limit laws carry over. In particular, if we see the quotient

n=1anbn,\sum_{n=1}^\infty \frac{a_n}{b_n},

we cannot conclude that its limit is a/ba/b. This is a common mistake, so take some time to realize why this is false.

There are two important series to be aware of:

n=1rn1{11rif r<1diverges otherwise(geometric series)\sum_{n=1}^\infty r^{n-1} \to \begin{cases} \frac{1}{1-r} \quad \text{if } \lvert r\rvert < 1 \\ \text{diverges otherwise} \end{cases} \qquad \text{(geometric series)}

n=1nr{convergesif r<1diverges otherwise\sum_{n=1}^\infty n^r \to \begin{cases} \text{converges} \quad \text{if } r < -1 \\ \text{diverges otherwise} \end{cases}


  1. As before, we’re skipping some technical details here because you shouldn’t really need them for the first year. The topic is covered more rigorously here, which is intended for second-year students.↩︎