{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,25]],"date-time":"2026-10-25T18:41:42Z","timestamp":1792953702395,"version":"4.5.0"},"reference-count":36,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"5","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[2011,1]]},"abstract":"<jats:p>From a high volume stream of weighted items, we want to maintain a generic sample of a certain limited size k that we can later use to estimate the total weight of arbitrary subsets. This is the classic context of on-line reservoir sampling, thinking of the generic sample as a reservoir. We present an efficient reservoir sampling scheme, $\\textnormal{\\sc VarOptk}$, that dominates all previous schemes in terms of estimation quality. $\\textnormal{\\sc VarOptk}$ provides variance optimal unbiased estimation of subset sums. More precisely, if we have seen n items of the stream, then for any subset size m, our scheme based on k samples minimizes the average variance over all subsets of size m. In fact, the optimality is against any off-line scheme with k samples tailored for the concrete set of items seen. In addition to optimal average variance, our scheme provides tighter worst-case bounds on the variance of particular subsets than previously possible. It is efficient, handling each new item of the stream in $O(\\log k)$ time. Finally, it is particularly well suited for combinations of samples from different streams in a distributed setting.<\/jats:p>","DOI":"10.1137\/10079817x","type":"journal-article","created":{"date-parts":[[2011,9,28]],"date-time":"2011-09-28T00:26:20Z","timestamp":1317169580000},"page":"1402-1431","source":"Crossref","is-referenced-by-count":17,"title":["Efficient Stream Sampling for Variance-Optimal Estimation of Subset Sums"],"prefix":"10.1137","volume":"40","author":[{"given":"Edith","family":"Cohen","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Nick","family":"Duffield","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Haim","family":"Kaplan","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Carsten","family":"Lund","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Mikkel","family":"Thorup","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2011,9,27]]},"reference":[{"key":"R1","unstructured":"R.J. Adler, R.E. Feldman, and M.S. Taqqu,\n                      A Practical Guide to Heavy Tails\n                      , Birkh\u00e4user, Boston, 1998."},{"key":"R2","doi-asserted-by":"crossref","unstructured":"S. Alstrup, T. Husfeldt, and T. Rauhe,\n                      Marked ancestor problems\n                      , in Proceedings of the 39th Annual IEEE Symposium on Foundations of Computer Science (FOCS), 1998, pp. 534\u2013544.","DOI":"10.1109\/SFCS.1998.743504"},{"key":"R3","doi-asserted-by":"publisher","DOI":"10.1093\/biomet\/69.3.653"},{"key":"R4","doi-asserted-by":"crossref","unstructured":"S. Chaudhuri, R. Motwani, and V.R. Narasayya,\n                      On random sampling over joins\n                      , in Proceedings of the ACM SIGMOD International Conference on Management of Data, 1999, pp. 263\u2013274.","DOI":"10.1145\/304182.304206"},{"key":"R5","doi-asserted-by":"crossref","unstructured":"E. Cohen, N.G. Duffield, H. Kaplan, C. Lund, and M. Thorup,\n                      Composable, scalable, and accurate weight summarization of unaggregated data sets\n                      , in Proceedings of the 35th International Conference on Very Large Data Bases, Vol. 2, 2009, pp. 431\u2013442.","DOI":"10.14778\/1687627.1687677"},{"key":"R6","doi-asserted-by":"crossref","unstructured":"E. Cohen and H. Kaplan,\n                      Bottom-k sketches: Better and more efficient estimation of aggregates (poster)\n                      , in Proceedings of the 2007 ACM SIGMETRICS International Conference on Measurement and Modeling of Computer Systems, 2007, pp. 353\u2013354.","DOI":"10.1145\/1254882.1254926"},{"key":"R7","doi-asserted-by":"crossref","unstructured":"E. Cohen and H. Kaplan,\n                      Summarizing data using bottom-k sketches\n                      , in Proceedings of the 26th ACM Symposium on Principles of Distributed Computing (PODC), 2007, pp. 225\u2013234.","DOI":"10.1145\/1281100.1281133"},{"key":"R8","doi-asserted-by":"crossref","unstructured":"E. Cohen and H. Kaplan,\n                      Tighter estimation using bottom-k sketches\n                      , in Proceedings of the 34th International Conference on Very Large Data Bases, 2008, pp. 213\u2013224.","DOI":"10.14778\/1453856.1453884"},{"key":"R9","unstructured":"T.H. Cormen, C.E. Leiserson, R.L. Rivest, and C. Stein,\n                      Introduction to Algorithms\n                      , 2nd ed., MIT Press, Cambridge, MA, McGraw\u2013Hill, Boston, 2001."},{"key":"R10","doi-asserted-by":"crossref","unstructured":"C. Cranor, T. Johnson, V. Shkapenyuk, and O. Spatcheck,\n                      Gigascope: A stream database for network applications\n                      , in Proceedings of the 2003 ACM SIGMOD International Conference on Management of Data, 2003, pp. 647\u2013651.","DOI":"10.1145\/872757.872838"},{"key":"R11","doi-asserted-by":"publisher","DOI":"10.1002\/(SICI)1098-2418(199809)13:2<99::AID-RSA1>3.0.CO;2-M"},{"key":"R12","doi-asserted-by":"publisher","DOI":"10.1109\/TIT.2005.846400"},{"key":"R13","doi-asserted-by":"crossref","unstructured":"N.G. Duffield, C. Lund, and M. Thorup,\n                      Priority sampling for estimation of arbitrary subset sums\n                      , J. ACM, 54 (2007), 32.","DOI":"10.1145\/1314690.1314696"},{"key":"R14","doi-asserted-by":"publisher","DOI":"10.1016\/j.ipl.2005.11.003"},{"key":"R15","doi-asserted-by":"crossref","unstructured":"C. Estan and G. Varghese,\n                      New directions in traffic measurement and accounting\n                      , in Proceedings of the 2002 ACM SIGCOMM Conference on Applications, Technologies, Architectures, and Protocols for Computer Communication, 2002, pp. 323\u2013331.","DOI":"10.1145\/633025.633056"},{"key":"R16","doi-asserted-by":"publisher","DOI":"10.1080\/01621459.1962.10480667"},{"key":"R17","doi-asserted-by":"crossref","unstructured":"M.L. Fredman and M.E. Saks,\n                      The cell probe complexity of dynamic data structures\n                      , in Proceedings of the 21st Annual ACM Symposium on Theory of Computing (STOC), 1989, pp. 345\u2013354.","DOI":"10.1145\/73007.73040"},{"key":"R18","doi-asserted-by":"crossref","unstructured":"M. Gibbons and Y. Matias,\n                      New sampling-based summary statistics for improving approximate query answers\n                      , in Proceedings of the 1998 ACM SIGMOD International Conference on Management of Data, 1998, pp. 331\u2013342.","DOI":"10.1145\/276304.276334"},{"key":"R19","doi-asserted-by":"publisher","DOI":"10.1080\/01621459.1952.10483446"},{"key":"R20","doi-asserted-by":"crossref","unstructured":"T. Johnson, S. Muthukrishnan, and I. Rozenbaum,\n                      Sampling algorithms in a stream operator\n                      , in Proceedings of the 2005 ACM SIGMOD International Conference on Management of Data, 2005, pp. 1\u201312.","DOI":"10.1145\/1066157.1066159"},{"key":"R21","unstructured":"D.E. Knuth,\n                      The Art of Computer Programming, Vol.\n                      2:\n                      Seminumerical Algorithms\n                      , Addison\u2013Wesley, Reading, MA, 1969."},{"key":"R22","doi-asserted-by":"publisher","DOI":"10.1109\/MSECP.2003.1219056"},{"key":"R23","doi-asserted-by":"publisher","DOI":"10.1561\/0400000002"},{"key":"R24","unstructured":"The Netflix Prize\n                      , http:\/\/www.netflixprize.com\/."},{"key":"R25","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539793250767"},{"key":"R26","unstructured":"K. Park, G. Kim, and M. Crovella,\n                      On the relationship between file sizes, transport protocols, and self-similar network traffic\n                      , in Proceedings of the 4th IEEE International Conference on Network Protocols (ICNP), 1996, pp. 171\u2013180."},{"key":"R27","unstructured":"M. Pa\u02c7tra\u015fcu,\n                      Private communication\n                      , 2009."},{"key":"R28","doi-asserted-by":"crossref","unstructured":"C.E. S\u00e4rndal, B. Swensson, and J. Wretman,\n                      Model Assisted Survey Sampling\n                      , Springer, New York, 1992.","DOI":"10.1007\/978-1-4612-4378-6"},{"key":"R29","doi-asserted-by":"crossref","unstructured":"A. Srinivasan,\n                      Distributions on level-sets with applications to approximation algorithms\n                      , in Proceedings of the 42nd Annual IEEE Symposium on Foundations of Computer Science (FOCS), 2001, pp. 588\u2013597.","DOI":"10.1109\/SFCS.2001.959935"},{"key":"R30","doi-asserted-by":"crossref","unstructured":"M. Szegedy,\n                      The DLT priority sampling is essentially optimal\n                      , in Proceedings of the 38th Annual ACM Symposium on Theory of Computing (STOC), 2006, pp. 150\u2013158.","DOI":"10.1145\/1132516.1132539"},{"key":"R31","doi-asserted-by":"crossref","unstructured":"M. Szegedy and M. Thorup,\n                      On the variance of subset sum estimation\n                      , in Proceedings of the 15th Annual European Symposium on Algorithms, Lecture Notes in Comput. Sci. 4698, Springer, New York, 2007, pp. 75\u201386.","DOI":"10.1007\/978-3-540-75520-3_9"},{"key":"R32","doi-asserted-by":"crossref","unstructured":"M. Thorup,\n                      Confidence intervals for priority sampling\n                      , in Proceedings of the Joint International Conference on Measurement and Modeling of Computer Systems, SIGMETRICS\/Performance, 2006, pp. 252\u2013253.","DOI":"10.1145\/1140277.1140307"},{"key":"R33","doi-asserted-by":"crossref","unstructured":"M. Thorup,\n                      Equivalence between priority queues and sorting\n                      , J. ACM, 54 (2007), 28.","DOI":"10.1145\/1314690.1314692"},{"key":"R34","doi-asserted-by":"publisher","DOI":"10.1093\/biomet\/83.1.238"},{"key":"R35","unstructured":"Y. Till\u00e9,\n                      Sampling Algorithms\n                      , Springer, New York, 2006."},{"key":"R36","doi-asserted-by":"publisher","DOI":"10.1145\/3147.3165"}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/10079817X","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:35:54Z","timestamp":1787337354000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/10079817X"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2011,1]]},"references-count":36,"journal-issue":{"issue":"5","published-print":{"date-parts":[[2011,1]]}},"alternative-id":["10.1137\/10079817X"],"URL":"https:\/\/doi.org\/10.1137\/10079817x","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[2011,1]]}}}