avatarHair Parra

Summary

The web content provides an advanced guide to Time Series Analysis using R, aimed at readers with a mathematical background, covering theoretical concepts, practical examples, and resources for further learning.

Abstract

The website outlines a comprehensive series on Time Series Analysis, emphasizing the application of R for both theoretical understanding and practical implementation. The guide, intended for an audience with a solid foundation in mathematics, including calculus, linear algebra, and statistics, delves into various topics such as stationary processes, forecasting models, and ARIMA methodologies. It offers a structured approach to learning, supplemented with full R code examples, insights, and a collection of review articles to ensure readers are well-prepared for the material. The author, Hair Parra, also provides links to additional resources and invites feedback and interaction through comments and LinkedIn connections.

Opinions

  • The author believes that Time Series Analysis is crucial in modern applications, citing examples like weather forecasting and stock market prediction.
  • The tutorials are designed for individuals with some mathematical maturity and are meant to be of a rather advanced level.
  • The author expresses confidence that readers will gain an in-depth understanding of Time Series Analysis through these tutorials.
  • The inclusion of full R code examples indicates the author's commitment to practical, hands-on learning alongside theoretical explanations.
  • By encouraging readers to engage with the content and provide feedback, the author values community input and continuous improvement of the educational material.
  • The author emphasizes the importance of prerequisite knowledge, suggesting that some readers may need to review the provided appendices and additional sources to fully grasp the content.

A Complete Introduction To Time Series Analysis (with R)

Multiple trend estimations for the Lake-Huron (1875–1972) data.

During these times of the Covid19 pandemic, you have perhaps heard about the collaborative efforts to predict new Covid19 Cases using Time Series analysis (if you haven’t yet, go check out this excellent article: https://towardsdatascience.com/forecasting-covid-19-cases-in-india-c1c410cfc730). Indeed, many of us are aware of the importance of Time Series Analysis in modern life: weather forecasting, stock market prediction, and financial applications, multiple fields of scientific studies, etc. As such, I decided to take the task of sharing my humble knowledge of the more subtle aspects of time series analysis, which I intend to cover in this series, by covering a balanced integration of both theory and practical examples with R.

Prerequisites

In these tutorials, although I will make an effort to explain things as clearly as possible, it is important to clarify that I intend these tutorials to be of a somehow rather advanced level, and so some mathematical maturity is expected. Therefore I will be assuming some knowledge of calculus, linear algebra, probability, and statistics. In particular, it will be helpful if you are comfortable with:

  1. High-school algebra manipulations
  2. Partial derivatives and infinite series (especially geometric series)
  3. Basic probability concepts such as expectation, variance, covariance, and correlation
  4. Probability concepts of pdfs, CDFs, and distributions (in particular the univariate and multivariate normal distribution, for much later in the series)
  5. Hypothesis testing (for normal and chi-square variables, p-values, confidence intervals)
  6. Good knowledge of linear algebra (manipulations of matrices, vectors, inner/dot products, inverting matrices, solving systems of linear equations)
  7. Some very basic knowledge of complex numbers (definition, modulo, unit circle)
  8. Some knowledge of analysis and algebra II is helpful but not required
  9. Some knowledge of R

For some of these, I will often make quick remainders, and I only show certain proofs that are the most relevant.

Appendices (Review Articles)

The following is a collection of review cheat-sheets with all the background you need to know to understand the content in this article series. Check it out whenever you feel stuck! (or want to review for fun) :)

Other sources

  1. Linear Algebra: http://cs229.stanford.edu/section/cs229-linalg.pdf
  2. Probability: http://cs229.stanford.edu/section/cs229-prob.pdf
  3. Calculus: https://www.whitman.edu/mathematics/multivariable/multivariable.pdf
  4. Statistics: https://home.ubalt.edu/ntsbarsh/Business-stat/StatSummaySheet.pdf
  5. Basic R: https://cran.r-project.org/doc/contrib/Paradis-rdebuts_en.pdf

What’s the plan?

Next, you will find a list of the topics I intend to cover (to be updated). As I write down the articles for the different topics, I will update the respective links in the list below (click on the words to go to the respective page). Each lesson will contain a mix between theory, graphs, and R examples with full code, when pertinent, as well as insights and more!

  1. Introduction - Semi-parametric models - Models with structure - General strategy for analysis
  2. Stationary processes, AR(1) and MA(1) - Stationary processes - IID Noise - White Noise Process - Random Walks - First-order Autoregressive Process AR(1) - First-order Moving Average MA(1)
  3. Classical Decomposition Model - Estimating trends - Estimating seasonality - Classical Decomposition Analysis
  4. Differencing and Tests for Stationarity - Differencing - Properties of the autocovariance function - Estimating Autocorrelation - Tests for Stationarity
  5. Prediction I : Best Predictors - Best predictor of lag n+h - Best linear predictor of lag n+h
  6. Linear Processes - q-correlation - Linear Processes - Introduction to Time Series operators
  7. Estimation of mu and the ACF function - Estimation of mu - Estimation of the ACF function
  8. Prediction II: Forecasting - Best Linear Predictor (Part I) - Best Linear Predictor (Part II) - Durbin-Levinson Algorithm and the PACF - Innovations Algorithm
  9. Auto-regressive Moving Average ARMA(p,q) - Causality, Invertibility, and Stationarity of ARMA(1,1) processes - Causality, Invertibility, and Stationarity of ARMA(p,q) processes - The ACF and PACF functions
  10. Prediction III: Forecasting with ARMA(p,q) models - Innovations Algorithm for ARMA(p,q)
  11. Estimation of ARMA(p,q) coefficients - Yale-Walker equations for AR(p) - Burg’s algorithm for AR(p) - Innovations algorithm for MA(q) - Hannan-Rissanen algorithm for ARMA(p,q) - Moment estimators - Gaussian Time Series
  12. Model Selection of ARMA(p,q) models - AIC, AICc, and BIC metrics
  13. Advanced Topics - ARIMA models - SARIMA models - Exogenous models
  14. Projects - Why is it so hard to predict the stock market

Last words

I have created these tutorials in the hope that you will be able to understand in-depth what Time-Series analysis is about. Have fun learning!

If you like my work or have suggestions, find typos, etc. please don’t hesitate to leave them in the comments!

Follow me at

  1. https://blog.jairparraml.com/
  2. https://www.linkedin.com/in/hair-parra-526ba19b/
  3. https://github.com/JairParra
  4. https://medium.com/@hair.parra

Connect with me on LinkedIn

Copyright

http://creativecommons.org/licenses/by-nc-nd/4.0

All original content, including the presentation of mathematical formulas and examples provided, is the exclusive property of Hair Albeiro Parra Barrera, copyright protected. Please contact me via LinkedIn for business purposes.

Time Series Analysis
Machine Learning
R
Statistics
Forecasting
Recommended from ReadMedium