Skip to content
← All questions

How do you recover the original time series qkq_k from modeled differences ZtZ_t?

You recover the original series qkq_k by summing the predicted differences ZtZ_t and adding them to the last known actual value qlq_l (or q1q_1 depending on the starting index). The formula is qk=∑i=1k−lZk−i+qlq_k = \sum_{i=1}^{k-l} Z_{k-i} + q_l.

Conditions

  • You have forecasts for the differenced series ZtZ_t.
  • You know the last observed value of the original series qlq_l.
  • The relationship Zt=qt+1−qtZ_t = q_{t+1} - q_t holds.

Reasoning, step by step

  1. Start with the definition Zk−1=qk−qk−1Z_{k-1} = q_k - q_{k-1}.
  2. Rearrange to solve for qkq_k: qk=Zk−1+qk−1q_k = Z_{k-1} + q_{k-1}.
  3. Recursively substitute for qk−1,qk−2,…q_{k-1}, q_{k-2}, \dots until reaching the last known value qlq_l.
  4. Sum all the intermediate ZZ terms.
  5. Add the last known actual value qlq_l to the sum.
  6. Resulting formula: qk=∑i=1k−lZk−i+qlq_k = \sum_{i=1}^{k-l} Z_{k-i} + q_l.

Example

The board shows the derivation: qk=Zk−1+qk−1=Zk−1+Zk−2+qk−2=⋯=∑i=1k−1Zk−i+q1q_k = Z_{k-1} + q_{k-1} = Z_{k-1} + Z_{k-2} + q_{k-2} = \dots = \sum_{i=1}^{k-1} Z_{k-i} + q_1. The speaker explains this as doing the reverse transformation.

Common misconceptions

  • Forgetting to add the initial or last known value qlq_l.
  • Summing the wrong range of ZZ terms.
  • Thinking the model predicts qkq_k directly without inversion.

Watch the explanation

Explore next

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.