swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trendline fit


From: Jamie O'Keefe
Subject: Re: trendline fit
Date: Thu, 06 May 1999 15:16:15 PDT

The Least Squares method for y = ax + b is:

a = Sxy / Sxx and b = avg of y - a * avg of x

where:

Sxy = (Sum(xi * yi) - (n * avg of x * avg of y))
Sxx = (Sum(xi^2) - n * (avg of x) ^ 2)
xi is the i th instance of the x variable
yi is the i th instance of the y variable
n is the number of data points

Rules of sample sizes apply. You should be able to find these equations (and more) in most any Econometrics textbook.

Jamie


_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com

                 ==================================
  Swarm-Support is for discussion of the technical details of the day
  to day usage of Swarm.  For list administration needs (esp.
  [un]subscribing), please send a message to <address@hidden>
  with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]