Answered step by step
Verified Expert Solution
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 Every day, this stock has a chance of a
return, and a chance of a return, ie the stock either goes up by a factor of
or down by a factor of You have purchased a call option with a strike price
of and a maturity of year, which is trading days. The random payoff
of this option is
max
where is the random terminal value of the stock price.
a In order to help understand the distribution of the the terminal stock price we use kernel
density estimation. Write a function KDE which implements kernel density
estimation using a Gaussian kernel.
Here:
is a vector of sample points dots. drawn from some distribution whose
probability density function we are trying to approximate.
is a bandwidth parameter.
The output is defined to be
KDE:
where is the standard normal PDF
bi In a script file Qm write code that will output a plot of a random path of the stock
price dots, vs :
ii We now investigate the distribution of the terminal stock price using simulation.
In your script Qm write code that constructs a vector with pos
sible terminal stock price values Plot a histogram of your vector 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:
: where is the number of data points.
iii Next, we compute the probability that this option expires inthemoney ie that the
option is worth something at expiry using simulation: In your script Qm compute
and display the proportion of the values of that are
iv Still in Qm use an appropriate builtin matlab function that will compute and display
the exact value of Your answer should be close to that in iii
v Finally, still in Qm write code that uses simulation to compute and display an ap
proximation of the expected payoff of this call option.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started