To remove an upward or downward trend from a time series. Frequently, this is done by regressing a series against time, then using the trend coefficient to remove the trend from the observations. Detrending data can reveal patterns in the data. Detrending should be done prior to making seasonal adjustments.