This Linear Algebra concept is the current object: keep the same invariant visible across Intuition, Math, Code, Interactive Demo.
Linear Algebra
Norms
A norm is a notion of vector length; different norms change geometry, distances, and what 'small' means in optimization.
Concept Structure
Norms
Start with the picture, metaphor, or geometric mechanism.
Make the objects explicit and connect them with notation.
Mirror the equations with runnable implementation details.
Manipulate the mechanism and watch the idea respond.
Learner Contract
What this page should let you do.
1 prerequisite listed; refresh them before leaning on the math or code.
Explain the mechanism, trace the main notation, and test one prediction in the live demo.
Read the intuition before the notation; the math should name a mechanism you already felt.
Follow this edge after making one prediction here; the next page should reuse the result, not restart the route.
Claim/source review status
Claim review not recorded
No structured claim checks yet; source metadata is not enough to establish support.Metadata-derived; review may be AI-assisted. Not a human certification.01
Intuition
Build the mental picture first so the rest of the page has something to attach to.
A norm is a notion of “length.” But there isn’t only one reasonable way to measure length.
The usual Euclidean length asks for the straight-line distance from the origin. That is perfect when every coordinate should be treated like a perpendicular spatial axis. But machine learning often asks different questions: how large is the total absolute weight mass, how large is the biggest coordinate, or how big is a gradient update before we apply it?
Changing the norm changes the geometry:
- In (Euclidean norm), circles are circles.
- In , circles become diamonds.
- In , circles become squares.
Those shapes are not decorative. They describe what the model considers “equally large.” An penalty tends to make sparse solutions because its diamond-shaped level sets have corners on the coordinate axes. An penalty spreads shrinkage more smoothly. An constraint cares about the worst coordinate.
In optimization, norms decide how we measure parameter size, gradient size, perturbation size, and distance moved by an update. That is why regularization, gradient clipping, adversarial perturbations, and embedding normalization all depend on choosing the right notion of “length.”
02
Math
Translate the story into symbols, assumptions, and a derivation you can inspect.
Let be a real vector space. A function is a norm if for all and :
- Non-negativity: and
- Homogeneity:
- Triangle inequality:
These axioms say length is never negative, scaling a vector scales its length by the same amount, and taking a two-step path cannot be shorter than the direct path.
Common norms on :
- :
- :
- :
More generally, for ,
If your norm comes from a dot product, then
For the standard dot product on , this gives the Euclidean norm:
Not every norm comes from a dot product. The and norms are valid lengths, but they do not come from an inner product in the same way. This matters because dot-product geometry gives angles and projections, while general norms mainly give size and distance.
Once a norm is chosen, it induces a distance:
So changing the norm changes both what counts as a small vector and what counts as two points being close.
03
Code
Keep the implementation aligned with the notation so the algorithm is legible.
import numpy as np
x = np.array([3.0, -1.0, 2.0])
l1 = float(np.sum(np.abs(x)))
l2 = float(np.linalg.norm(x, 2))
linf = float(np.linalg.norm(x, np.inf))
print("||x||1 =", l1)
print("||x||2 =", l2)
print("||x||inf =", linf)
print("x / ||x||2 =", x / l2)
04
Interactive Demo
Use direct manipulation to connect the explanation to a moving system.
Prediction check: start from a baseline vector, spike one coordinate, then predict which norm has the largest absolute amount of change. The reveal compares , , and lengths, shows the ray hit order against the diamond/circle/square unit balls, and uses radial clipping to show how the same vector lands on different boundaries.
The point is not that one norm is always “stricter.” The metric you ask for matters: absolute change, relative change, clipping radius, and modeling goal can point to different answers.
Live Concept Demo
Explore Norms
The stage is code-native and interactive. Use it to test the explanation against the mechanism.
Manipulate one control and predict the visible change.
Commit to what Norms should make visible before reading the result.
After The First Pass
Turn the concept into an inspected object.
Once the invariant is visible in the intuition, math, code, and demo, use these panels to inspect the mechanism visually, check source support, practice the idea, and attach a grounded research question.
Mechanism Storyboard
See the idea move before the page explains it
A norm is a notion of vector length; different norms change geometry, distances, and what 'small' means in optimization.
Start with the picture, metaphor, or geometric mechanism.
Before reading further, choose the kind of change Norms should make visible.
Visual Inquiry
Make the image answer a mathematical question
A norm is a notion of vector length; different norms change geometry, distances, and what 'small' means in optimization.
Which visible object should carry the first intuition?
Pick the cue that should make Norms easier to reason about before the page gives the answer.
Source Grounding
Canonical references for the mechanism on this page.
Add source metadata before treating this page as source-grounded.
Claim Review
A norm is a notion of vector length; different norms change geometry, distances, and what 'small' means in optimization.
Source IDs and witness objects are attached for review; they are not proof by themselves.
Add source metadata before claiming support.
Use equation, code, and demo objects to check whether the source support is operational.
Source support candidates
No structured source note is attached yet.
Practice Loop
Try the idea before it explains itself
A norm is a notion of vector length; different norms change geometry, distances, and what 'small' means in optimization.
Before touching the demo, predict one visible change that should happen in Norms.
Reveal when your model needs a nudge.
Reveal when your model needs a nudge.
Reveal when your model needs a nudge.
A concrete answer is on the canvas.
The answer names why the claim should hold.
It touches the page context or a neighboring idea.
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.
Norms
What is the smallest example that makes Norms click without losing the math?
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/norms.
- 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 - Norms Object key: concept:linear-algebra/norms Context: Linear Algebra Anchor id: concept/concept-notebook/linear-algebra/norms Open question: What is the smallest example that makes Norms click without losing the math? Evidence to inspect: - 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 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.
concept/concept-notebook/linear-algebra/norms
concept:linear-algebra/norms