A confusion matrix is a simple way to visually present the accuracy of a classification algorithm.

Notebook of a forgetful coder

## Machine Learning for the Mathematically Inept: The Confusion Matrix

A confusion matrix is a simple way to visually present the accuracy of a classification algorithm.

## Machine Learning for the Mathematically Inept: The Cosine Rule and Dot Product

This is a generalisation of Pythagoras’ theorem to apply to all triangles rather than just right angled ones. The cosine rule reduces to Pythagoras’ Theorem as well as providing the mathematical basis behind the usefulness of the dot product for establishing the extent to which two vectors are going in the same direction.

## Machine Learning for the Mathematically Inept: Euclidean Distance

Euclidean Distance is the ‘ordinary’ straight line distance between two points in Euclidean Space. It can be seen in action as the frustrating difference in distance between how far away something is (the straight line distance) and how far you have to go to get there (the rather disappointingly named distance travelled).