Tensors, Boxes of Numbers

3 min
Audience
ages 10–15
Duration
30 to 40 min
Adventure
1/8
Badge to earn
Guardian of Dimensions

Today's mission

Read the shape of a tensor and connect each dimension to a concrete question.

Proof of success: explain "Tensors, boxes of numbers", complete "Index the weather box" and name the limit of the analogy.

The story

Nora archives the fictional weather of three cities across four days with two measurements: temperature and rain. A single list mixes everything together. Instead she builds a box indexed as "city × day × measurement". This box of numbers is a tensor. To find the rain of the second day in the third city, you need to know the order of the axes. Two tensors can hold the same 24 numbers and still tell different stories if their shape or axes change.

What is technically true

A solid explanation must be testable. Here are the facts that make the situation checkable. Here, your anchor is "Tensors, boxes of numbers".

  • A scalar has zero axes, a vector has one axis, a matrix has two axes; the word tensor also covers higher-dimensional arrays.
  • The shape gives the size of each axis, for example 3 × 4 × 2, but the numbers alone don't explain the meaning of the axes.
  • Operations require compatible shapes; swapping height, width and channels can trigger an error or a silently wrong result.

The vertical map

The diagram turns a situation into structured values, then forces a shape check before any conclusion. Read the diagram from top to bottom: each arrow announces a transformation or a check, never a thought inside the machine.

A useful analogy — and where it breaks

The analogy: Picture a filing cabinet with drawers, rows and numbered cells.

Where it breaks: A tensor is not a piece of furniture and stores no human meaning: meaning comes from convention, metadata and processing. An analogy helps you get started; it never replaces the data, the calculations or a test.

Screen-free activity — Index the weather box

Materials: 24 small papers, three envelopes, a grid with four rows and two colors
Suggested time: 10 to 20 minutes.

  1. Write a fictional temperature and a fictional rainfall on each pair of papers.
  2. Store four days into each of the three city envelopes.
  3. Note the shape 3 × 4 × 2 and describe each axis in words.
  4. Swap the day and measurement axes, then show why the same address no longer points to the same value.

What you should notice: the shape matters as much as the values, and each axis must be named to avoid a wrong interpretation.

Optional challenge

Add an axis "morning / evening". Give the new shape and the address of one precise measurement.

Safety, fairness and human choice

Anonymized data can still reveal habits if the axes represent places and times. For this course, use only made-up measurements.

Responsible question: What extra information would you need before publishing a tensor coming from a real sensor?

Mini-quiz with answers

  1. What is the shape of three cities, four days and two measurements?

    Answer: 3 × 4 × 2 if the axes are in that order.

  2. Are two tensors with the same number of values interchangeable?

    Answer: No. Their shape and the meaning of their axes can differ.

  3. Why name the axes?

    Answer: To know what each position represents and to detect a wrong permutation.

Competency badge

Guardian of Dimensions — You earn this badge if you can explain the diagram without reading, show the result of the activity and kindly correct a wrong answer.