reference and confusion matrix