Detrend

Overview

The Detrend analysis removes trends from time series by either subtracting or dividing, depending on the chosen method. This is useful when you want to concentrate on the cyclical component of a series.

Settings

Method

Here, you can define which statistical measure should be used as the trend that will be removed. The available measures are:

  • Mean
  • Median
  • Min
  • Max
  • Linear trend
  • Exponential trend

Operation

This is the calculation that will be used to remove the trend. For the linear and exponential trend methods, you can select between subtract (the statistical measure will be subtracted from the time series) and multiply (the series will be divided by the statistical measure). For the other methods, subtract is the chosen operation.

From & To

You can set a date range for removing a trend.

Examples

United States GDP detrend

In this example, we subtracted the linear trend from the US real GDP (expressed in log).

Detrend median

Here, we used median as the trend to subtract from the series.