StatsTwo()

Type: REGULAR FUNCTION

Purpose: Calculate statistical information between two sets of data.

Calculate statistical information between two sets of data. The data set can include all of the data in two 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.

Usage: Result = StatsOne (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

Related Topics Link IconRelated Topics