Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dacili/math-for-ai
https://github.com/dacili/math-for-ai
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dacili/math-for-ai
- Owner: Dacili
- Created: 2024-10-18T12:39:51.000Z (27 days ago)
- Default Branch: master
- Last Pushed: 2024-11-07T11:32:46.000Z (7 days ago)
- Last Synced: 2024-11-07T12:29:48.292Z (7 days ago)
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Math for AI
https://www.freecodecamp.org/news/all-the-math-you-need-in-artificial-intelligence/
> In order to be a good with AI, you gotta be good with some specific branches of math.> Repetitio est mater studiorum (lat.) Repetition is the mother of all learning.
## Concepts of mathematics:
### 1. Algebra
### 2. Linear Algebra
### 3. Calculus
### 4. Statistics & Probability
### 5. Information Theory
-------------
## 1. Algebra
- **Exponents** - An exponent refers to the number of times a number is multiplied by itself. For example, 2 to the 3rd (2^3) means: 2 x 2 x 2 = 8.
![image](https://github.com/user-attachments/assets/ddf2638d-1d76-4a2d-91cf-1bd547f0890f)- **Radicals** - The √ symbol that is used to denote square root or nth roots.
**Radicand** - A number or expression inside the radical symbol
![image](https://github.com/user-attachments/assets/23ba19a7-22ea-458d-b895-b9cf23e18577)
Laws (rules) of radicals:
![image](https://github.com/user-attachments/assets/f79ffa3d-5c38-4209-bdfa-2cb455ec4723)- **Factorials** - operation of multiplying any natural number with all the natural numbers that are smaller than it. Factorial is used for questions that ask you to find how many ways you can arrange or order a set number of things.
![image](https://github.com/user-attachments/assets/fcd55b48-0527-4425-ad02-88047a894008)- **Summations** - summation is the addition of a sequence of numbers, called addends or summands; the result is their sum or total.
- ![image](https://github.com/user-attachments/assets/7fc453d2-8b42-4468-9cf9-222e4526fed3)
Rules:
![image](https://github.com/user-attachments/assets/908d59f6-3f4c-4e2e-adf0-e3b46ac571d0)
**Closed form** - an expression or equation is in closed form if it is formed with constants, variables and a finite set of basic functions connected by arithmetic operations (+, −, ×, /, and integer powers) and function composition. Commonly, the allowed functions are nth root, exponential function, logarithm, and trigonometric functions.
![image](https://github.com/user-attachments/assets/c5026161-8072-42ab-9456-ddfbb15623fd)
![image](https://github.com/user-attachments/assets/f98c8c51-2338-49a5-ba83-8a60493d4e71)- **Scientific notations** - The base should be always 10.
![image](https://github.com/user-attachments/assets/5052e805-f55c-4aee-941f-0c0718a64594)
![image](https://github.com/user-attachments/assets/2ad8c7f6-6941-4bc6-ad26-133400d58a35)Other things to remind yourself:
- **logarithms**
![image](https://github.com/user-attachments/assets/102e60ac-fd63-41c4-8a5f-80adafd2ec4c)- **trigonometric functions**
trigonometric table:
![image](https://github.com/user-attachments/assets/4c44723d-9ed1-4e0c-9ab0-fca361e4f513)
trigonometric graphs:
![image](https://github.com/user-attachments/assets/d7cd6370-ec71-4728-aa28-8432947b7f5c)
- formulas for square, ...
![image](https://github.com/user-attachments/assets/2c79baa9-b5c6-4345-bd5e-6fc775d6fd64)
- quadratic equation
![image](https://github.com/user-attachments/assets/e97eb9e0-d85f-4f2a-a277-40b2a3e59fd4)-------------
### 2. Linear Algebra
- **Matrix operations** -
- **Vector spaces** -
- **Linear transformation** -
cool course:
https://ocw.mit.edu/courses/18-06-linear-algebra-spring-2010/**Scalars** — a single number (can be real or natural).
**Vectors** — a list of numbers, arranged in order. Consider them as points in space with each element representing the coordinate along an axis.
**Matrices** — a 2-D array of numbers where each number is identified by 2 indices.
**Tensors** — an N-D array (N>2) of numbers, arranged on a regular grid with N-axes. Important in Machine Learning, Deep Learning and Computer Vision.
**Eigenvectors & Eigenvalues** — special vectors and their corresponding scalar quantity. Understand the significance and how to find them.
**Singular Value Decomposition** — factorization of a matrix into 3 matrices. Understand the properties and applications.
**Principal Component Analysis (PCA)** — understand the significance, properties, and applications.
Properties such as the **Dot product**, **Vector product** and the **Hadamard product** are useful to know as well.-------------
### 3. Calculus
- **Derivatives** -
- **Integrals** -
- **Fundamental theorems** -
https://www.khanacademy.org/math/calculus-1/cs1-limits-and-continuity**Derivatives** — rules (addition, product, chain rule, and so on), hyperbolic derivatives (tanh, cosh, and so on) and partial derivatives.
**Vector/Matrix Calculus** — different derivative operators (Gradient, Jacobian, Hessian and Laplacian)
**Gradient Algorithms** — local/global maxima and minima, saddle points, convex functions, batches and mini-batches, stochastic gradient descent, and performance comparison.-------------
### 4. Statistics & Probability
- **Counting** -
- **Random variables** -
- **Distributions** -
- **Limit theorem** -
- **Linear regression** -
- **Classification** -
- **Tree-based methods** -**Basic Statistics** — Mean, median, mode, variance, covariance, and so on.
**Basic rules in probability** — events (dependent and independent), sample spaces, conditional probability.
**Random variables** — continuous and discrete, expectation, variance, distributions (joint and conditional).
**Bayes’ Theorem** — calculates validity of beliefs. Bayesian software helps machines recognize patterns and make decisions.
**Maximum Likelihood Estimation (MLE)** — parameter estimation. Requires knowledge of fundamental probability concepts (joint probability and independence of events).
**Common Distributions** — binomial, poisson, bernoulli, gaussian, exponential.-------------
### 5. Information Theory
**Entropy** — also called Shannon Entropy. Used to measure the uncertainty in an experiment.
**Cross-Entropy** — compares two probability distributions and tells us how similar they are.
**Kullback Leibler Divergence** — another measure of how similar two probability distributions are.
**Viterbi Algorithm** — widely used in Natural Language Processing (NLP) and Speech.
**Encoder-Decoder** — used in Machine Translation RNNs and other models.-------------