Skip to content
Back to skills

Machine Learning Mathematics

ASecurity

Explain the mathematics behind machine learning and AI: linear models, gradient descent, backpropagation, neural networks, probabilistic models, kernels, PCA, SVD, optimization landscapes, generalization, attention and transformers, information theory in ML. Use for ML theory and derivations.

  • 8 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agentsgoaws

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add hamzabellouch/agent-skills --skill machine-learning-mathematics --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Machine Learning Mathematics?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Machine Learning Mathematics
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hamzabellouch-machine-learning-mathematics/badge)](https://www.skillsdirectory.com/skills/hamzabellouch-machine-learning-mathematics)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: machine-learning-mathematics
description: "Explain the mathematics behind machine learning and AI: linear models, gradient descent, backpropagation, neural networks, probabilistic models, kernels, PCA, SVD, optimization landscapes, generalization, attention and transformers, information theory in ML. Use for ML theory and derivations."
---

# Mathematics of Machine Learning

## Supervised learning
- Empirical risk minimization; loss functions (MSE, cross-entropy, hinge); regularization (L2 = Gaussian prior, L1 = Laplace prior / sparsity).
- Linear regression normal equations; logistic regression gradient X^T(sigma(Xw) - y); softmax cross-entropy gradient p - y.
- Bias-variance decomposition; VC dimension; PAC learning; Rademacher complexity; generalization bounds; double descent and overparameterization.
- SVM and kernels: Mercer kernels, RBF, representer theorem; Gaussian processes.

## Neural networks
- Forward pass, backpropagation = reverse-mode automatic differentiation via the chain rule; Jacobian-vector products; vanishing/exploding gradients; initialization (Xavier, He); batch/layer norm; residual connections; universal approximation theorem.
- Optimizers: SGD, momentum, Adam; learning-rate schedules; loss landscape, saddle points, flat minima.
- CNN: convolution as shared-weight linear operator; equivariance. RNN/LSTM. Transformers: attention softmax(QK^T/sqrt(d))V, positional encodings, scaling laws, complexity O(n^2 d).
- Generative models: VAE (ELBO = E log p(x|z) - KL(q||p)), GAN (minimax), diffusion (score matching, SDE), autoregressive LMs (maximum likelihood on next-token).
- Reinforcement learning: MDP, Bellman equation, policy gradient theorem, Q-learning, PPO, RLHF.

## Unsupervised & probabilistic
PCA (eigenvectors of covariance, SVD), k-means (EM special case), EM algorithm, Gaussian mixtures, HMMs, graphical models, variational inference, MCMC, t-SNE/UMAP, contrastive learning, mutual information bounds.

## Practical math checks
Gradient checking with finite differences; dimensional analysis of tensor shapes; numerical stability (log-sum-exp); calibration; data leakage; reproducibility.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.