Skip to main content
Log in

The query complexity of estimating weighted averages

  • Original Article
  • Published:
Acta Informatica Aims and scope Submit manuscript

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)})}\).

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. 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)

  2. Canetti R., Even G., Goldreich O.: Lower bounds for sampling algorithms for estimating the average. Inf. Process. Lett. 53(1), 17–25 (1995)

    Article  MathSciNet  MATH  Google Scholar 

  3. 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)

  4. Dagum P., Karp R., Luby M., Ross S.: An optimal algorithm for monte carlo estimation. SIAM J. Comput. 29, 1484–1496 (2000)

    Article  MathSciNet  MATH  Google Scholar 

  5. Duffield N., Lund C., Thorup M.: Priority sampling for estimation of arbitrary subset sums. J. ACM 54(6), 32–37 (2007)

    Article  MathSciNet  Google Scholar 

  6. Moffat A., Zobel J.: Rank-biased precision for measurement of retrieval effectiveness. ACM Trans. Inf. Syst. 27(1), 1–27 (2008)

    Article  Google Scholar 

  7. 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)

  8. 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)

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Anthony Wirth.

Rights and permissions

Reprints 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

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00236-011-0145-8

Keywords

Navigation