Log inStart free
LESSON 2.01 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Vectors, dot products and norms

Watch two arrows turn into numbers: a length, an angle and one dot product.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 2.01 · VECTOR BAYA = (2, 1)
01
Stage 1 of 6 · A vector
A vector is a list of numbers. a = (2, 1) is an arrow: 2 right, 1 up.
Explain it simply

A vector is a short list of numbers, here 2 and 1. You can draw it as an arrow from the center: 2 steps right, then 1 step up. The dashed lines show those two steps. In machine learning, a vector can hold hundreds of numbers, and the same rules work.

The vector a = (2, 1) is an arrow from the origin to the point (2, 1). Its two cells hold 2 and 1.

vectors a and bscalar kproducts, length, anglenegative sidedirection u, grid
planenumbers−4−4−2−22244xy21a (2, 1)a21planenumbers−4−4−2−22244xy21a (2, 1)a21
Toy: 2 vectors in 2D · a = (2, 1) · b = k·u · a 10 × 10 grid
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
a=(a1, a2)\sy{a}{data}{\mathbf a} = (\sy{a}{data}{a_1},\ \sy{a}{data}{a_2})
a=(2, 1)\mathbf a = (2,\ 1)

A vector is an ordered list of numbers, one per direction.

Common mix-ups

MYTHA larger dot product always means a smaller angle.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01If k changes from 2 to −2, what is a · b?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.