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)
Designed a Global Image Optimization System with <1s P95 Latency Across Regions
Dev.to · Harsh Viradia 🔢 Mathematical Foundations 5mo ago
Designed a Global Image Optimization System with <1s P95 Latency Across Regions
In this blog I am going to write how we can reduce the Image latency by using CloudFront and S3...
Demystifying bfcache: Advanced JavaScript Handling for Seamless User Navigation
Dev.to · Life is Good 🔢 Mathematical Foundations 5mo ago
Demystifying bfcache: Advanced JavaScript Handling for Seamless User Navigation
The Back-Forward Cache (bfcache) is a powerful browser optimization designed to significantly speed...
Navigating the bfcache: Ensuring State and Script Integrity on Back/Forward Navigation
Dev.to · Life is Good 🔢 Mathematical Foundations 5mo ago
Navigating the bfcache: Ensuring State and Script Integrity on Back/Forward Navigation
Modern web browsers offer incredible performance optimizations, one of the most impactful being the...
Turbocharge Your Go Network Apps: Practical Optimization Tips
Dev.to · Jones Charles 🔢 Mathematical Foundations 5mo ago
Turbocharge Your Go Network Apps: Practical Optimization Tips
Introduction: Why Go for Network Performance? If you’re building network-heavy apps—like...
From Shaky Farm Videos to Sharp Diagnoses - Building a Client-Side Media Pipeline
Dev.to · Nicanor Korir 🔢 Mathematical Foundations 5mo ago
From Shaky Farm Videos to Sharp Diagnoses - Building a Client-Side Media Pipeline
How Shamba-MedCare processes user media entirely in the browser. Image compression, video frame extraction, blur detection with Laplacian variance, and why the
Python Logistic Regression: A Practical Guide with scikit-learn and statsmodels (p-values, Odds Ratios, and ROC)
Dev.to · ライフポータル 🔢 Mathematical Foundations 5mo ago
Python Logistic Regression: A Practical Guide with scikit-learn and statsmodels (p-values, Odds Ratios, and ROC)
Python Logistic Regression: A Practical Guide with scikit-learn and statsmodels (p-values,...
Building an Amazon Advertising ROI Optimization System with Python
Dev.to · Mox Loop 🔢 Mathematical Foundations 5mo ago
Building an Amazon Advertising ROI Optimization System with Python
Amazon advertising in 2026 is a data game. Top sellers have reduced their ACoS (Advertising Cost of...
Nonlinear Least Squares and Nonlinear Regression in R: Concepts, Origins, Applications, and Case Studies
Dev.to · Yenosh V 🔢 Mathematical Foundations 5mo ago
Nonlinear Least Squares and Nonlinear Regression in R: Concepts, Origins, Applications, and Case Studies
Introduction Regression analysis is one of the most widely used techniques in statistics, data...
Gini Impurity: The Blindfolded Archer Who Taught Decision Trees How to Split
Dev.to · Sachin Kr. Rajput 🔢 Mathematical Foundations 5mo ago
Gini Impurity: The Blindfolded Archer Who Taught Decision Trees How to Split
Imagine an archer shooting arrows blindfolded at a target. If the target is all one color, any hit is 'correct.' But if it's half red and half blue, the archer
Information Gain & Entropy: The Game Show Host Who Learned to Ask Perfect Questions
Dev.to · Sachin Kr. Rajput 🔢 Mathematical Foundations 5mo ago
Information Gain & Entropy: The Game Show Host Who Learned to Ask Perfect Questions
Imagine hosting a game show where contestants guess a secret by asking yes/no questions. A bad host asks 'Is it a mammal?' when 99% of options are mammals. A gr
The Sigmoid Function: The Story of the World's Most Diplomatic Mathematician
Dev.to · Sachin Kr. Rajput 🔢 Mathematical Foundations 5mo ago
The Sigmoid Function: The Story of the World's Most Diplomatic Mathematician
Once upon a time, there was a mathematician who could never say 'absolutely yes' or 'absolutely no.' No matter how extreme the evidence, she'd give you a probab
Logistic Regression: The Bouncer Who Gives Probability of Entry Instead of Just Yes/No
Dev.to · Sachin Kr. Rajput 🔢 Mathematical Foundations 5mo ago
Logistic Regression: The Bouncer Who Gives Probability of Entry Instead of Just Yes/No
Linear regression predicts numbers. But what if you need to predict Yes/No? Pass/Fail? Spam/Not Spam? You can't just draw a straight line through 0s and 1s — yo
## The Baseline Power: Performance Without Optimizations
Dev.to · CharmPic 🔢 Mathematical Foundations 5mo ago
## The Baseline Power: Performance Without Optimizations
Engineering Notes: A work in progress. Before diving into the Lane16 specific build, I discovered...
KMP WorkManager: Enterprise-Grade Background Tasks for Kotlin Multiplatform
Dev.to · Viet, Nguyen Tuan 🔢 Mathematical Foundations 5mo ago
KMP WorkManager: Enterprise-Grade Background Tasks for Kotlin Multiplatform
A production-ready solution for background task orchestration across Android and iOS with unified API, state restoration, and performance optimization.
[BlindSpot] Log 02. C# Socket Optimization : Zero-Allocation & GC Free
Dev.to · RYU JAEMIN 🔢 Mathematical Foundations 5mo ago
[BlindSpot] Log 02. C# Socket Optimization : Zero-Allocation & GC Free
BlindSpot Github Why Refactoring? Since BlindSpot is an Online FPS Game, Zero-latency and...
The Confusion Matrix: A Courtroom Drama Where Every Verdict Falls Into One of Four Boxes
Dev.to · Sachin Kr. Rajput 🔢 Mathematical Foundations 5mo ago
The Confusion Matrix: A Courtroom Drama Where Every Verdict Falls Into One of Four Boxes
Your model makes predictions. Some are right, some are wrong. But WHICH kind of wrong? The confusion matrix reveals the four possible outcomes of every predicti
Nonlinear Least Squares And Nonlinear Regression In R
Dev.to · Dipti 🔢 Mathematical Foundations 5mo ago
Nonlinear Least Squares And Nonlinear Regression In R
Introduction Regression analysis is one of the cornerstones of statistics, data science, and...
Building WSL-UI: Mock Mode and Fake Distros
Dev.to · Ian Packard 🔢 Mathematical Foundations 5mo ago
Building WSL-UI: Mock Mode and Fake Distros
How I built a complete mock environment for developing and testing a WSL management app without touching real distributions.
Building WSL-UI: A Christmas Project with Tauri
Dev.to · Ian Packard 🔢 Mathematical Foundations 5mo ago
Building WSL-UI: A Christmas Project with Tauri
How a DevOps engineer spent the Christmas break building a modern desktop app for managing WSL2 distributions using Tauri, React, and Rust.
Batch vs Mini-Batch vs Stochastic Gradient Descent: Three Hikers, Three Strategies, One Mountain
Dev.to · Sachin Kr. Rajput 🔢 Mathematical Foundations 5mo ago
Batch vs Mini-Batch vs Stochastic Gradient Descent: Three Hikers, Three Strategies, One Mountain
One hiker surveys the entire mountain before each step. Another asks a random stranger. The third asks a small group. They all reach the bottom — but their jour
Building Enterprise Vector Search in Rails (Part 2/3): Production Resilience & Monitoring
Dev.to · Stokry 🔢 Mathematical Foundations 5mo ago
Building Enterprise Vector Search in Rails (Part 2/3): Production Resilience & Monitoring
*This is Part 2 of a 3-part series* on building production-ready vector search for enterprise...
The Death of the Loop: Why Senior Data Scientists Think in Vectors
Dev.to · Python Baires 🔢 Mathematical Foundations 📄 Paper 5mo ago
The Death of the Loop: Why Senior Data Scientists Think in Vectors
In traditional software development, iteration is king. We are taught to think sequentially: take...
🧗‍♂️Beginner-Friendly Guide 'Max Dot Product of Two Subsequences' – LeetCode 1458 (C++, Python, JavaScript)
Dev.to · Om Shree 🔢 Mathematical Foundations 5mo ago
🧗‍♂️Beginner-Friendly Guide 'Max Dot Product of Two Subsequences' – LeetCode 1458 (C++, Python, JavaScript)
Finding the most optimal way to pair numbers from two different sequences can feel like a puzzle....
🧩 Beginner-Friendly Guide 'Maximum Matrix Sum' – LeetCode 1975 (C++, Python, JavaScript)
Dev.to · Om Shree 🔢 Mathematical Foundations 6mo ago
🧩 Beginner-Friendly Guide 'Maximum Matrix Sum' – LeetCode 1975 (C++, Python, JavaScript)
At first glance, this problem looks like a complex puzzle where you have to flip signs across a grid....
Fine-tuning & Model Optimization: Key Trends & Insights
Dev.to · Hemanath Kumar J 🔢 Mathematical Foundations 6mo ago
Fine-tuning & Model Optimization: Key Trends & Insights
Fine-tuning & Model Optimization: Key Trends & Insights Overview As the...
GitHub SEO: 5 lessons learned to promote your project
Dev.to · Nakora 🔢 Mathematical Foundations 6mo ago
GitHub SEO: 5 lessons learned to promote your project
Most devs treat GitHub as a code host. That’s a mistake. GitHub is one of the largest distribution...
AI Foundations for Developers #1: What Are Vectors?
Dev.to · Chintan Soni 🔢 Mathematical Foundations 6mo ago
AI Foundations for Developers #1: What Are Vectors?
I’ve started a new video series called AI Foundations for Developers. This series is aimed at...
How to Create a Gradient from Any Photo (Step-by-Step)
Dev.to · Varun Krishnan 🔢 Mathematical Foundations 6mo ago
How to Create a Gradient from Any Photo (Step-by-Step)
Learn how to extract colors from any photo and turn them into beautiful gradients. Stop guessing hex...
[C++] const 키워드와 반복자
Dev.to · Seongcheol Jeon 🔢 Mathematical Foundations 6mo ago
[C++] const 키워드와 반복자
vector::iterator vector::const_iterator const vector::iterator const vector::const_iterator 위의...
Offline Geospatial Maps: Building a No-Internet Tile Server
Dev.to · Vency Varghese 🔢 Mathematical Foundations 6mo ago
Offline Geospatial Maps: Building a No-Internet Tile Server
How to Build a completely offline, air-gapped tile server that serves both vector and raster maps for enterprise environments. Zero internet dependency, fully c
Nuxt & Cloudflare Vectorize: Setting up D1, Drizzle, and Workers AI
Dev.to · Keith Mifsud 🔢 Mathematical Foundations 6mo ago
Nuxt & Cloudflare Vectorize: Setting up D1, Drizzle, and Workers AI
Recently, I started working on a project that requires several data normalisation features. One of...
Stop Using NOT EXISTS? Unveiling the Optimization Secrets of LEFT JOIN Anti-Join
Dev.to · Rebooter.S 🔢 Mathematical Foundations 6mo ago
Stop Using NOT EXISTS? Unveiling the Optimization Secrets of LEFT JOIN Anti-Join
I. Preface In complex business query scenarios, the need for anti-joins—specifically,...
Production AI: Monitoring, Cost Optimization, and Operations
Dev.to · Vinicius Fagundes 🔢 Mathematical Foundations 6mo ago
Production AI: Monitoring, Cost Optimization, and Operations
Quick Reference: Terms You'll Encounter Technical Acronyms: SLA: Service Level...
The Benchmarking Trap
Dev.to · Alexey 🔢 Mathematical Foundations 6mo ago
The Benchmarking Trap
It all started when I was watching a video about optimization and came across a familiar textbook...
LINQ Performance Optimization: 5 Patterns Every C# Developer Should Know
Dev.to · Dominika Sikorska 🔢 Mathematical Foundations 6mo ago
LINQ Performance Optimization: 5 Patterns Every C# Developer Should Know
This is Part 3 of the "LINQ Performance & Best Practices" series. If you haven't read the...
symlik: Symbolic Likelihood Models in Python
Dev.to · Alex Towell 🔢 Mathematical Foundations 6mo ago
symlik: Symbolic Likelihood Models in Python
Define statistical models symbolically and automatically derive score functions, Hessians, and Fisher information.
.NET Performance Optimization: Fixing a 15-Second E-Commerce Page Load
Dev.to · Mashrul Haque 🔢 Mathematical Foundations 6mo ago
.NET Performance Optimization: Fixing a 15-Second E-Commerce Page Load
A real-world case study of rescuing an enterprise e-commerce platform from performance hell, complete...
I made search engines understand emojis (and it's weirdly useful)
Dev.to · Opensolr 🔢 Mathematical Foundations 6mo ago
I made search engines understand emojis (and it's weirdly useful)
Been working on hybrid search (lexical + vector) for a while and accidentally discovered something...
Enrich Logs with CorrelationID in .NET
Dev.to · Joao Oliveira 🔢 Mathematical Foundations 6mo ago
Enrich Logs with CorrelationID in .NET
A Correlation ID is a good technique when you need to track a log journey in your system. This is...
Day 10: Partitioning vs Bucketing - The Spark Optimization Guide Every Data Engineer Needs
Dev.to · Sandeep 🔢 Mathematical Foundations 6mo ago
Day 10: Partitioning vs Bucketing - The Spark Optimization Guide Every Data Engineer Needs
Learn how to optimize Spark Joins using broadcast variables, skew handling, and strategic repartitioning.
Day 8: Accelerating Spark Joins - Broadcast, Shuffle Optimization & Skew Handling
Dev.to · Sandeep 🔢 Mathematical Foundations 6mo ago
Day 8: Accelerating Spark Joins - Broadcast, Shuffle Optimization & Skew Handling
Learn how to optimize Spark Joins using broadcast variables, skew handling, and strategic repartitioning.
Turbocharge Your Optimization: Preconditioning for the Win
Dev.to · Arvind SundaraRajan 🔢 Mathematical Foundations 7mo ago
Turbocharge Your Optimization: Preconditioning for the Win
Turbocharge Your Optimization: Preconditioning for the Win Tired of optimization...
How Negative SEO Farms Like TraderKnows Exploit Google's Algorithm
Dev.to · QingShieldCenter 🔢 Mathematical Foundations 7mo ago
How Negative SEO Farms Like TraderKnows Exploit Google's Algorithm
The Technical Vector As developers and SEO specialists, we often focus on optimization. But we must...
Part 4: The Setback and Heart Break
Dev.to · Palash Kanti Kundu 🔢 Mathematical Foundations 7mo ago
Part 4: The Setback and Heart Break
The GPU Matrix Multiplication program was a success; or so I thought. At that point, the inventory...
C# Performance Optimization: Using Span<T> and stackalloc to Eliminate Allocations
Dev.to · Danial Jumagaliyev 🔢 Mathematical Foundations 7mo ago
C# Performance Optimization: Using Span<T> and stackalloc to Eliminate Allocations
Runtime memory handling is a crucial part of writing software, which heavily impacts the performance...
SwiftUI Performance Optimization — Smooth UIs, Less Recomputing
Dev.to · Sebastien Lato 🔢 Mathematical Foundations 7mo ago
SwiftUI Performance Optimization — Smooth UIs, Less Recomputing
SwiftUI is fast — but only if you use it correctly. Over time, you’ll run into: choppy scroll...
AI Solves Optimization's Toughest Problems: A Quantum Leap for Nonlinear Programming by Arvind Sundararajan
Dev.to · Arvind SundaraRajan 🔢 Mathematical Foundations 7mo ago
AI Solves Optimization's Toughest Problems: A Quantum Leap for Nonlinear Programming by Arvind Sundararajan
AI Solves Optimization's Toughest Problems: A Quantum Leap for Nonlinear...
Unlock Optimization Speed: The Power of Unfolded Solvers by Arvind Sundararajan
Dev.to · Arvind SundaraRajan 🔢 Mathematical Foundations 7mo ago
Unlock Optimization Speed: The Power of Unfolded Solvers by Arvind Sundararajan
Unlock Optimization Speed: The Power of Unfolded Solvers Imagine optimizing a robotic...