Intro To Time Series Analysis Part 2 :Exercises

By Biswarup Ghosh

(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. 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…

Source:: R News

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.