The core formulas of the course on one page. Come back to these cold and try to say what each one means before you read on.
Foundations
f:X→Y,(x,y1),(x,y2)∈f⇒y1=y2
A function pairs each input with exactly one output.logb(bx)=x,blogbx=x,logb(2N)=1+logbN
Exponential and logarithm cancel; a log counts halvings.logb(xy)=logbx+logby,logb(xk)=klogbx,logbx=logcblogcx
The log laws turn multiplication into addition.Linear algebra
v+w=[v1+w1v2+w2],av+bw
Add and scale, then combine: the two moves of a vector space.det[v1v2w1w2]=v1w2−v2w1
Independent in 2-D when the determinant is nonzero.a⋅b=i∑aibi=∣a∣∣b∣cosθ,cosθ=∣a∣∣b∣a⋅b
The dot product, two ways, and cosine similarity.Cij=k∑AikBkj,(m×n)(n×p)=(m×p)
Each cell of a product is a row dotted with a column.Calculus for learning
f′(x)=h→0limhf(x+h)−f(x),f(x+Δx)≈f(x)+f′(x)Δx
The derivative is the limiting secant slope; nearby, f is linear.dxdxn=nxn−1,(f∘g)′(x)=f′(g(x))g′(x)
The power rule and the chain rule.∇f=[∂f/∂x∂f/∂y],p:=p−α∇f(p)
The gradient stacks the partials; descent steps against it.The gradient is perpendicular to the contour, and Duf=∇f⋅u=∥∇f∥cosθ is maximized when you face along it.
Probability and statistics
μ=N1i∑xi,σ2=N1i∑(xi−μ)2,f(x)=σ2π1e−2σ2(x−μ)2 Mean, variance, standard deviation, and the Gaussian bell.P(A)≥0, P(Ω)=1,E[X]=x∑xp(x),Var(X)=E[X2]−μ2
Probability axioms; expectation and variance of a random variable.P(A∣B)=P(B)P(A∩B),P(A∣B)=P(B)P(B∣A)P(A)
Conditional probability and Bayes' theorem.L(θ)=i∏p(xi∣θ),ℓ(θ)=i∑logp(xi∣θ),−i∑logpθ(yi∣xi)
Likelihood, log-likelihood, and why minimizing NLL is cross-entropy.H(p)=−x∑p(x)log2p(x),H(p,q)=−x∑p(x)log2q(x),DKL(p∥q)=H(p,q)−H(p)
Information, entropy, cross-entropy, and KL divergence.Discrete math and proof
p⇒q≡¬p∨q≡¬q⇒¬p,¬(∀xP(x))≡∃x¬P(x)
Implication, its contrapositive (equivalent) and converse (not), and quantifier negation.P(1) ∧ (∀k≥1, P(k)⇒P(k+1)) ⟹ ∀n≥1, P(n)
The induction template: base case plus inductive step proves it for all n.i=1∑ni=2n(n+1),i=1∑ni2=6n(n+1)(2n+1),i=0∑n−1ri=1−r1−rn,i=0∑∞ri=1−r1
The sums you meet in complexity analysis.P(n,k)=(n−k)!n!,(kn)=k!(n−k)!n!,(a+b)n=k=0∑n(kn)an−kbk
Counting: permutations, combinations, Pascal's rule, and the binomial theorem.Advanced linear algebra
T(u+v)=T(u)+T(v),T(cv)=cT(v),M=[T(^) T(^)] A linear map is fixed by where it sends the basis vectors; its matrix is those images as columns.Av=λv,det(A−λI)=0,A=QΛQ−1
Eigenvectors: the directions a matrix only scales; the characteristic equation finds them.Numerical foundations
x=(−1)s(1+223f)×2e−127,softmax(z)i=∑jezj−mezi−m, m=jmaxzj
A 32-bit float, and the numerically stable softmax that subtracts the max first.