Logo

Overview

Most textbooks bury good ideas under dense notation, skip the intuition, assume you already know half the material, and quickly get outdated in fast-moving fields like AI. This is an open, unconventional textbook covering maths, computing, and artificial intelligence from the ground up. Written for curious practitioners looking to deeply understand the stuff, not just survive an exam/interview.

Background

Over the past years working in AI/ML, I filled notebooks with intuition first, real-world context, no hand-waving explanations of maths, computing and AI concepts. In 2025, a few friends used these notes to prep for interviews at DeepMind, OpenAI, Nvidia etc. They all got in and currently perform well in their roles. So I'm sharing to everyone.

Outline

#ChapterSummaryStatus
01VectorsSpaces, magnitude, direction, norms, metrics, dot/cross/outer products, basis, dualityAvailable
02MatricesProperties, special types, operations, linear transformations, decompositions (LU, QR, SVD)Available
03CalculusDerivatives, integrals, multivariate calculus, Taylor approximation, optimisation and gradient descentAvailable
04StatisticsDescriptive measures, sampling, central limit theorem, hypothesis testing, confidence intervalsAvailable
05ProbabilityCounting, conditional probability, distributions, Bayesian methods, information theoryAvailable
06Machine LearningClassical ML, gradient methods, deep learning, reinforcement learning, distributed trainingAvailable
07Computational Linguisticssyntax, semantics, pragmatics, NLP, language models, RNNs, CNNs, attention, transformers, text diffusion, text OCR, MoE, SSMs, modern LLM architectures, NLP evaluationAvailable
08Computer Visionimage processing, object detection, segmentation, video processing, SLAM, CNNs, vision transformers, diffusion, flow matching, VR/ARComing
09Audio & SpeechDSP, ASR, TTS, voice & acoustic activity detection, diarization, source separation, active noise cancelation, wavenet, conformerComing
10Multimodal Learningfusion strategies, contrastive learning, VLMs, image tokenizer, video audio co-generationComing
11Autonomous Systemsperception, robot learning, VLAs, self-driving cars, space robotsComing
12Computing & OSdiscreet maths, computer architecture, operating systems, RAM, concurrency, parallelism, programming languagesComing
13Data Structures & Algorithmsarrays, trees, graph, search, sorting, hashmapsComing
14SIMD & GPU ProgrammingARM & NEON, X86 chips, RISC ships, GPUs, TPUs, triton, CUDA, VulkanComing
15Systems Designsystems design fundamentals, cloud computing, large scale infra, ML systems design examplesComing
16Inferencequantisation, streamingLLMs, continuous batching, edge inference,Coming
17Intersecting Fieldsquantum ML, neuromorphic ML, AI for finace, AI for bioComing
18Research Blogshare small-scale experimental finding, 1 per md file with your name & affiliation, I have a lotComing

Citation

@book{ndubuaku2025compendium,
  title     = {Maths, CS & AI Compendium},
  author    = {Henry Ndubuaku},
  year      = {2026},
  publisher = {GitHub},
  url       = {https://github.com/HenryNdubuaku/maths-cs-ai-compendium}
}

Contributions

  • Star & watch to get content as they drop.
  • Suggest topics via GitHub issues.
  • PR corrections and better intuition.
  • Create SVG images in ../images/ for all diagrams.
  • For equations, use ```math fenced code blocks (NOT $$)
  • For display math — GitHub escapes \\ inside $$, breaking matrices.
  • Inline math $...$ is fine for simple expressions but move anything with \\ into a ```math block.
  • Use \ast instead of * for conjugate/adjoint in inline math.