Intro To Time Series Analysis Part 2 :Exercises

June 19, 2018
By

(This article was first published on R-exercises, and kindly contributed to R-bloggers)


In the exercises below, we will explore more in Time Series analysis.The previous exercise is here,Please follow this in sequence
Answers to these exercises are available here.

Exercise 1

load the AirPassangers data,check its class and see the start and end of the series .

Exercise 2
check the cycle of the TimeSeries AirPassangers .

Exercise 3

create the lagplot using the gglagplot from the forecast package,check how the relationship changes as the lag increases

Exercise 4

Also plot the correlation for each of the lags , you can see when the lag is above 6 the correlation drops and again climbs up in 12 and again drops in 18 .
Exercise 5

Plot the histogram of the AirPassengers using gghistogram from forecast

Exercise 6

Use tsdisplay to plot autocorrelation , timeseries and partial autocorrelation together in a same plot

Exercise 7

Find the outliers in the timeseries .

To leave a comment for the author, please follow the link and comment on their blog: R-exercises.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)