Lably
Skip to content

Linear trend estimation

Statistical technique to aid interpretation of data

  • 8 min read
  • 5 chapters

Related on Lably

Through Statistics, Data and Information

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 a^ and b^ are chosen to minimize the sum of squared errors

∑t[yt−(a^t+b^)]2.

This formula first calculates the difference between the observed data yt and the estimate (a^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 a^ and b^ derived from the data parameterize the simple linear estimator y^=a^x+b^. The term "trend" refers to the slope a^ in the least squares estimator.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Statistics