Aureus: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>Cplakidas
minor copyedits, rmv duplication, adding regnal dates of emperors
en>Lotje
m Filling in 2 references using Reflinks
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
'''Trend estimation''' is a [[statistics|statistical]] technique to aid interpretation of data. When a series of measurements of a process are treated as a [[time series]], trend estimation can be used to make and justify statements about tendencies in the data, by relating the measurements to the times at which they occurred. By using trend estimation it is possible to construct a model which is independent of anything known about the nature of the process of an incompletely understood system (for example, physical, economic, or other system). This model can then be used to describe the behaviour of the observed data.
Adrianne is what you is going to call me but I don't like when [http://www.alexa.com/search?q=individuals&r=topsites_index&p=bigtop individuals] use my full user name. What I genuinely like doing is [https://www.gov.uk/search?q=fish+preventing fish preventing] and I'll be opening up something else along can. Filing is my day job but but soon I'll getting on my own. Vermont also has always been my livelihood place and I eat everything that I would like here. Go to the best website to find apart more: http://prometeu.net<br><br>Also visit my web blog ... [http://prometeu.net Clash of clans cheats no survey]
 
In particular, it may be useful to determine if measurements exhibit an increasing or decreasing trend which is statistically distinguished from [[randomness|random behaviour]]. Some examples are determining the trend of the daily average temperatures at a given location from winter to summer, and determining the trend in a global temperature series over the last 100 years. In the latter case, issues of [[homogeneity (statistics)|homogeneity]] are important (for example, about whether the series is equally reliable throughout its length).
 
== Fitting a trend: least-squares ==
Given a set of data and the desire to produce some kind of [[Econometric model|model]] of those data, there are a variety of functions that can be chosen for the fit. If there is no prior understanding of the data, then the simplest function to fit is a straight line with the data plotted vertically and values of time (''t'' = 1, 2, 3, ...) plotted horizontally.
 
Once it has been decided to fit a straight line, there are various ways to do so, but the most usual choice is a [[least-squares]] fit. This method minimises the sum of the squared errors in the data series, denoted the ''y'' variable.
 
Given a set of points in time <math>t</math>, and data values <math>y_t</math> observed for those points in time, values of <math>a</math> and <math>b</math> are chosen so that
 
:<math>\sum_t \left\{[(at + b) - y_t]^2\right\}</math>
 
is minimised. Here ''at'' + ''b'' is the trend line, so the sum of [[squared deviations]] from the trend line is what is being minimised. This can always be done in closed form since this is a case of [[simple linear regression]].
 
For the rest of this article, “trend” will mean the slope of the least squares line, since this is a common convention.
 
== Trends in random data ==
Before considering trends in real data, it is useful to understand trends in [[random variable|random data]].
 
[[Image:Random-trends-histogram.png|thumb|right|Red shaded values are greater than 99% of the rest; blue, 95%; green, 90%. In this case, the V values discussed in the text for (one-sided) 95% confidence is seen to be 0.2.]]
 
If a series  which is known to be random is analysed – fair dice falls, or computer-generated pseudo-random numbers – and a trend line is fitted through the data, the chances of an exactly zero estimated trend are negligible. But the trend would be expected to be small. If an individual series of observations is generated from simulations that employ  a given [[variance]] of noise that equals the observed variance of our data series of interest, and a given length (say, 100 points), a large number of such simulated series (say, 100,000 series) can be generated. These 100,000 series can then be analysed individually to calculate estimated trends in each series, and these results establish a distribution of estimated trends that are to be expected from such random data – see diagram. Such a distribution will be [[normal distribution|normal]] according to the [[central limit theorem]] except in pathological cases. A level of statistical certainty, ''S'', may now be selected – 95% confidence is typical; 99% would be stricter, 90% looser – and the following question can be asked: what is the borderline trend value ''V'' that would result in ''S''% of trends being between −''V'' and ''+V''?
 
The above procedure can be replaced by a [[permutation test]]. For this, the set of  100,000 generated series would be replaced by 100,000 series constructed by randomly shuffling the observed data series; clearly such a constructed series would be trend-free, so as with the approach of using simulated data these series can be used to generate borderline trend values ''V'' and −''V''.
 
In the above discussion the distribution of trends was calculated by simulation, from a large number of trials. In simple cases (normally distributed random noise being a classic) the distribution of trends can be calculated exactly without simulation.
 
The range (−''V'', ''V'') can be employed in deciding whether a trend estimated from the actual data is unlikely to have come from a data series that truly has a zero trend. If the estimated value of the regression parameter ''a'' lies outside this range, such a result could have occurred in the presence of a true zero trend only, for example, one time out of twenty if the confidence value ''S''=95% was used; in this case, it can be said that, at degree of certainty ''S'', we reject the null hypothesis that the true underlying trend is zero.
 
However, note that whatever value of ''S'' we choose, then a given fraction, 1&nbsp;−&nbsp;''S'', of truly random series will be declared (falsely, by construction) to have a significant trend. Conversely, a certain fraction of series that in fact have a non-zero trend will not be declared to have a trend.
 
== Data as trend plus noise ==
To analyse a (time) series of data, we assume that it may be represented as trend plus noise:
 
:<math>y_t = at + b + e_t\,</math>
 
where <math>a</math> and <math>b</math> are unknown constants and the <math>e</math>'s are randomly distributed [[errors and residuals in statistics|errors]].  If one can reject the null hypothesis that the errors are non-stationary, then the non-stationary series {''y''<sub>''t''</sub> } is called [[trend stationary]]. The least squares method assumes the errors to be independently distributed with a [[normal distribution]]. If this is not the case, hypothesis tests about the estimated values of ''a'' and ''b'' may be inaccurate. It is simplest if the <math>e</math>'s all have the same distribution, but if not (if some have [[heteroskedasticity|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.
 
In most cases, where only a single time series exists to be analysed, the variance of the <math>e</math>'s is estimated by fitting a trend, thus allowing <math>at+b</math> to be subtracted from the data <math>y_t</math> (thus ''detrending'' the data) and leaving the residuals <math>e_t</math> as the ''detrended data'', and calculating the variance of the <math>e_t</math>'s from the residuals — this is often the only way of estimating the variance of the <math>e_t</math>'s.
 
One particular special case of great interest, the (global) temperature time series, is known not to be homogeneous in time: apart from anything else, the number of weather observations has (generally) increased with time, and thus the error associated with estimating the global temperature from a limited set of observations has decreased with time. Though many people do attempt to fit a "trend" to climate data the climate trend is clearly not a straight line and the idea of attributing a straight line is not mathematically correct because the assumptions of the method are not valid in this context.
 
Once we know the "noise" of the series, we can then assess the significance of the trend by making the ''null hypothesis'' that the trend, <math>a</math>, is not significantly different from 0. From the above discussion of trends in random data with known variance, we know the distribution of trends to be expected from random (trendless) data. If the calculated trend, <math>a</math>, is larger than the value, <math>V</math>, then the trend is deemed significantly different from zero at significance level <math>S</math>.
 
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 time trend variable is interpreted as a measure of the impact of a number of unknown or known but unmeasurable factors on the dependent variable over one unit of time. Strictly speaking, that interpretation is applicable for the estimation time frame only. Outside that time frame, one does not know how those unmeasurable factors behave both qualitatively and quantitatively. Furthermore, the linearity of the time trend poses many questions:
 
(i) Why should it be linear?
 
(ii) If the trend is non-linear then under what conditions does its inclusion influence the magnitude as well as the statistical significance of the estimates of other parameters in the model?
 
(iii) The inclusion of a linear time trend in a model precludes by assumption the presence of fluctuations in the tendencies of the dependent variable over time; is this necessarily valid in a particular context?
 
(iv) And, does a spurious relationship exist in the model because an underlying causative variable is itself time-trending?
 
Research results of 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 regression model are given in Cameron (2005);<ref>{{cite news|url=http://highered.mcgraw-hill.com/sites/dl/free/0077104285/160071/Chapter_7.pdf|title=Making Regression More Useful II: Dummies and Trends|accessdate=June 17, 2012}}</ref> 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<ref>{{cite news|url=http://www.kva.se/Documents/Priser/Nobel/2003/sciback_ek_en_03.pdf|title=The Royal Swedish Academy of Sciences|date=8 October 2003|accessdate=June 17, 2012}}</ref> by the Royal Swedish Academy of Sciences (2003); and Ho-Trieu & Tucker (1990) have written on logarithmic time trends<ref name=Age>{{cite news|url=http://ageconsearch.umn.edu/bitstream/12288/1/58010089.pdf|title=Note on the use of a Logarithm Time Trend|accessdate=June 17, 2012}}</ref> with results indicating  linear time trends are special cases of [[cycles]]<ref name=Age/>
 
== Noisy time series, and an example ==
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]]&nbsp;''E'', and we have a sample series of length 50, then if ''E''&nbsp;=&nbsp;0.1 the trend will be obvious; if ''E''&nbsp;=&nbsp;100 the trend will probably be visible; but if ''E''&nbsp;=&nbsp;10000 the trend will be buried in the noise.
 
If we consider a concrete example, the global surface temperature record of the past 140 years as presented by the [[Intergovernmental Panel on Climate Change|IPCC]]:<ref>{{cite news|url=http://www.grida.no/publications/other/ipcc_tar/?src=/climate/ipcc_tar/wg1/figspm-1.htm|title=IPCC Third Assessment Report - Climate Change 2001 - Complete online versions|accessdate=June 17, 2012}}</ref> then the interannual variation is about 0.2°C and the trend 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 ==
[[Image:Random-data-plus-trend-r2.png|thumb|right|Illustration of the effect of filtering on ''r''<sup>2</sup>. Black=unfiltered data; red=data averaged every 10 points; blue=data averaged every 100 points. All have the same trend, but more filtering leads to higher ''r''<sup>2</sup> of fitted trend line.]]
 
The least-squares fitting process produces a value – [[Coefficient of determination|r-squared]] (''r''<sup>2</sup>) – which is the square of the residuals of the data after the fit. 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); statistical significance of the trend is determined by its [[t-statistic]].  Often, filtering a series increases ''r''<sup>2</sup> while making little difference to the fitted trend.
 
== Real data need more complicated models ==
Thus far the data have been assumed to consist of the trend plus noise, with the noise at each data point being [[independent and identically distributed random variables]] and to have a [[normal distribution]]. Real data (for example climate data) may not fulfill these criteria. This is important, as it makes an enormous difference to the ease with which the statistics can be analysed so as to extract maximum information from the data series. If there are other non-linear effects that have a correlation to the independent variable (such as cyclic influences), the use of least-squares estimation of the trend is not valid. Also where the variations are significantly larger than the resulting straight line trend, the choice of start and end points can significantly change the result. That is, the result is mathematically [[Consistent estimator|inconsistent]]. Statistical inferences (tests for the presence of trend, confidence intervals for the trend, etc.) are invalid unless departures from the standard assumptions are properly accounted for, for example as follows:
 
*Dependence: autocorrelated time series might be modeled using  [[autoregressive moving average model]]s.
 
*Non-constant variance: in the simplest cases [[weighted least squares]] might be used.
 
*Non-normal distribution for errors: in the simplest cases a [[generalised linear model]] might be applicable.
 
*[[Unit root]]: taking first differences of the data
 
== See also ==
*[[Extrapolation]]
*[[Forecasting]]
*[[Prediction interval]]
*[[Regression analysis]]
 
== Notes ==
{{Reflist}}
 
== References ==
*{{cite journal |last=Bianchi |first=M. |last2=Boyle |first2=M. |last3=Hollingsworth |first3=D. |year=1999 |title=A comparison of methods for trend estimation |journal=[[Applied Economics Letters]] |volume=6 |issue=2 |pages=103–109 |doi=10.1080/135048599353726 }}
*{{cite book |last=Cameron |first=S. |year=2005 |title=Econometrics |chapter=Making Regression Analysis More Usefull, II |publisher=McGraw Hill Higher Education |location=Maidenhead |isbn=0077104285 |pages=171–198 }}
*{{cite journal |last=Chatfield |first=C. |year=1993 |title=Calculating Interval Forecasts |journal=Journal of Business and Economic Statistics |volume=11 |issue=2 |pages=121–135 |doi=10.1080/07350015.1993.10509938 }}
*{{cite journal |last=Ho-Trieu |first=N. L. |last2=Tucker |first2=J. |year=1990 |title=Another note on the use of a logarithmic time trend |journal=Review of Marketing and Agricultural Economics |volume=58 |issue=1 |pages=89–90 |doi= }}
*{{cite paper |author=Kungl. Vetenskapsakademien (The Royal Swedish Academy of Sciences) |year=2003 |title=Time-series econometrics: Cointegration and autoregressive conditional heteroskedasticity |work=Advanced information on the Bank of Sweden Prize in Economic Sciences in Memory of Alfred Nobel }}
 
{{Statistics|analysis}}
 
{{DEFAULTSORT:Trend Estimation}}
[[Category:Estimation theory]]
[[Category:Time series analysis]]
[[Category:Statistical forecasting]]
[[Category:Change detection]]

Latest revision as of 17:32, 7 June 2014

Adrianne is what you is going to call me but I don't like when individuals use my full user name. What I genuinely like doing is fish preventing and I'll be opening up something else along can. Filing is my day job but but soon I'll getting on my own. Vermont also has always been my livelihood place and I eat everything that I would like here. Go to the best website to find apart more: http://prometeu.net

Also visit my web blog ... Clash of clans cheats no survey