Chapter 4:Stochastic processes Flashcards
Definition 4.0.1 A stochastic process
A stochastic process (in discrete time) is a sequence (S_n)_n=0 ^infinity or (Xn)^∞_n=0 of random variables. We think of n as ‘time’.
eg a sequence of i.i.d. random variables is a stochastic process, A martingale is
a stochastic process. A Markov chain is a stochastic
process
filtrations:
- every stochastic process has a filtration:
For any stochastic process (X_n) the natural or generated filtration of (Xn) is the filtration
given by
F_n = σ(X_1, X_2, . . . , X_n).
- if filtration isnt stated we assume this one
- depends on bahaviour up until time n only
Random walks
Random walks are stochastic processes that ‘walk around’ in space. We think of a particle that moves between vertices of Z. At each step of time, the particle chooses at random to either move up or down, for example from x to x + 1 or x − 1.
Symmetric random walk
Let (Xi)^∞_i=1 be a sequence of i.i.d. random variables where
P[Xi = 1] = P[Xi = −1] = 1/2
The symmetric random walk is the stochastic process
Sn = sum from i=1 to n of
[X_i]
X_0=0/ S_0=0 by convention.
We have shown S_n/X_n is a martingale already, wrt generated filtration.
we see its symmetric as S_n and -S_n have the same distribution.
sample path
A sample path of Sn, which means a sample of the
sequence S0, S1, S2, . . ., might look like:
graph of time against R values. Dots with lines after , for intervals [0,1),[1,2),..
no drift is shown ie stays relatively close to 0.
Asymmetric random walk
Let (Xi)^∞_i=1 be a sequence of i.i.d. random variables.
Let p + q = 1 with p, q ∈ [0, 1], p ≠ q and suppose that P[X_i = 1] = p, P[X_i = −1] = q.
The asymmetric random walk is the stochastic process
Sn =sum from i=1 to n of
[X_i]
*p ≠ q means neither can be 1/2 ie no fairness
if p is bigger than q then more likely up
(X_n) is not a martingale. By lemma 2.2... E[S_n] = sum from i=1 to n of E[X_i] = sum from i=1 to n of [1p + (-1)q] = n(p-q) ≠ 0 = E(M_0)
(E(M_0)=0)
so by this its not martingale
eg graph as before but with upward drift, tendency to move up on average
Lemma 3.3.6 confirms that Sn is not a martingale.
Restoring fairness:
Lemma 3.3.6 confirms that Sn is not a martingale.
However, the process Mn = Sn − n(p − q) is a martingale the term n(p−q) compensates for the drift and ‘restores fairness’.
SUBTRACT OFF THE DRIFT:
checking (M_n) is a martingale:
(M1) Since X_i∈ mFn for all i ≤ n, by Proposition
2.2.6 we have Sn − n(p − q) ∈ mFn.
So M_n is adapted
(M2) Since |Xi| ≤ 1 we have |M_n|= |Sn − n(p − q)| (by triangle rule) ≤ |Sn| + n|p − q| (as S_n is less than or equal to sum of all X_i's)
≤ n + n|p − q| less than infinity
and hence Mn is bounded, so Mn ∈ L^1
(M3) E[M_{n+1}|F_n] = E[(S_{n+1} − (n + 1)(p − q))| Fn] (S_{n+1} =X{n+1}+S_n)
= E[X{n+1}+S_n | F_n] − (n + 1)(p − q)
(by linearity and expectation of constant=constant)
= E[X_{n+1} | Fn] + E[Sn | Fn] − (n + 1)(p − q)
(as X_{n+1} is indep of F_n)
= E[Xn+1] + Sn − (n + 1)(p − q)
(X_{n+1} exp is p-q)
(neg term compensates for drift)
= (p − q) + S_n − (n + 1)(p − q)
= S_n − n(p − q)
=M_n
Therefore E[Mn+1 | Fn] = Mn, and (Mn) is a martingale.
URN PROCESSES:
P´olya urn
just a single urn (i.e. bag) that contains balls of two different colours.
At time 0, an urn contains 1 black ball and 1 red ball.
Then, for each n = 1, 2, . . . , we generate the state of the urn at time n by doing the following:
- Draw a ball from the urn, look at its colour, and return this ball to the urn.
- Add a new ball of the same colour as the drawn ball.
So, at time n (which means: after the nth iteration of the above steps is completed) there are n + 2 balls in the urn.
This process is known as the P´olya urn
Notes on urn process:
B_n=#red balls in the urn at time n,
and note that
B_0 = 1.
Set (Fn) to be the filtration generated by (B_n).
(#black balls= 2+n-B_n)
Is B_n a martingale?
Martingales should increase as much as they decrease but B_n only ever increases.
The reason is that over time we will put more and more red balls into the urn, so the number of red balls drifts upwards over
time:
E[B_{n+1}| F_n] is bigger than B_n so not a martingale.
E[B_{n+1}| F_n] =
E[(B_{n+1}1{(n+1)th draw is red} + B{n+1}1{(n+1)th draw is black})| F_n]
=
E[B{n+1}1{(n+1)th draw is red}| F_n] + E[B{n+1}1{(n+1)th draw is black}| F_n]
(by conditioning)
=
E[(B{n}+1)1{(n+1)th draw is red}| F_n] + E[B_n1{(n+1)th draw is black}| F_n]
(n+1 draw black or red cases, B_n ∈mF_n and 1_{(n+1)th draw is black} is not F_n measurable as randomness after time n
=(B_n +1)E[1{(n+1)th draw is red}| F_n] +
B_nE[1{(n+1)th draw is black}| F_n]
( probability of black given the state of time n = (n+2-B_n)/(n+2) = 1 - (B_n)/(n+2)
and
prob of red given state till n is B_n/(n+2))
= (Bn + 1) [B_n/(n + 2)] \+ B_n(1 − [B_n/(n + 2)]) = [B_n(n + 3)]/(n+2) bigger than B_n
(as (n+3)/(n+2) bigger than 1)
Is B_n a submartingale?
We do have Bn ∈ mFn and since 1 ≤ Bn ≤ n+2 we also have Bn ∈ L^1, so Bn is a submartingale,
but Bn is not a martingale:
M1: B_n ∈mF_n
M2: 1 ≤ Bn ≤ n+2 sp B_n bounded Bn ∈ L^1
M3: submartingale version
related martingale to urn process B_n:
Let
Mn = B_n/(n + 2)
Then M_n is the proportion of balls in the urn that are red, at time n. Note that M_n ∈ [0, 1].
We can think of the extra factor n + 2, which increases over time, as an attempt to cancel out the upwards drift of B_n:
E[(B_n/(n + 2)) |F_n]
= B_n/(n+2) less than B_n so M3 satisfied for martingale.
NOTE:
E[Mn+1 | Fn] = E[M_{n+1}1{(n+1)th draw is red} | Fn]
+ E[M_{n+1}1{(n+1)th draw is black}| Fn]
= E[(B_n + 1)/(n + 3) 1{(n+1)th draw is red}| Fn)
+ E[B_n/(n + 3) 1{(n+1)th draw is black}| Fn]
=
(B_n + 1)/(n + 3)E[1{(n+1)th draw is red}| F_n]
+
B_n/(n + 3)E[1{(n+1)th draw is black}| Fn]
= [(B_n + 1)/(n + 3)][B_n/(n + 2)] \+ [B_n/(n + 3)] [1 −(B_n)/(n + 2)) = [(B_n^2+ B_n)/((n + 2)(n + 3))] + [(n + 2)B_n − B_n^2/((n + 2)(n + 3))] = [(n + 3)B_n)/((n + 2)(n + 3))] = B_n/(n+2)
We can think of Mn =
B_n/(n+2) as a compensation mechanism; Bn tends to increase, and we
compensate for this increase by dividing by n + 2.
Fairness: note on martingale and urn process
It is clear that the symmetric random walk is fair; at all times it is equally likely to move up as
down. The asymmetric random walk is not fair, due to its drift (4.2), but once we compensate
for drift in (4.3) we do still obtain a martingale.
Then urn process requires more careful thought. For example, we might wonder:
Suppose that the first draw is red. Then, at time n = 1 we have two red balls and one
black ball. So, the chance of drawing a red ball is now 2/3. How is this fair?!
*the quantity which is a martingale is Mn, the proportion of red balls in the urn.
*Secondly, suppose that the first draw is indeed red. So, at n = 1 we have 2 red and 1 black, giving a proportion of 2/3 red and 1/3 black. The expected fraction of red balls after the next
(i.e. second) draw is (2/3). [(2+1)/4] + (1/3)(2/4) = (6+2)/12 =2/3
which is the proportion of red balls at n=1
- note that it is equally likely that, on the first go, you’d pick out a black. So, starting
from n = 0 and looking forwards, both colors have equally good chances of increasing their own
numbers. In fact, if we were to pretend, right from the start, that black was red, and red was
black, we would see the same urn process. This type of fairness is known as symmetry. We’ve
seen that Bn tends to increase (because we keep adding more balls), and we can think of Mn as
a way of discovering the fairness ‘hiding’ inside of Bn. - The fact that Mn
is a martingale does not prevent us from (sometimes) ending up with many more red balls than
black, or vice versa. It just means that, when viewed in terms of Mn, there is no bias towards
red of black inherent in the rules of the game.
being a Martingale is about fairness in the future not fairness in the past
A branching process
The Galton-Watson process is parametrized by a random variable G, which is known as the offspring distribution. It is simplest to understand the Galton-Watson process by drawing a
tree, for example:
tree diagram with different amounts of offspring per vertex
Z_0=1, Z_1=2, Z_2=5 Z_3=6…
one offspring has 2 offspring which have a total of 5 offspring (one has 3, other has 2) which have a total of 6 offspring (0,2,1,0,3),…
The Galton-Watson process is the process Zn, where Zn is the number of dots in
generation n.
Formally define Galton-Watson process:
Let X_i^n, where n, i ≥ 1, be
i.i.d. nonnegative integer-valued random variables with common distribution G.
Define a sequence (Z_n) by Z_0 = 1 and
Zn+1 =
{X_1 ^{n+1} + . . . + X_{Z_n}^{n+1}, if Z_n > 0
{0, if Z_n = 0
Then Z is the Galton-Watson process. The random variable X_i^n
represents the number of
children of the ith parent in the nth generation.
Note that if Z_n = 0 for some n, then for all m > n we also have Z_m = 0.