Averaging dynamics on graphs #
In every round each node replaces its value by the average of its neighbours' values (the
expectation of the value at one step of the random walk). The degree-weighted sum of the values
is conserved, values stay within the initial range, and on a connected graph containing an odd
closed walk (i.e. a connected non-bipartite graph) every node's value converges to the
degree-weighted average ∑ deg v · x v / ∑ deg v of the initial values. On a connected bipartite
graph with at least two nodes this fails: the values ±1 of a proper 2-colouring alternate forever.
One round of averaging: every node takes the average of its neighbours' values.
Equations
- Averaging.avgStep G x v = (∑ u ∈ G.neighborFinset v, x u) / ↑(G.degree v)
Instances For
t rounds of averaging.
Equations
- Averaging.avgIter G 0 x✝ = x✝
- Averaging.avgIter G t.succ x✝ = Averaging.avgStep G (Averaging.avgIter G t x✝)
Instances For
The degree-weighted average of the values (their mean under the stationary distribution of the random walk).
Instances For
Conservation and the maximum principle #
Swap a sum over neighbours of v with a sum over all vertices.
The degree-weighted sum is conserved by a round.
Maximum principle: without isolated nodes, a round never exceeds an upper bound.
Minimum principle: without isolated nodes, a round never goes below a lower bound.
Transition weights of the random walk #
Probability of going from v to u in exactly t steps of the random walk.
Equations
- Averaging.transW G 0 x✝¹ x✝ = if x✝¹ = x✝ then 1 else 0
- Averaging.transW G t.succ x✝¹ x✝ = (∑ w ∈ G.neighborFinset x✝¹, Averaging.transW G t w x✝) / ↑(G.degree x✝¹)
Instances For
Walks of one common length #
k trips back and forth along an edge, a closed walk of length 2k.
Equations
Instances For
Range of a configuration #
Equations
- Averaging.fMax f = Finset.univ.sup' ⋯ f
Instances For
Equations
- Averaging.fMin f = Finset.univ.inf' ⋯ f
Instances For
Equations
- Averaging.transWMin G t = Finset.univ.inf' ⋯ fun (p : V × V) => Averaging.transW G t p.1 p.2
Instances For
Doeblin: a stochastic kernel bounded below by δ contracts the range by 1 - |V| δ.
Convergence: on a connected graph with an odd closed walk, every value converges to the degree-weighted average of the initial values.
The odd closed walk is needed: on a connected bipartite graph with at least two nodes, some initial values make no node converge.