FoundationStep 4 of 8
functions

Math & Statistics for Machine Learning

September 11, 2026 · 12 min read

Probability, statistics, and linear algebra — explained practically, without requiring a math degree to get started.

Do you need advanced math to use AI?

To use ChatGPT or build a website with AI features — no heavy math required. To train custom models or understand how they fail — yes, you need statistical intuition at minimum.

This guide gives you the concepts practitioners reference daily, in plain language.

Statistics fundamentals

ML models assume patterns in distributions. If your sales data is wildly skewed or seasonal, the model needs to account for that.

  • check_circleMean (average) — typical value in a dataset.
  • check_circleMedian — middle value; resistant to outliers.
  • check_circleVariance & standard deviation — how spread out data is.
  • check_circleCorrelation — two variables moving together (not always causation!).
  • check_circleDistribution — the shape of your data (normal bell curve is common).

Probability

AI outputs are often probabilities: "85% chance this email is spam," "92% confidence this image is a cat."

Bayes' theorem updates beliefs as new evidence arrives — used in spam filters, medical diagnosis aids, and fraud detection.

Linear algebra (the short version)

Neural networks are massive stacks of matrix multiplications. A matrix is a table of numbers; multiplying matrices transforms data through layers.

You won't hand-multiply matrices — frameworks like PyTorch do it on GPUs. But knowing "models manipulate numerical representations" explains embedding vectors in ChatGPT and image recognition.

  • check_circleVector — a list of numbers representing something (a word, a user, a product).
  • check_circleMatrix — a 2D grid of numbers used in transformations.
  • check_circleEmbedding — mapping words or items into vectors so similar things sit close together.

Train, validation, test splits

Models learn on training data, tune on validation data, and final scores come from held-out test data they've never seen. This prevents memorizing answers (overfitting) instead of learning general patterns.

Metrics that matter

Business leaders should ask: "Which mistakes cost us more — false alarms or missed cases?" That drives metric choice.

  • check_circleAccuracy — correct predictions / total (misleading if classes are imbalanced).
  • check_circlePrecision & recall — trade-offs in fraud detection and medical screening.
  • check_circleF1 score — balance of precision and recall.
  • check_circleLoss — a number the model tries to minimize during training.

Ready to implement AI in your business?

We help businesses in Kigali and worldwide turn AI ideas into secure websites, apps, and custom software. Book a free consultation or message us on WhatsApp.