Path: blob/master/lessons/lesson_16/solution-code/04_decomposition_solutions.ipynb
1904 views
Kernel: Python 2
Time Series: Decomposition
Independent Practice
Instructor Note: These are optional and can be assigned as student practice questions outside of class.
1) Import the Airline Passengers data set, preprocess the data, and plot the raw time series.
In [1]:
In [4]:
Out[4]:
In [5]:
Out[5]:
In [7]:
In [8]:
In [11]:
In [13]:
Out[13]:
In [14]:
Out[14]:
<matplotlib.axes._subplots.AxesSubplot at 0x1a11a9fe48>
2) Decompose the time series and plot using the .seasonal_decompose()
function.
In [16]:
In [18]:
In [20]:
Out[20]:
3) Interpret these plots.
In [21]: