Stochastic Processes in Classical and Quantum Systems