Lect 1
Lect 1
What is a time series? What is a financial time series? What is the purpose of our analysis? Classification of Time Series. Correlation
Autocorrelation Partial Autocorrelation Cross Correlation
Time Series
Random process random variable is a function of time Distribution? Moments
K. Ensor, STAT 421
Spring 2005
-4
0
-2
10
20
30
Spring 2005
U.S. Weekly Interest Rates Red line is 1-y ear; Blue line is 3-y ear
16 percent 4 6 8 10 12 14
01/05/1962
07/18/1969
01/28/1977
08/10/1984
02/21/1992
09/03/1999
Spring 2005
earning 0 5
10
15
Jan 60
Jan 64
Jan 68
Jan 72
Jan 76
Jan 80
Time in quarters
What is different?
The observations are not independent. There is correlation from observation to observation. Consider the log of the J&J series. Is there correlation in the observations over time?
Spring 2005
log earning
0
Jan 60
Jan 64
Jan 68
Jan 72
Jan 76
Jan 80
Time in quarters
If correlation is present between the observations then our typical approaches are not correct (as they assume iid samples).
Spring 2005 K. Ensor, STAT 421
Dimension of X
Univariate Multivariate
Nature of T
Discrete
Equally Unequally spaced
State spce
Discrete Continuous
Memory types
Stationary
No memory Short memory Long memory
Continuous
Observed continuously Observed by some random process
Spring 2005
Nonstationary
Stationarity
Strictly Stationary
All finite dimensional distributions are the same.
Covariance Stationary
First and second moment structure does not change with time.
Spring 2005
Autocorrelation
Spring 2005
10
11
Autocorrelation?
Lagged Scatterplots : x
Series 1
Series 1
Series 1
Series 1
Series 1
0 1 lagged 4 2
1 lagged 1
1 lagged 2
1 lagged 3
1 lagged 5
Series 1
Series 1
Series 1
Series 1
Series 1
0 1 lagged 9 2
1 lagged 6
1 lagged 7
1 lagged 8
1 lagged 10
Spring 2005
12
Sample PACF correlation between observations X(t) and X(t+h) after removing the linear relationship of all observations in that fall between X(t) and X(t+h).
Spring 2005 K. Ensor, STAT 421
13
Summary Plots
Log Quarterly Earnings f or J&J
2 0 1
Jan 60
Jan 64
Jan 72
Jan 76
Jan 80
Histogram
1.0 15
ACF
1.0
PACF
0.5
10
ACF
ACF
0 5 10 Lag 15
0.0
-0.5
-1.0
-1
-1.0
0
-0.5
0.0
0.5
10 Lag
15
Spring 2005
14
Cross Correlation
Spring 2005
15
Multivariate Series
How can we study the relationship between 2 or more time series? U.S. weekly interest rate series measured in percentages
Time: From 1/5/1962 to 9/10/1999. Variables: r1(t) = The 1-year Treasury constant maturity rate r2(t) = The 3-year Treasury constant maturity rate
Spring 2005 K. Ensor, STAT 421
16
U.S. Weekly Interest Rates Red line is 1-year; Blue line is 3-year
16 percent 4
01/05/1962
10
12
14
07/18/1969
01/28/1977
08/10/1984
02/21/1992
09/03/1999
Time in weeks
Spring 2005
17
Scatterplots between series simultaneous in time and the change in each series. The two series are highly correlated.
16
12
yr 3
10
10 y r1
12
14
16
- 1 .0
- 0 .5
0 .0
0 .5
1 .0
14
- 1 .5
- 1 .0
- 0 .5
0 .0 d iff( y r 1 )
0 .5
1 .0
1 .5
Spring 2005
18
500
1000 Time
1500
2000
500
1000
1500
2000
Spring 2005
19
-1.5
-1.0
-0.5
0.0 c1
0.5
1.0
1.5
c1
0.8
c1 and c3
0.0
10
15
20
25
30
0.0
0
0.2
0.4
0.6
10
15
20
25
30
0.8
0.2
0.0
-30
-25
-20
-15 Lag
-10
-5
0.0
0.2
0.4
0.6
0.8
1.0
c3 and c1
c3
10
15 Lag
20
25
30
Spring 2005
20
Spring 2005
21
-0.6
Apr 60
-0.4
-0.2
0.0
Apr 64
Apr 68
Apr 72
Apr 76
Apr 80
Time in quarters
Spring 2005
22
0.0
Apr 64
Apr 68
Apr 72
Apr 76
Apr 80
Time in quarters
Histogram
1.0
ACF
1.0
PACF
30
0.5
20
ACF
ACF
0 5 10 Lag 15
0.0
10
-0.5
-1.0
-0.8
-0.6
-0.4
-0.2
0.0
0.2
0.4
0.6
-1.0
0
-0.5
0.0
0.5
10 Lag
15
Spring 2005
23
24
Apr 61
Jan 65
Jul 72
Apr 76
Jan 80
Histogram
1.0 15
ACF
1.0
PACF
0.5
10
ACF
ACF
0 5 10 Lag 15
0.0
-0.5
-1.0
-0.2
-0.1
0.0
0.1
0.2
0.3
-1.0
0
-0.5
0.0
0.5
5 Lag
10
15
Spring 2005
25
Summary of Transformations:
X(t) = log (Q(t)) Y(t)=X(t)-X(t-1) = (1-B)X(t) U(t)= (1-B4)Y(t) U(t)=(1-B4) (1-B)X(t)
Spring 2005
26
An example of Forecasting
Spring 2005
27
Proceed to estimate q and then we can estimate summary information about the earnings per share as well as predict the future earnings per share.
Spring 2005
28
Earnings
10
15
20
25
10 Quarter Time
15
20
Spring 2005
29
Wrap up
Basics of distribution theory. Classification of time series. Basics of stationarity. Correlation functions
Autocorrelation Partial autocorrelation Cross correlation
30