CFTP Sampling of q-Weighted Partitions (General Boundary)     misc

Leonid Petrov


Simulation Info

CFTP Sampling of q-Weighted Partitions (General Boundary)     misc

Leonid Petrov

Interactive CFTP sampler for q-weighted random partitions with general boundary conditions rendered as a Ferrers diagram on canvas. Choose rectangle, staircase, or custom boundary partitions. Run exact CFTP sampling or Glauber dynamics MCMC. Displays partition size, boundary size, CFTP coalescence time, and mode statistics.

About this simulation

Coupling From The Past (CFTP) is an algorithm for exact sampling from a target distribution. Here we sample partitions $\lambda$ contained in a given boundary partition $\mu$ with probability proportional to $q^{|\lambda|}$.

Boundary Types:

  • Rectangle: $N \times M$ rectangle (all rows have length $N$)
  • Staircase: Shape $(k, k-1, \ldots, 1)$ for a given $k$
  • Custom: Specify any partition using notation like 50,40,30 or multiplicative form 50^3,40^2,10^5

Parameters:

  • $q$: Weight parameter. When $q < 1$, smaller partitions are favored; when $q > 1$, larger partitions are favored.

Glauber Dynamics: At each step, pick a corner uniformly at random:

  • If addable (and within boundary): add box with probability $q/(1+q)$
  • If removable: remove box with probability $1/(1+q)$

CFTP: Run two coupled chains from extremal states (empty partition and boundary partition). When they coalesce, we have an exact sample from the stationary distribution.

Reference: A. Vershik, "Statistical mechanics of combinatorial partitions, and their limit shapes," Functional Analysis and Its Applications 30 (1996), 90-105.

50
50
Generates shape (k, k-1, ..., 1)
E.g., 5,4,3,2,1 or 50^3,40^2,10^5 (50 repeated 3 times, 40 repeated 2 times, etc.)
0
100
Ready. Click "Run CFTP" for exact sampling or "Run Glauber" for Markov chain dynamics.
Partition Size |λ| 0
Boundary Size |μ| 0
Steps 0
CFTP Time T -
Mode Idle

code

(note: parameters in the code might differ from the ones in simulation results below)

Dear colleagues:

Feel free to use code (unless otherwise specified next to the corresponding link), data, and visualizations to illustrate your research in talks and papers, with attribution (CC BY-SA 4.0 (opens in new tab)). Some images are available in very high resolution upon request. I can also produce other simulations upon request - email me at lenia.petrov@gmail.com
This material is based upon work supported by the National Science Foundation under Grant DMS-2153869