Question: what is the difference between sum and cumulative sum?
Answer: The cumulative sum is not the cumulative sum of the values. Instead it is the cumulative sum of differences between the values and the average. Because the average is subtracted from each value, the cumulative sum also ends at zero (S24=0). ... Suppose that during a period of time the values are all above average.