I'm trying to make a point about Markov processes and ran into difficulty understanding how to simulate continuous-time random walks. A discrete-state discrete-time random walk has the equation:
$x_{n+1}=x_n+X_1,\qquad X_1 \in \{-1,1\}$,
while the continuous-state discrete-time random walk could have the equation (of many choices to represent the continuous version of $X_1\in\{-1,1\}$):
$x_{n+1}=x_n+X_2,\qquad X_2 \in [-1,1]$. (Edit to be more clear: a uniform distribution.)
Simulation of the above runs as expected. Now, I'm an engineer, so I'm going to talk about dynamics. When trying to make a continuous-time version of the second equation, I observe that the state changes essentially with a velocity in $[-1,1]$ so the system could be written as
$\dot{x}=X_2, \qquad X_2 \in [-1,1]$. (Edit to be more clear: a uniform distribution)
Note: this is not the "continuous time random walk" which involves jumping at random times. This is an attempted version of the random walk in continuous time.
When I use Euler's method to integrate ($x_{n+1}=x_n+\dot{x}dt$), the result does not match the discrete-time version at all unless dt is 1.
After looking through documentation, I found Wiener's process and, understanding nothing, I asked chatGPT, which told me to use $x_{n+1}=x_n+\dot{x}\cdot\sqrt{dt}$. This violates the possible bounds of state with maximum velocity 1 but in general is the correct scale.
What is going on? What is the proper way to simulate this? (I'm aware that a random walk in continuous-time approaching a slope of 1 is equivalent to flipping an infinite amount of coins and nearly all of them landing on heads. I'm trying to understand what the right way to model this would be.)
I've included four figures. The first one shows the continuous-time process with dt set to 1, which matches the purely discrete version (the blue line is the expected upper bound of slope 1 and the yellow is the expected lower bound of slope -1). Figure 2 shows $x_{n+1}=x_n+\dot{x}\cdot\sqrt{dt}$ (which violates the bounds). Figure 3 shows $x_{n+1}=x_n+\dot{x}dt$, and Figure 4 shows Figure 3 zoomed in so the process and scale can be seen. In this case, dt = 0.00001.
