Three cards show readings of 2, 4 and 6 units. The model is allowed to predict only in the ratio 1∶1∶2. Which three predictions should you put on the board? Two students can agree that the model misses something and still argue about which fit is best. To settle it, they need a rule for measuring the miss.
Start with a pencil and three columns of numbers. You will choose a scale, test it against every other scale, and hand someone a calculation they can check. This extends the Singular Values and Low-Rank Reconstruction Lab by fixing the allowable direction before seeing the readings. It also gives you a way to challenge a plausible-looking AI fit.
- Calculate the closest allowed prediction under squared error.
- Prove that no other scale gives a smaller error.
- Change the weights or the model and explain which answer survives.
Choose your reading route
Continue from article 175. Singular Values and Low-Rank Reconstruction Lab
In this coursework set · 179. Orthogonal Projection and Least Squares Lab · 180. Counterbalancing and Order Effects Lab · 181. Capture–Recapture Estimation Lab · 182. Focus and Alternatives Studio
Full chapter index
Specify the model · Chapters 1–3
Fit the measurements · Chapters 4–9
Challenge the assumptions · Chapters 10–19
- Change the importance of one reading
- Check the weighted answer
- Rescale the direction
- Handle an empty direction
- Look for a patterned miss
- Add a direction deliberately
- Connect the line to a larger model
- Connect to low-rank reconstruction
- Give an AI answer an adversarial check
- Package the result for a reader
Test the handover · Chapters 20–23
Plan independent practice · Chapters 24–26
CHAPTER 1 OF 26 · Specify the model
1. Give “best” a job
Put the readings in a column labelled observed. In another column write the model’s promise: if its first reading is k, the other two must be k and 2k. An answer must name both a scale and a measure of error. A different instrument, or a different reason for using it, could call for a different measure.
CHAPTER 2 OF 26 · Specify the model
2. Draw the allowed predictions
Take a strip of paper and mark the triples for k = 0, 1 and 2. They are (0,0,0), (1,1,2) and (2,2,4). In three-dimensional reading space these points lie on a line through the origin. Every real k marks a position on that line. The observed point (2,4,6) sits off it because its first two entries differ.
CHAPTER 3 OF 26 · Specify the model
3. Give each quantity a stable name
Let a = (1,1,2) be the fixed direction, b = (2,4,6) the observation and p = ka an allowed prediction. Define the residual e as observed minus predicted. Write that sign convention at the top of your page. In eduKate’s Vocabulary Coding and Engineering (VCE) exercise, your partner must be able to tell which symbols are chosen, measured and calculated.
CHAPTER 4 OF 26 · Fit the measurements
4. Compare three candidate scales
Start by trying k = 2, 3 and 4. For each, subtract predictions from observations one position at a time, square the differences, then add. Squaring makes a miss of two units count four times as much as a miss of one. The table is a check on the arithmetic. Cover its last column until you have finished.
| Scale | Fitted readings | Residual | Squared error |
|---|---|---|---|
| 2 | 2, 2, 4 | 0, 2, 2 | 8 |
| 3 | 3, 3, 6 | −1, 1, 0 | 2 |
| 4 | 4, 4, 8 | −2, 0, −2 | 8 |
CHAPTER 5 OF 26 · Fit the measurements
5. Find the scale without guessing
The total squared error is (2 − k)² + (4 − k)² + (6 − 2k)². Expand and collect terms to get 6k² − 36k + 56. Completing the square gives 6(k − 3)² + 2. The smallest possible value is 2, reached only at k = 3. This also rules out candidates such as 2.99 that the table never tested.
CHAPTER 6 OF 26 · Fit the measurements
6. Check the residual by hand
At k = 3 the fitted readings are (3,3,6) and the residual is (−1,1,0). Multiply corresponding entries of the residual and the allowed direction, then add. The dot product is −1 + 1 + 0 = 0. The first two observations pull equally in opposite directions. Moving along the line can do nothing to reconcile that disagreement.
CHAPTER 7 OF 26 · Fit the measurements
7. Turn a zero into a proof
Suppose another student moves the scale from 3 to 3 + h. Their new residual is e − ha. Its squared length is the old squared length, minus 2h times the dot product of e and a, plus h² times the squared length of a. The middle term vanishes. Every nonzero change adds 6h² to the score, however small the move.
CHAPTER 8 OF 26 · Fit the measurements
8. Derive the reusable calculation
For any nonzero direction a, require a · (b − ka) = 0. Rearranging gives k = (a · b)/(a · a). The denominator records the size of the direction. Here the numerator is 18 and the denominator is 6. Keep k and p in separate boxes on the answer sheet. One number locates the fit and three numbers give the actual prediction.
CHAPTER 9 OF 26 · Fit the measurements
9. Listen for an overclaim
A classmate says the model explains the readings because the residual sums to zero. Test that shortcut with the same a and a proposed residual (1,0,−1). Its entries sum to zero, yet its dot product with a is −1. The property that certifies this fit is perpendicularity to the allowed direction. A zero sum alone checks perpendicularity to the all-ones direction.
CHAPTER 10 OF 26 · Challenge the assumptions
10. Change the importance of one reading
Imagine the second reading counts four times in an agreed scoring rule. Before fitting, write the new objective as (2 − k)² + 4(4 − k)² + (6 − 2k)². The fitted scale becomes 30/9 = 10/3. A team reporting a different answer should first compare scoring rules. Neither the observations nor the permitted line moved.
CHAPTER 11 OF 26 · Challenge the assumptions
11. Check the weighted answer
At the new scale, the second observation’s residual falls from 1 to 2/3. The first residual grows in magnitude to 4/3. To check optimality, multiply each residual by its direction entry and its weight. Their weighted sum is zero. The weights express the assignment’s priorities. Claiming an instrument is four times as reliable would require separate evidence.
| Scale | Equal-weight score | Weighted score |
|---|---|---|
| 3 | 2 | 5 |
| 10/3 | 8/3 | 4 |
CHAPTER 12 OF 26 · Challenge the assumptions
12. Rescale the direction
Another researcher writes the direction as (2,2,4). Repeat the calculation. Its dot product with b is 36 and its squared length is 24, giving k = 1.5. Multiplying back produces exactly (3,3,6). A report containing only the coefficient would make two equivalent fits appear to disagree. Exchange the direction and the fitted readings along with the coefficient.
CHAPTER 13 OF 26 · Challenge the assumptions
13. Handle an empty direction
Set a = (0,0,0). Every scale produces exactly the same prediction, the origin. The formula now asks you to divide by zero. You can still identify the unique fitted point and compute its residual. You cannot learn a unique scale from these readings. State that distinction before using a numerical routine that may silently choose one coefficient.
CHAPTER 14 OF 26 · Challenge the assumptions
14. Look for a patterned miss
Label the first two readings as two stations using nominally identical settings. Their residuals have opposite signs. Perhaps one station is offset, perhaps the sampling varied, or perhaps the model excludes a relevant feature. One pair cannot distinguish those explanations. Design one repeat measurement in which the stations exchange positions, and predict what would move under each explanation.
CHAPTER 15 OF 26 · Challenge the assumptions
15. Add a direction deliberately
If the model can also vary along (−1,1,0), one unit of that new direction reproduces the original residual exactly. The extended fit now hits every observation. Ask when that direction was chosen and why a new run should share it. A direction picked after inspecting the miss deserves a fresh test before anyone treats it as part of the instrument.
CHAPTER 16 OF 26 · Challenge the assumptions
16. Connect the line to a larger model
With several allowed directions, collect them as columns of a matrix A. The least-squares condition says every column has zero dot product with the residual, written Aᵀ(b − Ax) = 0. Even if columns repeat, the closest fitted point in their span is unique. Repeated columns can make several coefficient lists describe that same point.
CHAPTER 17 OF 26 · Challenge the assumptions
17. Connect to low-rank reconstruction
The earlier lab asks which directions a matrix decomposition retains at a chosen rank. Here the reader receives a direction as a constraint and asks how a particular observation projects onto it. Try swapping the questions aloud. “Which direction should we keep?” requires information about the collection. “How much of this vector lies along our given direction?” can be answered from a and b.
CHAPTER 18 OF 26 · Challenge the assumptions
18. Give an AI answer an adversarial check
Offer a tutor the claim that k = 4 is attractive because the second reading is exact. Before asking for feedback, calculate its total score. The model then misses the first and third readings by two each. Request a dot-product check from the tutor and verify it yourself. Save the incorrect rationale alongside your correction so another learner can diagnose the same error.
CHAPTER 19 OF 26 · Challenge the assumptions
19. Package the result for a reader
On an index card put the observation, allowable direction, error rule, fitted scale, fitted point and residual. On the reverse, write one independent check. In eduKate’s proposed EnDist practice, exchange the card and record what a recipient can reconstruct. A recipient who assumes absolute errors has uncovered a missing specification even if their answer happens to match yours.
CHAPTER 20 OF 26 · Test the handover
20. Try a fresh projection unaided
Close the worked example. A three-channel recorder allows a = (1,2,1) and returns b = (1,5,1). Find the scale and fitted point, calculate the residual, and certify the fit with one dot product. Have a partner retain the next chapter until you can explain why the largest observed coordinate cannot simply be copied into the prediction.
CHAPTER 21 OF 26 · Test the handover
21. Open the transfer check
The middle reading alone would suggest k = 2.5. That would also raise the first and third predictions. The full calculation gives k = 2. In a viva, give a second proof: changing the scale by h increases squared error by 6h² because the fresh residual is perpendicular to the fresh direction. This reasoning transfers even though the coordinates have changed.
| Quantity | Calculation | Result |
|---|---|---|
| Scale | (1 + 10 + 1)/(1 + 4 + 1) | 2 |
| Fit and residual | b − (2,4,2) | (−1,1,−1) |
| Certificate | −1 + 2 − 1 | 0 |
| Squared error | 1 + 1 + 1 | 3 |
CHAPTER 22 OF 26 · Test the handover
22. Decide which error matters to a user
Suppose a display flags the largest absolute miss, while the analyst still minimises total squared error. These goals can disagree. For a one-number prediction of 0, 0 and 9, squared error is smallest at 3, while the largest miss is smallest at 4.5. Ask the equipment owner which consequence the reported score is intended to capture.
CHAPTER 23 OF 26 · Test the handover
23. Run the oral defence
Ask the learner to draw the line, explain why it contains the origin, and point to the residual from fitted point to observation. Then double the direction and ask what changes. Credit separately the geometric explanation, the numerical check and the decision about units. A student who can run a solver may still need practice interpreting its output.
CHAPTER 24 OF 26 · Plan independent practice
24. Plan four weeks of practice
In week one, calculate three fits to the original readings. In week two, derive the perpendicularity condition on blank paper. In week three, change one weight and predict which residual will shrink. In week four, hand an unseen direction and observation to a partner and defend the model before either of you opens a calculator.
CHAPTER 25 OF 26 · Plan independent practice
25. Mark the submitted work
Award one point each for a stated objective, correct fitted readings, a valid optimality certificate and a bounded interpretation. An arithmetic slip with a sound proof calls for a recalculation. A correct coefficient with no model or error rule calls for a fresh setup. The two cases need different feedback even if they receive the same total.
CHAPTER 26 OF 26 · Plan independent practice
26. Read further and build your own case
MIT OpenCourseWare develops the projection of a vector onto a subspace and its connection to least squares. The three-channel readings and weighted exercise here are original classroom examples. For a final exchange, invent a nonzero direction, choose a perpendicular residual, and add it to a point on the line. Give your partner the resulting observation and keep your construction as the answer key.
MIT OpenCourseWare · Projections onto Subspaces
Related coursework · Residual Model Fit Lab · Matrix Transformations Lab
Building the Next Generation of Education With AI · Capability Curriculum
Contents · Previous chapter · Continue to The Counterbalancing and Order Effects Lab
