Stochastic equations for complex systems