From the course: Data Science Foundations: Data Mining in Python

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Decomposition

Challenge: Decomposition - Python Tutorial

From the course: Data Science Foundations: Data Mining in Python

Start my 1-month free trial

Challenge: Decomposition

(bright music) - [Instructor] I want to give you a challenge where you can actually take some time series data and analyze it using some of the methods we've looked at, specifically, I'm going to give you a time series and ask you to decompose it into general trend and to seasonality and to see what kind of insights you can get from that. To do this, we're going to use a new dataset called EUstockmarket.csv. It's saved in our local data folder. I want you to import and prepare that, plot the data, and then do both an additive decomposition and a multiplicative decomposition of the data. Now let's import a few libraries so I can show you the data and set this up for you. This dataset is financial data, which often grows at a exponential rate. It comes from the R package EU stock markets. It's saved as a CSV file, and it gives the daily closing price for four major European stock indices, German's DAX, Switzerland's…

Contents