9
$\begingroup$

Sometimes a time serie may need to be differenced to be made stationary. However I don't understand how second order differencing can help to make it stationary when first-order differencing is not enough.

Could you give an intuitive explanation for second order differencing and the cases where is it needed?

$\endgroup$
8
$\begingroup$

Second-order differencing is the discrete analogy to the second-derivative. For a discrete time-series, the second-order difference represents the curvature of the series at a given point in time. If the second-order difference is positive then the time-series is curving upward at that time, and if it is negative then the time series is curving downward at that time.

The second-order difference of a discrete time series $\{ X_t | t \in \mathbb{Z} \}$ at time $t$ is:

$$\begin{equation} \begin{aligned} \Delta^2 X_t = \Delta (\Delta X_t) &= \Delta (X_t-X_{t-1}) \\[6pt] &= \Delta X_t - \Delta X_{t-1} \\[6pt] &= (X_t-X_{t-1})-(X_{t-1}-X_{t-2}) \\[6pt] &= X_t - 2X_{t-1} + X_{t-2}. \\[6pt] \end{aligned} \end{equation}$$

This is positive if $\Delta X_t > \Delta X_{t-1}$ and negative if $\Delta X_t < \Delta X_{t-1}$ (and zero if $\Delta X_t = \Delta X_{t-1}$). If there is more upward (less downward) change in the series at this time than in the previous time, there is positive curvature, and if there is less upward (more downward) change in the series at this time than in the previous time, there is negative curvature.

$\endgroup$
4
$\begingroup$

Two thoughts:

Recursion. After you first-order difference, what do you have? Another time series which is, under the right conditions, closer to stationary. If it's not close enough, you now have a time series that's not stationary and you want to move it closer to stationary, so you take a first-order difference. (Which happens to be a second-order difference of the original time series.) If the differenced time series isn't close enough to stationary, you ... [recurse] ...

Derivatives. Imagine you record your car's GPS location every 10 minutes. If I could take the GPS points from any two days and show them to you and you couldn't figure out which day it might've been -- perhaps couldn't even really tell one day from another -- your location data would be stationary.

But say you drove to a different nearby city each day for two weeks? You'd easily be able to tell the difference between the days -- perhaps even knowing exactly which day I was showing you. Not stationary.

Perhaps if you instead recorded your distance from home every 10 minutes, it would make your data more stationary. Distance doesn't include direction, so perhaps now your data for those two weeks would pretty much look the same? (Average location is home, for example.)

Say, instead, that you chose to drive from New York straight through to Los Angeles. The distance trick wouldn't work, since your distance would give you a pretty clear distinction between days.

But you might then choose to record your speed every 10 minutes instead. Driving cross country on the interstate system, you days would tend to look an a lot alike, speed-wise. That is, your speed would be stationary.

Say, location at time 0 is $L_0$, and 10 and 20 minutes later is $L_1$ and $L_2$, respectively. The distance traveled in each 10-minute interval would be $D_1 = L_1 - L_0$ and $D_2 = L_2 - L_1$, which, when divided by the time interval yields the velocity (same units as speed but with direction). The second differential, $A_2 = D_2 - D_1 = L_2 - 2 L_1 + L_0$ is the acceleration. If the speed is stationary, and the vehicle is perpetually moving, the differences in location would also be stationary.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.