Mathematical modeling for stochastic processes