Diffusion Equation – SMART Trading Strategies https://smarttradingstrategies.com Statistical and Mathematical Approach to Retail Trading Sun, 12 Sep 2021 13:41:21 +0000 en-US hourly 1 https://smarttradingstrategies.com/wp-content/uploads/2021/08/logo-150x150.png Diffusion Equation – SMART Trading Strategies https://smarttradingstrategies.com 32 32 Probability Density Functions for Random Walk https://smarttradingstrategies.com/probability-density-functions-for-random-walk/ https://smarttradingstrategies.com/probability-density-functions-for-random-walk/#respond Sun, 12 Sep 2021 13:39:37 +0000 https://smarttradingstrategies.com/?p=467 If Xt is a random walk that starts from 0 at t=0, Xt​~N(μt,σ2t). Its probability density is given by

p(x, t) = \frac{1}{\sqrt{2\pi\sigma^2 t}}e^{\frac{-(x-\mu t)^2}{2\sigma^2t}}

For a pure Brownian motion (which is a continuous RW), μ = 0 and σ = 1.

p(z, t) = \frac{1}{\sqrt{2\pi t}}e^{\frac{-z^2}{2t}}

This PDF satisfies the diffusion equation.

For a random walk that starts elsewhere, its probability density is given by

p(x_T, T; x_0, t_0) = \frac{1}{\sqrt{2\pi\sigma^2(T-t_0)}}e^{\frac{-[(x_T - x_0)-\mu(T-t_0)]^2}{2\sigma^2(T-t_0)}}

P(xT, T; x0, t0) = probability of being at xT at time T, given that we started at x0 at time t0.

https://www.instagram.com/p/CTuQtivhign/
]]>
https://smarttradingstrategies.com/probability-density-functions-for-random-walk/feed/ 0