In this second, more advanced example, we will illustrate the implementation of the pricing of an equity basket option, with the payoff being the largest between two asset values at maturity. The details of the approach are shown in the following Bento Box template:
Our aim is to compute the option premium as before.
The details of the contract are in Box 1, particularly the payoff function is as follows:
Note that this being a basket option with two assets, we will ...