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

Unlock the full course today

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

Solution: Decomposition

Solution: Decomposition

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

Start my 1-month free trial

Solution: Decomposition

(upbeat music) - Invited you to look at some financial data and see what kind of patterns you could find, by decomposing a time series. Let me show you how I did this. Let's start by loading some packages and then getting some information about the EU stock markets data set as part of the ours built in datasets. We'll see the data right there and plot the data. So here's our data plotted out. We're going to focus on this third one, the French CAC. And I want to just save that into DF and then we can explore that dataset by seeing the time series. So here are all the values for just the French CAC. We can get the structure. It's a dataset of almost 2000 observations. Let's get the histogram. Now this ignores the time. So I take DF and ask for a histogram and then putting a main title on and a label on the X axis. And so you can see is that the closing prices were generally pretty close to 2000. Although…

Contents