TL;DR
The summation sign is a short way to write the addition of many terms. means "add for every whole number from 1 to ". The letter is only a placeholder, and the notation comes with rules for shifting, splitting and rearranging sums.
Where you'll see it: in the average of a dataset, the expected value of a random variable, the dot product of two vectors, exponential moving averages, and the approximating sums behind the definite integral.
Intuition
Suppose a receipt has 40 line items and you need the total. Writing forces the reader to guess the pattern behind the dots. "Add the price of item for from 1 to 40" says the same thing without guessing, and it works for 40 items or 40 million.
The symbol is the Greek capital sigma, the S of "sum". Read it as "the sum over". Every sum has three parts:
- the index , which takes each value in turn. It is a dummy variable, so and mean the same thing;
- the bounds, the smallest and largest index values, written below and above the sign;
- the term, the expression added at each step, here .
Think of it as a loop. Set to the lower bound, add the term, increase by one, and stop after the upper bound. Most sums in later lessons are this loop written on one line.
The plot below shows a sum that grows by smaller and smaller steps. Each dot is a partial sum: the first term, then the first two terms, and so on.
- limit 2
- partial sums of 1 + 1/2 + 1/4 + ...
The math
Definition
For quantities that can be added, where and are integers with ,
The index takes every integer value from to inclusive. It exists only inside the sum, so it can be renamed freely.
Here is the lower bound, the upper bound, and the term. The number of terms is . For example, has four terms, through .
Rules that make sums manageable
These follow directly from the definition. Each one is a rewrite you can check by writing out a few terms.
- Renaming the index:
- Constant factors and sums of sums (linearity):
where does not depend on . A constant can be pulled outside the sum.
- A constant term: adding the same value a total of times gives
- Shifting the index: substituting gives
The sum is the same, but the bounds move. This matters when a formula is written for indices starting at 0 rather than 1.
- Splitting the range: for ,
- The empty sum: if the upper bound is below the lower bound, there are no terms and the sum is . This convention is what makes rule 5 work when .
Double sums
A sum can sit inside another sum. In , the inner sum over is computed first for each , and the results are then added over . When the term splits into a product, , the double sum factors:
This is the step that turns an expected value over two variables into a product of two simpler sums.
Three sums to know
The first has a short proof. Write the sum forwards and backwards and add the two copies. Each pair adds to , and there are pairs, so .
The geometric sum with ratio is
To derive it, let be the sum. Multiply by to get . Subtract: , so .
Worked examples
Compute .
- Write out the terms: .
- Evaluate them: .
- Add: .
- Check with the formula: . The formula is faster for large , but writing the terms out is the best way to confirm you read the bounds correctly.
A fair six-sided die shows with probability for each from 1 to 6. Its expected value is .
- Pull the constant outside the sum (rule 2): .
- Apply the formula for the first integers with : .
- Multiply: .
- Interpretation: over many rolls, the average result approaches 3.5. No single roll can show 3.5, which is normal for an average.
An average gives the newest reading weight 1, the one before it weight , then , then . The total weight for the last four readings is .
- Write it out: .
- Use the geometric formula with , : .
- Both methods give . Interpretation: the weights add to a little under 2, so an average built on them must divide by to stay on the scale of the readings.
Let . Compute .
- Directly: the terms are , which sum to .
- Using rule 2: .
- The two routes agree, so the rule is safe to use on the rest of the problem.
Tradeoffs and failure modes
Sigma notation is best when the terms follow one pattern, because the pattern is what the index encodes. It is worse when the terms are irregular or only a few in number. Three terms with no pattern are clearer written out.
| Situation | Problem | Better choice |
|---|---|---|
| Three or four terms with no pattern | The sigma suggests a rule that is not there | Write the terms out |
| The same letter used for two indices | Results are silently wrong | Use distinct letters, such as and |
| Treating as | The product creates cross terms that the original sum lacks | Expand with a double sum, or accept the sum as it is |
| Off-by-one bounds, such as to instead of to | Results count one term too many or too few | Check with or by hand |
| Infinite sums | Some diverge, and some depend on the order of the terms | Confirm convergence before using a finite formula as a value |
History
Capital sigma was chosen for sums because is the Greek S, for "sum". Leonhard Euler introduced it for sums in the 1750s, and Joseph Fourier later added the lower and upper bounds above and below the sign in the early 1820s, giving the form used today.
It caught on because sums written with dots were ambiguous beyond a few terms, and index notation let a result be stated once and applied to any range.
Check yourself
QuestionWhat does mean, and what is its value?Show answer
It means add the integers from 3 to 6 inclusive: . The lower bound is the first index value and the upper bound is the last. Both are included.
QuestionCompute without writing every term if you can.Show answer
Split it with linearity: . Writing the terms also gives , which is a good check.
QuestionWhy can not be rewritten as ?Show answer
The product of the two sums contains every pair , including the pairs where . The original sum only includes matched pairs . With and , the true sum is , while the product is .
QuestionA group of people report their ages, and you want the mean. Write the mean using sigma notation, then compute it for the four ages 10, 12, 14 and 16.Show answer
The mean of values is . For the four ages, . The same formula works for any number of values, which is why the mean is written this way in statistics.
Sources
- Summation, Wikipedia: https://en.wikipedia.org/wiki/Summation
- Geometric series, Wikipedia: https://en.wikipedia.org/wiki/Geometric_series
- Sigma, Wikipedia: https://en.wikipedia.org/wiki/Sigma