Bachelor’s thesis · IIT Guwahati · 2024
How a random
walk forgets
We proved that our walk gives every allowed position equal odds in the long run. Then we built a simulator to study how quickly it gets there.
What we contributed
Pratham Pekamwar and I did this B.Tech project at IIT Guwahati in 2024 under Dr. Benny George K.
- We proved equal odds at equilibrium
- In the walk we studied, each allowed position has the same long-run chance of being occupied. Changing the chance of deliberately staying put leaves those equilibrium odds the same.
- We built a Python simulator
- It tracks the chance of being at every position after each step. We used it to measure how quickly those chances approach equal odds under different rules.
- We tested what could change the speed
- Changing how often the walker stays put changed the speed. We also expected more base points, the positions that generate a shape, to slow mixing. Across our runs, the number of base points showed no consistent pattern.
Our project investigated Ding and Mossel’s prediction that the worst-case mixing time grows like n log n, where n is the number of bits. A 2026 preprint proved that prediction, including the half-cube case we studied. Read the research update.
Start with a switch
Imagine walking through a network of rooms and choosing each move by chance. Run the walk many times from the same room and record where each run ends. After enough steps, the chances of ending in each room can look almost the same whichever room you started in. The time it takes to get that close is the mixing time.
Now label the rooms with light switches. One switch has two settings, 0 for off and 1 for on. Two switches give four settings, 00, 01, 10, and 11. Connect two settings whenever one flip takes you from one to the other. That makes a square. With three switches you get a cube. With n switches you get a hypercube with 2n positions.
Now keep only some positions. For example, require at least two switches to be on. Turning on another switch preserves that rule, so the set is upward-closed. Its base points are the allowed settings where turning off any one of the on switches would break the rule. You can generate the whole set by turning on switches from those base points.
011, the only string strictly above it is 111. From 101 or 110, you arrive at the same top vertex. Those three minimal vertices generate exactly half the cube.
Take a step, or stay put
Pick one switch at random, giving each switch the same chance. With probability ℓ, stay where you are. Otherwise, try to flip it. If the new setting breaks the rule, stay where you were anyway. Skipping the forbidden move is the censoring in our thesis title. The next step only uses the current setting, which makes this a Markov chain.
At ℓ = 1/2, you can think of the same rule as picking a coordinate and giving it a fresh fair bit. A refresh can leave the bit unchanged. Here the walk starts at 011.
Why every vertex gets the same share
Suppose we spread many walkers across the allowed positions and give them one step. If the fractions at each position stay the same, those fractions form a stationary distribution.
In our example, a walker at 011 stays there with probability 5/6. At 111 it stays with probability 1/2. Yet at equilibrium, a quarter of the walkers are at each position. Look at the two directions of a single edge to see why.
Mass sent each way
1/4 × 1/6 = 1/24
Each dot represents the same amount of probability.
The detailed-balance argument
Each allowed flip has probability (1 − ℓ)/n in either direction. A rejected proposal adds to the probability of staying. Put mass 1/|V| at every vertex. Across every edge, the mass leaving in one direction equals the mass arriving in the other.
Adding up these equalities gives πP = π. Every allowed state can reach the all-ones vertex by upward moves, and every edge can be traversed in reverse. This gives irreducibility for ℓ < 1. For 0 < ℓ < 1 there is also a positive chance to stay at each vertex, so the chain is aperiodic and converges to the unique uniform stationary law.
Why changing the laziness preserves stationarity
If πP = π, then applying the mixture ℓI + (1 − ℓ)P to π gives ℓπ + (1 − ℓ)π = π. The identity part simply returns the same distribution.
Watch the walk forget
Follow the probability mass from one start. Each bar is the chance that the walker is at that vertex after the selected number of steps. The marker on each bar is its uniform target. Total variation is the sum of the extra mass above those targets, or half the sum of all absolute differences. It is also the biggest gap between the two probabilities you can assign to any one event. Choose the event consisting of all vertices above their target to see why.
Mixing time asks when every possible start is within a chosen distance of uniform. At a total variation threshold of 1/4, 111 reaches it in one step. Each of the three leaves takes six steps, so six is the mixing time for the chain.
Probability by vertex
The tick on each bar marks the uniform target of 25%.
Total variation distance
Give two walkers the same randomness
A coupling runs two walks together while keeping the correct rule for each. On the full cube, give both walks the same coordinate and fresh bit each step. They agree at that coordinate immediately. Once every coordinate has been refreshed, the walks meet and stay together. The chance they still disagree bounds the total variation distance between their laws. In fact, total variation is the smallest disagreement probability over all couplings of two distributions.
With k untouched coordinates left, finding a new one takes n/k steps on average. Summing these waits gives n(1 + 1/2 + ⋯ + 1/n), of order n log n. On a censored cube the same refresh can be rejected for one walker and accepted for the other, so the full-cube argument needs more work.
What changes the mixing time?
In our B.Tech project we built transition matrices, repeatedly applied them to starting distributions, and measured total variation distance from uniform. We varied the laziness, the cube dimension, and the base points. Equilibrium was uniform throughout the converging examples. The time to reach it could change substantially.
Too little waiting can slow you down
On the one-bit cube, at zero laziness the walker alternates deterministically. At full laziness it never moves. At 1/2 it becomes uniform in one step. The exact distance at time t is |2ℓ − 1|t/2.
Move one base point
Both shapes keep eight of the sixteen vertices and have three minimal vertices. Start with 0110, 1010, and 1100. Replace 0110 with 0101. At half laziness, the worst-start mixing time goes from eight to ten steps. These small examples illustrate the geometry dependence we observed.
0110 · 1010 · 1100
0101 · 1010 · 1100
Graphs show mass from 1010, a worst-case start for both shapes. The curves use the maximum over all starts.
Further tools from the report
Symmetry, lumping, and the Ehrenfest model
On the full cube, grouping by the number of 1s gives another Markov chain. Every state in a group has the same probability of moving to each other group. On a general upward-closed subset, two states of the same weight can have different legal neighbors, so this grouping needs additional symmetry.
Spectral gap
For a reversible lazy walk, the largest nonconstant eigenvalue describes its slowest-decaying mode. The spectral gap is one minus that eigenvalue. A larger gap helps bound how quickly the distribution approaches equilibrium, and the 2025 result used a better gap bound to improve the mixing bound.
Strong stationary times
A strong stationary time is a randomized stopping time whose terminal state has the stationary law and is independent of the stopping time, for a fixed start. On the full cube, the first time every coordinate has been refreshed is such a time. Its tail bounds the remaining distance from stationarity.
The question we left open
Our simulations explored which features changed how quickly the walk mixed. The question from Ding and Mossel asks for a guarantee across every upward-closed subset that keeps a fixed fraction of the cube. We focused on sets that keep at least half.
- O(n3)
Ding and Mossel give the first bound and ask whether the full-cube order still holds.
Read the paper - O(n2)
Fei and Ferreira Pinto Jr. improve the upper bound by strengthening the spectral gap estimate.
Read the paper - Θ(n log n)
Yiming Chen’s preprint gives the sharp order for every increasing subset of fixed positive density. An appendix by Yuval Peres sharpens the dependence on density.
Read the preprint
The 2026 theorem covers the thesis setting of at least half the cube and the same half-lazy walk. Its proof relates mixing to the time needed to hit sets of substantial stationary mass. The preprint also proves a matching-order lower bound.