Answers · The mathematics underneath
What does the sigma notation with i=1 underneath and n on top actually tell me to add?
In shortIt tells you to write the expression after the sign once for each whole number from one up to the top number, then add all those copies.
A sigma with underneath and on top tells you to let the counter take each whole number from to , including , and to add the expression to the right once for each value. The expression is one term written once with a placeholder in it, not the whole sum. It is an abbreviation for an addition, and the only real question is what the counter is doing. Reading the three decorations before reading the term is the whole habit: bottom gives the start, top gives the stop, and the term tells you what is being added.
The order is mechanical. Put into the expression and write the first term; put in and write the second; continue until ; put plus signs between the copies. For and the term the copies are , , and , and adding gives . The top limit is included, so the last term is the one with , not the one before it. Nothing is being multiplied by the sigma, and no term has been skipped: four values of produce four terms. In general the same instruction gives a sum of terms, with the counter substituted into the term each time.
What the bounds do
The counting is where most slips happen. From to inclusive is terms, because the list has entries. From to inclusive is terms, because nought is a value as well; from to there are five terms, not four. From to is terms. The counter is local: the under the sigma has no meaning outside that sum, so the same letter can be reused elsewhere without collision. A term that does not mention is still repeated once for every value; is four ones added, not one one.
| step | compressed form | written out | number of terms | what happened |
|---|---|---|---|---|
| 1 | sum from i=1 to 3 of 2i | 2*1 + 2*2 + 2*3 | three terms, total 12 | each term uses a different value of the counter |
| 2 | sum from i=1 to 3 of (x_i - m)^2 | (x_1 - m)^2 + (x_2 - m)^2 + (x_3 - m)^2 | three terms; m is unchanged because it has no subscript | only the letter carrying the counter changes |
| 3 | sum from i=1 to 4 of 1 | 1 + 1 + 1 + 1 | four terms, total 4 | a term that ignores the counter is copied once per value anyway |
| 4 | sum from i=5 to 4 of anything | nothing | nought terms, value 0 | top below bottom means no terms, not an error |
| 5 | 3 + 6 + 9 + 12 | 3*1 + 3*2 + 3*3 + 3*4 | four terms, so compressed as sum from i=1 to 4 of 3i | compression means finding the pattern, then writing the sign |
A term with no counter still gets copied. If the term is and , the sum is , not . That is how a sum of ones counts the number of values. The trace also shows compression: has four terms and each is three times a counter value, so it is the sum of from to . Finding the pattern is the work; writing the sigma is only abbreviation.
The natural guess
The natural guess is that the top means stop before , because many programming loops stop before their upper bound, or that the expression after the sign already describes every term. Neither is right. The sum includes , so from to there are terms. With the values are , not . If the term is , those four values give , which is , not . The top number is a stop value, not a count, and the expression is a template, not a total.
A factor's position matters for what is being added. The expression immediately to the right of the sigma is inside the sum. A factor written to the left is outside and applies once, after all the adding. With , and , the left expression gives , while the right expression gives . The second is not an average, because each term is divided by a different number. Division by is inside because it mentions the counter; division by is outside because does not change as runs. A factor may be moved across the sign only when it does not mention the counter: , but cannot have pulled out.
Where the simple reading stops
The limits need not be numbers. A sum may run over the members of a set, with the set named underneath and no top limit, and then there is one term per member and no meaningful third term. A condition can replace the bounds. When the top is below the bottom, there are no terms, and the agreed value is nought; a sum from to is empty and equals . That convention is not an error, it is what lets a recursive formula start at its base case without a special case.
Worth keeping
- In a sum from i=1 to n, the top limit is included, so there are n terms, not n-1.
- The expression to the right of the sigma is one term written once; each value of the counter produces one copy with that value substituted.
- A factor written to the left of the sigma is outside the sum and applies once, while a factor written to the right is inside and applies to every term.
Where this goes next
This question is one step of Reading the Notation, a course that works through its subject from the beginning. The page that teaches this part of it is The Sum Sign Is a Loop, and it reads the whole way through whether or not you have an account.
What an account changes is the practice: problems standing under every idea, marked with a reason rather than a tick, in a copy of the course that is yours.
Read that pageThe whole courseOther questions people ask about this
- Is f(x) just f times x, or is it something else?No. f(x) means the rule named f applied to x, giving one output value; it is not f multiplied by x.
- Why does any number to the power zero equal one?Any non-zero number to the power zero is one because no copies are multiplied, and an empty product is one, not zero.
- Does a subscript like a_ij mean a times i times j?No, a subscript marks which row and column an entry belongs to rather than multiplying by the letters underneath.
- What is the difference between variance and standard deviation?They measure the same spread: variance is the average squared distance from the mean, standard deviation is its square root, so you report the standard deviation and calculate with the variance.
- How do you make a vague claim precise enough to tell whether it's true?Fix what is being talked about, what is asserted, which cases are covered and the cut-off, then name an observation that would prove it false.
- How do you find the parabola that best fits a function near a point?Match the function's height, slope and bending at the chosen point; those three conditions single out exactly one parabola.