filmov
tv
Using mdarray to Price Equity Options
Показать описание
Abstract
std::mdspan, proposed for release in C++23 (P0009), can impose a non-owning multidimensional array structure on a reference to a container, such as an STL vector. Using the example of a vector containing the data, and a referring mdspan representing a matrix, the number of rows and columns are set at construction of the mdspan. An mdspan can also take the form of higher dimensional arrays, but it is specifically useful for the two-dimensional case often found in financial and other applied science applications.
But what about the case where the data is not known a priori, and needs to be generated within a multidimensional array? A particular example is the binomial lattice pricing model for equity options, where underlying prices and option payoffs are generated going forward and backward in time, respectively. The owning analog of mdspan, namely mdarray, proposed for C++26 (P1684) — not far off within the next three years — provides the lattice structure for us, which can save a considerable amount of time and work, as well as separate the lattice from the mathematics.
In this presentation, we will cover a quick introduction to mdspan, and contrast it with mdarray. A solution to the implementation of a binomial lattice option pricing model using mdarray will then be shown, with examples of both European and American options, although it is the latter case where lattice models are particularly useful. Convergence issues will also be discussed, and it will also be noted how mdarray can be extended for trinomial lattices common in interest rate derivative pricing, and higher dimensional cases where options on more than one underlying asset are involved.
Speaker Bio
Daniel Hanson is a former full-time lecturer in the Computational Finance & Risk Management program within the Department of Applied Mathematics at the University of Washington. His appointment followed over 25 years of experience in private sector quantitative development in finance and data science.
std::mdspan, proposed for release in C++23 (P0009), can impose a non-owning multidimensional array structure on a reference to a container, such as an STL vector. Using the example of a vector containing the data, and a referring mdspan representing a matrix, the number of rows and columns are set at construction of the mdspan. An mdspan can also take the form of higher dimensional arrays, but it is specifically useful for the two-dimensional case often found in financial and other applied science applications.
But what about the case where the data is not known a priori, and needs to be generated within a multidimensional array? A particular example is the binomial lattice pricing model for equity options, where underlying prices and option payoffs are generated going forward and backward in time, respectively. The owning analog of mdspan, namely mdarray, proposed for C++26 (P1684) — not far off within the next three years — provides the lattice structure for us, which can save a considerable amount of time and work, as well as separate the lattice from the mathematics.
In this presentation, we will cover a quick introduction to mdspan, and contrast it with mdarray. A solution to the implementation of a binomial lattice option pricing model using mdarray will then be shown, with examples of both European and American options, although it is the latter case where lattice models are particularly useful. Convergence issues will also be discussed, and it will also be noted how mdarray can be extended for trinomial lattices common in interest rate derivative pricing, and higher dimensional cases where options on more than one underlying asset are involved.
Speaker Bio
Daniel Hanson is a former full-time lecturer in the Computational Finance & Risk Management program within the Department of Applied Mathematics at the University of Washington. His appointment followed over 25 years of experience in private sector quantitative development in finance and data science.