I\'m trying to simulate a simple stochastic process in Python but with no success. The process is the following:
x(t + δt) = r(t)x(t)
where r(t) is a Bernoulli ran