I have following system of differential equations
x'(t) = (10+σ(t))(y(t)-x(t))
y'(t) = ρx(t)-y(t)-x(t)z(t)
z'(t) = x(t)y(t)-βz(t)
where ρ and β are constants and σ is Ornstein-Uhlenbeck process. In fact, the system is Lorenz system embedded in stochastic environment.
Solution of σ is
σt=σ0e-αt+γe-αt∫0teαsdWs
and I think I can solve it in Python like below
t_max = 1
n = 1000
t, dt = np.linspace(0, t_max, n, endpoint=False, retstep=True)
dW = np.sqrt(dt) * np.random.randn(n)
alpha = 1
gamma = 1
sigma = sigma_0 * np.exp(-alpha * t) + gamma * np.exp(-alpha * t) * np.cumsum(np.exp(alpha * t) * dW)
Now given sigma
as above, if it is correct, how can I get the solution for the system?