Book Image

Advanced Quantitative Finance with C++

By : Alonso Peña, Ph.D.
Book Image

Advanced Quantitative Finance with C++

By: Alonso Peña, Ph.D.

Overview of this book

<p>This book will introduce you to the key mathematical models used to price financial derivatives, as well as the implementation of main numerical models used to solve them. In particular, equity, currency, interest rates, and credit derivatives are discussed. In the first part of the book, the main mathematical models used in the world of financial derivatives are discussed. Next, the numerical methods used to solve the mathematical models are presented. Finally, both the mathematical models and the numerical methods are used to solve some concrete problems in equity, forex, interest rate, and credit derivatives.</p> <p>The models used include the Black-Scholes and Garman-Kohlhagen models, the LIBOR market model, structural and intensity credit models. The numerical methods described are Monte Carlo simulation (for single and multiple assets), Binomial Trees, and Finite Difference Methods. You will find implementation of concrete problems including European Call, Equity Basket, Currency European Call, FX Barrier Option, Interest Rate Swap, Bankruptcy, and Credit Default Swap in C++.</p>
Table of Contents (17 chapters)
Advanced Quantitative Finance with C++
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
Index

Chapter 4. Equity Derivatives in C++

In the previous two chapters, we described the key mathematical models used to simulate the behavior of the underlying assets of financial derivatives (Chapter 2, Mathematical Models) and the main numerical methods used to price them (Chapter 3, Numerical Methods).

In this chapter, we apply these ingredients to the pricing of equity derivatives. We consider two examples: the pricing of a plain vanilla European Call option (basic example) and the pricing of an equity basket on the maximum of two assets (advanced example). We provide the full working C++ implementation for both. Note that if you are new to OOP, it is suggested that you first study the implementation in C followed by the implementation in C++, available in the code bundle of the chapter.