Module 1 · 4 lessons · about 240 minutes
Vectors and the dot product
Vectors as arrows and as lists, linear combinations, the dot product in algebra and geometry, length, and cosine similarity between embeddings.
- Lessons
- 0/4
- Exercises
- 0/19
- Code
- 0/3
- Checkpoint
- Not taken
Already comfortable with this? Take the checkpoint cold. If you pass, move on and come back only for what you missed.

- 1Arrows and listsA vector is a list of numbers and an arrow at the same time. Adding and scaling are the two basic moves of linear algebra, and mixing them gives linear combinations, the construction the rest of the course is built on.55 min
- 2Span, basis and coordinatesWhich points can a few vectors reach, and in how many ways? Span, linear independence and bases answer those two questions, and they show that the coordinates of a vector depend on the basis you describe it in.40 min
- 3The dot productOne small operation, multiply matching entries and add them up, measures how much two vectors point the same way. It is the most used calculation in machine learning.65 min
- 4Length and similarityHow long is a vector, how far apart are two of them, and how closely do their directions agree? Cosine similarity is the dot product with length divided out, and it is how embedding search compares meaning.80 min
- Checkpoint11 questions. Pass with 80% to finish the module.
Practice sets for this module
Fresh problems every time. Use them until the mechanics feel automatic.
Compute for and . Enter the result as a column.
One entry per box, top to bottom. 0.25, -2, 3/4 and sqrt(2) all work. Enter moves to the next empty box and checks once all are filled.
Compute for and .
Type a number: 0.25, -2, 3/4 and sqrt(2) all work. Enter checks.
Normalize : find the unit vector that points the same way. Give each entry to 3 decimal places (fractions are accepted).
One entry per box, top to bottom. 0.25, -2, 3/4 and sqrt(2) all work. Enter moves to the next empty box and checks once all are filled.