×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

how to calculate a linear trend

how to calculate a linear trend

how to calculate a linear trend

(OP)
Can someone point out how I can take a known set of x-values and a known set of y-values and return a linear trend? Excel provides a TREND() function but I need to do this on a server-side object, preferably in VB.

RE: how to calculate a linear trend

Go through each point and find the equation for the line that connects them.
Then you could simply average them out.  

RE: how to calculate a linear trend

(OP)
hmm - I'm not sure that's what I'm looking for. The function needs to suggest a future trend based on the known values from the past.

RE: how to calculate a linear trend

Most books on Statistics will show how to calculate the line equation for linear trend (or regression) in the form 'y = mx + c'. Extrapolation of that data just needs you to supply the appropriate x value to the equation.

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'

RE: how to calculate a linear trend

(OP)
Thank you johnwm - I'll start from there.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close