Is this not the classical case of a confusion matrix? Confusion_matrix is the basic concept of machine learning, where you comparing the predictions with the actual values. The ouput compares the values of both series.