Lecture 1
Lecture 1
Lecture 1
Statistical Relationships
between assets:
Co-integrated Pairs Trading,
Volatility Trading
Mean-Revesion
Factor Models,
Market Anomalies Statistical Arbitrage
Size Effect (Banz, 1981)
Value Effect (Ball, 1978)
January Effect( Roll, 1983)
Momentum and other
Technical Effects
Behavioral Finance
There are three general types of analysis used in finance and trading
1. Fundamental Analysis
2. Technical Analysis
3. Quantitative Analysis
1. 3
Copyright Protected (Do Not Copy)
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture
Quantitative Trading
Trading based on Statistical Arbitrage
Strategies are mostly designed based on:
1. Measuring a signal (observable or unobservable) with some properties (
mainly Mean-Reversion )
2. Portfolio effects and Central Limit Theorem.
The Key is to gather many marginally profitable strategies with
low correlations among them
1. 4
Copyright Protected (Do Not Copy)
Reminder: Central Limit Theorem (CLT)
Let R
1
, R
2
, R
3
, , R
n
be a sequence of n independent and identically distributed (iid) random variables, representing returns on each
asset i (i=1,2,3,,n), each having finite values of expectation (which we like it to be greater than zero) and variance
2
> 0.
The return of a portfolio of these assets is R
P
=R
1
+ R
2
+ + R
n
.
The central limit theorem states that as the sample size n increases the distribution of the sample average of these random
variables approaches the normal distribution with a mean and variance
2
/n irrespective of the shape of the common distribution
of the individual terms R
i
. In other words, the distribution of the portfolio return is N( n , ) n
3
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture
Quantitative Trading
Trade
$1 Profit
$1 Loss
1 Trade
2 Trades
1000 Trades
-1 0 1 P&L
IR = 0.02
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2 P&L
IR = 0.028
-150 -100 -50 0 50 100 150 P&L
IR = 0.632
Trade
$1 Profit
$1 Loss
Trade
$1 Profit
$1 Loss
Trade
$1 Profit
$1 Loss
Trade
$1 Profit
$1 Loss
Trade
$1 Profit
$1 Loss
Trade
$1 Profit
$1 Loss
1. 5
Copyright Protected (Do Not Copy)
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture
Quantitative Trading
Effect of Predictive Signals
Number of Trades
0 500 1000 1500 2000 2500 3000
0
0.2
0.4
0.6
0.8
1
1.2
1.4
Information Ratio
Trade
$1 Profit
$1 Loss
Trade
$1 Profit
$1 Loss
Stronger Signals (skills)
0 500 1000 1500 2000 2500 3000
0
1
2
3
4
5
6
Number of Trades
Information Ratio
1. 6
Copyright Protected (Do Not Copy)
Theoretical
Simulation
4
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture
Quantitative Trading
Trade
$1 Profit
$1 Loss
Stronger Signals (skills)
Fundamental Elements in Quant Trading:
Number of Trades
Predictive power (Strength) of Signals
Correlation between Signals and hence trades.
Higher Frequency Trading
0 500 1000 1500 2000 2500 3000
0
1
2
3
4
5
6
Number of Trades
Information Ratio
0 500 1000 1500 2000 2500 3000
0
1
2
3
4
5
6
Number of Trades
Information Ratio
10% Correlation
1. 7
Copyright Protected (Do Not Copy)
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture Quantitative Trading: Frequency Spectrum
Ultra High
Frequency
Tick Data
Order Book Dynamics
Microstructure Theory
High-Frequency
Seconds - intraday
Statistical Inference
Time Series Analysis
Mid-Frequency
Day - week
Combination of
Statistical and
Some Fundamental Factors
T-S & X-sectional Analysis
Statistics
Low-Frequency
Week, Month
and longer
Price Anomalies/
Asset Pricing Theory/
Maco Forces
Xsection Variations/
EquilibriumMethods
Frequency
C
a
p
a
c
i
t
y
Market Making Market Taking
Copyright Protected (Do Not Copy)
1. 8
5
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture Typical Behavior of Financial Assets
The unpredictability inherent in asset prices is the main feature of financial modeling.
Because there is so much randomness, most mathematical models of a financial asset
acknowledge the randomness and have a probabilistic foundation.
Financial assets show Dynamic behavior.
Time in minutes (12/03/2007)
10 randomly chosen stocks in Dow Jones Index
Dow Jones Index
Time in days from1/1/1975 to 07/30/2005
31-Dec-1974 11-Mar-1985 21-May-1995 30-Jul-2005
0
2000
4000
6000
8000
10000
12000
1. 9
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 10 Introduction to Financial Modeling
Return in financial assets
By return we mean the percentage growth in the value of an asset,
together with accumulated dividends, over some period:
Change in value of the asset + accumulated cashflows
Original value of the asset
Return =
Denoting the asset value on the i-th day by Si, the return from day i
to day i+1 is given by
i
i i
i
S
S S
R
=
+1
6
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 11 Introduction to Financial Modeling
Assume that the empirical returns are close enough to Normal for this to be a
good approximation.
For start, we write the returns as a random variable drawn from a Normal
distribution with a known, constant, non-zero mean and a known, constant, non-
zero standard deviation:
i
i i
i
S
S S
R
=
+1
= mean + standard deviation x f
2
2
1
2
1
) 1 , 0 (
|
t
= e N
Time in days from 2/1/1975 to 07/29/2005
D
iffe
r
e
n
c
e
o
f
th
e
L
o
g
T
r
a
n
s
fo
r
m
o
f
D
o
w
J
o
n
e
s
In
d
e
x
02-Jan-1975 12-Mar-1985 21-May-1995 29-Jul-2005
-0.25
-0.2
-0.15
-0.1
-0.05
0
0.05
0.1
0.15
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 12 Introduction to Financial Modeling
i
i i
i
S
S S
R
=
+1
= mean + standard deviation x f
| oo o + =
=
+ 2 / 1 1
t t
S
S S
R
i
i i
i
Time scale dt
t o
Mean return over
period dt is
2 / 1
t oo
Standard deviation over
period dt is
dX (Wiener Process)
And in the limit dt 0
t
t
t
dX dt
S
dS
R o + = =
7
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 13
0
20
40
60
80
100
1
2
3
4
5
0.9
1
1.1
1.2
1.3
x 10
4
Basic Review
STOCHASTIC PROCESS:
A stochastic process is a collection of random variables defined on a
probability space . ( ) P F , , O
{ } t e e t X
t
), (
State 2
State 1
State 3
State 4
State 5
O
e
e For a fixed , a realization of stochastic process is a function of time (t).
) , ( e t X
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 14 Simulation of a Stochastic Process
0
20
40
60
80
100
0
50
100
150
200
0.6
0.8
1
1.2
1.4
1.6
x 10
4
8
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 15 Definition
Time Series:
A time series, , is a stochastic process where t is a set of
discrete points in time . In other words, it is a discrete time,
continuous state process.
In this course we consider t = { all integers}
X1 X2 X3
Xk
k
0 5 10 15 20 25 30 35 40
-4
-3
-2
-1
0
1
2
3
{ } t e t t X ), (
{ } , 3 , 2 , 1 = t
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 16
We want to forecast distributions
Goals of Studying Time Series
1- Forecasting
0
2000
4000
6000
8000
10000
12000
Time in days from 1/1/1975 to 07/30/2005
D
o
w
J
o
n
e
s
I
n
d
e
x
2- Understanding the statistical characteristics and building
trading strategies based on them
31-Dec-1974 11-Mar-1985 21-May-1995 30-Jul-2005
9
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture Modeling a Dynamic system
State Space Model
Mathematical Model
) ( ) (
1 ) (
t u t y
R dt
y dy
A + =
) (
1
) (
1
) ( t u
A
t y
RA
t y + =
-
System
u y
Area (A)
u
Resistance (R)
y
Output
Input
Parameters
From Physical Laws,
) (
1
) (
1
) ( ) 1 ( t u
A
t y
RA
t y t y + = +
) (
1
) ( ) 1
1
( ) 1 (
1 1
t u
A
t y
RA
t y
|
+ + = +
) ( ) ( ) 1 (
1 1
t u t y t y | + = + ) (t w +
Dynamic System
) (t w
Stochastic
Information
(Signal)
Noise
1. 17
Copyright Protected (Do Not Copy)
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture Modeling a Dynamic system
u
y
Output
Input
) ( ) ( ) 1 (
1 1
t u t y t y | + = +
0 50 100 150 200 250 300
-10
-5
0
5
10
0 50 100 150 200 250 300
-10
0
10
20
30
In reality, physical modeling could be difficult or impossible, and we have to work with the observed
data
System
w
y
Output
0 50 100 150 200 250 300
-10
0
10
20
30
In financial systems, we cant measure inputs either
Financial
System
w
1. 18
Copyright Protected (Do Not Copy)
10
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 19 Basic Review
An Example of a Time Series:
0 1 0 0 0 2 0 0 0 3 0 0 0 4 0 0 0 5 0 0 0 6 0 0 0 7 0 0 0
- 1 0
- 8
- 6
- 4
- 2
0
2
4
6
8
1 0
Xk
k
-10 -8 -6 -4 -2 0 2 4 6 8 10
-10
-8
-6
-4
-2
0
2
4
6
8
10
Xk
Xk-1
-10 -8 -6 -4 -2 0 2 4 6 8 10
-10
-8
-6
-4
-2
0
2
4
6
8
10
Xk
Xk-2
-10 -8 -6 -4 -2 0 2 4 6 8 10
-10
-8
-6
-4
-2
0
2
4
6
8
10
Xk
Xk-3
-10 -8 -6 -4 -2 0 2 4 6 8 10
-10
-8
-6
-4
-2
0
2
4
6
8
10
Xk
Xk-10
Xk= j1 Xk-1+ j2 Xk-2++ek
Auto-Regression as a Dynamic System?
We will get back to this
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 20 Definition
Autocovariance Function:
Let {Xt} be a time series. The autocovariance function of process {Xt} for all
integers r and s is:
) , cov( ) , (
s r X
X X s r =
))] ( ))( ( [( ) , (
s s r r X
X E X X E X E s r =
)] ( ) ( ) ( ) ( [ ) , (
s r r s s r s r X
X E X E X E X X E X X X E s r + =
) ( ) ( ) ( ) ( ) ( ) ( ) ( ) , (
s r r s s r s r X
X E X E X E X E X E X E X X E s r + =
) ( ) ( ) ( ) , (
s r s r X
X E X E X X E s r =
0 ) var( ) ( ) ( ) , (
2 2
> = =
r r r X
X X E X E r r Note that
= 0
11
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 21 Autocovariance Function
0 2 4 6 8 10 12 14 16 18 20
Lag
Sample Autocovariance Function
) 0 (
X
) 2 (
X
) 1 (
X
=
=
otherwise
s r
s r
X
0
) , (
2
o
=
=
otherwise
s r
s r
X
0
) , (
2
o
=
=
t
j
j t
X S
1
(Integrated Process)
-10 -5 0 5 10
-10
-5
0
5
10
Sk
Sk-1
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 30 Building Blocks of Financial Models
Random Walk Process (Is it Stationary?)
2
o
IID(0, )
=
=
t
j
j t
X S
1
{Xt}
16
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 31 Building Blocks of Financial Models
Moving Average Process
Let {Xt} be WN(0, ), and consider the process
Where q could be any constant. This time series model is called a first-
order moving average process, denoted MA(1).
The term Moving Average comes from the fact that Yt is constructed
from a weighted sum of the two most recent values of Xt.
1
+ =
t t t
X X Y u
2
o
Yk
-4 -2 0 2 4
-4
-2
0
2
4
Yk-1
0 1000 2000 3000 4000 5000 6000
q =0.5
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 32 Building Blocks of Financial Models
Moving Average Process (Is it Stationary?)
{Xt} is WN(0, )
1
+ =
t t t
X X Y u
2
o
17
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 33 Building Blocks of Financial Models
Autoregressive Process
Let {Zt } be WN(0, ), and consider the process
Where |f |<1 and Zt is uncorrelated with Xs for each s<t. This time series
model is called a first-order Autoregressive process, denoted AR(1).
2
o
t t t
Z X X + =
1
|
It is easy to show that E(Xt)=0
0 100 200 300 400 500 600 700
-5
0
5
f=0.7
-10 -5 0 5 10
-10
-5
0
5
10
Xk
Xk-1
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 34 Building Blocks of Financial Models
Autoregressive Process (Is it Stationary?)
{Zt } is WN(0, ), and
Where |f |<1 and Zt is uncorrelated with Xs for each s<t.
2
o
t t t
Z X X + =
1
|
We will see this later
18
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 35 Building Blocks of Financial Models
t t t
Z X X + =
1
|
0 50 100 150 200 250 300
-10
0
10
20
30
-10 0 10 20 30
-10
0
10
20
30
f = 1
Random Walk
0 50 100 150 200 250 300
-10
-5
0
5
10
-10 -5 0 5 10
-10
-5
0
5
10
f = 0.9
AR(1)
0 50 100 150 200 250 300
-4
-2
0
2
4
-4 -2 0 2 4
-4
-2
0
2
4
f = 0.1
AR(1)
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 36 Transforming a Non-Stationary Process to a Stationary Process
Classical Decomposition
t t t t
Y S m X + + =
Original
Time series
(Nonstationary)
Trend
Seasonal
component
Stationary
Time series
(zero-mean)
=
=
d
j
j
S
1
0
Seasonal component St satisfies
St+d=St where d= period of seasonality
Also for mathematical convenience assume
Most observed time series are non-stationary but they can be
transformed to stationary processes.
19
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 37 Transforming a Non-Stationary Process to a Stationary Process
Classical Decomposition
t t t t
Y S m X + + =
t t
t t
S m X X
^ ^
*
+ =
Idea of transformation is to estimate mt and St by mt and St, then work
with the stationary process:
Assume there is no seasonal component (St=0)
t t t
Y m X + =
2
2 1 0
^
t a t a a mt + + =
Consider a parametric form for mt e.g.
2
1
^
) (
=
n
t
t
t
m X
Using observed data X1, X2, Xn, choose a0, a1, a2 to minimize
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 38 Transforming a Non-Stationary Process to a Stationary Process
0 1000 2000 3000 4000 5000 6000 7000 8000 9000
0
2000
4000
6000
8000
10000
12000
Time in days from 1/1/1975 to 07/30/2005
D
o
w
J
o
n
e
s
I
n
d
e
x
20
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 39 Transforming a Non-Stationary Process to a Stationary Process
0 1000 2000 3000 4000 5000 6000 7000 8000 9000
5
5.5
6
6.5
7
7.5
8
8.5
9
9.5
10
Time in days from 1/1/1975 to 07/30/2005
L
o
g
T
r
a
n
s
f
o
r
m
o
f
D
o
w
J
o
n
e
s
I
n
d
e
x
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 40 Transforming a Non-Stationary Process to a Stationary Process
0 1000 2000 3000 4000 5000 6000 7000 8000 9000
5
5.5
6
6.5
7
7.5
8
8.5
9
9.5
10
Time in days from 1/1/1975 to 07/30/2005
L
o
g
T
r
a
n
s
f
o
r
m
o
f
D
o
w
J
o
n
e
s
I
n
d
e
x
t m
t
0004 . 0 1513 . 6 + =
21
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 41 Transforming a Non-Stationary Process to a Stationary Process
0 1000 2000 3000 4000 5000 6000 7000 8000 9000
-0.3
-0.25
-0.2
-0.15
-0.1
-0.05
0
0.05
0.1
Time in days from 1/1/1975 to 07/30/2005
D
i
f
f
e
r
e
n
c
e
o
f
t
h
e
L
o
g
T
r
a
n
s
f
o
r
m
o
f
D
o
w
J
o
n
e
s
I
n
d
e
x
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 42
Forecast
Transforming a Non-Stationary Process to a Stationary Process
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
-0.3
-0.25
-0.2
-0.15
-0.1
-0.05
0
0.05
0.1
0.15
Time in days from 1/1/1975 to 07/30/2005
F
o
r
e
c
a
s
t
o
f
t
h
e
m
o
d
e
l
22
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 43
Forecast
Transforming a Non-Stationary Process to a Stationary Process
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
6
6.5
7
7.5
8
8.5
9
9.5
10
Time in days from 1/1/1975 to 07/30/2005
C
o
n
v
e
r
t
b
a
c
k
t
h
e
d
i
f
f
e
r
e
n
c
e
i
n
t
h
e
F
o
r
e
c
a
s
t
o
f
t
h
e
m
o
d
e
l
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 44
Forecast
Transforming a Non-Stationary Process to a Stationary Process
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
0
5000
10000
15000
Time in days from 1/1/1975 to 07/30/2005
c
o
n
v
e
r
t
b
a
c
k
t
h
e
L
o
g
o
f
t
h
e
F
o
r
e
c
a
s
t
o
f
t
h
e
m
o
d
e
l
23
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 45 Transforming a Non-Stationary Process to a Stationary Process
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
0
0.2
0.4
0.6
0.8
1
1.2
1.4
1.6
1.8
2
x 10
4
Time in days from 1/1/1975 to 07/30/2005
M
o
n
t
e
C
a
r
l
o
S
i
m
u
l
a
t
i
o
n
o
f
t
h
e
F
o
r
e
c
a
s
t
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 46 Transforming a Non-Stationary Process to a Stationary Process
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
0
0.2
0.4
0.6
0.8
1
1.2
1.4
1.6
1.8
2
x 10
4
Time in days from 1/1/1975 to 07/30/2005
M
o
n
t
e
C
a
r
l
o
S
i
m
u
l
a
t
i
o
n
o
f
t
h
e
F
o
r
e
c
a
s
t
24
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 47 Transforming a Non-Stationary Process to a Stationary Process
0 10 20 30 40 50 60 70 80 90 100
0.8
0.9
1
1.1
1.2
1.3
x 10
4
0.7 0.8 0.9 1 1.1 1.2 1.3 1.4 1.5 1.6
x 10
4
0
20
40
60
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 48 Transforming a Non-Stationary Process to a Stationary Process
Trend Elimination by Differencing
Definition: Differencing Operator
V
1
= V
t t t
X X X
1
=
t t
X BX
Definition: Backshift Operator B
Therefore
t t t t
X B X X X ) 1 (
1
= = V
Also
t t t
X B B X B X ) 2 1 ( ) 1 (
2 2 2
+ = = V
2 1
2
2
+ = V
t t t t
X X X X
25
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 49 Transforming a Non-Stationary Process to a Stationary Process
Definition: Integrated Process of order n. Time series yt I(n) is
integrated of order n if it is non-stationary, but it becomes stationary after
differencing a minimum of n times.
Example: A stationary process is I(0)
Example: Random Walk is I(1)
t t
Y t X + + =
1 0
| |
Note: Difference removes linear trends as well.
Suppose
1 1 0 1 0
) 1 (
+ + = V
t t t
Y t Y t X | | | |
1 1
+ =
t t
Y Y |
Stationary Process
with mean zero
Constant
Note: Difference twice removes quadratic trends.
Warning: Dont difference too much. Error will be magnified in forecasting
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 50 Transforming a Non-Stationary Process to a Stationary Process
Differencing when the seasonal component is present
Definition: Lagged Differencing Operator
d
V
d t t t d
X X X
= V
t
d
X B ) 1 ( =
Note:
t
d
t d
X X V = V
t
d
X B ) 1 (
t
d
X B ) 1 (
26
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 51 Transforming a Non-Stationary Process to a Stationary Process
Suppose
d t d t t t t d
Y S d t Y S t X
+ + + = V ) (
1 0 1 0
| | | |
t t t t
Y S m X + + =
d t t
S S
+
=
t m
t 1 0
| | + =
Usually d is known
Stationary Process
with mean zero
Constant
) (
1 d t t t d
Y Y d X
+ = V |
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 52
Important for
financial models
Transforming a Non-Stationary Process to a Stationary Process
Other transformations are used to transform a non-stationary process to a
stationary process. Sometimes trends are multiplicative or exponential
instead of additive and random variations are non-Gaussian.
Box and Cox (1964) proposed a general class of transformations:
Box-Cox / Log Transformation
=
>
=
0 ) log(
0
) 1 (
) (
x
x
x f
27
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 1. 53 Transforming a Non-Stationary Process to a Stationary Process
0 1000 2000 3000 4000 5000 6000 7000 8000 9000
0
2000
4000
6000
8000
10000
12000
Time in days from 1/1/1975 to 07/30/2005
Dow Jones Index
0 1000 2000 3000 4000 5000 6000 7000 8000 9000
5
5.5
6
6.5
7
7.5
8
8.5
9
9.5
10
Time in days from 1/1/1975 to 07/30/2005
Log Transform of Dow Jones Index
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 2. 54 Properties of Autocovariance Function
Autocovariance Function:
For a stationary time series {Xt}
) , cov( ) (
h t t X
X X h
+
=
Does not depend on t
Properties:
0 ) var( ) 0 ( > =
t X
X
1
h h
X X
s ) 0 ( | ) ( | 2
) ( ) , cov( ) , cov( ) ( h X X X X h
X t h t h t t X
= = =
+ +
3
Symmetric
| ) ( | ) 0 (
)] ( [ ) 0 ( ) 0 (
)] ( [ ) ( ) (
2
2 2 2
h
h
X X E X E X E
X X
X X X
h t t h t t
>
>
>
2
2 2
) ) ( ) ( ( ) ( ) ( Inequality s Schwartz' dx x g x f dx x g dx x f
} } }
>
28
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 2. 55 Autocovariance Function
0 2 4 6 8 10 12 14 16 18 20
Lag
Sample Autocovariance Function
) 0 (
X
) 2 (
X
) 1 (
X
From property : h h
X X
s ) 0 ( | ) ( | 2
1 ) ( s h
X
) 1 ) 0 ( ( =
X
) 2 (
X
) 1 (
X
1
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 2. 58 Sample Autocovariance Function
Autocovariance function can be obtained from the time series models.
In practical problems, we do not start with a model, but with the observed (or
realized) data {X1 , X2 , , Xn }.
Time Series Model
) (h
X
) ( h
X
=
+
=
=
n
i
i
x
n
x
1
1
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 2. 60 Sample Autocovariance Function
0 100 200 300 400 500 600 700
-4
-2
0
2
4
0 2 4 6 8 10 12 14 16 18 20
-0.5
0
0.5
1
Lag
S
a
m
p
le
A
u
t
o
c
o
r
r
e
la
t
io
n
Sample Autocorrelation Function (ACF)
White Noise
0 2 4 6 8 10 12 14 16 18 20
-0.5
0
0.5
1
Lag
S
a
m
p
le
A
u
t
o
c
o
r
r
e
la
t
io
n
Sample Autocorrelation Function (ACF)
0 100 200 300 400 500 600 700
-20
0
20
40
60
Random Walk
31
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 2. 61 Sample Autocovariance Function
0 100 200 300 400 500 600 700
-10
-5
0
5
10
0 2 4 6 8 10 12 14 16 18 20
-0.5
0
0.5
1
Lag
S
a
m
p
le
A
u
t
o
c
o
r
r
e
la
t
io
n
Sample Autocorrelation Function (ACF)
AR(1) f = 0.9
0 100 200 300 400 500 600 700
-4
-2
0
2
4
6
0 2 4 6 8 10 12 14 16 18 20
-0.5
0
0.5
1
Lag
S
a
m
p
le
A
u
t
o
c
o
r
r
e
la
t
io
n
Sample Autocorrelation Function (ACF)
MA(1) q = 0.5
G63.2707 - Financial Econometrics and Statistical Arbitrage
Farshid Magami Asl
Lecture 2. 62 Sample Autocovariance Function
0 2 4 6 8 10 12 14 16 18 20
-1
-0.5
0
0.5
1
Lag
S
a
m
p
le
A
u
t
o
c
o
r
r
e
la
t
io
n
Sample Autocorrelation Function (ACF)
0 100 200 300 400 500 600 700
-10
-5
0
5
10
AR(1) f = -0.9
0 100 200 300 400 500 600 700
-6
-4
-2
0
2
4
0 2 4 6 8 10 12 14 16 18 20
-0.5
0
0.5
1
S
a
m
p
le
A
u
t
o
c
o
r
r
e
la
t
io
n
Sample Autocorrelation Function (ACF)
MA(1) q = -0.5