logo
logo

Documentation

The RK correlation coefficient can be computed from either computed KxK confusion matrices or two tables of NxK data points. The former, the discrete version, is computed using the script rkorrC and the latter by the script rkorr. In both cases it is assumed that wK = 1/K.

Compute RK from confusion matrices
On this webserver KxK confusion matrices on the form

C_11 C_12 ... C_1K C_21 C_22 ... C_2K ... C_K1 C_K2 ... C_KK
line by line can be computed. K can differ line by line, but it is recommended that K is the same. An output example is:
R_KKbb'COV_XYCOV_XXCOV_YYQ_KC_11C_12C_13C_21C_22C_23C_31C_32C_33
0.7530.760.751613192212786421455780.85213211289459902939958
0.7930.780.795637032720209471561480.859845823239929599512894
0.0530.050.05393575583486406834172180.37343443963467893213493977
where R_K is the correlation coefficient, K the number of categories, b and b' the coefficients in the linear fits between the two data sets, and COV(X,Y), COV(X,X), COV(Y,Y) the respective expected covariances. Q_K is the normalized trace of the confusion matrix, and C_11, ..., C_33 are the elements of the confusion matrix. This was computed for the confusion matrix data example.

This option invoke the script rkorrC. [The commandline version has an option more, convenient when the script is applied in a pipe of data.]

Warning: use of different K's will imply that the header with C_ij unrealiable. The results line by line is still valid.

Compute RK from two NxK tables of data
Here, only one single R_K can be computed at the time. The input to the webserver should be data line by line of the form (n=1,...,N)

Y_n1, Y_n2, ... , Y_nK X_n1, X_n2, ... , X_nK
An output example
R_Kbb'COV(X,Y)COV(X,X)COV(Y,Y)
0.0091050.1020380.0008138.26793281.02780510175.492523
where R_K is the correlation coefficient b and b' the coefficients in the linear fits between Y and X (and X and Y resp.), and COV(X,Y), COV(X,X), COV(Y,Y) the respective expected covariances. This was computed for the NxK table data example.

This option invoke the script rkorr.



Comments, questions, etc., email webmaster@rk.kvl.dk.


Last updated January 23rd, 2006 by Jan Gorodkin