The first example shows how a confusion matrix can be constructed from a vector of expected (ground-truth)
values and their associated predictions (as done by a test, procedure or machine learning classifier):