I am trying to estimate the trend of a time series. I have used a non-robust loess smoothing with a window size of 30 points. Looking at the raw data, it is clear that there is no increase at the end of the time series (the last values of the time series are all equal to zero). However the trend shows an increase. enter image description here



n = length(y)
x = 1:n
# trend estimation
fit = loess(y~x, span = 30/n, family = "g")$fitted
lines(fit, col="red")

Why is loess producing misleading results?
Do I need to use another smoothing technique?

  • $\begingroup$ Never blame a statistical technique for misapplication. You need to first understand the “properties” of data generating process and then choose an appropriate statistical technique to fit your data. I clearly see two segments in your data segment 1: before 30 and segment 2: after 30. Why are there two segments? May be you need a simple exponential smoothing or segment the data and apply two different models to capture heterogeneity. $\endgroup$ – forecaster Dec 12 '20 at 15:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.