On the theory of stochastic processes and their application to the theory of cosmic radiation