DEV Community

Cover image for I wrote a free, open-source book on the math behind AI in freeCodeCamp
Tiago Monteiro
Tiago Monteiro

Posted on • Originally published at freecodecamp.org

I wrote a free, open-source book on the math behind AI in freeCodeCamp

Why do a lot of people fail at AI?

Because the math scares them.

TLDR

Why I wrote this book?

I started learning machine learning before ChatGPT came out

A big problem I had back then was understanding the mathematics behind machine learning.

An engineering bachelor's degree later (electrical and computer engineering) and hundreds of thousands of views on my freeCodeCamp blog, I decided to write a book on the math behind AI!

Also, I am currently doing a master degree in AI at northeastern university.

The book teaches the math in simple and plain English with a lot of analogies.

Currently it has +50K+ views, and the GitHub repo has +140 stars.

Also, I tried to balance the best way possible the depth and making it accessible.

Finally, I show a lot of examples where the math concepts of AI are applied in fields of engineering and how these math ideas power billion dollar industries.

What is in the book?

  • The Architecture of Mathematics: How math connects from foundations to AI, including Gödel's paradoxes and Einstein's relativity
  • The Field of Artificial Intelligence: From Control Theory to modern AI, understanding symbolic vs. non-symbolic AI approaches
  • Linear Algebra: Vectors, matrices, determinants, eigenvalues, and transformations that show geometry of data in machine learning
  • Multivariable Calculus: Limits, Derivatives, and Integrals.
  • Probability & Statistics: Bayesian methods, distributions, and Markov models for learning from uncertainty
  • Optimization Theory: Gradient descent, Adam optimizer, and how machines learn step by step
  • Real-World Applications: A lot of Python code examples, animated visualizations, and practical examples of where the math is applied

How can you help?

Link to the book: https://www.freecodecamp.org/news/the-math-behind-artificial-intelligence-book/

The book repo is here: https://github.com/tiagomonteiro0715/The-Math-Behind-Artificial-Intelligence-A-Guide-to-AI-Foundations

If it's useful to you:

  • A star helps more people find it
  • Suggest topics you'd want covered next in a new version of the book!

Saw a mistake in the book?

Send me an email!

monteiro.t@northeastern.edu

Top comments (0)