Six-position vectors
Task 7 · worked step 3
The lab uses three scaled numbers followed by three programme indicators. This fixed layout tells the distance calculation what to compare.
Lab 4 PDF pp. 6–7 · Task 7
Your task
Place score_z, minutes_z and early_logins_z first. Append CS, Economics and Psychology indicators. Check that every row has six positions and uses the same training parameters.
Evidence to include
Six positions, one fixed meaning each.
Worked example and code
Try the task in the PDF first, then compare your working below. Run the code in your own Python notebook.
Open Lab 4 instructions (PDF)The feature order is [score_z, minutes_z, early_logins_z, CS, Economics, Psychology].
| ID | Three scaled numbers | Programme indicators |
|---|---|---|
| S1 | [-1.212678, -1.000000, -1.135815] | [1,0,0] |
| S2 | [-0.727607, -0.333333, -0.786334] | [0,1,0] |
| S3 | [0.727607, 1.666667, 0.611593] | [0,0,1] |
| S4 | [1.212678, -0.333333, 1.310556] | [1,0,0] |
| T1 | [-1.018650, -0.777778, -1.135815] | [1,0,0] |
| T2 | [0.921635, 1.444444, 0.961074] | [0,1,0] |
| N1 | [0.533578, -0.333333, 0.262111] | [0,0,0] |
Practice problems
Supplementary study questions on the lecture concepts — not verbatim exam questions. Each answer counts toward spaced review.
1. Conceptual understanding
Definitions and distinctions.
How many positions are in the combined Lab 4 feature vector?
Why should coordinate order remain fixed?
2. Application
Apply the concept to a case or calculation.
Which comes first in the specified six-position vector?
Why does N1 end with three zeros?
3. Interpretation and limitations
Evaluate assumptions and justify conclusions.
Should minutes_per_login be added as a seventh coordinate in this specified lab?
Two vectors have the same six values but different feature orders. Are they interchangeable?
Explain it in writing
Self-checked, not marked. Write a few sentences, then compare with the example answer. Your writing is saved as you type.
Show an example answer
It is a matching label, not a meaningful numerical measurement. Differences between ID numbers do not represent differences between students relevant to this task.
Check: did you answer the question, use evidence or working, and avoid claiming more than the evidence supports?
Show an example answer
The same positions would no longer describe the same features. Distance would subtract unrelated quantities and no longer implement the specified method.
Check: did you answer the question, use evidence or working, and avoid claiming more than the evidence supports?
Saved only in this browser. This note doesn’t fill in the downloaded notebook; “reviewed” is a personal checklist, not a grade.