CFTP Sampling of q-Weighted Partitions     misc

Leonid Petrov


Simulation Info

CFTP Sampling of q-Weighted Partitions     misc

Leonid Petrov

Interactive CFTP (coupling from the past) sampler for q-weighted random partitions in an N-by-M rectangle, rendered as a Ferrers diagram on canvas. Adjust N, aspect ratio a=M/N, and q to control partition size distribution. Run CFTP for exact samples or Glauber dynamics for MCMC. Shows limit shape curve and 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 an $M \times N$ rectangle with probability proportional to $q^{|\lambda|}$, where $|\lambda|$ is the number of boxes.

Parameters:

  • $N$: Width of the bounding rectangle
  • $a = M/N$: Aspect ratio (so $M = \lfloor aN \rfloor$)
  • $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 (addable or removable position) uniformly at random:

  • If addable: 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 and full rectangle). When they coalesce, we have an exact sample from the stationary distribution.

Limit Shape: As $N \to \infty$ with $q = e^{-\gamma/N}$ for fixed $\gamma > 0$, the rescaled partition boundary converges to a deterministic curve given by the implicit equation: $$A e^{-\gamma y} + B e^{-\gamma x} = 1$$ where $A = \frac{1-e^{-\gamma}}{1-e^{-\gamma(1+a)}}$ and $B = \frac{1-e^{-\gamma a}}{1-e^{-\gamma(1+a)}}$. The red curve shows this limit shape.

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

50
1.0
0
100
Ready. Click "Run CFTP" for exact sampling or "Run Glauber" for Markov chain dynamics.
Partition 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