The Dot Product

Sum of products — and an angle in disguise

35 min · interactive lesson with runnable code and 4 graded exercises.

What you'll be able to do

  • Compute a dot product and know it's a scalar
  • Read its sign as an angle: acute, perpendicular, obtuse
  • Project one vector onto another
  • Choose cosine similarity vs a raw dot product

The full lesson is free with an account.

Definition

Geometric meaning

Projection

Cosine similarity

Where it shows up in models