Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

Open in app Sign up Sign In

Mathematics for AI: All the essential math


topics you need
Essential list of math topics for Machine Learning and Deep Learning.

Abhishek Parbhakar · Follow


Published in Towards Data Science
3 min read · Aug 10, 2018

Listen Share

If AI is the secret sauce to make Pepper smarter! Then math is the air for all the essential ingredients to make that
sauce! Photo by Alex Knight on Unsplash

The relationship between AI and mathematics can be summed up as:


1.98K 7
A person working in the field of AI who doesn’t know
math is like a politician who doesn’t know how to
persuade. Both have an inescapable area to work
upon!
I won’t spend any more time on importance of learning mathematics for AI and will
directly go to the main objective of this article.

A popular recommendation for learning mathematics for AI goes something like


this:

Learn linear algebra, probability, multivariate calculus, optimization and few


other topics

And then there is a list of courses and lectures that can be followed to
accomplish the same

Although the above approach is perfectly fine, I personally feel there is another
approach that is better especially for the people 1) who don’t have a solid
quantitative background and 2) cannot afford the time to do all the prerequisite
math courses. That is:

Instead of going by the subjects, go by the topics.


For example, while studying multivariate calculus you will come across the famous
Stokes’ Theorem but it turns out that there is a high chance that it won’t be of any
immediate use to you in practice and even in reading research papers. So, going by
subject(courses) may be time-consuming and you might get lost in the vast sea of
mathematics.

I recommend that you:

go topic by topic, learn the essential concepts first, consolidate them

And only then go for the other concepts as you encounter them during practical
implementation and reading literature
Here is a list of essential topics in each subject:

Linear Algebra
Vectors
definition, scalars, addition, scalar multiplication, inner product(dot product),
vector projection, cosine similarity, orthogonal vectors, normal and
orthonormal vectors, vector norm, vector space, linear combination, linear
span, linear independence, basis vectors

Matrices
definition, addition, transpose, scalar multiplication, matrix multiplication,
matrix multiplication properties, hadamard product, functions, linear
transformation, determinant, identity matrix, invertible matrix and inverse,
rank, trace, popular type of matrices- symmetric, diagonal, orthogonal,
orthonormal, positive definite matrix

Eigenvalues & eigenvectors


concept, intuition, significance, how to find

Principle component analysis


concept, properties, applications

Singular value decomposition


concept, properties, applications

Calculus
Functions

Scalar derivative
definition, intuition, common rules of differentiation, chain rule, partial
derivatives

Gradient
concept, intuition, properties, directional derivative

Vector and matrix calculus


how to find derivative of {scalar-valued, vector-valued} function wrt a {scalar,
vector} -> four combinations- Jacobian

Gradient algorithms
local/global maxima and minima, saddle point, convex functions, gradient
descent algorithms- batch, mini-batch, stochastic, their performance
comparison

Probability

Basic rules and axioms


events, sample space, frequentist approach, dependent and independent events,
conditional probability

Random variables- continuous and discrete, expectation, variance,


distributions- joint and conditional

Bayes’ Theorem, MAP, MLE

Popular distributions- binomial, bernoulli, poisson, exponential, gaussian

Conjugate priors

Miscellaneous
Information theory- entropy, cross-entropy, KL divergence, mutual information

Markov Chain- definition, transition matrix, stationarity

What sources to follow?


Any source which suits you, be it a YouTube video or a classical textbook.
If you are unsure, do a simple google search for each topic [<topic name> +
“machine learning”] and read from top links to develop a broad understanding.

The list may seem lengthy but it can save you a lot of time. Reading the above topics
will give you the confidence to dive into the deep world of AI and explore more on
your own.

In case you liked the article, do follow me Abhishek Parbhakar for more articles
related to AI, philosophy, and economics.

Machine Learning Artificial Intelligence Deep Learning Mathematics


Data Science

Follow

Written by Abhishek Parbhakar


2.1K Followers · Writer for Towards Data Science

Data Scientist • AI Instructor • www.linkedin.com/in/abhishek-parbhakar •


https://topmate.io/abhishek_parbhakar

More from Abhishek Parbhakar and Towards Data Science

Abhishek Parbhakar in Towards Data Science

Hot topics in AI research


If you are reading this article, you are already surrounded by AI-powered tech more than you
can imagine. From the website in front of you…
5 min read · May 19, 2018

900 6

Marco Peixeiro in Towards Data Science

TimeGPT: The First Foundation Model for Time Series Forecasting


Explore the first generative pre-trained forecasting model and apply it in a project with Python

· 12 min read · Oct 24

2.2K 19
Adrian H. Raudaschl in Towards Data Science

Forget RAG, the Future is RAG-Fusion


The Next Frontier of Search: Retrieval Augmented Generation meets Reciprocal Rank Fusion
and Generated Queries

· 10 min read · Oct 6

2.4K 24

Abhishek Parbhakar

150 Real Data Science interview questions


These are 100% authentic data science interview questions that my friends and I have faced in
recent times. I compiled this list a couple…

5 min read · Feb 26

54

See all from Abhishek Parbhakar

See all from Towards Data Science

Recommended from Medium

Daniel Warfield in Towards Data Science

Transformers — Intuitively and Exhaustively Explained


Exploring the modern wave of machine learning: taking apart the transformer step by step

· 14 min read · Sep 21


1.4K 10

Rukaiya Bano

All you need to know about transformers


Transformers are the state-of-the-art models today and knowing them is extremely important
to understand the ongoing advancements in AI.

6 min read · Aug 12

114

Lists

Predictive Modeling w/ Python


20 stories · 594 saves

Practical Guides to Machine Learning


10 stories · 673 saves

Natural Language Processing


847 stories · 395 saves

ChatGPT prompts
30 stories · 660 saves
Virat Patel

I applied to 230 Data science jobs during last 2 months and this is what
I’ve found.
A little bit about myself: I have been working as a Data Analyst for a little over 2 years.
Additionally, for the past year, I have been…

· 3 min read · Aug 11

2.4K 55

Sertis
Machine Learning Engineer vs. Software Engineer: What are the
differences?
In the world of computer science, there are two highly sought-after professions: machine
learning engineer and software engineer. These…

4 min read · Jul 18

109

Freedom Preetham in Autonomous Agents

What Next after Transformers? A Rigorous Mathematical Examination of


the Retentive Network (RETNET)
The landscape of deep learning is punctuated by the emergence of novel architectures, each
aiming to address the multifaceted challenges…

10 min read · Sep 25

173 1
Ignacio de Gregorio

OpenAI Just Killed an Entire Market in 45 Minutes


The Story Everyone Should Have Seen Coming

· 6 min read · 6 days ago

9.3K 139

See more recommendations

You might also like