Random Processes
Last updated
Last updated
The random variables in a stochastic process do not have to be independently and identically distributed. In fact, if they are not, then we can get additional modeling power.
Stationarity is often a good assumption that can simplify systems which have been running for a long period of time.
In words, a Markov Chain is a sequence of random variables satisfying the Markov Property where probability of being in a state during the next time step only depends on the current state.
Temporally Homogenous Markov Chains don’t change their transition probabilities over time. Since the are conditional probabilities, they must satisfy
The transition matrix encodes the one-step transition probabilities of the Markov Chain.
One useful thing we can comptue with Markov Chain is when the chain first enters a particular state.
Computing the expected hitting time is an example of a broader type of Markov Chain Analysis called First Step Analysis. In First Step Analysis, we set up a system of equations that relies on the Markov property to generate a system of equations that only look at the first transition in the chain. For expected hitting time, these look like
A class property is a property where if one element of a class has the property, all elements of the class have the property. Markov Chains have several of these properties which allow us to classify states.
Recurrence means that we will visit a state infinitely often in the future if we start in that state, while transience means we will only visit the state finitely many times. Recurrence and transience can be easily identified from the transition diagram.
Any finite communicating class which has no edges leaving the class is recurrent
If a state has an edge leading outside its communicating class, then it is transient
If a state is recurrent, then any state it can reach is recurrent
Positive recurrence means we visit a recurrent state so frequently that we spend a positive fraction of time in that state. Null recurrencce means we visit a recurrent state so infrequently (but still infinitely many times) that we spend virtually no time in that state.
All of the above properties are class properties.
Theorem 30 is one useful result can help solve for stationary distributions.
To characterize how a CTMC functions, we need to define some additional quantities.
Essentially, every time we enter a state, we set an alarm clock for all other states, and then jump to the state whose alarm clock goes off first. This equivalent interpretation allows us to summarize a CTMC using the rate matrix.
Just like in DTMCs, we can classify states in the CTMC.
CTMCs also have stationary distributions.
The stationary distribution of the CTMC is also related to the jump chain, but we need to normalize for the hold times.
It turns out that
There are two important metrics which describe counting processes.
The name Poisson comes from the distribution of each varible in the process.
Poisson Processes are the only counting processes with these particular properties.
It turns out that Poisson Processes can be connected with the Order Statistics of Uniform Random Variables.
Two other useful properties of Poisson Processes involve combining and separating them.
The transition matrix of a Markov Chain is a matrix where the ijth entry for all .
The n-step transition probabilities (i.e starting in and ending in steps later) of the Markov Chain are given by .
For a , the hitting time of is given by
For ,
For ,
If such that , then is accessible from , and we write .
States and communicate with each other when and . We write this as .
By convention, we say that . It turns out that is an equivalence relation on the state space . An equivalence relation means that
This means that partitions the state-space into equivalence classes (i.e classes of communicating states).
A Markov Chain is irreducible if is the only class.
An irreducible Markov Chain is reversible if and only if there exists a probability vector that satisfies the Detailed Balance Equations
Markov Chains which satisfy the detailed balance equations are called reversible because if , then the random vectors and are equal in distribution.
A state is recurrent if given that , the process revisits state with probability 1.
A state is is transient if it is not recurrent.
We can further break recurrence down if we modify the definition of hitting time to be (the first time the chain enters state ).
State is positive recurrent if it is recurrent and is finite.
State is null recurrent if it is recurrent and is infinite.
For a state , we define the period of the state to be
If we start in state , then revists to only occur at integer multiples of the period.
Since the completely characterize the Markov Chain, we can also describe what happens to the chain in the limit.
A probability distribution over the states is a stationary distribution if
It is called a stationary distribution because the distribution over states is invariant with time. A Markov Chain is only at stationarity if and only if it has been started from the stationary distribution. The relationship can be expanded for the jth element to show that any stationary distribution must satisfy the Global Balance Equations:
Note that if a distribution satisfies the detailed balance equations from Definition 56, then also satisfies Definition 63.
Both the global balance equations and detailed balance equations can be conceptualized as statements of flow. If each indicates how much mass is placed on state , then the global balance equations tell us the mass leaving the node (going to each neighbor in proportion to ) is equal to the mass entering the node (which must sum to since it is a stationary distribution. Rather than looking at the flow of the whole chain, the detailed balance equations look at the flow between two states. The mass gives to is equal to the mass gives to .
Let be an irreducible Markov Chain. Then one of the following is true.
Either all states are transient, or all states are null recurrent, and no stationary distribution exists, and .
If the Markov Chain is aperiodic, then
One consequence of Theorem 31 is that it means the stationary distribution of a reversible Markov Chain is unique. This makes solving the detailed balance equations a good technique of solving for the stationary distribution. If a stationary distribution exists, then we can also say when the chain will converge to the stationary distribution.
If a chain is irreducible, positive, recurrent, and aperiodic with stationary distribution , then the distribution at time
A process taking values in a countable state space is a temporally homogenous continuous time markov chain if it satisfies the Markov Property
is the transition rate of state
is the transition probability bewteen states and
Every time a CTMC enters a state , it will hold in that state for time before transitioning to the next state with probability .
Note that the jump chain cannot have self-loops () because otherwise the amount of time spent in state would not be exponentially distributed. An alternative interpretation of a CTMC is
Define jump rates
On entering state , jump to where for all and are independent from each other.
Following from the first interprentation, all entries of are non-negative, and the rows must sum to 0. One useful quantity which we can define is how long it takes to come back to a particular state.
The time to first re-entry of state is
Since a CTMC is essentially a DTMC where we hold in each state for an exponential amount of time, we can apply First Step Analysis in essentially the same way that we do for DTMCs. In fact, hitting probabilities will look exactly the same since we can just use the jump chain to comute the transition probabilities. The only differences will arise when we consider the time dependent quantities. For hitting times (how long it takes to enter a state from ),
If
If
States and communicate with eachc other if and communicate in the jump chain.
State is transient if given , the process enters finitely many times with probability 1. Otherwise, it is recurrent.
A state is positive recurrent if its time to first re-entry is finite, and null recurrent otherwise.
A probability vector is a stationary ditribution for a CTMC with rate matrix if
If is a stationary distribution for a CTMC, then the stationary distribution of the jump chain is given by
To describe how a CTMC behaves over time, first define and .
All states are transient or null recurrent, no stationary distribution exists, and
Let denote the matrix of transition probabiltiies at time . By the Markov property, we know that . For . This approximation allows us to compute the derivative of .
Theorem 35 tells us that the transition probabilties for all . This is why Q is sometimes called the generator matrix: it generates the transition probabilities. However, matrix exponentials are difficult to compute. Instead, we can turn to Uniformization, which allows us to estimate by simulating it through a DTMC.
Given a CTMC where such that for all . Fix a , and the uniformized chain will be a DTMC with transition probabilities and .
when is small. This means that we can approximate the transition probabilties of the CTMC using the uniformized chain. Observe that uniformization also helps in finding the stationary distribution since the stationary distribution of the uniformized chain is identical to the original chain.
A counting process is a non-decreasing, continuous time, integer valued random process which has right continuous sample paths.
The ith arrival time is given by
The ith inter-arrival time is given by
A rate Poisson Process is a counting process with independently and identically distributed inter-arrival times .
If is a rate Poisson Process, then for each ,
A Poisson Process is a special case of a CTMC where the transition rates and the transition probabilties are 1 if and 0 otherwise. Since the inter-arrival times are memoryless and i.i.d, Poisson Processes have many useful properties.
If is a rate Poisson Process, then is also a rate Poisson Process for all and is independent of the original process.
For , then the increments of a rate Poisson Process are independent and
Conditioned on , the random vector has the same distribution as the order statistics of random variables .
What Theorem 39 says is that given arrivals up to time occur, the distribution of arrival times is equivalent to taking i.i.d uniform random variables and sorting them.
If and are independent Poisson Processes with rates and , then is a Poisson Process with rate .
Let be a probability distribution and be a rate Poisson process. If each arrival is marked with the label independently with probability , then , the process counting the number of arrivals labeled is an independent Poisson Process with rate .