Skip to content
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

When One Value Is Enough

A scalar answers a one-magnitude question: a 5 kg package, a 20°C temperature, or three coffees. With no coordinate axes, it has no components to index. Its name comes from Latin scalaris — scale or ladder — a value moving along one ladder of magnitude.

A unit can close that scalar question: bare “60” is ambiguous, while 60 km/h names both magnitude and unit. Then a friend asks “north or south?” and the scalar runs out of answers.

When Components Describe One Thing

A vector is an ordered group of components. In geometry it can be read as magnitude and direction; in data it is a point whose coordinates collect features. Velocity carries east and north components, gravitational acceleration can be 9.8 m/s² downward, and a 4,096-dimensional word embedding can point toward a region of meaning-space where regal concepts live.

Direction is not limited to a compass. In parameter space it says which values to change together and by how much; in embedding space it identifies a semantic relation. Component order and reference axes are part of the vector's meaning.

The Zero Vector Has No Direction

The norm measures magnitude, and produces a unit vector when the norm is nonzero. The zero vector is the exception: division by its zero norm is undefined, so it has no defined direction.

Scalars say “how much.” Vectors say “how much, along which axes.” AI groups inputs, weights, gradients, and embeddings into vectors so their components can be computed together.

The Name Carries the Idea

Vector means “carrier” or “one who transports” in Latin. A geometric vector carries a point through displacement; a data vector carries several feature values together as one representation.

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