Abstract
The query complexity of estimating the mean of some [0, 1] variables is understood. Inspired by some work by Carterette et al. on evaluating retrieval systems, and by Moffat and Zobel’s new proposal for such evaluation, we examine the query complexity of weighted average calculation. In general, determining an answer within accuracy \({\varepsilon}\), with high probability, requires \({\Omega(\varepsilon^{-2})}\) queries, as the mean is a special case. There is a matching upper bound for the weighted mean. If the weights are a normalized prefix of a divergent series, the same result holds. However, if the weights follow a geometric sequence, a sample of size \({\Omega(\log (1/\varepsilon))}\) suffices. Our principal contribution is the investigation of power-law sequences of weights. We show that if the ith largest weight is proportional to i −p, for p > 1, then the query complexity is in \({\Omega(\varepsilon^{2/(1-2p)})}\).
Similar content being viewed by others
References
Bar-Yossef, Z., Kumar, R., Sivakumar, D.: Sampling algorithms: lower bounds and applications. In: Proceedings of the 33rd Annual ACM Symposium on Theory of Computing (STOC), pp. 266–275. (2001)
Canetti R., Even G., Goldreich O.: Lower bounds for sampling algorithms for estimating the average. Inf. Process. Lett. 53(1), 17–25 (1995)
Carterette, B., Allan, J., Sitaraman, R.: Minimal test collections for retrieval evaluation. In: Proceedings of the 29th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR), pp. 268–75. (2006)
Dagum P., Karp R., Luby M., Ross S.: An optimal algorithm for monte carlo estimation. SIAM J. Comput. 29, 1484–1496 (2000)
Duffield N., Lund C., Thorup M.: Priority sampling for estimation of arbitrary subset sums. J. ACM 54(6), 32–37 (2007)
Moffat A., Zobel J.: Rank-biased precision for measurement of retrieval effectiveness. ACM Trans. Inf. Syst. 27(1), 1–27 (2008)
Motwani, R., Panigrahy, R., Xu, Y.: Estimating sum by weighted sampling. In: 34th International Colloquium on Automata, Languages and Programming (ICALP), pp. 53–64. (2007)
Szegedy, M.: The DLT priority sampling is essentially optimal. In: Proceedings of the 38th Annual ACM Symposium on Theory of Computing (STOC), pp. 150–158. (2006)
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Chakrabarti, A., Guruswami, V., Wirth, A. et al. The query complexity of estimating weighted averages. Acta Informatica 48, 417–426 (2011). https://doi.org/10.1007/s00236-011-0145-8
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00236-011-0145-8