Detrend

Detrend

A detrend involves removing the effects of trend from a data set to show only the differences in values from the trend; it allows cyclical and other patterns to be identified. A few of the alternative options are quadratic detrending, using the Baxter-King filter (for moving average trend lines only), and using the Hodrick-Prescott filter (for cyclical components of a particular time series only). Which method is the best for the project and data at hand will depend on numerous individual factors, including the particular field of study and whether or not the data is linearly correlated. A detrend involves removing the effects of trend from a data set to show only the differences in values from the trend; it allows cyclical and other patterns to be identified. Detrending shows a different aspect of time series data by removing deterministic and stochastic trends. The deterministic trends consistently decrease or increase, and the stochastic trends inconsistently decrease or increase.

Detrending is used to identify other patterns in a particular data set that displays a trend.

What Is a Detrend?

A detrend involves removing the effects of trend from a data set to show only the differences in values from the trend; it allows cyclical and other patterns to be identified. Detrending can be done using regression analysis and other statistical techniques. Detrending shows a different aspect of time series data by removing deterministic and stochastic trends.

One of the most common uses of detrending is in a data set that shows some kind of overall increase. Detrending the data will allow you to see any potential subtrends, which can be incredibly useful for scientific, financial, sales, and marketing research across the board. 

Detrending is used to identify other patterns in a particular data set that displays a trend.
There are typically two classes of trends: deterministic and stochastic. Deterministic trends show consistent and sustained increases and decreases, while stochastic trends increase and decrease without any consistency.
Before detrending can occur, the type of trend needs to be identified.
A detrended price oscillator is a common method of detrending price action that is used by traders.

How a Detrend Works

Removing a trend from your data set can allow you to focus instead on the fluctuations and identify any number of important factors. This type of detrending is used in trading to identify any cyclical price fluctuations in a stock, which can then be used to help time position entry and exit. A detrended price oscillator (DPO) is a common tool technical investors and traders will use for this purpose. Detrending is also used in sales and marketing to highlight month-to-month changes in sales without the distraction of overall volumes.

When a researcher or economist detrends a particular data set, they are typically doing so in order to remove an aspect that appears to be causing some kind of distortion in the final outcome. Economic models may be detrended with the trend then added back into the model as another input variable to test different relationships between the data.

Types of Detrending

There are many methods beyond detrended price oscillators that can be used to detrend, although some of them are far more complex and difficult to use. A few of the alternative options are quadratic detrending, using the Baxter-King filter (for moving average trend lines only), and using the Hodrick-Prescott filter (for cyclical components of a particular time series only).

Which method is the best for the project and data at hand will depend on numerous individual factors, including the particular field of study and whether or not the data is linearly correlated. The option to detrend quickly and efficiently is included in the majority of statistical software packages that are available and widely used today.

Requirements for a Detrend 

Before detrending can occur, the particular class of the trend must be identified in order to determine the most appropriate method to be used. While there are many different kinds of trends, they typically occur within only two different classes. These classes are deterministic trends and stochastic trends. 

The deterministic trends consistently decrease or increase, and the stochastic trends inconsistently decrease or increase. Deterministic trends are often easier to identify and detrend since they are a bit more predictable and reliable, but there are methods for dealing with stochastic trends as well. The identification of trend, particularly a stochastic trend, can be a subjective exercise and can result in inaccuracies in the modelling and the conclusions or predictions drawn from it.

Related terms:

Autoregressive Integrated Moving Average (ARIMA)

An autoregressive integrated moving average (ARIMA) is a statistical analysis model that leverages time series data to forecast future trends.  read more

Correlation

Correlation is a statistical measure of how two securities move in relation to each other.  read more

Detrended Price Oscillator (DPO) and Uses

A detrended price oscillator is an oscillator that strips out price trends in an effort to estimate the length of price cycles from peak to peak or trough to trough. The indicator may aid in trade timing. read more

Fourier Analysis

Fourier analysis uses statistics to find patterns in a time series. read more

Hodrick-Prescott (HP) Filter

The Hodrick-Prescott Filter smooths data, removing short-term fluctuations associated with the business cycle and revealing long-term trends.  read more

Regression

Regression is a statistical measurement that attempts to determine the strength of the relationship between one dependent variable (usually denoted by Y) and a series of other changing variables (known as independent variables). read more

Runs Test

Traders use a runs test to determine the randomness of data by revealing any variables that might affect data patterns, such as a stock's price movement. read more

Seasonal Adjustment

A seasonal adjustment is a statistical technique designed to even out periodic swings in statistics or seasonal movements in supply and demand. read more

Time Series

A time series is a sequence of numerical data points in successive order. In investing, a time series tracks the movement of the chosen data points over a specified period of time with data points recorded at regular intervals.  read more