Applied Probability - F26 - Lecture 16
Overview
Arash Amini develops Markov chain Monte Carlo from the invariant-distribution condition through detailed balance and the Metropolis-Hastings acceptance rule. He shows how the rule makes a target distribution invariant, analyzes convergence for a two-state chain with stationary probabilities 2/3 and 1/3, then derives the continuous-time analogue using exponential holding times and a differential equation.
Key takeaways
- For a finite Markov chain, π is invariant exactly when πQ = π, meaning one transition leaves the distribution unchanged.
- Detailed balance, πᵢqᵢⱼ = πⱼqⱼᵢ, is a pairwise flow condition that implies invariance and makes the chain reversible with respect to π.
- Metropolis-Hastings samples from a target proportional to w without computing its normalizer, using acceptance probability min(1, π(y)r(y,x)/[π(x)r(x,y)]).
- In the two-state chain with rates 0→1 of 1/4 and 1→0 of 1/2, the invariant probabilities are 2/3 and 1/3; discrete-time error contracts by 1/4 per step.
- For the continuous-time two-state chain, the probability of state 1 converges to a/(a+b) at exponential rate a+b, so the initial-state error is δ(0)e^(−(a+b)t).
- An invariant distribution does not by itself guarantee convergence: a chain that never moves preserves every distribution, so convergence and uniqueness require additional analysis.
Chapters
- A discrete-time Markov chain has the property that the next state depends on the past only through the current state.
- For a finite state space, transition probabilities are represented by a matrix; for general spaces, they are represented by a probability kernel.
- A distribution π is invariant when starting a step with distribution π produces the same distribution after applying the transition kernel.
- For a finite chain, the next-state distribution is the row vector π multiplied by the transition matrix Q.
- The invariance equation is πQ = π; for a general state space, the corresponding operation is integration against the kernel.
- Combining the current distribution with the transition rule gives the joint distribution of consecutive states, which can be marginalized to obtain the next-state distribution.
- At stationarity, the total probability mass arriving at any state J balances the mass leaving J.
- Incoming mass from state I is πᵢqᵢⱼ; outgoing mass from J to other states is πⱼqⱼᵢ.
- For the two-state example, π = (2/3, 1/3), with transition rates 1/4 from 0 to 1 and 1/2 from 1 to 0, balances the flow in both directions.
- Detailed balance requires πᵢqᵢⱼ = πⱼqⱼᵢ for every pair of states, matching probability flow in each direction.
- This pairwise condition is stronger than requiring only total inflow and outflow to balance at each state.
- Detailed balance implies invariance and is also called reversibility with respect to π.
- If X₀ has distribution π and detailed balance holds, the joint distribution of (X₀, X₁) is unchanged when the two states are swapped.
- Invariance alone guarantees that X₁ also has distribution π, but does not guarantee symmetry of the joint distribution.
- An invariant distribution identifies a candidate long-run law; convergence from other starting distributions requires a separate argument.
- The Metropolis algorithm aims to sample from a target density proportional to w(x), without needing its normalizing constant Z.
- From state x, draw a proposal y from a symmetric density, such as a Gaussian centered at x with covariance s²I.
- Accept the proposal with probability min(1, w(y)/w(x)); otherwise remain at x.
- A proposal into a higher-density region is accepted with probability 1; a proposal into a lower-density region may be rejected.
- For a two-state target with probabilities 2/3 and 1/3, a symmetric proposal accepts moves toward the 2/3 state more readily.
- The acceptance rule adjusts the transition behavior so the target distribution can be invariant.
- When the proposal density is asymmetric, Metropolis-Hastings includes a correction for the forward and reverse proposal probabilities.
- The standard acceptance probability is min(1, π(y)r(y,x) / [π(x)r(x,y)]), where r(x,y) is the proposal density.
- Ignoring proposal asymmetry can bias movement; correcting for it may also lower acceptance and slow sampling.
- The transition kernel combines accepted proposals, with density r(x,y)α(x,y), and a point mass at x for rejected proposals.
- The probability of remaining at x is the leftover mass after integrating the accepted-proposal density.
- Keeping both accepted moves and rejections in the kernel ensures each transition row has total probability one.
- Multiplying the accepted-transition density by π(x) makes the acceptance rule reduce to a symmetric expression in x and y.
- Swapping x and y gives the same probability flow, establishing detailed balance for accepted moves.
- The rejection term is supported on x = y and is also balanced, so the full kernel preserves π.
- For the example with π = (2/3, 1/3), let pₙ be the probability that the chain is in state 1 at step n.
- Using the transition probabilities gives pₙ₊₁ = (1/4)(1 − pₙ) + (1/2)pₙ.
- Subtracting the stationary value 1/3 shows the error contracts by a factor of 1/4 per step, regardless of the initial distribution.
- A chain that never moves preserves every starting distribution, so invariance alone does not establish convergence to a unique target.
- Convergence depends on how quickly the chain forgets its initial state; proposal quality and acceptance frequency affect that speed.
- The two-state example converges from every initial distribution, which also establishes uniqueness of its invariant distribution.
- A continuous-time chain can be described by exponential holding times followed by jumps between states.
- In the two-state example, the jump rate from 0 to 1 is a = 1/4, and the rate from 1 to 0 is b = 1/2.
- For a small time interval h, the probability of a jump from a state with rate a is approximately ah, with higher-order terms omitted.
- Let p(t) be the probability of occupying state 1 at time t; conditioning on the state at time t yields its short-time evolution.
- The resulting differential equation is p′(t) = a(1 − p(t)) − bp(t), accounting for jumps into and out of state 1.
- Setting p′(t) = 0 gives the stationary probability p* = a/(a+b), equal to 1/3 for rates 1/4 and 1/2.
- The deviation from stationarity satisfies δ′(t) = −(a+b)δ(t), so δ(t) = δ(0)e^(−(a+b)t).
- For a = 1/4 and b = 1/2, the continuous-time stationary distribution is again (2/3, 1/3), and the effect of the initial distribution decays exponentially.
- Multiple jumps within a short interval can occur, but two or more jumps contribute higher-order terms in h; the next lecture generalizes convergence analysis to finite state spaces.
Transcript excerpt
0:01 Okay. Um so hopefully this will record um what we did last time uh started talking about um the idea of markoff chains and also the idea of markoff chain Monte Carlo. So um let me just remind you a markoff chain is a sequence uh of um random variables that uh satisfy this conditional independence property. So the the probability uh distribution of x n + one given everything up to time n uh is independent of the past. This is the past uh given the present. So it only depends on the connected next state depends on the current state. This is kind of a
0:49 time homogeneous markoff chain or discrete time markoff chain. I'm going to hopefully talk about like the continuous version continuous time version. um maybe hopefully today uh it's easier to understand convergence in the continuous time case. So this in the case where you have a finite space so in general there's a like a general status space it could be like a measure space E or measurable space E and some sort of a sigma algebra uh and these take values there. uh we work for now with very very simple status spaces. uh like E would be 01 and so like sigma field will be the sigma field of all possible events there and so we looked at uh a particular
1:40 chain um and so like a markoff chain is described by a kernel um um this is a like a probability kernel but in the case of discrete um or finite state spaces you can kind of reduce it to a matrix Right. So we talked about this um there's going to be a matrix that describe the probability of transitioning from I to state J in the next state and from that you get get
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, ARASH AMINI.