Barrier option valuation via Monte Carlo (MC) simulation.
Barrier option valuation via Monte Carlo (MC) simulation.
Calculates the price of a Barrier Option using 10000 Monte Carlo simulations. The helper function BarrierCal() aims to calculate expected payout for each stock prices.
Important Assumptions: The option follows a General Brownian Motion (GBM) ds=mu∗S∗dt+sqrt(vol)∗S∗dW where dWN(0,1). The value of mu (the expected percent price increase) is assumed to be o$r-o$q.
Huang Jiayao, Risk Management and Business Intelligence at Hong Kong University of Science and Technology, Exchange student at Rice University, Spring 2015