Stochastic processes in physics and chemistry