Chapter 2

Demystifying the Math behind Machine Learning

IN THIS CHAPTER

check Figuring out why you need a matrix

check Computing with matrix calculus to your advantage

check Getting a glance at how probability works

check Explaining the Bayesian point of view on probability

check Describing observations using statistical measures

“With me, everything turns into mathematics.”

— RENÉ DESCARTES

If you want to implement existing machine learning algorithms from scratch or you need to devise new ones, you will require some knowledge of probability, linear algebra, linear programming, and multivariable calculus. You also need to know how to translate math into working code. This chapter begins by helping you understand the mechanics of machine learning math and describes how to translate math basics into usable code.

If you want to apply existing machine learning for practical purposes instead, you can leverage existing R and Python software libraries using a basic knowledge of math and statistics. In the end, you ...

Get Coding All-in-One For Dummies now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.