<< Click to Display Table of Contents >> Navigation: Explain™ Control Language > Library Routines > Mathematical functions > StatsTwo() |
Calculate statistical information between two sets of data.
The data set can include all of the data in two class DATACOL objects, or a subset of the data in the two DATACOL objects. The two DATACOL objects must be of the same length. The calculated statistics are returned as members of a VECTOR.
REGULAR FUNCTION
Result = StatsTwo (DataColX, DataColY, FirstPoint, LastPoint)
DataColX |
DATACOL |
The first column of data. |
DataColY |
DATACOL |
The second column of data. |
FirstPoint |
INDEX |
The first point to include in the data set (Optional). |
LastPoint |
INDEX |
The last point to include in the data set (Optional). |
Result |
VECTOR |
•[0] N Sum(1) •[1] XMean Sum(X)/N •[2] YMean Sum(Y)/N •[3] XVarp Sum(X–Xm)2 / N •[4] YVarp Sum(Y–Ym)2 / N •[5] Covar Sum(X–Xm)*(Y–Ym) /N •[6] XSig Sqrt(XVar) •[7] YSig Sqrt(YVar) •[8] Correl Covar/(XSig*YSig) (Pearson's R) •[9] XSlope dY/dX = Covar/Xvarp •[10] XYint X@Y=0 •[11] YSlope dX/dY = Covar/Yvarp •[12] YXint Y@X=0 |