This page can stand on its own, so the first job is to build the mental picture carefully.
Vector Spaces
A vector space is a set of objects you can add and scale, where those operations behave consistently.
01
Intuition
Build the mental picture first so the rest of the page has something to attach to.
A vector space is what you get when you take the two operations that make geometry and algebra feel "linear" and insist they behave nicely:
- You can add two things of the same kind.
- You can scale a thing up or down by a number.
If those two operations obey a small set of consistency rules (associativity, commutativity, a zero element, etc.), then a huge amount of math becomes possible: projections, least squares, gradients, eigenvectors, Fourier features, embeddings, and more.
The key idea is not "arrows". Arrows in 2D are a great mental model, but the real power is that the objects can be many things: polynomials, functions, images, token embeddings, or model parameter updates. If you can add them and scale them consistently, you can treat them with the same tools.
Copy-only prompts — each action copies a page-grounded prompt to your clipboard. Nothing is sent by this site.
02
Math
Translate the story into symbols, assumptions, and a derivation you can inspect.
Definition (Vector space). A vector space over a field F (usually R or C) is a set V with:
- addition: +:V×V→V
- scalar multiplication: ⋅:F×V→V
The closure encoded in those operation types gives the linear-combination check:
such that for all u,v,w∈V and a,b∈F:
- (u+v)+w=u+(v+w)
- u+v=v+u
- There exists 0∈V with v+0=v
- For each v there exists −v with v+(−v)=0
- a(bv)=(ab)v
- 1⋅v=v
- a(u+v)=au+av
- (a+b)v=av+bv
In ML, we often work in Rd, but it's useful to remember that "vector" really means "element of some vector space".
Copy-only prompts — each action copies a page-grounded prompt to your clipboard. Nothing is sent by this site.
03
Code
Keep the implementation aligned with the notation so the algorithm is legible.
import numpy as np
# A tiny sanity-check: R^3 with usual + and scalar * behaves like a vector space.
u = np.array([1.0, 2.0, 3.0])
v = np.array([-1.0, 0.5, 4.0])
a, b = 2.0, -0.25
# Distributivity: a(u+v) = au + av
lhs = a * (u + v)
rhs = a * u + a * v
print("distributivity error:", float(np.linalg.norm(lhs - rhs)))
# Compatibility: a(bu) = (ab)u
lhs = a * (b * u)
rhs = (a * b) * u
print("compatibility error:", float(np.linalg.norm(lhs - rhs)))
# Zero + additive inverse
zero = np.zeros_like(u)
print("zero check:", bool(np.allclose(u + zero, u)))
print("inverse check:", bool(np.allclose(u + (-u), zero)))
Copy-only prompts — each action copies a page-grounded prompt to your clipboard. Nothing is sent by this site.
04
Interactive Demo
Use direct manipulation to connect the explanation to a moving system.
Live Concept Demo
Explore Vector Spaces
The stage is code-native and interactive. Use it to test the explanation against the mechanism.
Manipulate one control and predict the visible change.
Choose what to inspect in Vector Spaces. This shared fallback is an observation guide, not evidence of learning.
Try this:
- Drag u and v around.
- Move sliders a and b to form the linear combination w=au+bv.
- Before revealing the span witness, predict whether the two generators sweep a plane, nearly collapse, or collapse to a line/point.
Notice the two linked ideas: closure keeps w inside the same ambient space, while the determinant/area witness tells whether the chosen generators can sweep a 2D patch or have collapsed into fewer directions.
Copy-only prompts — each action copies a page-grounded prompt to your clipboard. Nothing is sent by this site.
Concept: Vector Spaces
What is the smallest example that makes Vector Spaces click without losing the math?
Object contextLinear Algebra
concept:linear-algebra/vector-spacesVector Spaces
What is the smallest example that makes Vector Spaces click without losing the math?
Start with the prediction checkpoint, then compare the reveal to the mental model.
Take this moveStudy modes
Keep the object fixed; change the lens.Route back through the notebook
Carry the same object through intuition, math, code, and demo.
A vector space is a set of objects you can add and scale, where those operations behave consistently.
Use the related links only after the central mechanism on this page feels stable.
After The First Pass
Turn the concept into an inspected object.
The lower panels are one second act: keep the object fixed, inspect it visually, check source boundaries, practice transfer, then attach the research question.Mechanism Storyboard
See the idea move before the page explains it
A vector space is a set of objects you can add and scale, where those operations behave consistently.

Start with the picture, metaphor, or geometric mechanism.
Before reading further, choose the kind of change Vector Spaces should make visible.
Visual Inquiry
Make the image answer a mathematical question
A vector space is a set of objects you can add and scale, where those operations behave consistently.
Which visible object should carry the first intuition?
Pick the cue that should make Vector Spaces easier to reason about before the page gives the answer.
Source Grounding
Canonical references for the mechanism on this page.
What is the smallest example that makes Vector Spaces click without losing the math?
concept:linear-algebra/vector-spacessources: deisenroth-2020-mml
Open the closest source note before trusting the local explanation.
1 selected-object source shown first; 1 reference total.
Audit the claim boundary, then ask from the same selected object.
Grounds vector spaces, bases, coordinates, and the linear algebra vocabulary needed for ML models.
MML defines real-valued vector spaces by addition V x V -> V, scalar multiplication R x V -> V, and the usual group/distributive/scalar axioms. It also treats closure and linear combinati...
MML is real-valued; the page's field-general F wording is standard but slightly broader than the source. This review checks algebraic closure/linear combinations only, not affine spaces,...
Claim Review
A vector space is a set of objects you can add and scale, where those operations behave consistently.
What is the smallest example that makes Vector Spaces click without losing the math?
concept:linear-algebra/vector-spacessources: deisenroth-2020-mml
Treat every claim as provisional until source support and a local witness agree.
1 structured claim check on this concept.
Run the prediction or practice transfer before asking for a grounded review.
Publisher-side editorial review is not independent replication. Claims without it still need exact source-support review. 1 reference and 2 local witnesses are available for inspection.
MML defines real-valued vector spaces by addition V x V -> V, scalar multiplication R x V -> V, and the usual group/distributive/scalar axioms. It also treats closure and linear combinations as scaled sums s...
MML is real-valued; the page's field-general F wording is standard but slightly broader than the source. This review checks algebraic closure/linear combinations only, not affine spaces, modules, norms/topol...
MML Def. 2.9 defines real vector spaces by +: V x V -> V and scalar multiplication R x V -> V plus Abelian-group, distributive, scalar-associative, and identity axioms; Def. 2.11 defines linear combinations sum_i lambda_i x_i in V. Local math states the field-general form; code checks R^3 operations and the demo forms w=a u+b v in R^2.
Reviewer: codex+oracle; reviewed 2026-05-07Practice notebook
Use the idea, then test it somewhere new
A vector space is a set of objects you can add and scale, where those operations behave consistently.
What is the smallest example that makes Vector Spaces click without losing the math?
concept:linear-algebra/vector-spacessources: deisenroth-2020-mml
Use one state from Vector Spaces to explain what changes, why it changes, and which assumption the explanation needs.
No learner move yet; no learning state is inferred.
Write first, use only the help you need, then try a new case without it.
Use one state from Vector Spaces to explain what changes, why it changes, and which assumption the explanation needs.
Reveal when your model needs a nudge.
Reveal when your model needs a nudge.
Reveal when your model needs a nudge.
Write an attempt before asking the companion.
0 of 3 progressive hints opened.
This draft and any AI response do not establish mastery; a later unassisted case can.
- ObjectConceptVector Spaces
- PredictBefore revealVector Spaces prediction
- WitnessCompare codeVector Spaces code witness 1
- RoomAsk groundedChecking local snapshot
Research Room
Attach the question to an exact object
Pick the concept, equation, source, code witness, claim, misconception, or demo state before asking for help. The handoff stays grounded to that object.Open the draft below to save one note and next action in this browser.
Vector Spaces
What is the smallest example that makes Vector Spaces click without losing the math?
These are fixed, deterministic perspectives derived from the selected object. They do not represent people, community contributions, or independent review.
Source ids deisenroth-2020-mml must support the exact object, not just the surrounding topic.
Treat this as a mechanism object: connect the definition to one equation, code witness, or demo before broadening the discussion.
Ask the learner to perturb one representation, then check whether the same invariant survives in math, code, and demo.
The learner can state the mechanism in their own words
Local action draftNo local draft saved yetExpand only when ready to capture one local next action
This draft stays locally in this browser for concept:linear-algebra/vector-spaces.
- Source ids to inspect: deisenroth-2020-mml
- Definition, prerequisite, and contrast concept links
- The equation or code witness that makes the concept operational
- One demo state that shows the invariant instead of a slogan
- The learner can state the mechanism in their own words
- The learner can name the prerequisite that would repair confusion
- The learner can predict how the mechanism changes under one perturbation
I am working in Continuous Function's research reading room. Object: concept - Vector Spaces Object key: concept:linear-algebra/vector-spaces Context: Linear Algebra Anchor id: concept/concept-notebook/linear-algebra/vector-spaces Open question: What is the smallest example that makes Vector Spaces click without losing the math? Evidence to inspect: - Source ids to inspect: deisenroth-2020-mml - Definition, prerequisite, and contrast concept links - The equation or code witness that makes the concept operational - One demo state that shows the invariant instead of a slogan Deterministic role lenses for this object: - Boundary: fixed perspectives, not people, community contributions, or independent review - Source-checking summary: Treat this as a mechanism object: connect the definition to one equation, code witness, or demo before broadening the discussion. - Proposed experiment: Ask the learner to perturb one representation, then check whether the same invariant survives in math, code, and demo. - Teach/transfer move: Turn the mechanism into one sentence that predicts a neighboring concept. - Assumptions: - Source ids deisenroth-2020-mml must support the exact object, not just the surrounding topic. - The stable content-object key lets local drafts, prompts, and route memory attach without changing the source page. - The concept explanation is local atlas prose until checked against its math, code, and source support. - Prerequisite gaps should become a repair route, not a reason to leave the object vague. - Role-lens requests: - Learner: ask for "Ask what would make "Vector Spaces" feel predictable rather than familiar." | assumption: Source ids deisenroth-2020-mml must support the exact object, not just the surrounding topic. | next action: The learner can state the mechanism in their own words - Researcher: ask for "Source ids to inspect: deisenroth-2020-mml" | assumption: The stable content-object key lets local drafts, prompts, and route memory attach without changing the source page. | next action: The learner can name the prerequisite that would repair confusion - Experimenter: ask for "Choose one variable or condition to perturb before asking for an explanation." | assumption: The concept explanation is local atlas prose until checked against its math, code, and source support. | next action: The learner can predict how the mechanism changes under one perturbation - Professor: ask for "Find the smallest transferable rule a learner could reuse without the AI." | assumption: Prerequisite gaps should become a repair route, not a reason to leave the object vague. | next action: Teach or transfer: Turn the mechanism into one sentence that predicts a neighboring concept. What would resolve this: - The learner can state the mechanism in their own words - The learner can name the prerequisite that would repair confusion - The learner can predict how the mechanism changes under one perturbation Answer as a careful research tutor: stay source-grounded, separate verified evidence from assumptions, name the relevant math objects, and end with one next action. Current deterministic role lens for this object: - Role lens: Learner - Evidence request: Ask what would make "Vector Spaces" feel predictable rather than familiar. - Assumption to keep visible: Source ids deisenroth-2020-mml must support the exact object, not just the surrounding topic. - Proposed experiment: Ask the learner to perturb one representation, then check whether the same invariant survives in math, code, and demo. - Next action: The learner can state the mechanism in their own words
concept/concept-notebook/linear-algebra/vector-spaces
concept:linear-algebra/vector-spaces