Non-equilibrium dynamics and stochastic processes