Incode Systems Home Page Incode Systems, Inc.


STAT



(09-26-1990 10:06am STAT.EXE)
(see also: PLOT)

STAT - Linear Regression and Correlation Analysis Program
(C) Copyright Glenn B. Lawler, 1986. All Rights Reserved.

STAT reads X,Y coordinate data from the StdIn and performs a Linear Regression and Correlation Analysis on the data:

Data:
1,2
2,3
3,4
4,5

Output:
Mean X = 2.5
Mean Y = 3.5
Lowest X = 1
Highest X = 4
X Range = 3
Lowest Y = 2
Highest Y = 5
Y Range = 3
Y Variance (N weighting) = 1.25
Y Variance (N-1 weighting) = 1.666666666666667
X Variance (N weighting) = 1.25
X Variance (N-1 weighting) = 1.666666666666667
Y Standard Deviation (N weighting) = 1.118033988749895
Y Standard Deviation (N-1 weighting) = 1.290994448735806
X Standard Deviation (N weighting) = 1.118033988749895
X Standard Deviation (N-1 weighting) = 1.290994448735806
Slope = 1
Base = 1
Correlation Coefficient = 1

Y = (X * 1 ) + 1
X = (Y - 1 ) / 1