+ Reply to Thread
Results 1 to 3 of 3

How to weight averages for unevenly distributed replicates

  1. #1
    Registered User
    Join Date
    04-17-2015
    Location
    Copenhagen
    MS-Off Ver
    2010
    Posts
    8

    Question How to weight averages for unevenly distributed replicates

    In case the title of this thread didn't make sense (it barely does to me), here's a more detailed description:

    I am trying to calculate the background levels of a number of pollutants in the sea. My data comes from several measuring stations, that take samples at uneven intervals. I have data from 2007-2014, but not all stations have data from each year.

    I would like to calculate a weighted average of each pollutant at each station, by somehow assigning each data point a weight, based on its age. So if one stations has measured pollutant A in 2014, 2013 and 2012, a total of 1+2+3=6 years ago, the average could be calculated like:

    mean = [2014]*3/6 + [2013]*2/6 + [2012]*1/6

    Or if the measurements were performed in 2014, 2013 and 2011 and 2009 (a total of 14 years ago) it could be:

    mean = [2014]*7/14 + [2013]*4/14 + [2011]*2/14 + [2009]*1/14

    Does that make it clearer? I don't know, I guess this need some sort of VBA, but I've only ever implemented code that someone else wrote...

    Anyway here's an example: example for excelforum.xlsx

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to weight averages for unevenly distributed replicates

    What's the rationale for that? If the the most current measurements are accurate, what does a weighted average tell you?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,670

    Re: How to weight averages for unevenly distributed replicates

    In looking through the data by applying the filter to column A I can not find where any one station is listed as having monitored for more than one day. Do you just want an average of each pollutant weighted by the year the measurement was taken?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help calculating the total weight lost from starting weight D1
    By rgainey201 in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 12-31-2014, 06:16 PM
  2. Creating a macro which replicates my Excel forumla
    By masond3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2014, 03:52 PM
  3. Auto Calculate Shipping Weight/Cartons and Package Weight.
    By suhailsiddiqui09 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-27-2013, 06:48 AM
  4. Making an known amount of replicates in autofill
    By Reas in forum Excel General
    Replies: 3
    Last Post: 08-28-2012, 06:00 AM
  5. Dragging Cell replicates value, not formula
    By motown in forum Excel General
    Replies: 2
    Last Post: 04-09-2008, 04:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1