# Trend stationary

In the statistical analysis of time series, a stochastic process is **trend stationary** if an underlying trend (function solely of time) can be removed, leaving a stationary process.^{[1]} The trend does not have to be linear.

Conversely, if the process requires differencing to be made stationary, then it is called difference stationary and possesses one or more unit roots.^{[2]}^{[3]} Those two concepts may sometimes be confused, but while they share many properties, they are different in many aspects. It is possible for a time series to be non-stationary, yet have no unit root and be trend-stationary. In both unit root and trend-stationary processes, the mean can be growing or decreasing over time; however, in the presence of a shock, trend-stationary processes are mean-reverting (i.e. transitory, the time series will converge again towards the growing mean, which was not affected by the shock) while unit-root processes have a permanent impact on the mean (i.e. no convergence over time).^{[4]}

## Formal definition

A process {*Y*} is said to be trend stationary if^{[5]}

- [math]\displaystyle{ Y_t = f(t) + e_t, }[/math]

where *t* is time, *f* is any function mapping from the reals to the reals, and {*e*} is a stationary process. The value [math]\displaystyle{ f(t) }[/math] is said to be the trend value of the process at time *t*.

## Simplest example: stationarity around a linear trend

Suppose the variable *Y* evolves according to

- [math]\displaystyle{ Y_t = a \cdot t + b + e_t }[/math]

where *t* is time and *e*_{t} is the error term, which is hypothesized to be white noise or more generally to have been generated by any stationary process. Then one can use^{[5]}^{[6]}^{[7]} linear regression to obtain an estimate [math]\displaystyle{ \hat{a} }[/math] of the true underlying trend slope [math]\displaystyle{ a }[/math] and an estimate [math]\displaystyle{ \hat{b} }[/math] of the underlying intercept term *b*; if the estimate [math]\displaystyle{ \hat{a} }[/math] is significantly different from zero, this is sufficient to show with high confidence that the variable *Y* is non-stationary. The residuals from this regression are given by

- [math]\displaystyle{ \hat{e}_t = Y_t - \hat{a} \cdot t - \hat{b}. }[/math]

If these estimated residuals can be statistically shown to be stationary (more precisely, if one can reject the hypothesis that the true underlying errors are non-stationary), then the residuals are referred to as the **detrended** data,^{[8]} and the original series {*Y*_{t}} is said to be trend stationary even though it is not stationary.

## Stationarity around other types of trend

### Exponential growth trend

Many economic time series are characterized by exponential growth. For example, suppose that one hypothesizes that gross domestic product is characterized by stationary deviations from a trend involving a constant growth rate. Then it could be modeled as

- [math]\displaystyle{ \text{GDP}_t = Be^{at}U_t }[/math]

with U_{t} being hypothesized to be a stationary error process. To estimate the parameters [math]\displaystyle{ a }[/math] and *B*, one first takes^{[8]} the natural logarithm (ln) of both sides of this equation:

- [math]\displaystyle{ \ln (\text{GDP}_t) = \ln B + at + \ln (U_t). }[/math]

This log-linear equation is in the same form as the previous linear trend equation and can be detrended in the same way, giving the estimated [math]\displaystyle{ (\ln U)_t }[/math] as the detrended value of [math]\displaystyle{ (\ln \text{GDP})_t }[/math], and hence the implied [math]\displaystyle{ U_t }[/math] as the detrended value of [math]\displaystyle{ \text{GDP}_t }[/math], assuming one can reject the hypothesis that [math]\displaystyle{ (\ln U)_t }[/math] is non-stationary.

### Quadratic trend

Trends do not have to be linear or log-linear. For example, a variable could have a quadratic trend:

- [math]\displaystyle{ Y_t = a \cdot t + c \cdot t^2 + b + e_t. }[/math]

This can be regressed linearly in the coefficients using *t* and *t*^{2} as regressors; again, if the residuals are shown to be stationary then they are the detrended values of [math]\displaystyle{ Y_t }[/math].

## See also

- Trend estimation
- Decomposition of time series
- KPSS Test

## Notes

- ↑ About.com economics Online Glossary of Research Economics
- ↑ "Error: no
`|title=`

specified when using {{Cite web}}". http://pages.stern.nyu.edu/~churvich/Forecasting/Handouts/UnitRoot.pdf. - ↑ "Error: no
`|title=`

specified when using {{Cite web}}". http://www.stats.ox.ac.uk/~burke/Autocorrelation/Non-Stationary%20Series.pdf. - ↑ Heino Bohn Nielsen. "Non-Stationary Time Series and Unit Root Tests". http://www.econ.ku.dk/metrics/Econometrics2_05_II/Slides/08_unitroottests_2pp.pdf.
- ↑
^{5.0}^{5.1}Nelson, Charles R. and Plosser, Charles I. (1982), "Trends and Random Walks in Macroeconomic Time Series: Some Evidence and Implications,"*Journal of Monetary Economics*, 10, 139-162. - ↑ Hegwood, Natalie, and Papell,David H. "Are real GDP levels trend, difference, or regime-wise trend stationary? Evidence from panel data tests incorporating structural change." http://www.uh.edu/~dpapell/realgdp.pdf
- ↑ Lucke, Bernd. "Is Germany‘s GDP trend-stationary? A measurement-with-theory approach." "Archived copy". Archived from the original on 2011-07-08. https://web.archive.org/web/20110708110539/http://www.wiso.uni-hamburg.de/fileadmin/wiso_vwl_iwk/paper/gdptrend.pdf. Retrieved 2010-12-07.
- ↑
^{8.0}^{8.1}http://www.duke.edu/~rnau/411diff.htm "Stationarity and differencing"