Having learned how to load, handle, and visualize time series data, we now focus on analyzing its underlying structure and preparing it for modeling. Many standard time series models operate under the assumption that the statistical properties of the series, such as its mean and variance, remain constant over time. This property is known as stationarity.
Often, raw time series data exhibits trends or seasonal patterns, meaning it is non-stationary. This chapter introduces time series decomposition, a technique for separating a series into components like trend, seasonality, and random noise (yt=Tt+St+Rt for an additive model, or yt=Tt×St×Rt for multiplicative). Understanding these components provides insight and helps in model selection.
We will cover:
By the end of this chapter, you will be able to decompose time series and determine if they meet the stationarity assumption required by many forecasting models.
2.1 Understanding Stationarity
2.2 Methods for Time Series Decomposition
2.3 Implementing Decomposition in Python
2.4 Testing for Stationarity: Visual Inspection
2.5 Statistical Tests for Stationarity (ADF Test)
2.6 Achieving Stationarity: Differencing
2.7 Hands-on Practice: Decomposition and Stationarity Tests
© 2025 ApX Machine Learning