Let (Ω,F,P)\left(\Omega,\mathcal{F},\mathbb{P}\right) be a probability space, (S,S)\left(S,\mathcal{S}\right) be a measurable space and TT be a set. A stochastic process is a collection {Xt:t∈T}\left\{X_t:t\in T\right\} of random variables Xt:Ω→SX_t:\Omega\rightarrow S indexed by T.T. The set TT is the index set of the process, which is usually interpreted as time, and SS is the common state space of the process.

Let {Xt:t∈T}\left\{X_t:t\in T\right\} be a stochastic process. The process is a discrete-time process if and only if TT is countable, typically T={0,1,2,…}.T=\{0,1,2,\ldots\}. The process is a continuous-time process if and only if TT is an interval, typically T=[0,∞).T=\left[0,\infty\right).

Let {Xt:t∈T}\left\{X_t:t\in T\right\} be a stochastic process and ω∈Ω\omega\in\Omega be a fixed outcome. The sample path or realisation of the process at ω\omega is the function t↦Xt(ω).t\mapsto X_t(\omega). A stochastic process is equivalently a random function of time.

Let {Xt:t∈T}\left\{X_t:t\in T\right\} be a stochastic process. The finite-dimensional distributions of the process are the joint distributions of the random vectors (Xt1,…,Xtk)\left(X_{t_1},\ldots,X_{t_k}\right) over all finite sets of times t1<…<tkt_1<\ldots<t_k in T.T.

Let {Pt1,…,tk}\left\{\mathbb{P}_{t_1,\ldots,t_k}\right\} be a family of joint distributions indexed by finite sets of times. The family is consistent if and only if the distribution for a subset of times is the marginal of the distribution for the larger set. The Kolmogorov extension theorem states that any consistent family is the family of finite-dimensional distributions of some stochastic process. The processes below are specified by their finite-dimensional distributions.

Let {Xt:t∈T}\left\{X_t:t\in T\right\} be a real-valued process and s<ts<t be times in T.T. The increment of the process over (s,t]\left(s,t\right] is the random variable Xt−Xs.X_t-X_s.

Let {Xt:t∈T}\left\{X_t:t\in T\right\} be a real-valued process. The process has independent increments if and only if increments over disjoint time intervals are mutually independent. The process has stationary increments if and only if the distribution of Xt+h−Xs+hX_{t+h}-X_{s+h} does not depend on h.h.

Let {Xt}\left\{X_t\right\} be a real-valued process with finite second moments. The mean function of the process is the function μ(t):=E[Xt].\mu\left(t\right):=\mathbb{E}\left[X_t\right]. The autocovariance function of the process is the function C(s,t):=cov[Xs,Xt]C\left(s,t\right):=\mathrm{cov}\left[X_s,X_t\right] for s,t∈T.s,t\in T. The autocorrelation function of the process is the function ρ(s,t):=C(s,t)C(s,s)C(t,t).\rho\left(s,t\right):=\frac{C\left(s,t\right)}{\sqrt{C\left(s,s\right)C\left(t,t\right)}}.

Let CC be a function of two times. The function CC is positive semi-definite if and only if the matrix with entries C(ti,tj)C\left(t_i,t_j\right) is a positive semi-definite matrix for every finite set of times. The autocovariance function of a process is symmetric and positive semi-definite, since it is the covariance matrix of (Xt1,…,Xtk).\left(X_{t_1},\ldots,X_{t_k}\right).

Let {Xt}\left\{X_t\right\} be a stochastic process. The process is strictly stationary if and only if its finite-dimensional distributions are invariant under shifts in time.

(Xt1+h,…,Xtk+h)  has  the  same  distribution  as  (Xt1,…,Xtk)  ∀ t1,…,tk,h\left(X_{t_1+h},\ldots,X_{t_k+h}\right)\,\,\mathrm{has}\,\,\mathrm{the}\,\,\mathrm{same}\,\,\mathrm{distribution}\,\,\mathrm{as}\,\,\left(X_{t_1},\ldots,X_{t_k}\right)\,\,\forall\,t_1,\ldots,t_k,h

Let {Xt}\left\{X_t\right\} be a real-valued process and s,t∈T.s,t\in T. The lag between ss and tt is the time difference h=t−s.h=t-s.

Let {Xt}\left\{X_t\right\} be a real-valued process. The process is weakly stationary or second-order stationary if and only if it has finite second moments, a constant mean function and an autocovariance function that depends only on the lag.

μ(t)=μ,C(s,t)=C(t−s)  ∀ s,t∈T\mu\left(t\right)=\mu,\qquad C\left(s,t\right)=C\left(t-s\right)\,\,\forall\,s,t\in T

Stationary processes have the following properties:

  • a strictly stationary process with finite second moments is weakly stationary;
  • a weakly stationary process need not be strictly stationary;
  • for a weakly stationary process C(0)=var[Xt]C\left(0\right)=\mathrm{var}\left[X_t\right] and ρ(h)=C(h)C(0)\rho\left(h\right)=\frac{C\left(h\right)}{C\left(0\right)} is the autocorrelation at lag h.h.

White noise is a weakly stationary process of uncorrelated random variables with mean zero and constant variance, so that C(h)=0C\left(h\right)=0 for h≠0.h\neq 0.

A Gaussian process is a real-valued stochastic process all of whose finite-dimensional distributions are multivariate normal.

Let {Xt}\left\{X_t\right\} be a Gaussian process. The covariance kernel of the process is its autocovariance function, written k(s,t).k\left(s,t\right). Since a multivariate normal distribution is determined by its mean vector and covariance matrix, a Gaussian process is determined by its mean function m(t)m\left(t\right) and its covariance kernel, and is written

Xt∼GP(m,k).X_t\sim\mathcal{GP}\left(m,k\right).

Gaussian processes have the following properties:

  • any symmetric positive semi-definite function kk is a valid covariance kernel by the Kolmogorov extension theorem;
  • for a Gaussian process weak stationarity implies strict stationarity;
  • given observed values (Xt1,…,Xtk)\left(X_{t_1},\ldots,X_{t_k}\right) at some times, the values at any other times have a multivariate normal conditional distribution whose mean and covariance follow from the conditioning formulas for the multivariate normal distribution, which makes Gaussian processes a model for regression over functions.

Let σ>0\sigma>0 and ℓ>0.\ell>0. The squared exponential kernel is the covariance kernel k(s,t)=σ2exp⁡(−(s−t)22ℓ2).k\left(s,t\right)=\sigma^2\exp\left(-\frac{\left(s-t\right)^2}{2\ell^2}\right). The number ℓ\ell is the length scale of the kernel, which controls how quickly the correlation between XsX_s and XtX_t decays with ∣s−t∣.\lvert s-t\rvert. The squared exponential kernel gives smooth sample paths.

A Wiener process or standard Brownian motion is a continuous-time real-valued process {Wt:t≥0}\left\{W_t:t\geq 0\right\} with the following properties:

  • W0=0;W_0=0;
  • independent increments;
  • normally distributed stationary increments, Wt−Ws∼N(0,t−s)W_t-W_s\sim\mathrm{N}\left(0,t-s\right) for all 0≤s<t;0\leq s<t;
  • continuous sample paths almost surely.

The Wiener process has the following properties:

  • it is the Gaussian process with mean function m(t)=0m\left(t\right)=0 and covariance kernel k(s,t)=min⁡{s,t},k\left(s,t\right)=\min\{s,t\}, so Wt∼N(0,t)W_t\sim\mathrm{N}\left(0,t\right) and var[Wt]\mathrm{var}\left[W_t\right] grows linearly in time;
  • its sample paths are continuous but almost surely nowhere differentiable;
  • it is invariant under the scaling Wt↦1cWctW_t\mapsto\frac{1}{\sqrt{c}}W_{ct} for c>0.c>0.

Let μ∈R\mu\in\mathbb{R} and σ>0.\sigma>0. Brownian motion with drift μ\mu and volatility σ\sigma is the process μt+σWt.\mu t+\sigma W_t.

Let ξ1,ξ2,…\xi_1,\xi_2,\ldots be iid random variables with mean 00 and variance 1.1. The random walk with steps ξi\xi_i is the discrete-time process Sn=∑i=1nξi.S_n=\sum_{i=1}^n\xi_i.

Let SnS_n be a random walk with iid steps of mean 00 and variance 1.1. Donsker’s theorem states that the rescaled random walk 1nS⌊nt⌋\frac{1}{\sqrt{n}}S_{\lfloor nt\rfloor} converges in distribution to the Wiener process WtW_t as a process. The Wiener process is therefore the continuous-time limit of random walks in the same way that the normal distribution is the limit of averages.

Let {Xn:n≥0}\left\{X_n:n\geq 0\right\} be a discrete-time real-valued process with E[∣Xn∣]<∞.\mathbb{E}\left[\lvert X_n\rvert\right]<\infty. The process is a martingale if and only if its expected next value given its history is its current value.

E[Xn+1∣X0,…,Xn]=Xn  ∀ n≥0\mathbb{E}\left[X_{n+1}\mid X_0,\ldots,X_n\right]=X_n\,\,\forall\,n\geq 0

Martingales have the following properties:

  • by the law of total expectation E[Xn]=E[X0]\mathbb{E}\left[X_n\right]=\mathbb{E}\left[X_0\right] for every n,n, so a martingale models a fair game;
  • the random walk with mean-zero steps is a martingale, and in continuous time the Wiener process is a martingale.

A counting process is a continuous-time process {Nt:t≥0}\left\{N_t:t\geq 0\right\} with values in {0,1,2,…}\{0,1,2,\ldots\} such that N0=0N_0=0 and t↦Ntt\mapsto N_t is non-decreasing and right-continuous. The value NtN_t counts the number of events of some kind that occur in the interval (0,t].\left(0,t\right].

Let {Nt:t≥0}\left\{N_t:t\geq 0\right\} be a counting process and n≥1.n\geq 1. The nn-th arrival time of the process is the time Tn=inf⁡{t:Nt≥n}T_n=\inf\left\{t:N_t\geq n\right\} at which the count reaches n.n. The nn-th inter-arrival time of the process is the difference Tn−Tn−1,T_n-T_{n-1}, with T0=0.T_0=0.

Let λ>0.\lambda>0. A Poisson process with rate λ\lambda is a counting process with independent increments whose increments are Poisson distributed with mean proportional to the length of the interval.

Nt−Ns∼Poisson(λ(t−s))  ∀ 0≤s<tN_t-N_s\sim\mathrm{Poisson}\left(\lambda\left(t-s\right)\right)\,\,\forall\,0\leq s<t

The Poisson process has the following properties:

  • a counting process is a Poisson process with rate λ\lambda if and only if its inter-arrival times are iid Exponential(λ)\mathrm{Exponential}\left(\lambda\right) random variables, in which case the arrival times satisfy Tn∼Gamma(n,λ);T_n\sim\mathrm{Gamma}\left(n,\lambda\right);
  • the mean function is E[Nt]=λt;\mathbb{E}\left[N_t\right]=\lambda t;
  • the sum of independent Poisson processes with rates λ1\lambda_1 and λ2\lambda_2 is a Poisson process with rate λ1+λ2;\lambda_1+\lambda_2;
  • keeping each event independently with probability pp gives a Poisson process with rate pλ;p\lambda;
  • given Nt=n,N_t=n, the nn arrival times in (0,t]\left(0,t\right] are distributed as the order statistics of nn iid U(0,t)\mathrm{U}\left(0,t\right) random variables.

Let λ:[0,∞)→[0,∞)\lambda:\left[0,\infty\right)\rightarrow\left[0,\infty\right) be a function. An inhomogeneous Poisson process with rate function λ(t)\lambda\left(t\right) is a counting process with independent increments whose increments satisfy Nt−Ns∼Poisson(∫stλ(u)du).N_t-N_s\sim\mathrm{Poisson}\left(\int_s^t\lambda\left(u\right)du\right).

A renewal process is a counting process whose inter-arrival times are iid positive random variables with finite mean μ.\mu. The process restarts, or renews, at each arrival. The Poisson process is the renewal process with exponential inter-arrival times.

Let {Nt:t≥0}\left\{N_t:t\geq 0\right\} be a renewal process. The renewal function of the process is the function m(t):=E[Nt].m\left(t\right):=\mathbb{E}\left[N_t\right].

Let {Nt:t≥0}\left\{N_t:t\geq 0\right\} be a renewal process with mean inter-arrival time μ.\mu. The elementary renewal theorem states that events occur in the long run at rate 1μ.\frac{1}{\mu}.

Ntt→a.s.1μ,lim⁡t→∞m(t)t=1μ\frac{N_t}{t}\xrightarrow{a.s.}\frac{1}{\mu},\qquad\lim_{t\rightarrow\infty}\frac{m\left(t\right)}{t}=\frac{1}{\mu}

Let {Nt:t≥0}\left\{N_t:t\geq 0\right\} be a renewal process with mean inter-arrival time μ,\mu, and RiR_i be a reward earned at the ii-th renewal such that the pairs (Ri,Ti−Ti−1)\left(R_i,T_i-T_{i-1}\right) are iid with finite means. The renewal reward theorem states that the long-run reward rate is E[R1]μ.\frac{\mathbb{E}\left[R_1\right]}{\mu}.

Let {Xt:t∈T}\left\{X_t:t\in T\right\} be a stochastic process. The process has the Markov property if and only if, given the present state, the future is conditionally independent of the past.

P(Xtk+1∈A∣Xt1,…,Xtk)=P(Xtk+1∈A∣Xtk)  ∀ t1<…<tk+1, A∈S\mathbb{P}\left(X_{t_{k+1}}\in A\mid X_{t_1},\ldots,X_{t_k}\right)=\mathbb{P}\left(X_{t_{k+1}}\in A\mid X_{t_k}\right)\,\,\forall\,t_1<\ldots<t_{k+1},\,A\in\mathcal{S}

A Markov process is a stochastic process with the Markov property. The Wiener process and the Poisson process are Markov processes.

A Markov chain is a discrete-time Markov process {Xn:n≥0}\left\{X_n:n\geq 0\right\} with a countable state space S.S.

Let {Xn:n≥0}\left\{X_n:n\geq 0\right\} be a Markov chain with state space S.S. The transition probabilities of the chain are the conditional probabilities of moving from each state to each other state in one step.

pij(n):=P(Xn+1=j∣Xn=i)  ∀ i,j∈Sp_{ij}\left(n\right):=\mathbb{P}\left(X_{n+1}=j\mid X_n=i\right)\,\,\forall\,i,j\in S

Let {Xn:n≥0}\left\{X_n:n\geq 0\right\} be a Markov chain. The chain is time-homogeneous if and only if its transition probabilities do not depend on n.n.

Let {Xn:n≥0}\left\{X_n:n\geq 0\right\} be a time-homogeneous Markov chain with state space S.S. The transition matrix of the chain is the matrix PP with entries pij.p_{ij}.

A stochastic matrix is a matrix with non-negative entries whose rows sum to one. Each row of a transition matrix is a probability distribution over S,S, so a transition matrix is a stochastic matrix.

Let {Xn:n≥0}\left\{X_n:n\geq 0\right\} be a time-homogeneous Markov chain with transition matrix P.P. The distribution at time nn of the chain is the row vector π‾n\underline{\pi}_n with entries P(Xn=i).\mathbb{P}\left(X_n=i\right). The initial distribution of the chain is π‾0.\underline{\pi}_0. By the theorem of total probability

π‾n+1=π‾nP,π‾n=π‾0Pn,\underline{\pi}_{n+1}=\underline{\pi}_nP,\qquad\underline{\pi}_n=\underline{\pi}_0P^n,

so the finite-dimensional distributions of a time-homogeneous Markov chain are determined by π‾0\underline{\pi}_0 and P.P.

Let {Xn:n≥0}\left\{X_n:n\geq 0\right\} be a time-homogeneous Markov chain with transition matrix PP and n≥1.n\geq 1. The nn-step transition probabilities of the chain are the conditional probabilities of moving from each state to each other state in nn steps.

pij(n):=P(Xm+n=j∣Xm=i)p_{ij}^{(n)}:=\mathbb{P}\left(X_{m+n}=j\mid X_m=i\right)

The nn-step transition probabilities are the entries of Pn.P^n. The Chapman–Kolmogorov equations state that a transition over m+nm+n steps decomposes over the intermediate state.

pij(m+n)=∑k∈Spik(m)pkj(n),Pm+n=PmPnp_{ij}^{(m+n)}=\sum_{k\in S}p_{ik}^{(m)}p_{kj}^{(n)},\qquad P^{m+n}=P^mP^n

Let {Xn:n≥0}\left\{X_n:n\geq 0\right\} be a time-homogeneous Markov chain with transition matrix P.P. A stationary distribution of the chain is a distribution π‾\underline{\pi} on SS that is unchanged by a transition.

π‾=π‾P,πj=∑i∈Sπipij  ∀ j∈S\underline{\pi}=\underline{\pi}P,\qquad\pi_j=\sum_{i\in S}\pi_ip_{ij}\,\,\forall\,j\in S

A stationary distribution is a left eigenvector of PP with eigenvalue 1.1. A chain started from a stationary distribution is strictly stationary.

Let {Xn:n≥0}\left\{X_n:n\geq 0\right\} be a time-homogeneous Markov chain with state space S.S. The chain is irreducible if and only if every state can be reached from every other state in finitely many steps with positive probability. The chain is aperiodic if and only if, for every state i,i, the set of n≥1n\geq 1 with pii(n)>0p_{ii}^{(n)}>0 has greatest common divisor 1.1.

Let {Xn:n≥0}\left\{X_n:n\geq 0\right\} be a time-homogeneous Markov chain and i∈Si\in S be a state. The state ii is recurrent if and only if the chain started at ii returns to ii with probability one. The state ii is transient if and only if it is not recurrent. A recurrent state ii is positive recurrent if and only if the expected time to return to ii is finite.

Let {Xn:n≥0}\left\{X_n:n\geq 0\right\} be an irreducible, aperiodic and positive recurrent time-homogeneous Markov chain, which includes every irreducible aperiodic chain on a finite state space. The ergodic theorem for Markov chains states that the chain has a unique stationary distribution π‾,\underline{\pi}, that its distribution converges to π‾\underline{\pi} from any initial distribution and that the values of π‾\underline{\pi} are the long-run proportions of time spent in each state.

lim⁡n→∞pij(n)=πj  ∀ i,j∈S,1n∑m=1n1{Xm=j}→a.s.πj\lim_{n\rightarrow\infty}p_{ij}^{(n)}=\pi_j\,\,\forall\,i,j\in S,\qquad\frac{1}{n}\sum_{m=1}^n\mathbf{1}_{\{X_m=j\}}\xrightarrow{a.s.}\pi_j

The second statement is a law of large numbers for dependent random variables. It extends to 1n∑m=1ng(Xm)→a.s.∑j∈Sπjg(j)\frac{1}{n}\sum_{m=1}^n g\left(X_m\right)\xrightarrow{a.s.}\sum_{j\in S}\pi_jg\left(j\right) for any gg with finite expectation under π‾,\underline{\pi}, which is the basis of methods that estimate expectations under π‾\underline{\pi} by simulating the chain.

Let PP be a transition matrix and π‾\underline{\pi} be a distribution on S.S. The distribution π‾\underline{\pi} satisfies the detailed balance equations with respect to PP if and only if the probability flow between every pair of states balances.

πipij=πjpji  ∀ i,j∈S\pi_ip_{ij}=\pi_jp_{ji}\,\,\forall\,i,j\in S

Let {Xn:n≥0}\left\{X_n:n\geq 0\right\} be a time-homogeneous Markov chain started from a distribution π‾\underline{\pi} that satisfies the detailed balance equations. The chain is reversible, meaning that it has the same finite-dimensional distributions run forwards or backwards in time. Detailed balance has the following properties:

  • a distribution satisfying the detailed balance equations is a stationary distribution;
  • detailed balance is easier to verify than stationarity, and is how Markov chain Monte Carlo algorithms are constructed to have a desired stationary distribution.

A continuous-time Markov chain is a continuous-time Markov process {Xt:t≥0}\left\{X_t:t\geq 0\right\} with countable state space whose sample paths are piecewise constant.

Let {Xt:t≥0}\left\{X_t:t\geq 0\right\} be a continuous-time Markov chain and qij≥0q_{ij}\geq 0 for i≠ji\neq j be its transition rates, with qi=∑j≠iqij.q_i=\sum_{j\neq i}q_{ij}. The holding time of the chain in state ii is the time it stays in ii before jumping, which is Exponential(qi).\mathrm{Exponential}\left(q_i\right). On leaving state ii the chain jumps to state j≠ij\neq i with probability qijqi.\frac{q_{ij}}{q_i}.

Let {Xt:t≥0}\left\{X_t:t\geq 0\right\} be a continuous-time Markov chain with transition rates qij.q_{ij}. The generator matrix of the chain is the matrix QQ with off-diagonal entries qijq_{ij} and diagonal entries −qi,-q_i, so that its rows sum to zero. The continuous-time Markov chain has the following properties:

  • the transition probabilities pij(t)=P(Xt=j∣X0=i)p_{ij}\left(t\right)=\mathbb{P}\left(X_t=j\mid X_0=i\right) satisfy P(t)=exp⁡(tQ)=∑n=0∞tnQnn!;P\left(t\right)=\exp\left(tQ\right)=\sum_{n=0}^{\infty}\frac{t^nQ^n}{n!};
  • a stationary distribution satisfies π‾Q=0‾;\underline{\pi}Q=\underline{0};
  • the Poisson process is the continuous-time Markov chain on {0,1,2,…}\{0,1,2,\ldots\} with qi,i+1=λq_{i,i+1}=\lambda and all other rates zero.