-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.Rmd
141 lines (107 loc) · 6.72 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
---
title: "Applied Time Series Analysis with R"
author: "Stéphane Guerrier, Roberto Molinari, Haotian Xu and Yuming Zhang"
date: "`r format(Sys.time(), '%B %d %Y')`"
site: bookdown::bookdown_site
output: bookdown::gitbook
documentclass: book
bibliography: [book.bib, packages.bib]
biblio-style: "acm"
link-citations: yes
github-repo: SMAC-Group/ts
description: ""
favicon: "favicon.ico"
---
# (PART) Foundation {-}
# Introduction
Welcome to "Applied Time Series Analysis with `R`". This book is intended as a support for the course of STAT 463 (Applied Time Series Analysis) given at Penn State University. It contains an overview of the basic procedures to adequately approach a time series analysis with insight to more advanced analysis of time series. It firstly introduces the basic concepts and theory to appropriately use the applied tools that are presented in the second (and main) part of the book. In the latter part the reader will learn how to use descriptive analysis to identify the important characteristics of a time series and then employ modelling and inference techniques (made available through `R` funtions) that allow to describe a time series and make predictions. The last part of the book will give introductory notions on more advanced analysis of time series where the reader will achieve a basic understanding of the tools available to analyse more complex characteristics of time series.
<!--
This document is under active development and as a result is likely to contains
many errors. As Montesquieu puts it:
>
> "*La nature semblait avoir sagement pourvu à ce que les sottises des hommes
> fussent passagères, et les livres les immortalisent.*"
>
-->
```{block2, type='rmdimportant'}
This document is **under development** and it is therefore preferable to always access the text online to be sure you are using the most up-to-date version. Due to its current development, you may encounter errors ranging from broken code to typos or poorly explained topics. If you do, please let us know! Simply add an issue to the GitHub repository used for this document (which can be accessed here https://github.com/SMAC-Group/ts/issues) and we will make the changes as soon as possible. In addition, if you know RMarkdown and are familiar with GitHub, make a pull request and fix an issue yourself.
```
<!-- ## Contents -->
<!-- This book is structured as follows: -->
<!-- - Basic Elements of Time Series -->
<!-- - Wold representation deterministic + random -->
<!-- - Examples of deterministic components (trend + seasonality) -->
<!-- - Random components: basic time series models -->
<!-- - Fundamental Representations -->
<!-- - Conditions for fundamental representations (e.g. gaussian) -->
<!-- - AutoCovariance and AutoCorrelation Functions -->
<!-- - Estimators: Empirical ACF -->
<!-- - Spectral Density and WV -->
<!-- - Stationarity of Time Series -->
<!-- - Stationarity vs Non-Stationarity -->
<!-- - Linear operators and processes -->
<!-- - Weak and Strong Stationarity -->
<!-- - SARIMA Models -->
<!-- - AR(p) Models -->
<!-- - MA(q) Models -->
<!-- - ARMA(p,q) Models -->
<!-- - ARIMA(p,d,q) Models -->
<!-- - SARIMA(p,d,q)(P,D,Q) Models -->
<!-- - Descriptive Analysis -->
<!-- - Raw Data -->
<!-- - ACF plots -->
<!-- - Identifying models -->
<!-- - Other representations: SDF and WV -->
<!-- - Inference -->
<!-- - Estimation -->
<!-- - Inference -->
<!-- - Model Selection -->
<!-- - Advanced Topics -->
<!-- - GARCH -->
<!-- - State-Space Models -->
<!-- - Multivariate (VAR) Models -->
## Conventions
Throughout this book, `R` code will be typeset using a `monospace` font which is syntax highlighted. For example:
```{r, eval = FALSE}
a = pi
b = 0.5
sin(a*b)
```
Similarly, `R` output lines (that usally appear in your Console) will begin with `##` and will not be syntax highlighted. The output of the above example is the following:
```{r, echo = FALSE}
a = pi
b = 0.5
sin(a*b)
```
Aside from `R` code and its outputs, this book will also insert some boxes that will draw the reader's attention to important, curious or otherwise informative details. An example of these boxes was seen at the beginning of this introduction where an important aspect was pointed out to the reader regarding the "under construction" nature of this book. Therefore the following boxes and symbols can be used to represent information of different nature:
```{block2, type='rmdimportant'}
This is an important piece of information.
```
```{block2, type='rmdnote'}
This is some additional information that could be useful to the reader.
```
```{block2, type='rmdcaution'}
This is something that the reader should pay caution to but should not create major problems if not considered.
```
```{block2, type='rmdwarning'}
This is a warning which should be heeded by the reader to avoid problems of different nature.
```
```{block2, type='rmdtip'}
This is a tip for the reader when following or developing something based on this book.
```
Using the same convention as in @friedman2001elements, the symbol `r emo::ji("scream")` indicates a technically difficult section which may be skipped without interrupting the flow of the discussion.
## Bibliographic Note
This is not the first (or the last) book that has been written on time series analysis. Indeed, this can be seen as a book that brings together and reorganizes information and material from other sources structuring and tailoring it to a course in basic time series analysis. The main and excellent references (which are far from being an exhaustive review of literature) that can be used to have a more in-depth view of different aspects treated in this book are @cochrane2005time, @hamilton1994time and @shumway2010time.
## Acknowledgements
The text has benefited greatly from the contributions of many people who have provided extremely useful comments, suggestions and corrections. These are:
- [Ziying Wang](https://github.com/zionward)
- [Haoxian Zhong](https://github.com/Lyle-Haoxian)
- [Zhihan Xiong](https://www.linkedin.com/in/zhihan-xiong-988152114)
- [Nathanael Claussen](https://github.com/Nathanael-Claussen)
- [Justin Lee](https:://github.com/munsheet)
The authors are particularly grateful to James Balamuta who introduced them to the use of the different tools provided by the RStudio environment and greatly contributed to an earlier version of this book:
- [James Balamuta](https::/github.com/coatless)
## License
You can redistribute it and/or modify this book under the terms of the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA) 4.0 License.
<a href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img src="images/licence.png" align="left" width="200"/></a>
<br><br><br>