The Trend tool in EQuIS Professional and EQuIS LakeWatch does regression calculations to identify trends in seasonal data. On the bottom chart, the observed and residual data are plotted against time and straight-line plots are fitted to the data using ordinary least square regressions. A p-value is then calculated for the line fitted to the data. A low p-value means that there is a low probability that the fit of the line is attributable to chance; in other words, there is a low possibility of observing a trend at least as large as the value calculated when there is no trend in the data. This article explains how each of the values is calculated.
Two separate regressions are calculated and displayed on the chart: the data regression (the actual seasonalized data points), and the residuals regression (the difference between the actual seasonalized data points and the best-fit polynomial curve). The input to both regressions is the set of independent and dependent value pairs (x,y) where the independent value (x) is a numeric representation of the date and the dependent value (y) is the observed value (actual or residual) on that date.
•Sx = ∑ xi = The sum of all x (independent) values in the set.
•Sy = ∑ yi = The sum of all y (dependent) values in the set.
•Sxy = ∑ xiyi = The sum of the products (x*y) of each data point in the set.
•Sxx = ∑ xi2 = The sum of the squares (x*x) of each x (independent) value in the set.
•Syy = ∑ yi2 = The sum of the squares (y*y) of each y (dependent) value in the set.
•n = The number of data points in the set.
•R = ( nSxy − SxSy ) / √((nSxx − SxSx) * (nSyy − SySy)) = The Pearson correlation coefficient indicating goodness-of-fit (compare to Excel's PEARSON function). The square of this value (R-squared) is the coefficient of determination (compare to Excel's LINEST function).
•SEr2 = ( Syy − bSy − mSxy ) / ( n − 2 )
•SEm = SEr / √( Sxx − SxSx/n ) = The standard error of the slope coefficient. Compare to Excel's LINEST function.
•t = m / SEm = The t-statistic representing the ratio of the slope coefficient and its standard error.
•df = n − 2 = The Degrees of freedom used in calculating probability.
Copyright © 2020 EarthSoft, Inc • Modified: 01 Apr 2020