Application of stochastic theory to physical problems with special reference to some quantum mechanical phenomena