I have a stochastic model that looks like this:
Now if this model were discrete-time, I would just sample bernoulli trials, and I could write a difference equation that looks like this:
$$ x_{t+1} = x_t + b $$
with $b \sim Bernoulli(p)$, so b taking on the values $1$ with probability $p$ and $0$ with $1-p$.
Or alternatively
$$ \Delta x = b $$
(Code showing what I mean:
x = np.zeros(1000)
for t in range(1000-1):
x[t+1] = x[t] + np.random.binomial(n=1, p=0.02, size=1)
plt.plot(x)
plt.show()
Question
What would be the continuous-time counterpart of this model? I am unsure how I could define this model with poisson / exponential distributions, and using $dx$ instead of $\Delta x$.
And secondly, once I have this continuous-time counterpart, how can I discretise it for simulation? Or would the discretised part be the same as described above?


You can simulate a sequence of random arrival times $(\tau_n)_{n\in \mathbb{N}}$ and sum up the indicators up to $t$. That is $Y_t=\sum_{n \in \mathbb{N}}\mathbf{1}_{[0,t]}(\tau_n)$. For example, you can use the exponential distribution to simulate $\tau_k-\tau_{k-1}\sim \textrm{Exp}(\lambda)$ IID, thus obtaining the sequence of arrival times on the nonnegative real line. Here is a coded example.