Math7339TS1TimesSeries Intro
Math7339TS1TimesSeries Intro
1. Overview
2. Times Series Models
3. Examples
Overview of Times Series
• Spectral estimation using Fourier analysis and Filtering. Bayesian Approach (Class
Notes. Shumway and Stoffer Ch. 4)
Notation and Terminology :
Time Series are data collected in a sequence. They are usually evenly
spaced and because of the sequential nature are statistically dependent
observations.
For example:
𝑃 𝑋! ≤ 𝑥! , … , 𝑋# ≤ 𝑥# = 𝑃 𝑋! ≤ 𝑥! ⋯ 𝑃(𝑋# ≤ 𝑥# )
𝑃 𝑋# ≤ 𝑥# | 𝑋! , … , 𝑋#&! = 𝑃(𝑋# ≤ 𝑥# )
Example: Gaussian white noise
𝑋# ~ 𝑁𝑜𝑟𝑚𝑎𝑙(0, 𝜎 " )
𝑃 𝑋# = 1 = 𝑝; 𝑃 𝑋# = −1 = 1 − 𝑝
Example 𝑃 𝑋# = 1 = 𝑃 𝑋# = −1 = 1/2
Example: Random Walk
A model for analyzing trend is the random walk model. Your current position is
determined by where you were at the last step plus the random step that you
just took. So, the equation would be
𝑆# = O 𝑋+
+,!
where 𝑋+ is the iid noise.
Mean: 𝐸 𝑆# =
10
8
6
4
values
Variance: 𝐕𝐚𝐫 𝑆# =
2
0
−2
−4
5 10 15 20
Time
S&P500 data
𝑋# = 𝑇# + 𝑆# + 𝐸#
Step 1. Some of the features of time series data we look out for are:
• Trend.
• Periodicity / Seasonality.
• Is the mean changing over time?
• Is the variation changing over time?
• Are there abrupt/step changes?
• Are there outliers?
∇ 𝑋# = 𝑋# − 𝑋#&! = 1 − 𝐵 𝑋#
∇ 𝑋# = 𝛽! + ∇𝑌#
and
∇- 𝑋# = 𝑘! 𝛽- + ∇- 𝑌#
Define the lag-𝑠 difference operator,
∇$ 𝑋# ≔ 𝑋# − 𝑋#&$ = 1 − 𝐵 $ 𝑋#
∇$ 𝑋# = 𝑇# − 𝑇#&$ + ∇$ 𝑌#
Objectives of Time Series Analysis
Trend
Trend plus seasonal variation Residuals
Predictions based on a (simulated) variable
Two Approaches to Time Series
• "Time Series Analysis and Its Applications", 4th ed. 2017, by Shumway and Stoffer.
• "Introduction to Time Series and Forecasting", 3rd ed. 2016, by Brockwell and Davis.