| Mathematical Finance Programming In Ti-basic |
Article Index for Mathematical |
Website Links For Mathematical |
Information AboutMathematical Finance Programming In Ti-basic |
|
Quantitative (mathematical) Finance is based on Stochastic Calculus , and more specifically on the Ito's Lemma . TI-BASIC PROGRAMS Ito's lemma Let's begin defining a stochastic process through its Ito's definition: :defsto(t,x) :Func :{t,x} :EndFunc So for our TI-calculator, a diffusion process formally defined by: is defined by a set of two terms: { f(S,t), g(S,t) } For an exponential brownian motion, we define:
Now we want to use Ito's lemma on functions of and : :dsto(f,x,t,ds) :Func
:EndFunc This can now be used to apply Ito's lemma to : dsto(ln(S),S,t,ds(S)) >> { m - sigma^2/2 , sigma } this tell us that: Black-Scholes Equation Now we can try to prove the Black-Scholes Equation . Define a portfolio with an option and shares of :
and apply Ito's lemma to obtain : dsto(Pi, S, t, ds(S)) → dPi we now want to nullify the stochastic part of by chosing an appropriate value for : solve( dPi {Link without Title} =0, Delta) >> Delta = d(V(S,t), S) or sigma S = 0 we now know that the correct value for is: On another side, we have: which leads us to the equation: At first we need to replace by its value into , and then equalize with | ||
|   | DPi | defsto( r(V(S,t) - Delta S) ) sol &rarr BS |
|
|