O'Reilly logo

Practical Time Series Analysis by Dr. PKS Prakash, Dr. Avishek Pal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time series decomposition using statsmodels.tsa

So far, we have discussed how MA can be used for estimating the trend-cycle and seasonal components of a time series. The method of MA works under the simple assumption that seasonal changes are constant over consecutive years, weeks, or a period suitable for the given use case. However, constant seasonality might be valid for several applications that require advanced method such as Seasonality and Trend decomposition using Locally Weighted Smoothing of Scatter plot also commonly referred as the STL method.

In this section, we will tackle time series with complex patterns using the Python statsmodels.tsa package. Our objective would be to estimate the trend-cycle and seasonal components. Besides, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required