 
 
 
 
 SYLLABUS  Previous: 4.5.1 Forecast possible realizations
 Up: 4.5 Methods for European
 Next: 4.6 Computer quiz
  
SYLLABUS  Previous: 4.5.1 Forecast possible realizations
 Up: 4.5 Methods for European
 Next: 4.6 Computer quiz
 
![$ p[S,t;S^\prime,T]$](s4img176.gif) measuring the likelyhood that an asset evolves from 
the present value to the terminal value
 measuring the likelyhood that an asset evolves from 
the present value to the terminal value 
 : 
weighted by the terminal payoff of an option
: 
weighted by the terminal payoff of an option 
 , this can 
be used to evaluate the expected return from a particular realisation of 
the market. Summing the weighted returns from all possible realisations
with the proper Jacobian, the present value of an option could be 
calculated from
, this can 
be used to evaluate the expected return from a particular realisation of 
the market. Summing the weighted returns from all possible realisations
with the proper Jacobian, the present value of an option could be 
calculated from
 by multiplication of the factor
 by multiplication of the factor 
![$ \exp[-r(T-t)]$](s4img180.gif) . This expression 
can be identified with the analytical solution (4.3.2#eq.11) and shows 
that the price of an option can also be calculated as the present value of 
the expected return, using a random walk in a risk-neutral world 
where the drift is replaced by the spot rate minus the 
dividend yield
. This expression 
can be identified with the analytical solution (4.3.2#eq.11) and shows 
that the price of an option can also be calculated as the present value of 
the expected return, using a random walk in a risk-neutral world 
where the drift is replaced by the spot rate minus the 
dividend yield  .
(Note the analogy with the delta hedging, where the risk has been 
eliminated to obtain a Black-Scholes equation that is also independent 
of the drift
.
(Note the analogy with the delta hedging, where the risk has been 
eliminated to obtain a Black-Scholes equation that is also independent 
of the drift  .)
.)
![$ p[S_i,t_i;S_j,t_j\vert\mathcal{C}_j]$](s4img183.gif) that are
subject to multiple conditions
 that are
subject to multiple conditions 
 
 are 
evolved using a risk-neutral random walk by setting the drift
 are 
evolved using a risk-neutral random walk by setting the drift  .
Path dependent features such as barriers can be easily be incorporated at 
the end, by retaining only those prices that satisfy the conditions: the 
terminal payoff can for example be multiplied with a marker variable that 
is either equal to zero or one depending whether the condition has been 
fulfilled or not.
The scheme that has been implemented in the VMARKET class
MCSSolution.java
reads
.
Path dependent features such as barriers can be easily be incorporated at 
the end, by retaining only those prices that satisfy the conditions: the 
terminal payoff can for example be multiplied with a marker variable that 
is either equal to zero or one depending whether the condition has been 
fulfilled or not.
The scheme that has been implemented in the VMARKET class
MCSSolution.java
reads
    } else if(Math.abs(kappa-1.)<0.001){        //Separable log-normal
       if (markers){
         for (k=0; k<numberOfRealisations; k++){
           f[j]+= option.getValue(currentState[k][0] *x[j]/strike) *mark[k][0];
           g[j]+= option.getValue(currentState[k][0] *x[j]/strike);
         }
       } else
         for (k=0; k<numberOfRealisations; k++)
           f[j]+= option.getValue(currentState[k][0] *x[j]/strike);
    }
    f[j]=Math.exp(-time*rate)*f[j]/numberOfRealisations;
    g[j]=Math.exp(-time*rate)*g[j]/numberOfRealisations;
If the problem is separable, the random walk is first scaled according to 
(4.5.1#eq.2) to obtain the terminal value of the underlying  with
 with
currentState[k][0]*x[j]/strike; this is then used as an argument 
to accumulate the terminal payoff 
 from every realization 
using the statement
 from every realization 
using the statement f[j]+=option.getValue() and finally calculate 
the discounted average of (4.5.2#eq.3) using the last two lines.
Note that two functions (f[j],g[j]) have been used to compare the 
price obtained with-/out barriers.
The VMARKET applet below illustrates the 
result in the case of a simple vanilla put option.
SYLLABUS Previous: 4.5.1 Forecast possible realizations Up: 4.5 Methods for European Next: 4.6 Computer quiz