Category Archives: Basic Math

Machine Learning Basics with Python – Level 3.

Level 3: Scikit-Learn Foundations:From Regression & Classification to Decision Trees,Clustering & Model Evaluation…. Math & Python Textbook Series 7“Curiosity about mathematics,the foundation of everything in the AI era.” Two free downloadable files : Hands-On Data Analysis with PythonEfficient learning with Colab note files linked to this book.Beginner-friendly Python code explained step-by-step.FilesStart Instantly in Your Browser—No Setup! ContentsChapter 1… Read More »

Data Analysis with Python – Level 2.

Level 2: Pandas Foundations | From Data Profiling & Visualizationto Predictive Analytics & Intro to Machine Learning…. Math & Python Textbook Series 6“Curiosity about mathematics,the foundation of everything in the AI era.” Two free downloadable files : Hands-On Data Analysis with PythonEfficient learning with Colab note files linked to this book.Beginner-friendly Python code explained step-by-step.FilesStart Instantly in Your… Read More »

Foundations of Statistics with Python Data Analysis – Level 1.

Math & Python Textbook Series“Curiosity about mathematics,the foundation of everything in the AI era.” Level 1: From Central Tendencyand IQR to Correlation, Standard Scores, and Regression Lines…. Two free downloadable files : Hands-On Math with PythonEfficient learning with Colab note files linked to this book.Beginner-friendly Python code explained step-by-step.FilesStart Instantly in Your Browser—No Setup! ContentsChapter 1 What Is… Read More »

Math & Python – Level 3.

“Curiosity about mathematics,the foundation of everything in the AI era.” Level 3 : From number sequences to vectors,differentiation, and integration …. Two free downloadable files : Hands-On Math with PythonEfficient learning with Colab note files linked to this book.Beginner-friendly Python code explained step-by-step.FilesStart Instantly in Your Browser—No Setup! ContentsChapter 1 Exploring Lists of Numbers: SequencesChapter 2 A First… Read More »

Math & Python – Level 2.

Simultaneous learning : New Textbook.“Curiosity about mathematics,the foundation of everything in the AI era.” Level 2: From trigonometric functions to complexnumbers and higher-order equations …. Two free downloadable files : Hands-On Math with PythonEfficient learning with Colab note files linked to this book.Beginner-friendly Python code explained step-by-step.FilesStart Instantly in Your Browser—No Setup! ContentsChapter 1 Gateway to Level 2… Read More »

Math & Python – Level 1B

Simultaneous learning : New Textbook.“Curiosity about mathematics,the foundation of everything in the AI era.” Level 1B : “From square roots, quadratic functions,and spatial geometry to probability….” Two free downloadable files : Hands-On Math with PythonEfficient learning with Colab note files linked to this book.Beginner-friendly Python code explained step-by-step.FilesStart Instantly in Your Browser—No Setup! ContentsChapter 1 Python Basics Summary… Read More »

Math & Python – Level 1A

Simultaneous learning : New Textbook.“Curiosity about mathematics,the foundation of everything in the AI era.” Level 1A. : Introduction Python.From the world of integers to simultaneousequations and factorization…. Two free downloadable files : Hands-On Math with Python・Efficient learning with Colab note files linked to this book.・Beginner-friendly Python code explained step-by-step.FilesStart Instantly in Your Browser—No Setup! Table of ContentsChapter 1… Read More »

Euclidean Algorithm

simple algorithm The Euclidean algorithm is a classical method for computing the greatest common divisor (GCD) of two non‑negative integers.The key idea is based on the following property: For any integers a and b (with a ≥ b), the GCD of a and b is the same as the GCD of b and a mod b. Because the remainder becomes strictly smaller each step, the process terminates after only a few iterations, even… Read More »

Depth‑First Search (DFS) Classic AI Algorithms

Simple Python Example The code below shows a recursive DFS on an undirected graph represented as an adjacency list.Vertices are numbered starting from 0. Expected output Iterative (stack‑based) version If you prefer an explicit stack (e.g., to avoid Python’s recursion limit), here’s a compact iterative version: Both implementations produce the same visitation order; choose the style that best… Read More »

Trigonometric Functions

Lengths and ratios of right-angled triangles (Basic knowledge) Trigonometric functions (sin, cos, tan, etc.) are frequently used in machine learning as tools to effectively work with angles, periods, rotations, and positions. Once the angles of a right triangle are determined, the ratio is also determined. Commercially available set squares have well-known trigonometric ratios. As shown in the figure, the… Read More »