Code covered by the BSD License

### Highlights from FinancialModelling_Ch2_ImpliedVolatility

5.0

5.0 | 2 ratings Rate this file 45 Downloads (last 30 days) File Size: 42.6 KB File ID: #36563

# FinancialModelling_Ch2_ImpliedVolatility

Carr-Madan and Lewis pricing methods using FFT for many advanced financial models

File Information
Description

This is material from the book
Financial Modelling: Theory, Implementation and Practice with Matlab source from Joerg Kienitz and Daniel Wetterau, WILEY, September 2012

Pricing Call Options for advanced financial models using FFT and the Carr-Madan or the Lewis Method. We cover:

Diffusion:
Bachelier, Black-Scholes, CEV, Displaced Diffusion, Hull-White

Stochastic Volatility:
Heston, SABR, Displaced Diffusion Heston, Heston-Hull-White

Jump-Diffusion:
Merton, Bates, Bates-Hull-White

Levy:
Variance Gamma, Normal Inverse Gaussian

Levy+Stochastic Volatility:
Gamma Ornstein-Uhlenbeck and CIR clock

Acknowledgements
Required Products MATLAB
MATLAB release MATLAB 7.14 (R2012a)
Other requirements We have tested the code with Matlab R2008b - R2012a
04 Aug 2013

Also, The Carr and Madan approach used another formula for pricing out-of-the-money call (indeed the formula for ITM call options is based on the intrinsic value and therefore does not apply to OTM call options).

Why do we not consider another formula for OTM options?

04 Aug 2013

Hi,

I am trying to use your codes and price the same option with both HestonHullWhite characteristic function and hhw characteristic function.

I want to match both prices. For this reason, I set the correlation rho13 equal to zero in the hhw characteristic function.

But how do I get r0 so that the prices match? I tried from the ircurve but did not succeed... Some help?

09 Dec 2012

Amazing book and code Sirs. Thank-you.

Just one issue: one running >> TestScriptVolSmileHeston
This error pops up:
Maximum variable size allowed by the program is exceeded.

Error in CallPricingFFT (line 53)
uvec = 1:FFT_N;

Error in TestScriptVolSmileHeston (line 52)
FFTopt(j,:) = CallPricingFFT('Heston',S,K,T(j),r,d,vInst,vLong,kappa,omega,rho);

Why is it?

Best Regards