Let's assume I have a very long list of non-negative numbers (X1, X2, ...), but I don't know the values in the list. What I do know is the rolling sums of the elements (let's say: the sum of all 5 consecutive elements in the original list) Thus, we know the differences of the values which are 5 values away from eachother.
How do I calculate the original values?
I know that there are less equations than variables (exactly 4 less in this case), but I have a constrait on the variables that they are non-negative, which should help I think.
E.g.: If X6=X1-4, it means X1 is at least 4. If the list is long enough, shouldn't these restrictions help to calculate the exact original values?