【智应数】Markov chains
Markov Chain & Stationary Distribution#
Def(Finite Markov Chain). Let
if
Given the initial distribution
Def. A distribution
Lem(Brouwer's fixed point theorem). Every continuous map
Thm(Perron-Frobemins thm). Any Markov chain over finite states has a stationary distribution.
Pf. Let
Def. A finite Markov chain is irreducible (connected) if
Thm(Fundamental Theorem of Markov Chains). Any connected Markov chain has a unique stationary distribution
Pf. Suppose
Def(Reversed Markov Chain). Given a Markov Chain
Def. If
Markov Chain Monte Carlo#
Given a distribution
MCMC method:
- Design
s.t. . - Generate
. is transferred from according to . - Calculate
as an estimate of .
Let
Consider a graph
To ensure the time complexity, the degree of vertices in
To ensure the convergence rate, the diameter of
For example, if
Metropolis-Hasting Algorithm
here
Lem(Detailed balance equation). For a given transition matrix
then
Ex. Given a graph
Solution: Define
Gibbs Sampling
Intuitively, choose a variables
Mixing time#
Def. The total variation distance between two distributions
Prop.
Let
Lem 1.
Lem 2.
Pf.
Cor. For any positive integer
Def. The mixing time of a Markov chain is
remark:
Random Walks on Undirected Graphs
Given an edge-weighted undirected graph, let
Let
Thm. If Markov chain is reversible, finite, aperiodic, then for
where
Takeaway:
Def 4.2. For a subset
Def 4.3. The normalized conductance of a Markov chain is
Thm(Cheeger's Inequality). Let
Combined with the previous theorem,
Thm 4.5.
Ex(1-D lattice). Let
Since it's periodic, we can make the process aperiodic by being "lazy":
Let
Ex(2-D lattice). Let
Remark: 2-D lattice mixes faster than 1-D lattice and is better connected.
Ex(clique).
Coupling
Def. A coupling of Markov chain with transition
- If
then for .
Thm. Assume
Remark:
Ex(1-D lattice).
The coupling constructed:
Ex(hypercube).
The coupling constructed: Pick a random coordinate
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· winform 绘制太阳,地球,月球 运作规律
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)