Random processes

Definition (random process, random walk) open_in_new

A random process is a sequence $(X_n:n\geq 0)$ of random variables.

A random walk is a random process $(X_n: n\geq0)$ that has the form $$ X_n = x+Y_1 + \ldots + Y_n $$ where constant $x$ is the initial value and $(Y_n: n\geq 1)$ are a sequence of independent identically distributed random variables.

Gambler's ruin open_in_new

Consider a random walk where at each step $k$, $$ \prob(Y_k = +1) = p, \quad \prob(Y_k = -1) = 1-p \equiv q. $$ The gambler will walk away either when $X_n = a$ or 0.

The key is to see that if we condition on the first step, say $Y_1=1$, then $(X_{n+1})_{n\geq 0}$ is again a simple random walk with the same step distribution.

Denote $\prob_x$ and $\expect_x$ for probability and expectation regarding initial value $x$, and $$ T = \min\sb{n\geq 0}{X_n=0\text{ or } a}. $$

Proposition (gambler's ruin almost always terminates) open_in_new

The process almost always terminates, i.e. $\prob(T<\infty) = 1$. (Derivation)

Prbability of success in gambler's ruin open_in_new

Let the probability of success be $h_x = \prob(X_T=a)$.

For $x=1,2,\ldots,a-1$, using the law of total probability $$ \begin{align*} h_x &= \prob(Y_1=1)\prob(X_T=a|Y_1=1)+\prob(Y_1=-1)\prob(X_T=a|Y_1=-1) \\ &= ph_{x+1} + qh_{x-1} \end{align*} $$ and boundary condition is $$ h_0 = 0, \quad h_a=1. $$ Solving (derivation), $$ h_x = \begin{cases} \dfrac ax, &p=\dfrac12, \\ \dfrac{1-(p/q)^x}{1-(p/q)^a}, &p\neq\dfrac12. \end{cases} $$

Mean time to absorption in gambler's ruin open_in_new

Let the mean time to absorption be $\tau_x = \expect_x(T)$.

For $x=1,2,\ldots,a-1$, using the law of total expectation, $$ \begin{align*} \tau_x &= \prob(Y_1=1)\expect(X_T=a|Y_1=1)+\prob(Y_1=-1)\expect(X_T=a|Y_1=-1) \\ &= p(1+\tau_{x+1}) + q(1+\tau_{x-1}) \\ &= 1+p\tau_{x+1} + q\tau_{x-1}. \end{align*} $$ and boundary condition is $$ \tau_0 = 0,\quad \tau_a = 0. $$ Solving (Derivation), $$ \tau_x = \begin{cases} x(a-x),& p=\dfrac12,\\ \dfrac{x}{q-p}-\dfrac{a}{q-p}\dfrac{(q/p)^x - 1}{(q/p)^a-1},& p\neq\dfrac12. \end{cases} $$

Branching process open_in_new

This is to model a population, with $X_n$ being the size of the population in generation $n$, and $Y_{k,n}$ is the number of offspring of the $k$-th individual in generation $n$.

Definition (branching process) open_in_new

A random process $(X_n: n\geq 0)$ is a branching process (Galton-Watson process) if it is in the form $$ X_0 = 1, \quad X_{n+1} = \fsum n1{X_n} Y_{k,n} $$ for some array array $(Y_{k,n}: k\geq1, n\geq0)$ of independent and identically distributed non-negative integer-valued random variables. (The distribution is called the offspring distribution.)

Mean population of branching process open_in_new

Set $\mu=\expect(X_1)$. Conditioning on $X_n$, $$ \expect(X_{n+1}|X_n=m) = \expect(Y_{1,n}+\ldots+Y_{m,n}) = m\mu $$ so using the law of total expectation, $$ \begin{align*} \expect(X_{n+1}) &= \fsum m0\infty \expect(X_{n+1}|X_n=m)\,\prob(X_n=m) \\ &= \mu\fsum m0\infty m\prob(X_n=m) \\ &= \mu\expect(X_n). \end{align*} $$ Applying the boundary condition of $\expect(X_0)=1$, we have $\expect(X_n)=\mu^n$.

Generating function of branching process open_in_new

Generating function: let $F(t) = \expect(t^{X_1})$ and $F_n(t)=\expect(t^{X_n})$. Then using the result about random sums, $$ F_n(t) = F_{n-1}\big(F(t)\big) = \ub{F\circ F\circ\ldots\circ F}_\text{$n$-fold composition}(t). $$

A feature to exploit is that if we condition on $\set{X_1=m}$, the descendants of any individuals in generation 1 is another branching process.

Extinction probability of branching process open_in_new

Let $q_n = \prob(X_n=0)$ and the extinction probability $q=\prob(X_n=0\text{ for some } n\geq0)$. Since $\set{X_1=0}\subseteq\set{X_2=0}\subseteq\ldots$ and $\bigcup_n \set{X_n=0} = \set{X_n=0\text{ for some } n\geq 0}$, by continuity of probability, $q_n\to q$.

Note that $$ q_n = \prob(X_n=0) = F_n(0)=\ub{F\circ F\circ\ldots\circ F}_\text{$n$-fold composition}(0).$$ Alternatively we can condition on the first generation $$ \begin{align*} q_n &= \fsum m0\infty \prob(X_1=m)\prob(X_n=0|X_1=m) \\ &= \fsum m0\infty \prob(X_1=m) q_{n-1}^m = F(q_{n-1}) \end{align*} $$ since $\set{X_n=0|X_1=m}$ means that each of the descendants of the $m$ individuals in generation 1 go extinct, which are independent events.

And using analysis (Derivation), $q$ is the smallest non-negative solution of $q=F(q)$. Also if $\prob(X_1=1)<1$, then $q<1$ iff $\mu=\expect(X_1)>1$.

Random walk from branching process open_in_new

List the individuals in increasing order. Set $S_0=1$, and for $n\geq 1$ let $S_n$ for the number of offspring of all visited individuals who have not yet been visited (think about breadth-first search).

Then the jumps of $(S_n:n\geq0)$ are independent with the same distribution as $X_1-1$.