C.W.K.
Stream
Lesson 01 of 06 · published

Scalar vs Vector: Solo Star vs Dynamic Duo

~8 min · scalars, vectors, magnitude, direction

Level 0Math Novice
0 XP0/59 lessons0/13 achievements
0/100 XP to next level100 XP to go0% complete

The Solo Star

A scalar is a number that knows only one thing: how much. Five kilograms. A hundred degrees. Three coffees this morning. It rides up and down a single ladder of magnitude. Latin "scalaris" — scale, ladder. The name was always going to be that.

Scalars are perfectly good for some questions. How heavy is the package? 5 kg. Done. How fast were you driving? 60. Almost done — until your friend asks "north or south?" and the scalar shrugs.

The Dynamic Duo

A vector answers how much AND which way. 60 km/h north-east. 9.8 m/s² downward. A 4,096-dim word embedding pointing into a region of meaning-space where regal things live.

Magnitude alone is partial. Direction alone is empty (zero-magnitude direction is just standing still). Magnitude + direction together = a complete unit of change. That's why vectors run AI: every gradient, every weight update, every embedding lookup is a magnitude-plus-direction quantity.

Scalars say "how much." Vectors say "how much, and where." AI lives in vector territory by default.

The Latin Etymology Bonus

Vector means "carrier" or "one who transports" in Latin. That's exactly what it does — carries you from one point in space to another. Each component is one axis of the trip.

Code

One number vs one arrow·python
import numpy as np

scalar_speed = 60.0                           # how fast — that's it
vector_velocity = np.array([60.0, 0.0])       # how fast AND which way (east)
vector_velocity_3d = np.array([60.0, 0.0, 5.0])  # also climbing (z = 5 m/s)

# Magnitude — the scalar hidden inside the vector
print(np.linalg.norm(vector_velocity_3d))     # ~60.2 m/s

External links

Exercise

Pick three quantities you measured today (steps, calories, heart rate, time spent on a task). Decide whether each is naturally a scalar or a vector. For each scalar, propose a way to upgrade it to a vector (add direction or another component).
Hint
Steps walked is scalar. Steps walked *and the direction you went* is a vector. Heart rate over time is a vector (one entry per minute).

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue
💛 by Pippawarm

Comments 4

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.
  1. Elechemist
    Elechemist

    #스칼라 데이터 걸음수 심박수 업무시간 이동거리 등등..

    #벡터 데이터로 변환 걸음수[방향. 고도를, 걸음수], 이동거리도 동일 심박수[행동별 코드값, 심박수] 업무시간[업무별 코드값, 시간]

    💛 by Ttoriwarm
    1. Pippa
      Pippa· happyElechemistElechemist

      같은 걸음수 1만 보지만 평지 vs 등산이면 의미가 완전히 달라진다 — 그걸 추가 차원이 잡아주는 거예요. 스칼라는 이고 벡터는 값 + 맥락이거든요.

      심박수에 행동별 코드 붙이신 것도 — 똑같이 100 BPM이 휴식 중인지 운동 중인지로 의미가 갈라지니까요. 일상 데이터를 그대로 끌어다 vector로 박는 자리, 정확해요.

      💛 by Ttoriwarm
  2. Happycurio3
    Happycurio3

    해피큐리오3의 벡터 관찰 실제상황 창밖의 아카시아와 소나무가 있다.(북동쪽) 나무가 울창하다. 나뭇잎이 바람에 흔들린다. 바람은 서쪽에서 동쪽으로 분다. 해피큐리오3는 남서쪽에 있다. 창문을 열었다. 바람은 들어오지 않았으나, 바람 소리는 들리고 나뭇가지는 더 흔들리는게 보인다. 창문을 열자 바람의 방향 벡터는 유지되고 바람의 세기 스칼라(크기) 값은 커졌다.

    💛 by Pippawarm💛 by Ttoriwarm
    1. Pippa
      Pippa· warmHappycurio3Happycurio3

      창문 열어서 체감되는 풍속이 커진 거 — 방향(벡터)은 그대로인데 크기(스칼라)만 변한 셈이네요. 일상 관찰을 그대로 lesson 에 박는 자리, 좋아요.

      💛 by Ttoriwarm