Book 312

The world of quantitative finance (QF) is one of the fastest growing areas of research and its practical applications to derivatives pricing problem. Since the discovery of the famous Black-Scholes equation in the 1970's we have seen a surge in the number of models for a wide range of products such as plain and exotic options, interest rate derivatives, real options and many others. Gone are the days when it was possible to price these derivatives analytically. For most problems we must resort to some kind of approximate method. In this book we employ partial differential equations (PDE) to describe a range of one-factor and multi-factor derivatives products such as plain European and American options, multi-asset options, Asian options, interest rate options and real options. PDE techniques allow us to create a framework for modeling complex and interesting derivatives products. Having defined the PDE problem we then approximate it using the Finite Difference Method (FDM). This method has been used for many application areas such as fluid dynamics, heat transfer, semiconductor simulation and astrophysics, to name just a few.
In this book we apply the same techniques to pricing real-life derivative products. We use both traditional (or well-known) methods as well as a number of advanced schemes that are making their way into the QF literature:* Crank-Nicolson, exponentially fitted and higher-order schemes for one-factor and multi-factor options* Early exercise features and approximation using front-fixing, penalty and variational methods* Modelling stochastic volatility models using Splitting methods* Critique of ADI and Crank-Nicolson schemes; when they work and when they don't work* Modelling jumps using Partial Integro Differential Equations (PIDE)* Free and moving boundary value problems in QF Included with the book is a CD containing information on how to set up FDM algorithms, how to map these algorithms to C++ as well as several working programs for one-factor and two-factor models. We also provide source code so that you can customize the applications to suit your own needs.

Book 601

Monte Carlo Frameworks

by Daniel J. Duffy and Joerg Kienitz

Published 25 September 2009
This is one of the first books that describe all the steps that are needed in order to analyze, design and implement Monte Carlo applications. It discusses the financial theory as well as the mathematical and numerical background that is needed to write flexible and efficient C++ code using state-of-the art design and system patterns, object-oriented and generic programming models in combination with standard libraries and tools. Includes a CD containing the source code for all examples. It is strongly advised that you experiment with the code by compiling it and extending it to suit your needs. Support is offered via a user forum on www.datasimfinancial.com where you can post queries and communicate with other purchasers of the book. This book is for those professionals who design and develop models in computational finance. This book assumes that you have a working knowledge of C ++.

Financial Modelling

by Joerg Kienitz and Daniel Wetterau

Published 1 January 2012
Financial Modelling - Theory, Implementation and Practice is a unique combination of quantitative techniques, the application to financial problems and programming using Matlab. The book enables the reader to model, design and implement a wide range of financial models for derivatives pricing and asset allocation, providing practitioners with complete financial modelling workflow, from model choice, deriving prices and Greeks using (semi-) analytic and simulation techniques, and calibration even for exotic options. The book is split into three parts. The first part considers financial markets in general and looks at the complex models needed to handle observed structures, reviewing models based on diffusions including stochastic-local volatility models and (pure) jump processes. It shows the possible risk neutral densities, implied volatility surfaces, option pricing and typical paths for a variety of models including SABR, Heston, Bates, Bates-Hull-White, Displaced-Heston, or stochastic volatility versions of Variance Gamma, respectively Normal Inverse Gaussian models and finally, multi-dimensional models.
The stochastic-local-volatility Libor market model with time-dependent parameters is considered and as an application how to price and risk-manage CMS spread products is demonstrated. The second part of the book deals with numerical methods which enables the reader to use the models of the first part for pricing and risk management, covering methods based on direct integration and Fourier transforms, and detailing the implementation of the COS, CONV, Carr-Madan method or Fourier-Space-Time Stepping. This is applied to pricing of European, Bermudan and exotic options as well as the calculation of the Greeks. The Monte Carlo simulation technique is outlined and bridge sampling is discussed in a Gaussian setting and for Levy processes. Computation of Greeks is covered using likelihood ratio methods and adjoint techniques. A chapter on state-of-the-art optimization algorithms rounds up the toolkit for applying advanced mathematical models to financial problems and the last chapter in this section of the book also serves as an introduction to model risk.
The third part is devoted to the usage of Matlab, introducing the software package by describing the basic functions applied for financial engineering. The programming is approached from an object-oriented perspective with examples to propose a framework for calibration, hedging and the adjoint method for calculating Greeks in a Libor Market model. Source code used for producing the results and analysing the models is provided on the author s dedicated website, http://www.mathworks.de/matlabcentral/fileexchange/authors/246981

A practice-oriented guide to using C# to design and program pricing and trading models

In this step-by-step guide to software development for financial analysts, traders, developers and quants, the authors show both novice and experienced practitioners how to develop robust and accurate pricing models and employ them in real environments. Traders will learn how to design and implement applications for curve and surface modeling, fixed income products, hedging strategies, plain and exotic option modeling, interest rate options, structured bonds, unfunded structured products, and more. A unique mix of modern software technology and quantitative finance, this book is both timely and practical. The approach is thorough and comprehensive and the authors use a combination of C# language features, design patterns, mathematics and finance to produce efficient and maintainable software.

Designed for quant developers, traders and MSc/MFE students, each chapter has numerous exercises and the book is accompanied by a dedicated companion website, www.datasimfinancial.com/forum/viewforum.php?f=196&sid=f30022095850dee48c7db5ff62192b34, providing all source code, alongside audio, support and discussion forums for readers to comment on the code and obtain new versions of the software.


Interoperability

by Daniel J. Duffy and Robert Demming

Published 9 December 2011
Expand Excel functionality with a multi-language environment that works Interoperability Software Tools and Applications in Finance with Excel, C#, and C++ shows you how to create applications in a multi-language environment where interfacing with Excel plays a vital role. VBA is an important tool for Excel, and is incorporated here but it doesn't scale well for more complex applications, so a practical integration of C++ and C# is essential for creating increasingly sophisticated finance tools. This book walks you through the fundamentals, software, and applications, providing real-world examples with source code you can extend and apply in your own projects. You'll learn how to create automation and add-ins, integrate .NET, incorporate popular libraries, utilize replacement worksheet functions in C#, and much more as you expand Excel's capabilities and discover the superior functionality multi-language interoperability enables. Excel is indispensable in many financial applications, but difficulties arise when integrating quant code and formulating complex algorithms where C++ or C# is essential.
This book shows you how to make these languages interact efficiently, accurately, and productively to create more effective solutions for todays finance world. * Create automation and COM add-ins with C# and C++ * Call VBA add-ins and handle multi-threaded components with Excel * Implement interpolators, pricers, and simulators in Excel * Integrate C++ STL, Boost, and other libraries Haphazard multi-language interfacing slows down results, causes numerous errors, and can require complete reworking when changes are made. Today's applications need to move at a steady pace, and developer time cannot be wasted on tedious integration and revision. Interoperability Software Tools and Applications in Finance with Excel, C#, and C++ provides a sound, concrete solution, making it a must-have resource for developers and quantitative finance specialists.

This book is a detailed and step-by-step introduction to the mathematical foundations of ordinary and partial differential equations, their approximation by the finite difference method and applications to computational finance. The book is structured so that it can be read by beginners, novices and expert users.

Part A Mathematical Foundation for One-Factor Problems

Chapters 1 to 7 introduce the mathematical and numerical analysis concepts that are needed to understand the finite difference method and its application to computational finance.

Part B Mathematical Foundation for Two-Factor Problems

Chapters 8 to 13 discuss a number of rigorous mathematical techniques relating to elliptic and parabolic partial differential equations in two space variables. In particular, we develop strategies to preprocess and modify a PDE before we approximate it by the finite difference method, thus avoiding ad-hoc and heuristic tricks.

Part C The Foundations of the Finite Difference Method (FDM)

Chapters 14 to 17 introduce the mathematical background to the finite difference method for initial boundary value problems for parabolic PDEs. It encapsulates all the background information to construct stable and accurate finite difference schemes.

Part D Advanced Finite Difference Schemes for Two-Factor Problems

Chapters 18 to 22 introduce a number of modern finite difference methods to approximate the solution of two factor partial differential equations. This is the only book we know of that discusses these methods in any detail.

Part E Test Cases in Computational Finance

Chapters 23 to 26 are concerned with applications based on previous chapters. We discuss finite difference schemes for a wide range of one-factor and two-factor problems.

This book is suitable as an entry-level introduction as well as a detailed treatment of modern methods as used by industry quants and MSc/MFE students in finance. The topics have applications to numerical analysis, science and engineering.

More on computational finance and the author’s online courses, see www.datasim.nl.