Click to See Complete Forum and Search --> : Trends
Newbe0n
Feb 5th, 2001, 09:26 AM
Does anybody know the maths behind the trend formula in Excel, I am needing to predict a expiry date based on the ware and tear of a part, but can't find a formula to do this. The excel trend function seems to be exactly what I'm after but I don't want to use an Excel plug in for my app. And besides it is always nice to know how these things work!
manuelromero
Feb 5th, 2001, 02:22 PM
the function used by Excel it's Square Least Method (o minimos cuadrados, in spanish) and any statistic book like linear regression
the equation is Y=A+B*X
where
B=(n*Sum(X*Y)-Sum(X)*Sum(Y))/(n*Sum(X^2)-(Sum(X))^2)
A, is obtain solving the equation
A=(Yaverage-B*Xaverage)
and
n, the number of data
X, Y, the points
i hope you understand me
manuelromero
Feb 5th, 2001, 02:23 PM
Also look in the Excel help for SLOPE function
Newbe0n
Feb 6th, 2001, 11:26 AM
That'll do nicely Sir!
It's at this point I wish I had paid more attention in maths!! Thanks for the answer, after a short pondering I now understand it.
dinosaur_uk
Jun 13th, 2005, 08:05 AM
Just in case anyway was too lazy to code it up...
i have uploaded a sample...
yrwyddfa
Jul 18th, 2005, 11:48 AM
http://www.vbforums.com/showthread.php?t=311225
vbforums.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved.