Re: mathematical problem, adjusting readings
- From: Casper <casper@xxxxxx>
- Date: Fri, 30 Mar 2007 05:50:33 +0200
Wow, the guy from the great mindprod website I always end up at when researching a Java thing. ;)
Anyway, I work in the data acquisition industry but is in no way an expert, yet your problem sounds very familiar so here are my 2 cents should you be interested.
A bell curve (2'nd degree polynomial) is less crude than linear interpolation but still real world data is anything but smooth and symmetric. An n'th degree polynomial could be calculated with a bunch of data points you provide. Norwegian GeoSoft has some nice utilities for this based on Java Numerics:
http://geosoft.no/software/index.html
Now inverse this curve (bell upside down) and add your datapoint, the normalized value at any given time can now be found by simply taking an average of the Y-value of your datapoint and the Y-value of the inverse curve.
Anyway that's how I would approach the problem, unless I misunderstood something. Thanks for your help on many occasions.
/Casper
Roedy Green wrote:
I probably could solve this myself, but I thought I would share this.
problem with the group because you might find it interesting or mildly
challenging.
The problem is this. I sample the hit counts on my website each day,
ideally at noon. I then graph them. I also graph a moving average.
The problem is I am often late or early in my daily sampling, or the
website might be down, so I can't do it at noon.
When I sample late it generates the visual impression of a very good
day followed by a very bad day, even though nothing unusual actually
happened.
So here is the problem. How do I adjust the raw figures to get the
estimated figures for what would have been the count as of noon?
1. cut 1. Use linear interpolation.
2. cut 2. Account for the average distribution -- i.e. some times of
day are busier that others. I could create this by hourly sampling
over a week to discover the shape of the distribution curve.
Let's say for example it was a bell shaped curve around noon. I could
provide you with a bell shaped curve function, that you would in some
mysterious way use to adjust the daily figure. Just how is this curve
normalised?
- References:
- mathematical problem, adjusting readings
- From: Roedy Green
- mathematical problem, adjusting readings
- Prev by Date: Re: mathematical problem, adjusting readings
- Next by Date: Re: mathematical problem, adjusting readings
- Previous by thread: Re: mathematical problem, adjusting readings
- Next by thread: Re: mathematical problem, adjusting readings
- Index(es):
Relevant Pages
|
|