Stochastic processes are random variables indexed by time and space. Stochastic processes are used as mathematical models to investigate occurrences that appear to vary in a random manner. Examples of stochastic processes include bacterial growth and the movement of gas.