Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculating Exponential Function slope, using only partial data

Status
Not open for further replies.

theblot

Computer
May 21, 2012
5
0
0
US
Here's the situation: We're trying to project growth over a few years using our past data for reference. Simple exponential trendline, right? The problem is that in the last two weeks, we saw a massive jump which was out of average and will likely not happen again.

If I was using a linear trendline, it would be easy. I just calculate the slope using past data and apply it to the function. Is there a similar way to figure this out with an exponential tredline?
 
Replies continue below

Recommended for you

Yes, but again, I need to exclude data from the slope, but include it into the final results.

Here's an example:

Let's say every week, I'm increasing exponentially by 1. So it goes as such:
1,2,4,8,16,32,etc...

But two weeks, it's off by a lot:
1,2,4,8,16,58,65, etc...

How can I figure out the growth slope, without considering the extraordinary data entries?
 
Attached is a fit of an exponential function y = beta * exp(alpha*x) using solver. There is a weighting factor assigned to the square resiudal for each data point. The fit solution minimizes the sum of weighted square residual errors.

I put a zero in for the "suspect" data point. Whether it is really bad data or bad model is up to you to decide.

This type approach is also sensitive to the initial value guesses that you put into alpha and beta (like most solver problems).






=====================================
(2B)+(2B)' ?
 
 http://files.engineering.com/getfile.aspx?folder=2f25712b-c335-4aaa-a39a-eaf8f9b6ffff&file=Book1.xls
Correction
"I put a zero in for the suspect data point"
should've been:
"I put a zero [b[weighting factor [/b]in for the suspect data point"

=====================================
(2B)+(2B)' ?
 
This specific application is quite simple. We're calculating data storage on our network, to project how much storage we need to purchase for our company. Our data samples are from the backup routine that runs once a week. Well, for the past two weeks, we consolidated a massive amount of data from an archive source. We won't be doing that again (at least not for a long time), but that means the last two weeks are not a good representation of our normal growth rate.
 
Yea, here's what I did.

I constructed the "slope" based on prior data. Then, I added the difference between the last data point in the list and the data point not in the list. Therefore, it'll include the increase in data, without affecting the slope.
 
The easy way round is to prepare a second column of figures without the 'outlier' (or as we cynics might say, margin of error for your predictions).

Plot the true data as a curve using markers only, and the edited column the same. Add a trend line to the second. That way you'll have your neat little trend line without the outliers, but they are still visible on the graph.



Cheers

Greg Locock


New here? Try reading these, they might help FAQ731-376
 
Status
Not open for further replies.
Back
Top