ArticleslgStudy

physics

Maximal entropy random walk

Maximal entropy random walk is a physics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Maximal entropy random walk rather than just read about it. In short: A maximal entropy random walk (MERW) is a popular type of biased random walk on a graph, in which transition probabilities are chosen accordingly to the principle of maximum entropy, which says that the probability distribution which best represents the current state of knowledge is the one with largest entropy. While a standard random walk samples for every vertex a uniform probability distribution of outgoing edge…

Maximal entropy random walk — main illustration
Maximal entropy random walk — illustration

Key takeaways

  • Maximal entropy random walk belongs to physics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Maximal entropy random walk to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Maximal entropy random walk from memory before moving on to harder problems.

Reference excerpt

A maximal entropy random walk (MERW) is a popular type of biased random walk on a graph, in which transition probabilities are chosen accordingly to the principle of maximum entropy, which says that the probability distribution which best represents the current state of knowledge is the one with largest entropy. While a standard random walk samples for every vertex a uniform probability distribution of outgoing edges, locally maximizing entropy rate, MERW maximizes it globally (average entropy production) by sampling a uniform probability distribution among all paths in a given graph. MERW is used in various fields of science. A direct application is choosing probabilities to maximize transmission rate through a constrained channel, analogously to Fibonacci coding. Its properties also made it useful for example in analysis of complex networks, like link prediction, community detection, robust transport over networks and centrality measures. It is also used in image analysis, for example for detecting visual saliency regions, object localization, tampering detection or tractography problem. Additionally, it recreates some properties of quantum mechanics, suggesting a way to repair the discrepancy between diffusion models and quantum predictions, like Anderson localization.

Basic model

Consider a graph with n vertices, defined by an adjacency matrix A∈{0,1}n×n: Aij=1 if there is an edge from vertex i to j, 0 otherwise. For simplicity, assume it is an undirected graph, which corresponds to a symmetric A; however, MERWs can also be generalized for directed and weighted graphs (for example Boltzmann distribution among paths instead of uniform). We would like to choose a random walk as a Markov process on this graph: for every vertex i and its outgoing edge to j, choose probability Sij of the walker randomly using this edge after visiting i. Formally, find a stochastic matrix S (containing the transition probabilities of a Markov chain) such that

0≤Sij≤Aij for all i,j and ∑j=1nSij=1 for all i. Assuming this graph is connected and not periodic, ergodic theory says that evolution of this stochastic process leads to some stationary probability distribution ρ such that ρS=ρ. Using Shannon entropy for every vertex and averaging over probability of visiting this vertex (to be able to use its entropy), we get the following formula for average entropy production (entropy rate) of the stochastic process: H(S)=∑i=1nρi∑j=1nSijlog⁡(1/Sij) This definition turns out to be equivalent to the asymptotic average entropy (per length) of the probability distribution in the space of paths for this stochastic process. In the standard random walk, referred to here as generic random walk (GRW), we naturally choose that each outgoing edge is equally probable: Sij=Aij∑k=1nAik. For a symmetric A it leads to a stationary probability distribution ρ with ρi=∑j=1nAij∑i=1n∑j=1nAij. It locally maximizes entropy production (uncertainty) for every vertex, but usually leads to a suboptimal averaged global entropy rate H(S). MERW chooses the stochastic matrix which maximizes H(S), or equivalently assumes uniform probability distribution among all paths in a given graph. Its formula is obtained by first calculating the dominant eigenvalue λ and corresponding eigenvector ψ of the adjacency matrix, i.e. the largest λ∈ℝ with corresponding ψ∈ℝn such that ψA=λψ. Then the stochastic matrix and stationary probability distribution are given by Sij=Aijλψjψi for which every possible path of length l from the i-th to j-th vertex has probability 1λlψjψi. Its entropy rate is log⁡(λ) and the stationary probability distribution ρ is ρi=ψi2‖ψ‖22. In contrast to GRW, the MERW transition probabilities generally depend on the structure of the entire graph, making it nonlocal. Hence, they should not be imagined as directly applied by the walker – if random-looking decisions are made based on the local situation, like a person would make, the GRW approach is more appropriate. MERW is based on the principle of maximum entropy, making it the safest assumption when we do not have any additional knowledge about the system. For example, it would be appropriate for modelling our knowledge about an object performing some complex dynamics – not necessarily random, like a particle.

Sketch of derivation Assume for simplicity that the considered graph is undirected, connected and aperiodic, allowing to conclude from the Perron–Frobenius theorem that the dominant eigenvector is unique. Hence Al can be asymptotically (l→∞) approximated by λlψψT (or λl|ψ⟩⟨ψ| in bra–ket notation). MERW requires a uniform distribution along paths. The number mil of paths with length 2l and vertex i in the center is mil=∑j=1n∑k=1n(Al)ji(Al)ik≈∑j=1n∑k=1n(λlψψ⊤)ji(λlψψ⊤)ik=∑j=1n∑k=1nλ2lψjψiψiψk=λ2lψi2∑j=1nψj∑k=1nψk⏟=:b, hence for all i, ρi=liml→∞mil∑k=1nmkl=liml→∞λ2lψi2b∑k=1nλ2lψk2b=liml→∞ψi2∑k=1nψk2=ψi2∑k=1nψk2=ψi2‖ψ‖22. Analogously calculating probability distribution for two succeeding vertices, one obtains that the probability of being at the i-th vertex and next at the j-th vertex is ψiAijψj∑i′=1n∑j′=1nψi′Ai′j′ψj′=ψiAijψjψAψ⊤=ψiAijψjλ‖ψ‖22. Dividing by the probability of being at the i-th vertex, i.e. ρi, gives for the conditional probability Sij of the j-th vertex being next after the i-th vertex Sij=Aijλψjψi.

Weighted MERW: Boltzmann path ensemble We have assumed that Aij∈{0,1}, yielding a MERW corresponding to the uniform ensemble among paths. However, the above derivation works for any real nonnegative A for which the Perron-Frobenius theorem applies. Given Aij=exp⁡(−Eij), the probability of a particular length-l path (γ0,…,γl) is as follows: Pr⁡(γ0,…,γl)=ργ0Sγ0γ1…Sγl−1γl=ψγ0Aγ0γ1…Aγl−1γlλlψγl=ψγ0exp⁡(−(Eγ0γ1+⋯+Eγl−1γl))λlψγl, which is the same as the Boltzmann distribution of paths with energy defined as the sum of Eij over the edges of the path. For example, this can be used with the transfer matrix to calculate the probability distribution of patterns in the Ising model.

Examples

… excerpt ends here. Continue reading the full article.

Illustrations

Maximal entropy random walk: Left: choosing the optimal probability after symbol 0 in Fibonacci coding. Right: a one-dimensional defected lattice and its stationary density for a length-1000 cycle (it has three defects). In a standard random walk, the stationary density is proportional to degree of a vertex, leading to 3/2 difference here; however, in MERW, the density is nearly completely localized in the largest defect-free region, analogous to the ground state predicted by quantum mechanics.
Left: choosing the optimal probability after symbol 0 in Fibonacci coding. Right: a one-dimensional defected lattice and its stationary density for a length-1000 cycle (it has three defects). In a standard random walk, the stationary density is proportional to degree of a vertex, leading to 3/2 difference here; however, in MERW, the density is nearly completely localized in the largest defect-free region, analogous to the ground state predicted by quantum mechanics.

Worked examples

Example 1 — a first encounter with Maximal entropy random walk

Start with the simplest possible case. Write down what Maximal entropy random walk claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In physics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Maximal entropy random walk before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Maximal entropy random walk ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Maximal entropy random walk

In research
Maximal entropy random walk appears in physics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Maximal entropy random walk in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Maximal entropy random walk is common in secondary-school and first-year university syllabi. It links to neighbouring topics Diffusion, Information theory, Network theory, so understanding it makes those chapters shorter.
In everyday life
Look for Maximal entropy random walk outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Maximal entropy random walk” →

How to study Maximal entropy random walk in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Maximal entropy random walk means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Maximal entropy random walk out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Maximal entropy random walk in simple terms?

A maximal entropy random walk (MERW) is a popular type of biased random walk on a graph, in which transition probabilities are chosen accordingly to the principle of maximum entropy, which says that the probability distribution which best represents the current state of knowledge is the one with la…

Why does Maximal entropy random walk matter?

Because it connects several physics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Maximal entropy random walk?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Maximal entropy random walk.

Tags

  • Diffusion
  • Information theory
  • Network theory
  • Quantum mechanics

Keep exploring