Skip to main content icon/video/no-internet

Often, time-series data may exhibit an upward or downward trend over time. A trend may be present in the form of a change in the mean value and/or variance over time. A plot of a time series may be linear, demonstrating a trending mean over time. Regressing one such variable on another will often yield a high R-squared, yet the estimated parameters may not reflect the relationship between the two variables. Rather, the estimated parameters will be biased upwards because of the trend, resulting in a spurious relationship between the dependent and independent variables, reflecting the common trend present in both of them. When this is the case, observations may be detrended before fitting a model in order to obtain true estimates of the relationship between the dependent and independent variables. Figure 1 shows a series that is trending over time, and that same series after the trend has been removed.

A simple solution to this problem is to include a time, or trend, variable as an independent variable in a regression analysis. The trend variable need not be linear; if the series were to exhibit a cubic trend, then the trend variable could be X3, where X is time. Furthermore, some time series exhibit seasonal trends, and it is appropriate in these instances to include seasonal trend variables as well. Introducing a trend variable on the right-handside of the equation will yield for its coefficient an estimate of the true relationship between it and the dependent variable.

None

Figure 1 Example of a Trending Series and Same Series After Detrending

If the dependent and independent variables exhibit different trends, say, the dependent a linear trend and the independent a quadratic, then it may be useful to employ a more complex detrending process. First, regress the dependent variable on time to obtain the residuals, Û1t. Then, regress the independent variable on time to obtain the residuals, Û2t. Finally, regress Û1t on Û2t. With the time trend removed from both variables, the coefficient on Û2t will be the true relationship between the dependent and independent variable. This method for detrending is additionally useful if you wish to report not merely the relationship between the dependent variable and the independent variable, but their unique trends over time as well.

Detrending in this manner is only applicable for the series in question if the trend is deterministic. If the trend changes over time, it is said to be stochastic, and in this instance, arima modeling may be an appropriate method to use to discover the underlying relationship. A unit root test may be appropriate to determine whether the series is stationary. Trends are removed in ARIMA modeling by differencing series, or by subtracting previous values of the variable from the value at time t. Simple linear trends, such as those easily removed by including a trend variable inregression, may also be removed in ARIMA models with a first-differenced equation, or an equation where the dependent variable is change in y from time, t, to previous time, t − 1.

...

locked icon

Sign in to access this content

Get a 30 day FREE TRIAL

  • Watch videos from a variety of sources bringing classroom topics to life
  • Read modern, diverse business cases
  • Explore hundreds of books and reference titles

Sage Recommends

We found other relevant content for you on other Sage platforms.

Loading