# Confusion matrix

[https://www.safaribooksonline.com/library/view/statistics-for-machine/9781788295758/d3c63dee-aac8-4a17-b437-42bf13348343.xhtml](https://www.safaribooksonline.com/library/view/statistics-for-machine/9781788295758/d3c63dee-aac8-4a17-b437-42bf13348343.xhtml)

the matrix of the actual versus the predicted. This concept is better explained with the example of cancer prediction using the model:

![](https://422781072-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LsbZSeL57mlsVm1bwrG%2F-LsbZa1KWgHxmC9yq5FP%2F-LsbZesBCrTduqgOW8SH%2Fcm1.png?generation=1572621955098404\&alt=media)

![](https://422781072-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LsbZSeL57mlsVm1bwrG%2F-LsbZa1KWgHxmC9yq5FP%2F-LsbZesDLpM8dulCqI7V%2Fcm2.png?generation=1572621955146678\&alt=media)

![](https://422781072-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LsbZSeL57mlsVm1bwrG%2F-LsbZa1KWgHxmC9yq5FP%2F-LsbZesF-yUmngB6qHju%2Fcm3.png?generation=1572621960221534\&alt=media)
