Sohaib Hasan

Mathematics Educator & Section Leader, Stanford Probability for AI

Nine years teaching advanced mathematics, an MPhil in Mathematics researching elliptic-curve cryptography, and a top-12% finish at the AI Mathematical Olympiad. Everything I build, from the AI tutor for my own classroom to PlotLab animations followed by 100K+ people, comes from one belief: careful reasoning gets rewarded, whether it comes from a student or a machine.

The short version

Full bio →
Sohaib Hasan

I teach undergraduate mathematics at Horizon Degree & Commerce College in Chakwal, Pakistan, and I'm a section leader for Stanford's Probability for AI, where I teach top tech minds, researchers, and working professionals from around the world.

My own path went through an MSc in fluid dynamics and an MPhil in Mathematics researching elliptic-curve cryptography, and more recently toward AI systems that can reason mathematically.

I'm currently applying to PhD programs in Data Science, Applied Mathematics, and Statistics. Alongside teaching and research, I run PlotLab, where I build mathematical animations followed by 100K+ people on Facebook and Instagram, plus a YouTube channel, PlotLab Algorithms.

9+ yrsteaching advanced mathematics
1,500+undergraduate students taught
11subjects taught

In the classroom

Full page →
2026 · Stanford Probability for AI

Section Leader

Chosen from 2,700+ participants across 70 countries to teach a section of top tech minds, researchers, and working professionals from the USA, UK, Germany, Portugal, Spain, and India.

6countries in my section
70+countries in the whole course
Weeklyworked solutions and a Manim animation
March 2017 – present

Lecturer in Mathematics

Nine years lecturing undergraduate mathematics at Horizon Degree & Commerce College: Real Analysis, Measure Theory, Abstract Algebra, Functional Analysis, Number Theory, Numerical Analysis, Statistics & ML, using LaTeX-typeset notes and Manim-animated lectures. Now with an international classroom at Stanford too.

Recent work

Full page →

Mathematics, animated

Full page →

PlotLab is where I turn abstract mathematics into Manim-built animation, followed by 100K+ people on Facebook and Instagram, with full-length lessons on YouTube and weekly animations for Stanford's Probability for AI.

Mathematics notes

Full library →

LaTeX-typeset notes, sorted into folders: Mathematics, Statistics, Stanford's Probability for AI (weekly notes, each paired with an animation video), and IGCSE Math. Free to read and download, with premium animated IGCSE packs.

Long-form writing on mathematics, AI reasoning, and teaching, with full LaTeX math support built in.

November 6, 2026

The Blindfolded Hike That Explains How Machines Learn

Picture this: someone blindfolds you halfway up a hillside and asks you to find the lowest point. You cannot see a thing....

Read →
October 24, 2026

Every AI Answer Is a Bet: What I Learned Teaching Stanford's Probability for AI

Ask an AI a question and watch the words arrive, one after another. It feels like the machine is looking something up....

Read →
October 18, 2026

The One Idea Quietly Running Every Prediction App On Your Phone

Open your phone right now and check three things. The weather app telling you tomorrow will be 34 degrees. A real estate...

Read →

Let's build something

Tutoring in mathematics, statistics, cryptography, DSA, and machine learning. Custom Manim-built animations for research, teaching, or anything else. Or something else entirely.

For teaching, research collaboration, or PhD-related conversations, reach out directly.