1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
|
---
title: "Detailed balance"
sort_title: "Detailed balance"
date: 2021-11-27
categories:
- Physics
- Mathematics
- Stochastic analysis
layout: "concept"
---
Consider a system that can be regarded as a
[Markov process](/know/concept/markov-process/),
which means that its components (e.g. particles) are transitioning
between a known set of states,
with no history-dependence and no appreciable influence from interactions.
At equilibrium, the principle of **detailed balance** then says that
for all states, the rate of leaving that state is exactly equal to
the rate of entering it, for every possible transition.
In effect, such a system looks "frozen" to an outside observer,
since all net transition rates are zero.
We will focus on the case where both time and the state space are continuous.
Given some initial conditions,
assume that a component's trajectory can be described
as an [Itō diffusion](/know/concept/ito-calculus/) $$X_t$$
with a time-independent drift $$f$$ and intensity $$g$$,
and with a probability density $$\phi(t, x)$$ governed by the
[forward Kolmogorov equation](/know/concept/kolmogorov-equations/)
(in 3D):
$$\begin{aligned}
\pdv{\phi}{t}
= - \nabla \cdot \big( \vb{u} \phi - D \nabla \phi \big)
\end{aligned}$$
We start by demanding **stationarity**,
which is a weaker condition than detailed balance.
We want the probability $$P$$ of being in an arbitrary state volume $$V$$
to be constant in time:
$$\begin{aligned}
0
= \pdv{}{t}P(X_t \in V)
= \pdv{}{t}\int_V \phi \dd{V}
= \int_V \pdv{\phi}{t} \dd{V}
\end{aligned}$$
We substitute the forward Kolmogorov equation,
and apply the divergence theorem:
$$\begin{aligned}
0
= - \int_V \nabla \cdot \big( \vb{u} \phi - D \nabla \phi \big) \dd{V}
= - \oint_{\partial V} \big( \vb{u} \phi - D \nabla \phi \big) \cdot \dd{\vb{S}}
\end{aligned}$$
In other words, the "flow" of probability *into* the volume $$V$$
is equal to the flow *out of* $$V$$.
If such a probability density exists,
it is called a **stationary distribution** $$\phi(t, x) = \pi(x)$$.
Because $$V$$ was arbitrary, $$\pi$$ can be found by solving:
$$\begin{aligned}
0
= - \nabla \cdot \big( \vb{u} \pi - D \nabla \pi \big)
\end{aligned}$$
Therefore, stationarity means that the state transition rates are constant.
To get detailed balance, however, we demand that
the transition rates are zero everywhere:
the probability flux through an arbitrary surface $$S$$ must vanish
(compare to closed surface integral above):
$$\begin{aligned}
0
= - \int_{S} \big( \vb{u} \phi - D \nabla \phi \big) \cdot \dd{\vb{S}}
\end{aligned}$$
And since $$S$$ is arbitrary, this is only satisfied if the flux is trivially zero
(the above justification can easily be repeated in 1D, 2D, 4D, etc.):
$$\begin{aligned}
\boxed{
0 = \vb{u} \phi - D \nabla \phi
}
\end{aligned}$$
This is a stronger condition that stationarity,
but fortunately often satisfied in practice.
The fact that a system in detailed balance appears "frozen"
implies it is **time-reversible**,
meaning its statistics are the same for both directions of time.
Formally, given two arbitrary functions $$h(x)$$ and $$k(x)$$,
we have the property:
$$\begin{aligned}
\boxed{
\mathbf{E}\big[ h(X_0) \: k(X_t) \big]
= \mathbf{E}\big[ h(X_t) \: k(X_0) \big]
}
\end{aligned}$$
{% include proof/start.html id="proof-reversibility" -%}
Consider the following weighted inner product,
whose weight function is a stationary distribution $$\pi$$
satisfying detailed balance,
where $$\hat{L}$$ is the Kolmogorov operator:
$$\begin{aligned}
\inprod{\hat{L} h}{k}_\pi
\equiv \int_{-\infty}^\infty \hat{L}\{h(x)\} \: \pi(x) \: k(x) \dd{x}
= \int_{-\infty}^\infty h(x) \: \hat{L}{}^\dagger\{\pi(x) k(x)\} \dd{x}
\end{aligned}$$
Where we have used the definition of an adjoint operator.
We would like to rewrite this:
$$\begin{aligned}
\hat{L}{}^\dagger \{\pi k\}
= -\nabla \cdot \big( \vb{u} \pi k - D \nabla(\pi k) \big)
= -\nabla \cdot (\vb{u} \pi k - D k \nabla \pi - D \pi \nabla k)
\end{aligned}$$
Since $$\pi$$ is stationary by definition,
we know that $$\nabla \cdot (\vb{u} \pi - D \nabla \pi) = 0$$,
meaning:
$$\begin{aligned}
\hat{L}{}^\dagger \{\pi k\}
= \nabla \cdot (D \pi \nabla k)
= \nabla \pi \cdot (D \nabla k) + \pi \nabla \cdot (D \nabla k)
\end{aligned}$$
Detailed balance demands that $$\vb{u} \pi = D \nabla \pi$$,
leading to the following:
$$\begin{aligned}
\hat{L}{}^\dagger \{\pi k\}
&= D \nabla \pi \cdot \nabla k + \pi \nabla \cdot (D \nabla k)
= \pi \vb{u} \cdot \nabla k + \pi \nabla \cdot (D \nabla k)
\\
&= \pi \big( \vb{u} \cdot \nabla k + \nabla \cdot (D \nabla k) \big)
= \pi \hat{L}\{k\}
\end{aligned}$$
Where we recognized the definition of $$\hat{L}$$
from the backward Kolmogorov equation.
Now that we have established that $$\hat{L}{}^\dagger\{\pi k\} = \pi \hat{L}\{k\}$$,
we return to the inner product:
$$\begin{aligned}
\inprod{\hat{L} h}{k}_\pi
= \int_{-\infty}^\infty h(x) \: \pi(x) \: \hat{L}\{k(x)\} \dd{x}
= \inprod{h}{\hat{L} k}_\pi
\end{aligned}$$
Consequently, the following weighted inner products must also be equivalent:
$$\begin{aligned}
\Inprod{\exp(t \hat{L}) h}{k}_\pi
= \Inprod{h}{\exp(t \hat{L}) k}_\pi
\end{aligned}$$
Now, consider the time evolution of the
[conditional expectation](/know/concept/conditional-expectation/)
$$\mathbf{E}\big[ k(X_t) | X_0 \big]$$:
$$\begin{aligned}
\pdv{}{t}\mathbf{E}\big[ k(X_t) | X_0 \big]
&= \pdv{}{t}\int_{-\infty}^\infty k(x) \: \phi(t, x) \dd{x}
= \int_{-\infty}^\infty k \pdv{\phi}{t} \dd{x}
\\
&= \int_{-\infty}^\infty k \: \hat{L}{}^\dagger\{\phi\} \dd{x}
= \int_{-\infty}^\infty \hat{L}\{k\} \: \phi \dd{x}
= \mathbf{E}\big[ \hat{L}\{k(X_t)\} | X_0 \big]
\end{aligned}$$
Where we used the forward Kolmogorov equation
and the definition of an adjoint operator.
Therefore, since the expectation $$\mathbf{E}$$
does not explicitly depend on $$t$$ (only implicitly via $$X_t$$),
we can naively move the differentiation inside
(only valid within $$\mathbf{E}$$):
$$\begin{aligned}
\pdv{}{t}\mathbf{E}\big[ k(X_t) | X_0 \big]
= \mathbf{E}\bigg[ \pdv{k(X_t)}{t} \bigg| X_0 \bigg]
= \mathbf{E}\bigg[ \hat{L}\{k(X_0)\} \bigg| X_0 \bigg]
\end{aligned}$$
A differential equation of the form $$\ipdv{k}{t} = \hat{L}\{k(t, x)\}$$
for a time-independent operator $$\hat{L}$$
has a general solution $$k(t, x) = \exp(t \hat{L})\{k(0,x)\}$$,
therefore:
$$\begin{aligned}
\mathbf{E}\big[ k(X_t) \big| X_0 \big]
= \mathbf{E}\big[ \exp(t \hat{L})\{k(X_0)\} \big| X_0 \big]
= \exp(t \hat{L})\{k(X_0)\}
\end{aligned}$$
With this, we can evaluate the two weighted inner products from earlier,
which we know are equal to each other.
Using the *tower property* of the conditional expectation:
$$\begin{aligned}
\Inprod{h}{\exp(t \hat{L}) k}_\pi
&= \mathbf{E}\big[ h(X_0) \: \mathbf{E}[k(X_t) | X_0] \big]
= \mathbf{E}\big[ h(X_0) \: k(X_t) \big]
\\
= \Inprod{\exp(t \hat{L}) h}{k}_\pi
&= \mathbf{E}\big[ \mathbf{E}[h(X_t) | X_0] \: k(X_0) \big]
= \mathbf{E}\big[ h(X_t) \: k(X_0) \big]
\end{aligned}$$
Where the integral gave the expectation value at $$X_0$$,
since $$\pi$$ does not change in time.
{% include proof/end.html id="proof-reversibility" %}
## References
1. U.H. Thygesen,
*Lecture notes on diffusions and stochastic differential equations*,
2021, Polyteknisk Kompendie.
|