Motivation
You need arithmetic with fractions and the distributive law. By the end of this chapter, you should be able to read and construct indexed sums and products, change an index without changing the terms, derive simple finite accumulation formulas, and check what a formula means at its endpoints. These skills are used in data summaries, repeated changes and the infinite series of Chapter 6.
A large symbol is not a new kind of arithmetic. It is a compact instruction telling us which ordinary additions or multiplications to perform. Much of the difficulty lies in reading the instruction rather than carrying out the operations.
5.1 The index is an instruction, not an extra variable
Definition
For integers and numbers , define
The symbol is the index, is the lower limit, and the upper limit. Both endpoints are included, so there are terms. The expression being summed is the summand. To evaluate it, replace every occurrence of the index in the summand by each permitted integer.
For example,
There are four terms, not three and not five. A factor independent of the index is repeated unchanged:
In a finite sum the index is a bound or dummy variable: . Renaming it does not change the number. A variable not bound by the summation sign remains a parameter. For example,
Here is free to vary; is not an argument of .
Worked example
Worked example 1: translating data notation. Four readings are , , , . Then
But . Squaring a sum creates cross terms; it does not simply square each summand. The sample arithmetic mean is , with the same unit as each reading.
The notation without endpoints is acceptable only when the index set has already been specified. It must not silently change from one calculation to another.
5.2 Algebra of finite sums
Proposition
If are defined for the same integer range and are constants independent of , the distributive law gives
Proof
This is linearity. It is proved by expanding both sides into their finite lists of terms and regrouping. It does not require the terms to be positive.
Splitting a range at an integer with gives
The second sum starts at : starting it at would count one term twice.
Common mistake
A constant may be taken outside, but an index-dependent expression may not. The expression cannot be rewritten as : there is no single value of left after summation.
Worked example
Worked example 2: an algebraic total. Since ,
The second contribution is repeated five times, not a single subtraction of .
5.3 Reindexing preserves the list
A change of index must change both the summand and the limits. If , then corresponds to and to . Thus
One can check a reindexing by comparing the first term, the last term, and the number of terms. Those three checks catch many errors.
Worked example
Worked example 3: a shifted model. Rewrite with lower index zero. Let . The result is
Replacing by in the original formula without changing the limits would not perform this shift.
Reversing an order is also possible. In , set . Then the same terms appear as , so
For finite real or complex sums, reordering is valid because addition is associative and commutative. Chapter 6 will not assume this permission automatically for arbitrary infinite series.
5.4 Arithmetic totals and telescoping
For an integer , let . Reverse the order and add corresponding terms:
There are pairs, each equal to . Therefore
This proof works whether is odd or even: we added two full lists rather than trying to partition one list into pairs. An arithmetic progression with first term and common difference has th term and total
Worked example
Worked example 4: a planned sequence of measurements. A study schedules measurements, starting minutes after the reference time and increasing each measurement time by minutes. The times are minutes. Their mean is minutes, and their sum is minutes. The sum is a sum of timestamps relative to the reference, not the elapsed duration of the study; the last measurement occurs at minutes.
Proposition
A sum telescopes when most terms cancel after expansion. For any defined ,
The intermediate appear once with each sign. Cancellation is valid because this is a finite expression.
Worked example
Worked example 5: a rational telescope. For positive integers ,
Hence
The identity is proved by a common denominator before it is summed. At the formula gives , which checks the lower endpoint. A telescope removes middle terms, not the final boundary term.
The finite geometric formula already derived in Chapter 3 is another accumulation identity. In current notation, for ,
Here the first term is , and the last is . This formula is finite and valid even when ; convergence is not a question until an infinite limit is proposed.
5.5 Product notation, factorials and cancellation
Definition
Define the corresponding product by
The expression is now the factor. For an integer , the factorial is . We set ; there are no positive integers from one through zero to multiply. More generally, the empty sum is and the empty product is . These are the additive and multiplicative identity elements. Whenever an empty range is used here it contains no indices; it is not an instruction to sum backwards.
A product containing a zero factor is zero. A quotient of products requires a nonzero denominator. If all relevant factors are defined,
and, when every ,
For factors, . This is not unless special values make them coincide. Products do not have sum-like linearity: generally .
Worked example
Worked example 6: a telescoping product. For ,
All cancelled factors are nonzero. At , interpreting the left side as empty gives , consistent with . By contrast, an expression with a denominator that vanishes at some index is undefined; an attractive cancellation pattern does not make division by zero legitimate.
Worked example
Worked example 7: varying percentage changes. A dimensionless fraction changes an amount by the multiplier during stage . Starting from , the amount after stages is
For a rise followed by a fall, the multiplier is , so the final amount is of the starting amount. Adding the percentages would miss the changing base. For nonnegative amounts, a stage multiplier should be nonnegative; a negative algebraic multiplier would need a different model interpretation.
5.6 Two indices and a statistical identity
A finite rectangular double sum is
Every table entry appears once. Therefore one can sum by columns instead of by rows. In particular, ordinary finite distributivity gives
The indices must be independent. For example, has four terms, not only the two matching-index terms . This is an algebraic fact and does not assume any statistical independence.
For real observations with , let . Expanding each square and using linearity gives
This identity concerns the total squared deviation; dividing by or by belongs to different statistical conventions. The convention is not defined at . For the readings in Example 1, the squared-deviation total is , also by direct computation. Its unit is the square of the reading unit.
5.7 Graded exercises
Foundation
Checkpoint
Exercise 1
- Expand and evaluate and .
Checkpoint
Exercise 2
- How many terms are in for ? Evaluate .
Checkpoint
Exercise 3
- For , evaluate , , and over .
Checkpoint
Exercise 4
- Explain why equals , not .
Core
Checkpoint
Exercise 5
- Rewrite with lower index zero. State the first and last terms.
Checkpoint
Exercise 6
- Derive a closed formula for , . Check and .
Checkpoint
Exercise 7
- Evaluate for .
Checkpoint
Exercise 8
- Evaluate for . Give the empty-product value at and test whether the same closed formula fits.
Checkpoint
Exercise 9
- A population model has consecutive multipliers , and . What fraction of its original amount remains? Is the overall percentage change the sum ?
Checkpoint
Exercise 10
- Evaluate by rows and by columns.
Synthesis
Checkpoint
Exercise 11
- Prove using the arithmetic-sum formula. Interpret why the first odd positive integers are being counted, including the last term.
Checkpoint
Exercise 12
- For , find the mean and total squared deviation exactly, both by expansion and by the identity in §5.6.
Checkpoint
Exercise 13
- For , simplify . Show the cancellation carefully; do not cancel across addition.
Checkpoint
Exercise 14
- A student writes . State the values of for which the quotient formula is valid. Give the separate answer at the excluded value and check .
Checkpoint
Exercise 15
- With and , give a numerical counterexample to .
Checkpoint
Exercise 16
- Suppose , . Prove by repeated use of the two-factor logarithm law. Explain why one nonpositive factor invalidates this real-logarithm statement even when the final product happens to be positive.
5.8 Full solutions
Solution · Exercise 1
- The sum is . The product is .
Solution · Exercise 2
- There are terms. For upper limit eight there are five terms, giving .
Solution · Exercise 3
- The sum is . The sum of squares is , whereas the square of the sum is . Their difference reflects cross terms.
Solution · Exercise 4
- There are three separate factors of two: . This remains true when any .
Solution · Exercise 5
- Set , so . The result is , starting at and ending at .
Solution · Exercise 6
- Linearity gives . At one this is ; at three it is , agreeing with .
Solution · Exercise 7
- Write each term as . The remaining boundary terms are . At , this is , the one term in the sum.
Solution · Exercise 8
- The product is . At the empty product is , which agrees with .
Solution · Exercise 9
- The exact multiplier is . Thus remains and the overall change is a decrease. The sum of the stage percentages is , which does not account for their different bases.
Solution · Exercise 10
- Rows give . Columns give . Each of six entries is included once.
Solution · Exercise 11
- Linearity gives . The indexed expression starts at one, increases by two, and ends at , so it lists exactly the first positive odd integers. At both sides equal one.
Solution · Exercise 12
- The mean is . Directly, the total is . The identity gives .
Solution · Exercise 13
- Since , separate the product into and . They are and , giving . At , this is , agreeing with the original first factor. The decomposition used multiplication after factoring a difference of squares, not cancellation of a term inside a sum.
Solution · Exercise 14
- For every real , the finite quotient formula is valid. At the sum is . At the original sum, whose powers start at one, is zero and the quotient gives zero. The finite geometric expression treats its constant term as one, including when ; it does not require defining a general indeterminate expression .
Solution · Exercise 15
- The left side is . The proposed right side is , so the proposed law is false.
The two-factor logarithm law used in the following solution is proved in Chapter 9, using the real-power foundation.
Solution · Exercise 16
- For the statement is immediate. Combining the first two positive factors gives ; combining their positive product with adds . Continue through the finite list, producing all terms. Positivity makes every logarithm defined. Two negative factors can have a positive product, but their individual real logarithms are undefined; a zero factor makes the logarithm of the product undefined as well.
Summary
- A finite sum lists additions; a finite product lists multiplications. Endpoints and the number of terms are part of the meaning.
- Sums are linear; a product of termwise products splits into two products, but products do not similarly split over addition.
- Reindex by changing the index expression and both limits. Compare the first and last terms.
- Arithmetic totals, telescoping and geometric totals are exact finite identities. Check exceptional denominators separately.
- Empty sums and products are zero and one. Nonempty denominators still must not vanish.
- Data means and squared deviations illustrate why the distinction between a sum of squares and a squared sum matters.
Connections. Finite partial sums lead to Chapter 6's definition of an infinite series. The identities here supply statements to prove by induction in Chapter 7. Product multipliers connect with exponent and logarithm laws in Chapter 9. The matrix-entry notation in Chapter 4 is an indexed sum.