Skip to content
mentoor

Math intuition for AI

For engineers

The vectors, matrices, probability, logarithms and derivatives behind models, read as pictures and code rather than proofs

See where you stand

110 questions across four stages: Understand, Apply, Solve and Judge.

Try 5 questions

Practice items, not counted towards your mastery. No account needed.

Check yourself · 1 of 5

What is the dot product of a = [2, 3] and b = [4, 1]?

Choose one answer

Check yourself · 2 of 5

A fair six-sided die is rolled. What is the expected value of the roll?

Choose one answer

Check yourself · 3 of 5

A model gives the correct token a probability of 1.0. What is the cross-entropy loss for that example?

Choose one answer

Check yourself · 4 of 5

What is the derivative of f(x) = x^2 at x = 5?

Choose one answer

Check yourself · 5 of 5

An engineer only calls a hosted model's API to add summarisation to an app. Which math is most useful to learn first?

Choose one answer

Topics

  1. Vectors, matrices and their shapes4 min read · Dot products as similarity, matrix multiplication as one network layer, and the shape rules that make or break code
  2. Probability distributions and expected value5 min read · Distributions, expectations, conditional probability and Bayes' rule, plus softmax turning raw scores into a distribution
  3. Logarithms, entropy and cross-entropy5 min read · Why models work in log probabilities, what entropy and KL divergence measure, and how perplexity follows from cross-entropy
  4. Derivatives, gradients and composed functions5 min read · Slope as sensitivity, partial derivatives stacked into a gradient vector, and chaining them through functions inside functions
  5. How much math an engineer needs4 min read · What to learn for using, fine-tuning or researching models, what you can skip, and using AI tutors and visual tools to fill gaps

Start here

Helps to know first

110 questions · last verified 2026-12