public class FeynmanKacEx3 extends Object
Evaluates the price of a European option with two payoff strategies.
This example evaluates the price of a European Option using two payoff strategies: Cash-or-Nothing and Vertical Spread. In the first case the payoff function is $$ p(x)=\left\{ \begin{array}{lr} 0, & x \le K \\ B, & x \gt K \end{array} \right. . $$ The value \(B\) is regarded as the bet on the asset price, see Wilmott et al. (1995, p. 39-40). The second case has the payoff function $$ p(x) = \max(x-K_1)-\max(x-K_2), \, K_2>K_1. $$ Both problems use the same boundary conditions. Each case requires a separate integration of the Black-Scholes differential equation, but only the payoff function evaluation differs in each case. The sets of parameters in the computation are:
Constructor and Description |
---|
FeynmanKacEx3() |
Copyright © 2020 Rogue Wave Software. All rights reserved.