![[Graphics:Images/index_gr_1.gif]](Images/index_gr_1.gif)
![[Graphics:Images/index_gr_2.gif]](Images/index_gr_2.gif)
![[Graphics:Images/index_gr_3.gif]](Images/index_gr_3.gif)
Just the Black and Scholes formula, together with the delta used for hedging. The input vector is
![[Graphics:Images/index_gr_5.gif]](Images/index_gr_5.gif)
![[Graphics:Images/index_gr_6.gif]](Images/index_gr_6.gif)
This part constructs an array of simulated hedges. The value of the insurance is then computed. Asymptotically, as the rebalancing becomes finer, the value of the hedge should approximate the value of the option it is replicating. The portfolio elements are vectors of the form
![[Graphics:Images/index_gr_8.gif]](Images/index_gr_8.gif)
The various insurance values are shown below, together with the relevant option price for reference.
![[Graphics:Images/index_gr_9.gif]](Images/index_gr_9.gif)
![[Graphics:Images/index_gr_10.gif]](Images/index_gr_10.gif)
It can be seen that the average insurance value is close to the option price. In addition, as the rebalancing interval shrinks, theory says that the deviation of the delta hedging with respect to the option price will go to zero. This can be explored by adjusting the rebalancing interval above.
![[Graphics:Images/index_gr_11.gif]](Images/index_gr_11.gif)
![[Graphics:Images/index_gr_14.gif]](Images/index_gr_14.gif)
![[Graphics:Images/index_gr_16.gif]](Images/index_gr_16.gif)