MAS 108 Probability I Notes on summation Autumn 2005 What is it? Let a1 , a2 , a3 , . . . be numbers. The notation n ∑ ai i=1 (read “sum, from i equals 1 to n, of ai ”), means: add up the numbers a1 , a2 , . . . , an ; that is, n ∑ ai = a1 + a2 + · · · + an. i=1 n The notation ∑ a j means exactly the same thing. The variable i or j is called a j=1 “dummy variable”. m The notation ∑ ai is not the same, since (if m and n are different) it is telling us to i=1 add up a different number of terms. The sum doesn’t have to start at 1. For example, 20 ∑ ai = a10 + a11 + · · · + a20. i=10 Sometimes I get lazy and don’t bother to write out the values: I just say ∑ ai to i mean: add up all the relevant values. For example, if X is a discrete random variable, then we say that E(X) = ∑ ai P(X = ai ) i where the sum is over all i such that ai is a value of the random variable X. 1 n Typographical note: ∑ni=1 ai is exactly the same as ∑ ai. i=1 Manipulation The following four rules hold. n n n i=1 i=1 i=1 ∑ (ai + bi) = ∑ ai + ∑ bi. (1) Imagine the as and bs written out with a1 + b1 on the first line, a2 + b2 on the second line, and so on. The left-hand side says: add the two terms in each line, and then add up all the results. The right-hand side says: add the first column (all the as) and the second column (all the bs), and then add the results. The answers must be the same. ! ! n m ∑ ai · ∑ bj i=1 j=1 n =∑ m ∑ aib j . (2) i=1 j=1 The double sum says add up all these products, for all values of i and j. A simple example shows how it works: (a1 + a2 )(b1 + b2 ) = a1 b1 + a1 b2 + a2 b1 + a2 b2 . If c is a constant then n n i=1 i=1 ∑ cai = c ∑ ai. (3) The left-hand side says multiply every term by c and then add up the results; the right-hand side says add up the terms and then multiply the total by c. Because multiplication is distributive over addition, the two sides must be the same. If in place of numbers, we have functions of x, then we can “differentiate term-byterm”: n d d n f (x) = fi (x). (4) i ∑ ∑ dx i=1 i=1 dx The left-hand side says: add up the functions and differentiate the sum. The right says: differentiate each function and add up the derivatives. 2 Infinite sums ∞ Sometimes we meet infinite sums, which we write as ∑ ai for example. This doesn’t i=1 just mean “add up infinitely many values”, since that is not possible. We need Analysis to give us a definition in general. But sometimes we know the answer another way: for example, if ai = ari−1 , where −1 < r < 1, then ∞ a ∑ ai = a + ar + ar2 + · · · = 1 − r , i=1 using the formula for the sum of the “geometric series”. You also need to know the sum of the “exponential series” ∞ xi x2 x3 x4 = 1 + x + + + + · · · = ex . ∑ i! 2 6 24 i=0 Do the four rules of the preceding section hold? Sometimes yes, sometimes no. In Analysis you will see some answers to this question. In all the examples you meet in Probability I, the rules will be valid. 3