Foundations

Mathematical Foundations

Linear algebra, calculus, probability, statistics and optimisation — the maths behind ML

2,093
lessons
Skills in this topic
View full skill map →
Maths for ML
beginner
Multiply matrices and compute dot products
Probability & Statistics
beginner
Calculate conditional probability and Bayes' theorem
Optimisation
intermediate
Implement gradient descent from scratch
Information Theory
intermediate
Calculate Shannon entropy and cross-entropy loss
All Reads (186) Articles (20)Blog Posts (152)Tutorials (11)Research Papers (3)
All the Math You Have Missed
Dev.to · Sensei 🔢 Mathematical Foundations ⚡ AI Lesson 5d ago
All the Math You Have Missed
The receipt stared back at me: $47.32 for groceries. The "10% off" coupon in my hand required a $50...
Why Developers Still Need a Good Scientific Calculator
Dev.to · Smart calculator tool 🔢 Mathematical Foundations ⚡ AI Lesson 1mo ago
Why Developers Still Need a Good Scientific Calculator
We write code every day. We have IDEs, REPLs, notebooks, and terminal sessions within arm's reach....
Will restructuring services guarantee inclusion in AI answers?
Dev.to · Rank4AI 🔢 Mathematical Foundations 1mo ago
Will restructuring services guarantee inclusion in AI answers?
No. It increases clarity and probability, but recommendation systems remain dynamic. AI systems...
Square Root in Programming – JavaScript, Python, C++ & Free Calculator
Dev.to · Smart calculator tool 🔢 Mathematical Foundations ⚡ AI Lesson 3mo ago
Square Root in Programming – JavaScript, Python, C++ & Free Calculator
Square Root in Programming – JavaScript, Python, C++ & Free Calculator As a developer,...
Unlocking the Logic Behind Neon, Strong & Perfect Numbers
Dev.to · Harini 🔢 Mathematical Foundations ⚡ AI Lesson 3mo ago
Unlocking the Logic Behind Neon, Strong & Perfect Numbers
1. Neon Number A Neon Number is a number where: Sum of digits of its square = the number...
Neon Number , Strong Number , Perfect Number
Dev.to · Divya Divya 🔢 Mathematical Foundations ⚡ AI Lesson 3mo ago
Neon Number , Strong Number , Perfect Number
Neon The sum of the digits of its square is equal to the original number Take a...
Neon Number,Perfect Number,Strong Number
Dev.to · PRIYA K 🔢 Mathematical Foundations ⚡ AI Lesson 3mo ago
Neon Number,Perfect Number,Strong Number
1.Neon Number sum of digits of its square equals the original number. Example Number = Step 1 –...
DECIMAL NUMBERS
Dev.to · SILAMBARASAN A 🔢 Mathematical Foundations ⚡ AI Lesson 3mo ago
DECIMAL NUMBERS
Decimal – Simple Definition A decimal number is a number written using the base-10 system. ...
Divisors, Count of Divisors and Prime Numbers
Dev.to · Harini 🔢 Mathematical Foundations ⚡ AI Lesson 3mo ago
Divisors, Count of Divisors and Prime Numbers
What is a Divisor? A divisor is a number that divides another number completely without leaving a...
Prime Number
Dev.to · Divya Divya 🔢 Mathematical Foundations ⚡ AI Lesson 3mo ago
Prime Number
What is prime number? A number is called a prime number if it has only two factors. Important...
AI and Machine Learning for Schedule Prediction: Science, Not Guessing
Dev.to · 전규현 (Jeon gyuhyeon) 🔢 Mathematical Foundations 3mo ago
AI and Machine Learning for Schedule Prediction: Science, Not Guessing
"The project will take 3 months" What's the probability this prediction is correct? Statistics...
8 Interactive Math & Physics Visualizations That Make Complex Concepts Click
Dev.to · elysiatools 🔢 Mathematical Foundations ⚡ AI Lesson 3mo ago
8 Interactive Math & Physics Visualizations That Make Complex Concepts Click
Explore 8 interactive math and physics visualizations — from chaos theory to entropy — that turn abstract textbook concepts into something you can actually feel
The maths behind how long a planet stays in your sign
Dev.to · Sammii 🔢 Mathematical Foundations ⚡ AI Lesson 3mo ago
The maths behind how long a planet stays in your sign
Most astrology content rounds the numbers. Saturn spends "about 2.5 years" in each sign. Jupiter...
Underrated Postgres: Extended Statistics for Better Execution Plans
Dev.to · Ameer Hamza 🔢 Mathematical Foundations 3mo ago
Underrated Postgres: Extended Statistics for Better Execution Plans
A deep dive into PostgreSQL extended statistics, how they solve bad execution plans, and why you should use them instead of just adding more indexes.
Beyond the Buffer: Optimizing HLS and Reducing Packet Loss at Scale
Dev.to · KATHLEN JOY VIREL 🔢 Mathematical Foundations 3mo ago
Beyond the Buffer: Optimizing HLS and Reducing Packet Loss at Scale
Reducing Packet Loss and HLS Optimization in High-Concurrency Environments When handling...
K0S
Dev.to · selfhosting.sh 🔢 Mathematical Foundations 3mo ago
K0S
What Is k0s? k0s is a lightweight, CNCF-certified Kubernetes distribution packaged as a...
Snowflake Cost Optimization Starts With Workload Design, Not Auto-Suspend
Dev.to · Sandeep Bhatia 🔢 Mathematical Foundations 3mo ago
Snowflake Cost Optimization Starts With Workload Design, Not Auto-Suspend
Snowflake Cost Optimization Starts With Workload Design, Not Auto-Suspend The biggest...
How to optimize images for websites (WebP, AVIF, responsive images)
Dev.to · GhostlyInc 🔢 Mathematical Foundations 3mo ago
How to optimize images for websites (WebP, AVIF, responsive images)
Image optimization is still one of the easiest ways to improve website performance. Many websites...
DOD Principles in C++: Part 1. Struct Optimization
Dev.to · Vladimir Zem 🔢 Mathematical Foundations 3mo ago
DOD Principles in C++: Part 1. Struct Optimization
Greetings to everyone who wants to write fast and efficient code. In this article, we'll look at a...
UQL v0.3: the first TypeScript ORM with native Vector Search
Dev.to · Roger 🔢 Mathematical Foundations 3mo ago
UQL v0.3: the first TypeScript ORM with native Vector Search
AI-powered search is everywhere, but if you use an ORM, you've probably hit this wall: the moment you...
How I Improved a Shopify Store’s Performance from 30% to 65% - GTmetrix
Dev.to · GIRIDHAR DEV 🔢 Mathematical Foundations 3mo ago
How I Improved a Shopify Store’s Performance from 30% to 65% - GTmetrix
A Real Shopify Performance Optimization Journey When we upgraded our Shopify store to a new theme, I...
Understanding Word2Vec – Part 4: Visualizing Word Vectors
Dev.to · Rijul Rajesh 🔢 Mathematical Foundations 3mo ago
Understanding Word2Vec – Part 4: Visualizing Word Vectors
In the previous article, we saw how the next-word prediction is done, and how lack of training is...
INSERT Performance Tuning for TimescaleDB
Dev.to · Philip McClarence 🔢 Mathematical Foundations 3mo ago
INSERT Performance Tuning for TimescaleDB
INSERT Performance Tuning for TimescaleDB The single most impactful optimization you can...
Build a Content Quality Checker in 10 Lines of TypeScript
Dev.to · ckmtools 🔢 Mathematical Foundations 4mo ago
Build a Content Quality Checker in 10 Lines of TypeScript
import { readability, statistics, sentiment } from 'textlens'; const text = await...
Xcode Cloud & CI/CD for iOS – A Practical Guide for Production Apps
Dev.to · Akanksha Dhumal 🔢 Mathematical Foundations 4mo ago
Xcode Cloud & CI/CD for iOS – A Practical Guide for Production Apps
When building iOS apps, we often focus heavily on features, UI, and performance optimizations. But...
Generating Vector PDFs from HTML in the Browser: A Deep Dive into dompdf.js
Dev.to · 刘发财 🔢 Mathematical Foundations 4mo ago
Generating Vector PDFs from HTML in the Browser: A Deep Dive into dompdf.js
Live Demo: https://dompdfjs.lisky.com.cn GitHub: https://github.com/lmn1919/dompdf.js The...
The NDC Revolution and What It Means for Data Engineers
Dev.to · Martin Tuncaydin 🔢 Mathematical Foundations 4mo ago
The NDC Revolution and What It Means for Data Engineers
Martin Tuncaydin explores how IATA's NDC standard is transforming airline distribution and what this API-first shift means for travel technology data engi…
Fisher Vector Deep Dive: How a 2007 Image Classification Method Powers Today's Most Accurate Flow Cytometry AI
Dev.to · wei-ciao wu 🔢 Mathematical Foundations 4mo ago
Fisher Vector Deep Dive: How a 2007 Image Classification Method Powers Today's Most Accurate Flow Cytometry AI
Fisher Vector encodes how data deviates from a generative model by computing gradients of log-likelihood. Originally designed for image classification, this ele
Vectors
Dev.to · Nsukami 🔢 Mathematical Foundations 4mo ago
Vectors
Disclaimers : Opinions : The views expressed here are my own unless otherwise...
Why Gmail Breaks Your Email CSS (and How to Catch It Before Your Users Do)
Dev.to · Mailpeek 🔢 Mathematical Foundations 4mo ago
Why Gmail Breaks Your Email CSS (and How to Catch It Before Your Users Do)
You spent an afternoon building a beautiful transactional email. The header gradient is perfect. The...
The Distribution Wall
Dev.to · Mack 🔢 Mathematical Foundations 4mo ago
The Distribution Wall
The Distribution Wall February 19, 2026 I wrote six articles this week. Good ones, too —...
Graphing CLT-Central Limit Theorem- by using Pandas and Matplotlib
Dev.to · Mohammed Sharaqi 🔢 Mathematical Foundations 4mo ago
Graphing CLT-Central Limit Theorem- by using Pandas and Matplotlib
Statistics cares about the central tendency and to answer the question that says, "How is our data...
11 Compaction Optimizations for Iceberg Data Lakes
Dev.to · Joni Sar 🔢 Mathematical Foundations 4mo ago
11 Compaction Optimizations for Iceberg Data Lakes
Compaction should provide an easy solution to a very difficult problem: controlling file count,...
How Boredom + A New PC Led to a 64x Faster Prime Sieve in Rust (The "Dopamine optimization" Story)
Dev.to · whisprer 🔢 Mathematical Foundations 4mo ago
How Boredom + A New PC Led to a 64x Faster Prime Sieve in Rust (The "Dopamine optimization" Story)
The Origin Story: It Started With a "New Toy" About six months ago, I was sitting at my desk with a...
Building a playable Graeco-Latin Sudoku square: the math behind Suirodoku
Dev.to · Jordan Maire 🔢 Mathematical Foundations ⚡ AI Lesson 4mo ago
Building a playable Graeco-Latin Sudoku square: the math behind Suirodoku
In 1782, Euler imagined arranging 36 officers in a square so that no regiment and no rank repeated in...
Show DEV: PardusDB – The "SQLite of Vector DBs" written in Rust
Dev.to · Jason Einstein 🔢 Mathematical Foundations 4mo ago
Show DEV: PardusDB – The "SQLite of Vector DBs" written in Rust
Hey everyone! I’m excited to share a project I’ve been working on: PardusDB. If you’ve ever built a...
Two Ways to Move Tensors Without Stopping: Inside vLLM's Async GPU Transfer Patterns
Dev.to · Mayank Ketkar 🔢 Mathematical Foundations 4mo ago
Two Ways to Move Tensors Without Stopping: Inside vLLM's Async GPU Transfer Patterns
A single torch.cuda.synchronize() in the wrong place can erase every optimization you spent weeks...
Reducing row count estimation errors in PostgreSQL
Dev.to · Shinya Kato 🔢 Mathematical Foundations 4mo ago
Reducing row count estimation errors in PostgreSQL
Introduction PostgreSQL's query planner relies on table statistics to estimate the number...
Building Constant-Time Algorithms: Why It’s Harder Than It Looks
Dev.to · Oluwaseun Olajide 🔢 Mathematical Foundations 4mo ago
Building Constant-Time Algorithms: Why It’s Harder Than It Looks
I spent the last 4 weeks implementing constant-time matrix multiplication in Rust. Sounds simple,...
Cross Entropy Derivatives, Part 4: Solving for other output classes
Dev.to · Rijul Rajesh 🔢 Mathematical Foundations 5mo ago
Cross Entropy Derivatives, Part 4: Solving for other output classes
In the previous article, we have solved the derivative for one of the output classes, we will do the...
Cross Entropy Derivatives, Part 3: Chain Rule for a Single Output Class
Dev.to · Rijul Rajesh 🔢 Mathematical Foundations 5mo ago
Cross Entropy Derivatives, Part 3: Chain Rule for a Single Output Class
In the previous article, we prepared a chain rule equation to compute the derivative of cross entropy...
Vector: Vue in Blade, the easy way
Dev.to · Bruno Pinto 🔢 Mathematical Foundations 5mo ago
Vector: Vue in Blade, the easy way
You know that feeling when you're building a Laravel app and you just need a tiny bit of reactivity?...
What If Vector Search with Voyage AI and MongoDB Was Just... Simple?
Dev.to · Michael Lynn 🔢 Mathematical Foundations 5mo ago
What If Vector Search with Voyage AI and MongoDB Was Just... Simple?
Embed, rerank, store, search, benchmark models, and bulk-ingest documents into MongoDB Atlas Vector Search — from the terminal or a visual playground. No Python
Cross Entropy Derivatives, Part 2: Setting Up the Derivative with Respect to a Bias
Dev.to · Rijul Rajesh 🔢 Mathematical Foundations 5mo ago
Cross Entropy Derivatives, Part 2: Setting Up the Derivative with Respect to a Bias
In the previous article we reviewed the key ideas needed to work with derivatives of cross...
Cross Entropy Derivatives, Part 1: Differentiating Softmax Outputs
Dev.to · Rijul Rajesh 🔢 Mathematical Foundations 5mo ago
Cross Entropy Derivatives, Part 1: Differentiating Softmax Outputs
In the previous article, we just touched upon the idea of cross entropy, in the coming articles, we...
reSmushit for Laravel
Dev.to · Ulhas Vardhan Golchha 🔢 Mathematical Foundations 5mo ago
reSmushit for Laravel
reSmush.it is a FREE API that provides image optimization. reSmush.it has been implemented on the...
Exploring Cross Entropy (Part 2): Understanding Total Cross Entropy and Loss with a Python Example
Dev.to · Rijul Rajesh 🔢 Mathematical Foundations 5mo ago
Exploring Cross Entropy (Part 2): Understanding Total Cross Entropy and Loss with a Python Example
In the previous article, we went through cross entropy for backpropagation in the case of...
Exploring Cross Entropy: The Essential Component for Softmax Backpropagation
Dev.to · Rijul Rajesh 🔢 Mathematical Foundations 5mo ago
Exploring Cross Entropy: The Essential Component for Softmax Backpropagation
In the previous article, we saw how softmax works and why it is preferred over argmax when it comes...