home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!cs.utexas.edu!torn!news.ccs.queensu.ca!qucdn!boydj
- Organization: Queen's University at Kingston
- Date: Wed, 30 Dec 1992 22:34:23 EST
- From: Jeff Boyd <BOYDJ@QUCDN.QueensU.CA>
- Message-ID: <92365.223423BOYDJ@QUCDN.QueensU.CA>
- Newsgroups: comp.lang.pascal
- Subject: Re: Correlation Coefficient
- Lines: 19
-
-
- Let
- n be the number of data pairs
- Sx = sum of {x}
- Sy = sum of {y}
- Sxx = sum of {x^2}
- Syy = sum of {y^2}
- Sxy = sum of {xy}
-
- Then
- n(Sxy) - (Sx)(Sy)
- r = ---------------------------------------------
- sqrt[n(Sxx)-(Sx)(Sx)] * sqrt[n(Syy)-(Sy)(Sy)]
-
- This is the formula of choice for simple computations.
-
-
- jeff
-
-