Books

Books by Eliott Kalfon that teach machine learning and the mathematics of AI through intuition first: Machine Learning Intuition and Linear Regression with Gradient Descent.

I write short books to explain complex concepts with simple words and examples. I focus on intuition first, and build the maths from there. This is my way of sharing the beauty of Machine Learning with the world.

Cover of Machine Learning Intuition

Machine Learning Intuition

Uncovering the simple ideas behind the science of prediction

Machine Learning and AI have taken our world by storm, and yet few people truly understand how they work. This book explains how an algorithm can learn from examples and make useful predictions, with clear explanations and simple visualisations rather than heavy mathematics.

It opens with a single question: given two measurements of a tumour, is it benign or malignant? By plotting past examples and looking at the nearest ones, you make your first machine learning prediction by hand, then turn that intuition into an algorithm. Every following chapter builds on that picture.

Who it is for: curious readers, students and professionals who want to understand machine learning without a mathematics background, and practitioners who want a clear mental model to explain it to others.

What you will learn:

  • Introduction to Machine Learning: prediction, classification and regression, data as points in space, distance and similarity, nearest neighbours
  • Model Evaluation: how to tell whether a model is any good, for classification and regression
  • Decision Trees: evaluating splits, recursive splitting, probabilities and regression with trees
  • Data Preprocessing: encoding categorical features, representing dates, missing data, feature scaling
  • Bringing it all together: an end-to-end machine learning project, and how machine learning relates to generative AI

Get it on Amazon

Cover of Linear Regression with Gradient Descent

Linear Regression with Gradient Descent

Mathematical Foundations of AI

ChatGPT and Claude are not linear regressions. But try reading about how they are trained and you quickly meet terms like gradient descent, the chain rule and cross-entropy. This book teaches those foundations through the simplest model there is: drawing a line through data.

It is written as a story. It starts with solar panels and ice cream sales, where you fit a line by hand. It then explores what “drawing a line” actually requires: measuring error, derivatives, gradients and linear algebra. Each chapter builds on the previous one, the maths is self-contained, and exercises come with solutions.

Who it is for: anyone who wants to understand the mathematics behind modern AI: students, professionals, or engineers who use machine learning libraries and want to know what happens inside them.

What you will learn:

  • Representing linear regression: data as points in space, functions
  • Measuring regression quality: error metrics, sigma notation, fitting a line
  • Derivatives and gradient descent: derivatives, minimising a function, the chain rule
  • Multiple parameters: functions of several inputs, first steps in linear algebra, the gradient vector
  • Multiple linear regression: linear algebra for regression, fitting many coefficients, interpreting them in the real world
  • Classification: logistic regression, evaluating and calibrating classifiers, and deriving the cross-entropy gradient

Get it on Amazon

Privacy