Results 1 to 6 of 6

Thread: Trends

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    Yorkshire, England
    Posts
    14

    Smile

    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!

  2. #2
    New Member
    Join Date
    Aug 2000
    Location
    Colombia
    Posts
    10

    Post excel function

    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
    "There are two ways to solve a problem, the third usually work fine"

    Visual Basic 6 Pro SP 4
    AMD K6-II 64 MB Win 98 IE 5.5

  3. #3
    New Member
    Join Date
    Aug 2000
    Location
    Colombia
    Posts
    10
    Also look in the Excel help for SLOPE function
    "There are two ways to solve a problem, the third usually work fine"

    Visual Basic 6 Pro SP 4
    AMD K6-II 64 MB Win 98 IE 5.5

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    Yorkshire, England
    Posts
    14

    Smile

    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.

  5. #5
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Re: Trends

    Just in case anyway was too lazy to code it up...

    i have uploaded a sample...
    Attached Files Attached Files

  6. #6
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253
    "As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein

    It's turtles! And it's all the way down

Posting Permissions

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



Click Here to Expand Forum to Full Width