Skip to main content

Aggregating Data with Averaging Functions

  • Chapter
  • First Online:
An Introduction to Data Analysis using Aggregation Functions in R
  • 8480 Accesses

Abstract

This chapter introduces the concept of averaging aggregation. Usually when an ‘average’ or ‘mean’ is required, we will calculate the arithmetic mean, which is the sum of all numbers divided by how many there are. However, the arithmetic mean is just one example among many functions that can be classed as ‘averaging’. Averaging functions are used to summarize sets of numbers in a way that gives a representative idea of what is normal. We will see that in some situations, it is neither useful nor appropriate to use the arithmetic mean. We provide examples of other useful averaging functions including the median, the geometric mean and the harmonic mean and give an overview of their properties. The chapter includes worked examples and questions, as well as an introduction to the R programming language and how these functions can be implemented.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 84.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    This broader definition of a function extends to computer functions and algorithms too. An object, file, image, etc., is submitted and an output is produced.

  2. 2.

    Generated using the f.plot3d() function from the AggWAfit library available from http://www.researchgate.net/publication/306099814_AggWAfit_R_library or alternatively http://aggregationfunctions.wordpress.com/book.

References

  1. Beliakov, G., Pradera, A., Calvo, T.: Aggregation Functions: A Guide for Practitioners. Springer, Heidelberg (2007)

    MATH  Google Scholar 

  2. Beliakov, G., Bustince, H., Calvo, T.: A Practical Guide to Averaging Functions. Springer, Berlin/New York (2015)

    Google Scholar 

  3. Camargo, J.A.: Must dominance increase with the number of subordinate species in competitive interactions? J. Theor. Biol. 161 (4), 537–542 (1993)

    Article  Google Scholar 

  4. Economist Intelligence Unit: Women’s economic opportunity 2012: A global index and ranking from the Economist Intelligence Unit, 1–51. http://www.eiu.com (2015). Cited 10 Aug 2015

  5. Gagolewski, M.: Data Fusion. Theory, Methods and Applications. Institute of Computer Science, Polish Academy of Sciences (2015)

    Google Scholar 

  6. Gini, C.: Variabilità e Mutabilità. Tipografia di Paolo Cuppini, Bologna (1912)

    Google Scholar 

  7. Goldberg, D.: What every computer scientist should know about floating-point arithmetic. ACM Comput. Surv. 23 (1), 5–48 (1991)

    Article  Google Scholar 

  8. Grabisch, M., Marichal, J.-L., Mesiar, R., Pap, E.: Aggregation Functions. Cambridge University press, Cambridge (2009)

    Book  MATH  Google Scholar 

  9. Hale, S., Nimmo, D.G., James, S., White, J., et al.: Fire and climatic extremes shape mammal distributions in a fire-prone landscape. Diversity and Distributions. doi:10.1111/ddi.12471

    Google Scholar 

  10. Howstat Computing Services: Curtley Ambrose Player Profile - Test Cricket. http://www.howstat.com.au/cricket/statistics/Players/PlayerOverview.asp?PlayerId=0065 (2016). Cited 15 Jan 1999

  11. Kelly, L.T., Bennett, A.F., Clarke, M.F., McCarthy, M.A.: Optimal fire histories for biodiversity conservation. Conserv. Biol. 29, 473–481 (2015)

    Article  Google Scholar 

  12. Lurie, P.: Actuarial Methods in Health Insurance Provisioning, Pricing and Forecasting. Institute of Actuaries of Australia Biennial Convention 2007, Christchurch, New Zealand (2007)

    Google Scholar 

  13. Nippon Professional Baseball Organisation (NPB): Hayato Sakomoto Player Statistics. http://npb.jp/bis/eng/players/51955114.html (2016). Cited 15 Jul 2016

  14. Ponte, J.P.: The History of the Concept of Function and Some Educational Implications. Math. Edu. 3 (2), 3–8 (1992)

    Google Scholar 

  15. R Core Team: R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. http://www.R-project.org/ (2014)

  16. Torra, V., Narukawa, Y.: Modeling Decisions. Information Fusion and Aggregation Operators. Springer, Berlin/Heidelberg (2007)

    MATH  Google Scholar 

  17. Women’s National Basketball Association (WNBA): Elena Delle Donne Player Statistics. http://www.wnba.com/player/elena-delle-donne/#/stats (2016). Cited 15 Jul 2016

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer International Publishing AG

About this chapter

Cite this chapter

James, S. (2016). Aggregating Data with Averaging Functions. In: An Introduction to Data Analysis using Aggregation Functions in R. Springer, Cham. https://doi.org/10.1007/978-3-319-46762-7_1

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-46762-7_1

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-46761-0

  • Online ISBN: 978-3-319-46762-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics