The confusion matrix is often used for classification analysis, where a C ×
C matrix (C is the number of classes) is created by matching the predicted
values (in columns) with the desired classes (in rows). For an ordered output,
the predicted class is given by pi = yi
, if |yi − ybi
| ≤ T, else pi = y
0
i
, where
y
0
i denotes the closest class to ybi
, given that y
0
i
6= yi
. From the matrix, several
metrics can be used to access the overall classification performance, such as the
accuracy and precision (i.e. the predicted column accuracies)