Cumulative Sum — Definition, Formula & Examples
A cumulative sum is a running total where each entry equals the sum of all previous values in the data set up to and including that point. It shows how a total grows as you move through your data from first value to last.
Given a sequence of values , the cumulative sum at position is defined as for . Each term in the resulting sequence represents the partial sum of the original data through that index.
Key Formula
Where:
- = Cumulative sum at position k
- = The individual data value at position i
- = The index up to which you are summing (1 through n)
How It Works
Start with the first value in your data set — that value is also the first cumulative sum. For each subsequent value, add it to the previous cumulative sum to get the new running total. The final cumulative sum always equals the total sum of the entire data set. Cumulative sums are especially useful when building cumulative frequency tables or cumulative relative frequency plots (ogives) in AP Statistics.
Worked Example
Problem: A teacher records quiz scores for 5 students: 8, 5, 10, 7, 10. Find the cumulative sum at each position.
Position 1: The first cumulative sum is just the first value.
Position 2: Add the second value to the previous cumulative sum.
Position 3: Continue adding each new value to the running total.
Position 4: Add the fourth value.
Position 5: Add the last value to get the overall total.
Answer: The cumulative sums are 8, 13, 23, 30, 40. The final value confirms the total of all scores is 40.
Why It Matters
Cumulative sums are the foundation of cumulative frequency distributions and ogives, both tested on the AP Statistics exam. In data analysis and quality control, cumulative sum (CUSUM) charts detect small shifts in a process mean that standard control charts might miss.
Common Mistakes
Mistake: Restarting the sum instead of carrying it forward
Correction: Each cumulative sum must include all prior values, not just the current one. Always add the new value to the previous running total, not to zero.
