# Finance and matlab

The partial differential equation (PDE) for an option price f = f (x, t) where the option

price is expressed as a function of the log stock price, x = lnS, and time t is given as

follows:

The grid for the log stock price is given as

xvec = [xmin, xmin+x, xmin+2x, . . . , xmax−x, xmax]

however, we cannot set xmin = ln0 as this is −, so we set xmin = lnS0−2×pwhere

= T −t is the time-to-maturity of the option. Similarly, set xmax = lnS0 +2×p.

Assume the initial stock price is S0 = 100, an interest rate of r = 5% and a volatility of

= 20%.

Derive the coefficients on the explicit finite difference algorithm by discretising the above

PDE and solving for fi, j−1 in terms of fi+1, j, fi, j and fi−1, j.

Consider an optionwith the following payoff: f (ST ,T)=max_K −100×__ST

S0 _1/T_,0_.

Assume the time-to-maturity of the option is T = 3/12 years, the strike price is K = 110,

and the continuously compounded risk-free rate is r = 5%.

This option is not path dependent hence it can be shown that the price of this option follows

the same partial differential equation (PDE) as a vanilla European call or put option but

with different terminal and boundary conditions.

• Use the explicit finite difference (EFD) method to price a European version of this slightly

exotic put option.

• Report the option price for the initial stock price of S0 = 100 and provide a plot of the time

0 option price versus the vector of stock prices.

• Price the American version of this exotic put option using the explicit finite difference

method.

( 0 comentários ) Thane, India

ID do Projeto: #24605557

## 8 freelancers estão ofertando em média ₹19375 para esse trabalho

matlabxperts

Hi, I have worked on implementation of research papers and mathematical equations in MATLAB, including partial difference equations. Regards, Talal

₹20000 INR in 7 dias
(105 Comentários)
7.0
VolKa

Hi. I think that will be able to do this. Please provide text of the job typed in word or pdf to make it clear. Regards.

₹15000 INR in 7 dias
(154 Comentários)
6.6
consultotal

Hi i'm engineer, Internet of things, machine learning, networking, lighting, power distribution, automation and control expert, i have experience working in electromechanical systems and control - design and building, Mais

₹75000 INR in 30 dias
(10 Comentários)
5.1
thom324marjorie

Dear. I am an expert in MATLAB/Simulation for 13+ years. I have skills of MATLAB implementation of algorithm. I will provide you good results. Thanks.

₹21000 INR in 10 dias
(4 Comentários)
3.3
allmed2013

I am an engineer with two masters degree in applied mathematics : 1) Mathematical engineering 2) Statistics and Modeling for finance. I have worked on many projects from risk management to Pricing derivatives. Some of Mais

₹12500 INR in 7 dias
(2 Comentários)
2.9
lancing4you

Hi! I have good experience in using MATLAB for numerical analysis. Your project is intriguing. I may be of assistance to you. Kindly contact so that I can learn more about your problem. Regards

₹1500 INR in 3 dias
(0 Comentários)
0.0
Shinamkh

Hi I have five years of experience in numerical analysis and mathematical modeling. If it's possible, please send the pdf/word version of your problem description, because now it's not clear.

₹5000 INR in 7 dias
(0 Comentários)
0.0