Linear trend estimation is a statistical technique used to analyze data patterns. Data patterns, or trends, occur when the information gathered tends to increase or decrease over time or is influenced by changes in an external factor. Linear trend estimation essentially creates a straight line on a graph of data that models the general direction that the data is heading.
Fitting a trend: Least-squares Given a set of data, there are a variety of functions that can be chosen to fit the data. The simplest function is a straight line with the dependent variable (typically the measured data) on the vertical axis and the independent variable (often time) on the horizontal axis. The least-squares fit is a common method to fit a straight line through the data. This method minimizes the sum of the squared errors in the data series y. Given a set of points in time t and data values yt observed for those points in time, values of â and b̂ are chosen to minimize the sum of squared errors
∑t[yt−(ât+b̂)]2. This formula first calculates the difference between the observed data yt and the estimate (ât+b̂), the difference at each data point is squared, and then added together, giving the "sum of squares" measurement of error. The values of â and b̂ derived from the data parameterize the simple linear estimator ŷ=âx+b̂. The term "trend" refers to the slope â in the least squares estimator.
Data as trend and noise To analyze a (time) series of data, it can be assumed that it may be represented as trend plus noise:
yt=at+b+et where a and b are unknown constants and the e's are randomly distributed errors. If one can reject the null hypothesis that the errors are non-stationary, then the non-stationary series {yt} is called trend-stationary. The least-squares method assumes the errors are independently distributed with a normal distribution. If this is not the case, hypothesis tests about the unknown parameters a and b may be inaccurate. It is simplest if the e's all have the same distribution, but if not (if some have higher variance, meaning that those data points are effectively less certain), then this can be taken into account during the least-squares fitting by weighting each point by the inverse of the variance of that point. Commonly, where only a single time series exists to be analyzed, the variance of the e's is estimated by fitting a trend to obtain the estimated parameter values â and b̂, thus allowing the predicted values
ŷ=ât+b̂ to be subtracted from the data yt (thus detrending the data), leaving the residuals êt as the detrended data, and estimating the variance of the et's from the residuals — this is often the only way of estimating the variance of the et's. Once the "noise" of the series is known, the significance of the trend can be assessed by making the null hypothesis that the trend, a, is not different from 0. From the above discussion of trends in random data with known variance, the distribution of calculated trends is to be expected from random (trendless) data. If the estimated trend, â, is larger than the critical value for a certain significance level, then the estimated trend is deemed significantly different from zero at that significance level, and the null hypothesis of a zero underlying trend is rejected. The use of a linear trend line has been the subject of criticism, leading to a search for alternative approaches to avoid its use in model estimation. One of the alternative approaches involves unit root tests and the cointegration technique in econometric studies. The estimated coefficient associated with a linear trend variable such as time is interpreted as a measure of the impact of a number of unknown or known but immeasurable factors on the dependent variable over one unit of time. Strictly speaking, this interpretation is applicable for the estimation time frame only. Outside of this time frame, it cannot be determined how these immeasurable factors behave both qualitatively and quantitatively. Research results by mathematicians, statisticians, econometricians, and economists have been published in response to those questions. For example, detailed notes on the meaning of linear time trends in the regression model are given in Cameron (2005); Granger, Engle, and many other econometricians have written on stationarity, unit root testing, co-integration, and related issues (a summary of some of the works in this area can be found in an information paper by the Royal Swedish Academy of Sciences (2003)); and Ho-Trieu & Tucker (1990) have written on logarithmic time trends with results indicating linear time trends are special cases of cycles.
Noisy time series It is harder to see a trend in a noisy time series. For example, if the true series is 0, 1, 2, 3, all plus some independent normally distributed "noise" e of standard deviation E, and a sample series of length 50 is given, then if E = 0.1, the trend will be obvious; if E = 100, the trend will probably be visible; but if E = 10000, the trend will be buried in the noise. Consider a concrete example, such as the global surface temperature record of the past 140 years as presented by the IPCC. The interannual variation is about 0.2 °C, and the trend is about 0.6 °C over 140 years, with 95% confidence limits of 0.2 °C (by coincidence, about the same value as the interannual variation). Hence, the trend is statistically different from 0. However, as noted elsewhere, this time series doesn't conform to the assumptions necessary for least-squares to be valid.
Goodness of fit (r-squared) and trend
The least-squares fitting process produces a value, r-squared (r2), which is 1 minus the ratio of the variance of the residuals to the variance of the dependent variable. It says what fraction of the variance of the data is explained by the fitted trend line. It does not relate to the statistical significance of the trend line (see graph); the statistical significance of the trend is determined by its t-statistic. Often, filtering a series increases r2 while making little difference to the fitted trend.
… excerpt ends here. Continue reading the full article.
