I have a set of values for particular years and I wish to weight the more recent data more heavily and the most distant (timewise) less heavily, and I wish to do it so that the weighting drops exponentially. It's been some time since I took a math course and for some reason I cannot think straight.
The data that I am using is annual data for bodyweight and wastline for many different people and there are varied amounts of years.
here's 2 examples (The data I have are sometimes over 20 years, so the two below are brief)
Example One
PersonID-Bodyweight-Waistline
2009-28-135
2008-27-132
2007-27-129
2006-26-115
Example Two
PersonID-Bodyweight-Waistline
2009-32-225
2008-31-215
2007-36-240
2006-36-245
2005-36-240
2004-42-275
I put together a linear weighting system if I wanted to weight the most recent year as 1 and the least recent year as .1 as such:
(Beginning Weight-Ending Weight)/(#years-1)
so for "Example One" above there are 4 years, so each year would drop down by (1-.1)/3 or .3... or:
PersonID-Bodyweight-Waistline-Weighting
2009-28-135-1
2008-27-132-0.7
2007-27-129-0.4
2006-26-115-0.1
How would I do this exponentially so that 2009 is weighted heaviest, 2008 slightly less, 2007 slightly less than that, etc. Again, the examples I have are sometimes over 20 years, so the two above are brief examples.
Thanks,
Alfonse
The data that I am using is annual data for bodyweight and wastline for many different people and there are varied amounts of years.
here's 2 examples (The data I have are sometimes over 20 years, so the two below are brief)
Example One
PersonID-Bodyweight-Waistline
2009-28-135
2008-27-132
2007-27-129
2006-26-115
Example Two
PersonID-Bodyweight-Waistline
2009-32-225
2008-31-215
2007-36-240
2006-36-245
2005-36-240
2004-42-275
I put together a linear weighting system if I wanted to weight the most recent year as 1 and the least recent year as .1 as such:
(Beginning Weight-Ending Weight)/(#years-1)
so for "Example One" above there are 4 years, so each year would drop down by (1-.1)/3 or .3... or:
PersonID-Bodyweight-Waistline-Weighting
2009-28-135-1
2008-27-132-0.7
2007-27-129-0.4
2006-26-115-0.1
How would I do this exponentially so that 2009 is weighted heaviest, 2008 slightly less, 2007 slightly less than that, etc. Again, the examples I have are sometimes over 20 years, so the two above are brief examples.
Thanks,
Alfonse