home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / pascal / 7758 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  702 b 

  1. Path: sparky!uunet!usc!cs.utexas.edu!torn!news.ccs.queensu.ca!qucdn!boydj
  2. Organization: Queen's University at Kingston
  3. Date: Wed, 30 Dec 1992 22:34:23 EST
  4. From: Jeff Boyd <BOYDJ@QUCDN.QueensU.CA>
  5. Message-ID: <92365.223423BOYDJ@QUCDN.QueensU.CA>
  6. Newsgroups: comp.lang.pascal
  7. Subject: Re: Correlation Coefficient
  8. Lines: 19
  9.  
  10.  
  11. Let
  12.     n be the number of data pairs
  13.     Sx  = sum of {x}
  14.     Sy  = sum of {y}
  15.     Sxx = sum of {x^2}
  16.     Syy = sum of {y^2}
  17.     Sxy = sum of {xy}
  18.  
  19. Then
  20.                            n(Sxy) - (Sx)(Sy)
  21.       r  =  ---------------------------------------------
  22.             sqrt[n(Sxx)-(Sx)(Sx)] * sqrt[n(Syy)-(Sy)(Sy)]
  23.  
  24. This is the formula of choice for simple computations.
  25.  
  26.  
  27. jeff
  28.  
  29.