Least squares smoothing of adjacent values

If a time series has trend, smoothing with a simple moving average of adjacent values ignores this trend. We now describe a better way to combine them.

US defence expenditure