Optimal Approximate Sampling from Discrete Probability Distributions

被引:3
|
作者
Saad, Feras A. [1 ]
Freer, Cameron E. [2 ]
Rinard, Martin C. [1 ]
Mansinghka, Vikash K. [2 ]
机构
[1] MIT, Dept Elect Engn & Comp Sci, Cambridge, MA 02139 USA
[2] MIT, Dept Brain & Cognit Sci, E25-618, Cambridge, MA 02139 USA
关键词
random variate generation; discrete random variables; RANDOM NUMBERS; INFORMATION; STATISTICS; ALGORITHM;
D O I
10.1145/3371104
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
This paper addresses a fundamental problem in random variate generation: given access to a random source that emits a stream of independent fair bits, what is the most accurate and entropy-efficient algorithm for sampling from a discrete probability distribution (p(1), . . . , p(n)), where the probabilities of the output distribution ((p) over cap (1), . . . , (p) over cap (n)) of the sampling algorithm must be specified using at most k bits of precision? We present a theoretical framework for formulating this problem and provide new techniques for finding sampling algorithms that are optimal both statistically (in the sense of sampling accuracy) and information-theoretically (in the sense of entropy consumption). We leverage these results to build a system that, for a broad family of measures of statistical accuracy, delivers a sampling algorithm whose expected entropy usage is minimal among those that induce the same distribution (i.e., is "entropy-optimal") and whose output distribution ((p) over cap (1), . . . , (p) over cap (n)) is a closest approximation to the target distribution (p(1), . . . , p(n)) among all entropy-optimal sampling algorithms that operate within the specified k-bit precision. This optimal approximate sampler is also a closer approximation than any (possibly entropy-suboptimal) sampler that consumes a bounded amount of entropy with the specified precision, a class which includes floating-point implementations of inversion sampling and related methods found in many software libraries. We evaluate the accuracy, entropy consumption, precision requirements, and wall-clock runtime of our optimal approximate sampling algorithms on a broad set of distributions, demonstrating the ways that they are superior to existing approximate samplers and establishing that they often consume significantly fewer resources than are needed by exact samplers.
引用
收藏
页数:31
相关论文
共 50 条
  • [1] Optimal Testing of Discrete Distributions with High Probability
    Diakonikolas, Ilias
    Gouleakis, Themis
    Kane, Daniel M.
    Peebles, John
    Price, Eric
    STOC '21: PROCEEDINGS OF THE 53RD ANNUAL ACM SIGACT SYMPOSIUM ON THEORY OF COMPUTING, 2021, : 542 - 555
  • [2] Succinct Sampling from Discrete Distributions
    Bringmann, Karl
    Larsen, Kasper Green
    STOC'13: PROCEEDINGS OF THE 2013 ACM SYMPOSIUM ON THEORY OF COMPUTING, 2013, : 775 - 782
  • [3] SAMPLING DISCRETE DISTRIBUTIONS
    BIRD, PR
    JOURNAL OF DOCUMENTATION, 1975, 31 (03) : 217 - 218
  • [4] A METHODOLOGY FOR MORE EFFICIENT TAIL AREA SAMPLING WITH DISCRETE PROBABILITY-DISTRIBUTIONS
    PARK, SR
    KIM, TW
    LEE, BH
    RISK ANALYSIS, 1988, 8 (03) : 403 - 409
  • [5] SAMPLING DISTRIBUTIONS AND PROBABILITY REVISIONS
    PETERSON, CR
    DUCHARME, WM
    EDWARDS, W
    JOURNAL OF EXPERIMENTAL PSYCHOLOGY, 1968, 76 (2P1): : 236 - &
  • [6] COMBINING PROBABILITIES FROM DISCRETE PROBABILITY-DISTRIBUTIONS
    EDGINGTON, ES
    HALLER, O
    EDUCATIONAL AND PSYCHOLOGICAL MEASUREMENT, 1984, 44 (02) : 265 - 274
  • [7] Approximate probability distributions of the master equation
    Thomas, Philipp
    Grima, Ramon
    PHYSICAL REVIEW E, 2015, 92 (01):
  • [8] APPROXIMATE PROBABILITY DISTRIBUTIONS FOR EXTREME SPREAD
    TAYLOR, MS
    GRUBBS, FE
    NAVAL RESEARCH LOGISTICS, 1975, 22 (04) : 713 - 719
  • [9] APPROXIMATING DISCRETE PROBABILITY DISTRIBUTIONS
    KU, HH
    KULLBACK, S
    IEEE TRANSACTIONS ON INFORMATION THEORY, 1969, 15 (04) : 444 - +
  • [10] APPROXIMATING DISCRETE PROBABILITY DISTRIBUTIONS
    FREEMAN, JJ
    IEEE TRANSACTIONS ON INFORMATION THEORY, 1971, 17 (04) : 491 - +