Practice sets for the math behind machine learning

Original problems with full worked solutions for adults getting their math back to do deep learning properly. The deep-learning sets cover matrix calculus, regression and logistic decision boundaries, backprop by hand with the activation functions, layer norm, attention, minibatches and batch norm, convolutions and recurrent networks, the probability behind the losses (counting and the binomial theorem, discrete random variables and expectation, continuous random variables and densities, the normal distribution and z-scores, Bayes' rule, maximum likelihood, Bayesian inference with conjugate priors, entropy and KL divergence, variance and covariance, the law of large numbers and Chebyshev's inequality, sampling distributions and the central limit theorem, hypothesis tests and p-values, chi-square tests of goodness of fit and independence, simple linear regression and R², the multivariate Gaussian, Markov chains and stationary distributions, conditional expectation and the law of total variance), the gradients of expectations behind VAEs and policy gradients, weight initialization and optimizers; the foundations sets cover the calculus (limits, implicit differentiation, derivatives of inverse and inverse trig functions, L'Hôpital's rule, related rates, the mean value theorem, maxima and minima, Riemann sums, the fundamental theorem, areas between curves, volumes of revolution, arc length and surface area, parametric and polar curves, conic sections, partial fractions, trigonometric substitution, improper integrals, separable and linear first-order differential equations, second-order linear equations with constant coefficients, Laplace transforms, Fourier series, arithmetic and geometric sequences and sums, and series convergence tests through Taylor series and Newton's method, gradients and Hessians, Lagrange multipliers, double and triple integrals, line integrals and Green's theorem, and surface integrals and the divergence theorem), linear algebra from dot and cross products, lines and planes through Gaussian elimination, linear transformations and change of basis, quadratic forms and positive definite matrices, matrix exponentials and linear systems of ODEs, Gram–Schmidt and QR up to PCA, and trigonometry from the graphs of sine and cosine up to the laws of sines and cosines and complex numbers in polar form underneath them. Each set shows every line of working, then the specific places the derivation goes wrong. Every set has a printable PDF.

Sets are listed in curriculum order: matrix calculus, backprop by hand, the transformer pieces, minibatches and batch norm, convolutions and recurrent networks, probability for ML, gradients of expectations, initialization and optimizers first, then the calculus, linear algebra and trigonometry underneath them.