S0_2: The spot price of the second underlying asset.
NPaths: Number of monte-carlo simulations to run. Larger number of trials lower variability at the expense of computation time.
Returns
An original OptPx object with Px.MC field as the price of the option and user-supplied S0_2, NPaths parameters attached.
Details
The Monte-Carlo simulations assume the underlying price undergoes Geometric Brownian Motion (GBM). Payoffs are discounted at risk-free rate to price the option. A thorough understanding of the object class construction is recommended. Please see OptPx, Opt for more information.