Ongoing project of creating a trading platform and different alphas to give a user to whole experience.
You can read the Md file by copying and pasting the ReadMe.md here: https://stackedit.io/app#
The process ${W(t)}{t\geq0}$ is said to be (standard) Brownian Motion if the following are satisfied:
- $W(0)=0$
- For $s,t\geq0$ the random variable $W(s+t)-W(s) \sim N(0,t)$
- Whenever $0\leq t_0\leq t_1\leq....<t_n$ , the quantities $W(t_1)-W(t_0),W(t_2)-W(t_1),....,W(t_n)-W(t{n-1})$ are independent
-
$W(t)$ is a continuous function of$t$ with probability$1$
Let us suppose that the asset price
where
Now consider a function
Now:
But since
After suitable subsitution, we overall get that:
$$ f(S+dS) - f(S) = f'(S)[\mu dt+\sigma dW] + \frac{1}{2}f''(S)\sigma^2(dW)^2 + o(dt) $$ <\p>
Since
So in the limit and replacing
Let
Thus we get a relationship between a Stochastic Integral and a Standard Integral with respect to time.
Consider an asset with price
Over a period
It is useful to work in terms of
So after plugging the following in the SDE we get:
Plugging into Ito's Lemma we get:
We conclude that:
$$ log\left(\frac{S(T)}{S(0)}\right) \sim N\left((\mu - \frac{1}{2}\sigma^2)T,\sigma^2T\right) $$ The above equation can be generalised to give the following:
So we say that
Using
where
In my algorithm: $$ \Delta t = 1 \quad \text{since I have daily data} \ S_{t+1} = S_t*exp\left[\left(\mu - \frac{1}{2}\sigma^2\right) + \sigma W_t\right] $$