Summary and Revision Notes

Use these notes to review Chapter 4 quickly.

Key Ideas

IdeaMeaning
pointa location in a space
directiona movement or change
coordinate systema convention for naming points and directions
lengthsize of one vector
distancelength of the difference between two points
anglerelation between two directions
orthogonalperpendicular; dot product is zero
projectioncomponent of one vector along another direction
basisdirections used to describe vectors in a space
subspacesmaller space closed under addition and scaling
hyperplaneboundary written as wx+b=0w \cdot x + b = 0
embeddinglearned vector representation of an object

Formulas To Remember

Euclidean length:

[x,y]=x2+y2\|[x, y]\| = \sqrt{x^2 + y^2}

Distance:

d(a,b)=bad(a, b) = \|b - a\|

Dot product and angle:

uv=uvcos(θ)u \cdot v = \|u\|\|v\|\cos(\theta)

Projection onto a nonzero vector:

projb(a)=abbbb\operatorname{proj}_b(a) = \frac{a \cdot b}{b \cdot b}b

Hyperplane:

wx+b=0w \cdot x + b = 0

Reading Guide

SituationAsk
coordinatespoint or direction?
distancewhich metric defines close?
dot productscore, angle, or projection?
projectionscalar component or projected vector?
residualwhat did the projection remove?
hyperplanescore positive, negative, or zero?
boundary scoreraw score or normalized distance?
embeddingevidence of structure, or overclaim?
high dimensiondoes the picture need a formula or code check?

Common Traps

  1. Treating a point and a direction as the same idea because the numbers match.
  2. Forgetting that distance depends on the chosen metric.
  3. Calling vectors orthogonal without checking the dot product.
  4. Projecting onto a non-unit vector without dividing by bbb \cdot b.
  5. Confusing the boundary with the regions on either side.
  6. Forgetting that a subspace must contain zero.
  7. Treating nearby embeddings as complete explanations.
  8. Trusting a two-dimensional picture too much in a high-dimensional setting.
  9. Reading raw classifier score as distance without accounting for w\|w\|.
  10. Forgetting that coordinates are weights on a chosen basis.

Mental Model

Geometry gives shape to computation.

When a formula uses vectors or matrices, ask whether it is measuring length, comparing directions, projecting onto a component, or separating space with a boundary.