Some Applications of Stochastic Methods in Investigations on the Dynamics of Ecosystems