Stochastic Processes in Quantum Theory and Statistical Physics