{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,1]],"date-time":"2026-10-01T01:36:33Z","timestamp":1790818593744,"version":"4.1.0"},"reference-count":28,"publisher":"Association for Computing Machinery (ACM)","issue":"6","license":[{"start":{"date-parts":[[2007,12,1]],"date-time":"2007-12-01T00:00:00Z","timestamp":1196467200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["J. ACM"],"published-print":{"date-parts":[[2007,12]]},"abstract":"<jats:p>From a high-volume stream of weighted items, we want to create a generic sample of a certain limited size that we can later use to estimate the total weight of arbitrary subsets. Applied to Internet traffic analysis, the items could be records summarizing the flows of packets streaming by a router. Subsets could be flow records from different time intervals of a worm attack whose signature is later determined. The samples taken in the past thus allow us to trace the history of the attack even though the worm was unknown at the time of sampling.<\/jats:p>\n                  <jats:p>Estimation from the samples must be accurate even with heavy-tailed distributions where most of the weight is concentrated on a few heavy items. We want the sample to be weight sensitive, giving priority to heavy items. At the same time, we want sampling without replacement in order to avoid selecting heavy items multiple times. To fulfill these requirements we introduce priority sampling, which is the first weight-sensitive sampling scheme without replacement that works in a streaming context and is suitable for estimating subset sums. Testing priority sampling on Internet traffic analysis, we found it to perform an order of magnitude better than previous schemes.<\/jats:p>\n                  <jats:p>\n                    Priority sampling is simple to define and implement: we consider a steam of items\n                    <jats:italic>i<\/jats:italic>\n                    = 0,\u2026,\n                    <jats:italic>n<\/jats:italic>\n                    \u2212 1 with weights\n                    <jats:italic>w<\/jats:italic>\n                    <jats:sub>\n                      <jats:italic>i<\/jats:italic>\n                    <\/jats:sub>\n                    . For each item\n                    <jats:italic>i<\/jats:italic>\n                    , we generate a random number \u03b1\n                    <jats:sub>\n                      <jats:italic>i<\/jats:italic>\n                    <\/jats:sub>\n                    \u2208 (0,1] and create a priority\n                    <jats:italic>q<\/jats:italic>\n                    <jats:sub>\n                      <jats:italic>i<\/jats:italic>\n                    <\/jats:sub>\n                    =\n                    <jats:italic>w<\/jats:italic>\n                    <jats:sub>\n                      <jats:italic>i<\/jats:italic>\n                    <\/jats:sub>\n                    \/\u03b1\n                    <jats:sub>\n                      <jats:italic>i<\/jats:italic>\n                    <\/jats:sub>\n                    . The sample\n                    <jats:italic>S<\/jats:italic>\n                    consists of the\n                    <jats:italic>k<\/jats:italic>\n                    highest priority items. Let \u03c4 be the (\n                    <jats:italic>k<\/jats:italic>\n                    + 1)th highest priority. Each sampled item\n                    <jats:italic>i<\/jats:italic>\n                    in\n                    <jats:italic>S<\/jats:italic>\n                    gets a weight estimate\n                    <jats:italic>\u0175<\/jats:italic>\n                    <jats:sub>\n                      <jats:italic>i<\/jats:italic>\n                    <\/jats:sub>\n                    = max{\n                    <jats:italic>w<\/jats:italic>\n                    <jats:sub>\n                      <jats:italic>i<\/jats:italic>\n                    <\/jats:sub>\n                    , \u03c4}, while nonsampled items get weight estimate\n                    <jats:italic>\u0175<\/jats:italic>\n                    <jats:sub>\n                      <jats:italic>i<\/jats:italic>\n                    <\/jats:sub>\n                    = 0.\n                  <\/jats:p>\n                  <jats:p>\n                    Magically, it turns out that the weight estimates are unbiased, that is, E[\n                    <jats:italic>\u0175<\/jats:italic>\n                    <jats:sub>\n                      <jats:italic>i<\/jats:italic>\n                    <\/jats:sub>\n                    ] =\n                    <jats:italic>w<\/jats:italic>\n                    <jats:sub>\n                      <jats:italic>i<\/jats:italic>\n                    <\/jats:sub>\n                    , and by linearity of expectation, we get unbiased estimators over any subset sum simply by adding the sampled weight estimates from the subset. Also, we can estimate the variance of the estimates, and find, surprisingly, that the covariance between estimates\n                    <jats:italic>\u0175<\/jats:italic>\n                    <jats:sub>\n                      <jats:italic>i<\/jats:italic>\n                    <\/jats:sub>\n                    and\n                    <jats:italic>\u0175<\/jats:italic>\n                    <jats:sub>\n                      <jats:italic>j<\/jats:italic>\n                    <\/jats:sub>\n                    of different weights is zero.\n                  <\/jats:p>\n                  <jats:p>\n                    Finally, we conjecture an extremely strong near-optimality; namely that for any weight sequence, there exists no specialized scheme for sampling\n                    <jats:italic>k<\/jats:italic>\n                    items with unbiased weight estimators that gets smaller variance sum than priority sampling with\n                    <jats:italic>k<\/jats:italic>\n                    + 1 items. Szegedy settled this conjecture at STOC'06.\n                  <\/jats:p>","DOI":"10.1145\/1314690.1314696","type":"journal-article","created":{"date-parts":[[2007,12,7]],"date-time":"2007-12-07T14:19:01Z","timestamp":1197037141000},"page":"32","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":80,"title":["Priority sampling for estimation of arbitrary subset sums"],"prefix":"10.1145","volume":"54","author":[{"given":"Nick","family":"Duffield","sequence":"first","affiliation":[{"name":"AT&amp;T Labs--Research, Florham Park, New Jersey"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Carsten","family":"Lund","sequence":"additional","affiliation":[{"name":"AT&amp;T Labs--Research, Florham Park, New Jersey"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Mikkel","family":"Thorup","sequence":"additional","affiliation":[{"name":"AT&amp;T Labs--Research, Florham Park, New Jersey"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2007,12]]},"reference":[{"key":"e_1_2_1_1_1","unstructured":"Adler R. Feldman R. and Taqqu M. 1998. A Practical Guide to Heavy Tails. Birkhauser.  Adler R. Feldman R. and Taqqu M. 1998. A Practical Guide to Heavy Tails. Birkhauser."},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1145\/1065167.1065209"},{"key":"e_1_2_1_3_1","volume-title":"Bounds and Approximations for Order Statistics. Lecture Notes in Statistics","volume":"53","author":"Arnold B.","unstructured":"Arnold , B. , and Balakrishnan , N . 1988. Relations , Bounds and Approximations for Order Statistics. Lecture Notes in Statistics , vol. 53 . Springer, New York. Arnold, B., and Balakrishnan, N. 1988. Relations, Bounds and Approximations for Order Statistics. Lecture Notes in Statistics, vol. 53. Springer, New York."},{"key":"e_1_2_1_4_1","volume-title":"Lecture Notes in Statistics","volume":"15","author":"Brewer K.","unstructured":"Brewer , K. , and Hanif , M . 1983. Sampling with unequal probabilities . Lecture Notes in Statistics , vol. 15 . Springer-Verlag, New York. Brewer, K., and Hanif, M. 1983. Sampling with unequal probabilities. Lecture Notes in Statistics, vol. 15. Springer-Verlag, New York."},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/304182.304206"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1006\/jcss.1997.1534"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/1265530.1265566"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/1254882.1254926"},{"key":"e_1_2_1_9_1","unstructured":"Cormen T. H. Leiserson C. E. Rivest R. L. and Stein C. 2001. Introduction to Algorithms 2nd ed. MIT Press McGraw-Hill. ISBN 0-262-03293-7 0-07-013151-1.   Cormen T. H. Leiserson C. E. Rivest R. L. and Stein C. 2001. Introduction to Algorithms 2nd ed. MIT Press McGraw-Hill. ISBN 0-262-03293-7 0-07-013151-1."},{"key":"e_1_2_1_10_1","volume-title":"Order Statistics","author":"David H.","unstructured":"David , H. 1981. Order Statistics , 2 nd ed. Wiley , New York . David, H. 1981. Order Statistics, 2nd ed. Wiley, New York.","edition":"2"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/1005686.1005699"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1109\/TIT.2005.846400"},{"key":"e_1_2_1_13_1","volume-title":"Proceedings of the ACM SIGCOMM Internet Measurement Conference (IMC). ACM","author":"Duffield N.","unstructured":"Duffield , N. , Lund , C. , and Thorup , M . 2005b. Optimal combination of sampled network measurements . In Proceedings of the ACM SIGCOMM Internet Measurement Conference (IMC). ACM , New York, 91--104. Duffield, N., Lund, C., and Thorup, M. 2005b. Optimal combination of sampled network measurements. In Proceedings of the ACM SIGCOMM Internet Measurement Conference (IMC). ACM, New York, 91--104."},{"key":"e_1_2_1_14_1","unstructured":"Duffield N. Lund C. and Thorup M. 2005c. Sampling to estimate arbitrary subset sums. Tech. Rep. cs.DS\/0509026 Computing Research Repository (CoRR). http:\/\/arxiv.org\/abs\/cs.DS\/0509026.  Duffield N. Lund C. and Thorup M. 2005c. Sampling to estimate arbitrary subset sums. Tech. Rep. cs.DS\/0509026 Computing Research Repository (CoRR). http:\/\/arxiv.org\/abs\/cs.DS\/0509026."},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1080\/01621459.1962.10480667"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/253260.253291"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/1066157.1066159"},{"key":"e_1_2_1_18_1","volume-title":"Seminumerical Algorithms","author":"Knuth D.","unstructured":"Knuth , D. 1969. The Art of Computer Programming , Vol. 2 : Seminumerical Algorithms . Addison-Wesley , Reading, MA . Knuth, D. 1969. The Art of Computer Programming, Vol. 2: Seminumerical Algorithms. Addison-Wesley, Reading, MA."},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1109\/MSECP.2003.1219056"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1561\/0400000002"},{"key":"e_1_2_1_21_1","volume-title":"Proceedings of the 4th IEEE International Conference on Network Protocols (ICNP). IEEE Computer Society Press","author":"Park K.","unstructured":"Park , K. , Kim , G. , and Crovella , M . 1996. On the relationship between file sizes, transport protocols, and self-similar network traffic . In Proceedings of the 4th IEEE International Conference on Network Protocols (ICNP). IEEE Computer Society Press , Los Alamitos, CA. Park, K., Kim, G., and Crovella, M. 1996. On the relationship between file sizes, transport protocols, and self-similar network traffic. In Proceedings of the 4th IEEE International Conference on Network Protocols (ICNP). IEEE Computer Society Press, Los Alamitos, CA."},{"key":"e_1_2_1_22_1","doi-asserted-by":"crossref","unstructured":"S\u00e4rndal C.-E. Swensson B. and Wretman J. 1992. Model Assisted Survey Sampling. Springer-Verlag New York.  S\u00e4rndal C.-E. Swensson B. and Wretman J. 1992. Model Assisted Survey Sampling. Springer-Verlag New York.","DOI":"10.1007\/978-1-4612-4378-6"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.2307\/2346966"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/1132516.1132539"},{"key":"e_1_2_1_25_1","volume-title":"Proceedings of the 15th European Symposium on Algorithms (ESA). Lecture Notes in Computer Science","volume":"4698","author":"Szegedy M.","unstructured":"Szegedy , M. , and Thorup , M . 2007. On the variance of subset sum estimation . In Proceedings of the 15th European Symposium on Algorithms (ESA). Lecture Notes in Computer Science , vol. 4698 . Springer-Verlag, New York, 75--86. Szegedy, M., and Thorup, M. 2007. On the variance of subset sum estimation. In Proceedings of the 15th European Symposium on Algorithms (ESA). Lecture Notes in Computer Science, vol. 4698. Springer-Verlag, New York, 75--86."},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/1140277.1140307"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/1314690.1314692"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/3147.3165"}],"container-title":["Journal of the ACM"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1314690.1314696","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/1314690.1314696","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T09:56:11Z","timestamp":1750240571000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1314690.1314696"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2007,12]]},"references-count":28,"journal-issue":{"issue":"6","published-print":{"date-parts":[[2007,12]]}},"alternative-id":["10.1145\/1314690.1314696"],"URL":"https:\/\/doi.org\/10.1145\/1314690.1314696","relation":{},"ISSN":["0004-5411","1557-735X"],"issn-type":[{"value":"0004-5411","type":"print"},{"value":"1557-735X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2007,12]]},"assertion":[{"value":"2007-12-01","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}