Random Behaviour of Assets
Random Behaviour of Assets
Assets
In this lecture. . .
1
By the end of this lecture you will be able to
2
Introduction
3
The three main types of ‘analysis’ used in finance
1. Fundamental Analysis
2. Technical Analysis
3. Quantitative Analysis
4
1800 SP500
1600
1400
1200
1000
800
600
400
200
0
12-Apr-49 29-Jun-57 15-Sep-65 02-Dec-73 18-Feb-82 07-May-90 24-Jul-98 10-Oct-06
5
Why equities, currencies, commodities and indices
can be modelled in the same way
6
Examining returns
If the asset value on the ith day is denoted by Si, then the return
from day i to day i + 1 is given by
Si+1 − Si
• = Ri.
Si
7
A B C D E F G H I
1 Date SP500 Return
2 03-Jan-50 16.66
3 04-Jan-50 16.85 0.011405 Average return 0.00035 =AVERAGE(C:C)
4 05-Jan-50 16.93 0.004748 Standard deviation 0.008909
5 06-Jan-50 16.98 0.002953
6 09-Jan-50 17.08 0.005889
7 10-Jan-50 17.03 -0.002927
8 11-Jan-50 17.09 0.003523 =STDEV(C:C)
9 12-Jan-50 16.76 -0.01931
10 13-Jan-50 16.67 -0.00537
11 16-Jan-50 16.72 0.002999
12 17-Jan-50 16.86 0.008373
=(B8-B7)/B7
13 18-Jan-50 16.85 -0.000593
14 19-Jan-50 16.87 0.001187
15 20-Jan-50 16.9 0.001778
16 23-Jan-50 16.92 0.001183
17 24-Jan-50 16.86 -0.003546
18 25-Jan-50 16.74 -0.007117
19 26-Jan-50 16.73 -0.000597
20 27-Jan-50 16.82 0.00538
21 30-Jan-50 17.02 0.011891
22 31-Jan-50 17.05 0.001763
23 01-Feb-50 17.05 0
24 02-Feb-50 17.23 0.010557
8
This same data was used in the following plot of the daily returns
for S&P500 versus time. In the following pages we will model
the returns each day as random, and independent from one day
to the next.
0.1
0.05
0
12-Apr-49 29-Jun-57 15-Sep-65 02-Dec-73 18-Feb-82 07-May-90 24-Jul-98 10-Oct-06
-0.05
-0.1
-0.15
-0.2
-0.25
9
The mean of the returns is
M
1
R̄ = Ri = AVERAGE( · )
M i=1
M
1
(Ri − R̄)2 = STDEV( · ),
M − 1 i=1
From the data in this S&P500 example we find that the mean
is 0.00035 and the standard deviation is 0.008909.
10
Now we know some numbers associated with the (random) re-
turn, but what about the shape of the distribution?
11
How to normalize. . .
A B C D E F G H
1 Date SP500 Return Scaled rtns
2 03-Jan-50 16.66
3 04-Jan-50 16.85 0.011405 1.2408 Average return 0.00035
4 05-Jan-50 16.93 0.004748 0.493593 Standard deviation 0.008909
5 06-Jan-50 16.98 0.002953 0.292172
6 09-Jan-50 17.08 0.005889 0.621724
7 10-Jan-50 17.03 -0.002927 -0.367924
8 11-Jan-50 17.09 0.003523 0.356137
9 12-Jan-50 16.76 -0.01931 -2.206775
10 13-Jan-50 16.67 -0.00537 -0.642092 =(C9-$G$3)/$G$4
11 16-Jan-50 16.72 0.002999 0.297343
12 17-Jan-50 16.86 0.008373 0.900538
13 18-Jan-50 16.85 -0.000593 -0.105908
14 19-Jan-50 16.87 0.001187 0.0939
15 20-Jan-50 16.9 0.001778 0.160278
16 23-Jan-50 16.92 0.001183 0.093505
17 24-Jan-50 16.86 -0.003546 -0.437372
12
0.6
SP500
Normal
0.5
0.3
0.2
0.1
0
-4 -3 -2 -1 0 1 2 3 4
13
Assuming that the empirical returns can be modelled by a Normal
distribution then we have our first model!
With
Si+1 − Si
• Ri = = 0.00035 + 0.008909 × φ.
Si
14
More generally, i.e. for other indices than S&P500, or for stocks,
currencies, commodities, etc.,
Si+1 − Si
• Ri = = mean + standard deviation × φ.
Si
15
Goal: How can we get to a continuous-time model? At the
moment this model is in discrete time.
16
Moving towards continuous time
In our example the data is sampled with a time step of one day.
We could have used weekly or monthly intervals, or hourly (more
data needed, and harder to get). How would this affect the mean
and standard deviation?
17
How does the mean return scale with time?
If the average return in one day is 1%, what is the average return
over one week?
18
The average return scales with the size of the time step.
Obvious!?
19
Let’s do the maths. . .
Call the time step δt. This is going to be a very small number,
a tiny fraction of a year.
20
I claim we can write
• mean = µ δt,
for some µ. (We will assume this to be constant, even if it’s not
the argument doesn’t change much.)
1
mean = 0.00035 = µ δt = µ × ,
252
So µ = 0.0882 = 8.82%.
21
Ignoring randomness for the moment while we focus on the
mean, our model is simply
Si+1 − Si
= mean = µ δt.
Si
22
If the asset begins at S0 at time t = 0 then after one time step
t = δt and
S1 = S0(1 + µ δt).
SM = S0(1 + µ δt)M .
23
But we can write
SM = S0 (1 + µ δt)M
as
24
And we can approximate the logarithm function. . .
So
SM ≈ S0eµM δt.
S(t) ≈ S0 eµt .
25
In the limit as the time step δt → 0 S as a function of t becomes
S(t) = S0 eµt .
And there aren’t any δts in this! Which means that we have
something interesting and meaningful when the time step is in-
finitesimal.
26
This also shows why the answer to the question about the 1%
mean over one day etc. is only approximate. The scaling with
time step is actually exponential, it’s just that for small enough
periods things look linear.
27
Aside: What if the mean didn’t scale linearly with the time step?
What if instead
mean = µ δtα
28
• In the absence of any randomness the asset exhibits expo-
nential growth, just like money in the bank.
29
Now let’s turn our attention to the standard deviation. . .
30
How does the standard deviation of returns scale with time?
31
Clue: When you have independent random numbers (such as
returns from one day to the next) you cannot add standard de-
viations. Oh, no!
But you can add variances. I.e. when X and Y are independent
Var[X + Y ] = Var[X] + Var[Y ].
32
Let’s suppose that the standard deviation scales with δtα. There-
fore the variance scales with δt2α .
From time zero to time t how many random returns are there?
Easy, just t/δt.
33
t
× δt2α.
δt
α=1
2.
34
√
So the answer to the question is 5 % (if there are five business
days in a week).
36
In our S&P500 example we have
1 1
standard deviation = 0.008909 = σ δt = σ × √
2 .
252
So σ = 0.141 = 14.1%.
37
What units do the drift, µ, and the volatility, σ, have?
38
Back to the full model
Si+1 − Si
Ri = = mean + standard deviation × φ.
Si
Si+1 − Si
Ri = = µ δt + σφ δt1/2.
Si
39
This can be written as
This is a model!
40
You can also write it as
Equations in this form are the basis for Monte Carlo simula-
tions.
41
This is a discrete-time model for a random walk of the asset.
42
Because of their different scalings with time, the growth and
volatility have different effects on the asset path.
43
9 Ln(SP500)
0
12-Apr-49 29-Jun-57 15-Sep-65 02-Dec-73 18-Feb-82 07-May-90 24-Jul-98 10-Oct-06
44
The Wiener process
45
We now introduce some more, very standard, notation: d· means
‘the change in’ some quantity.
46
The first δt on the right-hand side of
47
We cannot straightforwardly write dt1/2 instead of δt1/2.
Why not?
48
We are going to write the term φ δt1/2 as
dX.
49
You can think of dX as being a random variable, drawn from a
Normal distribution with mean zero and variance dt:
This is not exactly what it is, but it is close enough to give the
right idea. (More later!)
50
The most important model for equities,
currencies, commodities and indices
Using the Wiener process notation, the asset price model can be
written as
• dS = µS dt + σS dX.
51
Summary
• This random walk is the most popular asset price model, and
is in the form of a stochastic differential equation
52