Chapter 4
Geometry
Length, distance, angles, orthogonality, projection, subspaces, and embedding geometry.
What this chapter does
Geometry gives algebra a picture. This chapter turns coordinates into points, directions, distances, projections, boundaries, and neighborhoods so model representations feel inspectable instead of abstract.
Lessons
Read these in order.
Start with the chapter introduction, then move through the topic lessons. The order is chosen so each page can reuse ideas from the pages before it.
- 01Introduction
Why geometry gives algebra a picture for machine learning.
- 02Points, Directions, and Coordinate Systems
How coordinates name locations and movements in a space.
- 03Length, Distance, and Spheres
Length for one vector, distance between points, and fixed-radius regions.
- 04Angles and Orthogonality
Angles, zero dot products, and directions that do not overlap.
- 05Projection and Components
How much of a vector lies along a chosen direction.
- 06Lines and Hyperplanes
Boundaries written as dot products with a normal vector.
- 07Bases and Coordinate Systems
Basis directions as the frame that gives coordinates meaning.
- 08Subspaces
Smaller spaces that stay stable under addition and scaling.
- 09Decision Boundaries
How classifiers divide representation space into regions.
- 10Embedding Geometry
Neighborhoods, directions, and boundaries in learned vector spaces.
- 11High-Dimensional Intuition
How to use low-dimensional pictures without over-trusting them.
Review and practice
Close the chapter deliberately.
Use the conclusion and revision notes before the chapter exercises. Hints and solutions are collected here, while lesson-level exercises reveal their own help inline.
What Chapter 4 accomplished and how geometry prepares decompositions.
Summary and Revision NotesA compact review of geometric objects, formulas, and traps.
ExercisesChapter-level practice for coordinates, distance, projection, and boundaries.
HintsLow-spoiler nudges for the Chapter 4 exercises.
SolutionsExplained solutions for the Chapter 4 exercises.
Before moving on
- Connect algebraic operations to geometric meaning.
- Choose the right picture for points, directions, boundaries, and subspaces.
- Read model representations as points and directions.
- Use boundaries, projections, and subspaces to inspect ML computations.
Where this leads
- Linear Systems and Decompositions
- Deep Learning