Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge: Apply Decomposition | Section
Deconstructing Temporal Patterns
Avsnitt 1. Kapitel 11
single

single

bookChallenge: Apply Decomposition

Svep för att visa menyn

In this chapter, you will apply your understanding of rolling statistics and time series decomposition to a new dataset. You will use Python's pandas and matplotlib libraries to calculate a rolling mean, visualize seasonality using a heatmap, and decompose the dataset into its trend, seasonal, and residual components. By analyzing the resulting plots and components, you will deepen your ability to interpret the structure of time series data and extract meaningful insights.

Uppgift

Swipe to start coding

Practice applying rolling statistics, heatmap visualization, and decomposition to a time series dataset using pandas, matplotlib, and statsmodels.

  • Compute the centered rolling mean for the column specified by value_col using the provided window_size.
  • Create a seasonal heatmap data structure showing seasonality, with month as the index (rows) and year as the columns.
  • Decompose the specified value column into trend, seasonality, and residuals using the seasonal_decompose function with an additive model.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 11
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

some-alt