I'm trying to analyse the Source Code of STL Decomposition using Loess and identify the math behind splitting the observed data into Seasonality, Trend and Residual. Please find below the link to the source code of the STL: https://github.com/statsmodels/statsmodels/blob/master/statsmodels/tsa/seasonal.py
I'm able to decode the values of Seasonality. But to find how the value for Trend is calculated, I'm redirected to a Convolution Filter function which inturn makes further more calls to compute the values for Trend. I need 2 information out of this : 1. How are the filter values (an array) generated ? (the logic behind it) 2. How are the trend values calculated using Convolution filters?