Professional Documents
Culture Documents
u
d
C=f(S,t)
Motivation
C=f(S,t)
u
d
C=f(S,t)
Right, but not the obligation to sell a share at the strike price
K.
European put option: stock price S=50; strike price K=55;
time t=0.5; steps n=2; volatility =0.20; interest rate return
r=0.05
Up move:
Down move:
ue
0.2 0.5
1
0.9048
u
Risk-neutral probability:
qu
1.1052
1 r n d
0.5363
ud
C=f(S,t)
Put payoff
Terminal prices
after 2 steps:
0=max[0;55-61.1]
61.1=50*u2
55.3
5.4
50=50*u0
50
2.3
5=max[0;55-50]
9.1
45.2
14.1=max[0;55-40.9]
40.9=50*u-2
1 r n
t
C=f(S,t)
Terminal prices
after n steps
Put payoff in
the different states
50*un
max{55-50*un,0}
=p1n+1
50*un-2
max{55-50*un-2,0}
=p2n+1
50*un-4
max{55-50*un-4,0}
=p3n+1
length: n+1
50*u-n+4
max{55-50*u-n+4,0}
=pn-1n+1
50*u-n+2
max{55-50*u-n+2,0}
=pnn+1
50*u-n
max{55-50*u-n,0}
=pn+1n+1
=P(:,n+1)
C=f(S,t)
max(X,Y)
ans=
max(X,2)
ans=
3
2
3
2
2
3
C=f(S,t)
C=f(S,t)
u
d
C=f(S,t)
P(1:end-1,n+1)
p1n
max{55-50*un,0}
max{55-50*un,0}
=p1n+1
p2n
max{55-50*un-2,0}
max{55-50*un-2,0}
=p2n+1
p3n
max{55-50*un-4,0}
max{55-50*un-4,0}
=p3n+1
pn-1n
max{55-50*u-n+4,0}
max{55-50*u-n+4,0}
=pn-1n+1
pnn
max{55-50*u-n+2,0}
max{55-50*u-n+2,0}
=pnn+1
max{55-50*u-n,0}
max{55-50*u-n,0}
pn-2n
=pn+1n+1
P(2:end,n+1)
10
u
d
C=f(S,t)
end
price=P(1,1);
11
u
d
C=f(S,t)
ue
0.2 0.5
1
0.9048
u
Risk-neutral probability:
qu
1.1052
1 r n d
0.5363
ud
12
C=f(S,t)
Call payoff
Terminal prices
after 2 steps:
6.1=max[0;61.1-55]
61.1=50*u2
55.3
1.7
50=50*u0
50
3.2
0=max[0;50-55]
0
45.2
0=max[0;40.9-55]
40.9=50*u-2
1 r n
t
13
C=f(S,t)
2
log
+ r+
T
2
d1 =
T
1.
d2 =d1 T
and the Gaussian cumulative density function:
cdf('norm',di,0,1)
14
Exercises I
C=f(S,t)
a)
b)
c)
Code the two functions call_bs and put_bs from the slide
before.
Write a function that calculates the value of a European
call option with the binomial model(call_binomial).
Now use the function call_binomial. Write a piece of code
called Option_eval that returns a plot of call prices
depending on the number of steps n for n=1:200. Draw in
the value of the call option with the continuous-time
model call_bs as a constant function. Use the following
parameters: sigma=0.5, T=0.25, K=95, S=100 and r=0.1.
15
u
d
C=f(S,t)
16
u
d
C=f(S,t)
17
u
d
C=f(S,t)
18
u
d
C=f(S,t)
19
Solution Exercise I c)
C=f(S,t)
c)
Option_eval.m
20
C=f(S,t)