We give an algorithm which generates a uniformly random contingency table with specified marginals, that is, a matrix with nonnegative integer values and specified row and column sums. Such algorithms are useful in statistics and combinatorics. When Δ4<M/5, where Δ is the maximum of the row and column sums and M is the sum of all entries of the matrix, our algorithm runs in time linear in M in expectation. Most previously published algorithms for this problem are approximate samplers based on Markov chain Monte Carlo, whose provable bounds on the mixing time are typically polynomials with rather large degrees.
No takes yet. Share an insight, caveat, or question.
Arman et al. (2024) studied this question.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: