Difference

Make the time series stationary by replacing it with 1st or 2nd order discrete difference along its values.

Inputs

Outputs

  • Time series: differences of input time series.

  1. Select the series to difference.
  2. Order of differencing. Options are first or second order difference, change quotient and percentage change.
  3. The shift before differencing. Value of 1 equals discrete differencing. You can use higher values to compute the difference between now and this many steps ahead. Invert differencing direction compute differences from latest to oldest.

To integrate the differences back into the original series (e.g. the forecasts), use the Moving Transform widget.

Example

In this example, we are using the Yahoo Finance data for Amazon stocks for the past 6 years. We pass the data to Difference to compute the daily change in the high value of stocks. We observe the change in the Line Chart widget.