Most classic machine learning comes down to a few formulas.
Naïve Bayes multiplies probabilities, assuming the features are independent. Linear regression fits f(x) = Σ mᵢxᵢ + b. Logistic regression maps that onto a probability: 1 / (1 + e^(−z)).
SVMs find the widest margin between classes. PCA keeps the directions of greatest variance, which are the eigenvectors of the covariance matrix: Cv = λv.
Gradient descent ties it together: θⱼ := θⱼ − α ∂J/∂θⱼ. Each step goes downhill on the error.