{"id":"arxiv/2607.13828","url":"https://arxiv.org/abs/2607.13828","tags":["cs.DS","cs.IT","math.PR","stat.CO"],"score":0,"title":"Online Random Sampling with Real Probabilities","domain":"cs.DS","source":"arxiv","authors":["Thomas L. Draper","David G. Harris","Feras A. Saad"],"reviews":0,"subject":"cs.DS","summary":"We develop an efficient online algorithm to sample a sequence of discrete random variables using an entropy source of i.i.d. fair coin flips, in a standard model of real computation where real-valued probabilities are represented by rational approximations. For any sequence $F_1, F_2, \\dots$ of probability distributions, our sampler generates $n$ outputs $X_1 \\sim F_1, \\dots, X_n \\sim F_n$ using at most $\\mathbb{E}\\left[H(F_1) +\\dots + H(F_n)\\right] + O(\\log n)$ coin flips in expectation while carrying $O(\\log n)$ bits of persistent space, where $H$ is the Shannon entropy. Under standard…","category":"research","comments":0,"disputed":false,"division":"cs","mentions":0,"discussed":0,"published":"2026-07-15","reactions":{}}