Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a stock with initial value S 0 = 1 0 0 . 0 0 . Every day, this stock has a 5 0 %

Consider a stock with initial value S0=100.00. Every day, this stock has a 50% chance of a
+1% return, and a 50% chance of a -1% return, i.e. the stock either goes up by a factor of
u=1.01 or down by a factor of d-0.99. You have purchased a call option with a strike price
of K=100, and a maturity of T=2 year, which is n=500 trading days. The random payoff
of this option is
P=max{ST-K,0},
where ST is the random terminal value of the stock price.
(a) In order to help understand the distribution of the the terminal stock price ST, we use kernel
density estimation. Write a function y=KDE(x,x,b) which implements kernel density
estimation using a Gaussian kernel.
Here:
x is a vector of sample points x=[x1,dots.xn] drawn from some distribution F whose
probability density function we are trying to approximate.
b is a bandwidth parameter.
The output is defined to be
KDE(x,x,b):=1nbi=1nK(x-xib)
where K(x) is the standard normal PDF.
(b)(i) In a script file Q1.m, write code that will output a plot of a random path of the stock
price S0,S1,dots,Sn vs 0:n.
(ii) We now investigate the distribution of the terminal stock price ST using simulation.
In your script Q1.m write code that constructs a vector SS with M=10000 pos-
sible terminal stock price values ST. Plot a histogram of your vector SS(using
'Normalization', 'pdf'). On the same graph, plot a kernel density estimate of
the PDF, using your function KDE, with bandwidth determined by the Silverman Rule:
b:=1.06stdxn15, where n is the number of data points.
(iii) Next, we compute the probability that this option expires in-the-money (i.e. that the
option is worth something at expiry) using simulation: In your script Q1.m, compute
and display the proportion of the values of SS that are >K.
(iv) Still in Q1.m, use an appropriate built-in matlab function that will compute and display
the exact value of P(ST>K).(Your answer should be close to that in (iii).)
(v) Finally, still in Q1.m, write code that uses simulation to compute and display an ap-
proximation of the expected payoff of this call option.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions

Question

5 Name at least three recruitment methods.

Answered: 1 week ago