50 minutes. Self-marked against the rubric. 16 marks. In the full course this counts toward the labs and cases share (15% of the course grade). Write your answers in the boxes, then open the model answer and tick each mark you earned honestly. Nothing is sent or stored.
Scenario (invented)
A tutor (invented) predicts whether a student will pass a test (Y) or not (N) from hours of study in the week before. Rule: predict pass if hours are at least t. The cases are split as below, and the baseline is always predict pass (training and validation tie at six passes and six fails, so the tutor fixes pass in advance).
| Set | Cases (hours → passed?) | Size |
|---|---|---|
| Training | 2 N, 3 N, 4 N, 5 Y, 6 N, 7 Y, 8 Y, 9 Y | 8 |
| Validation | 3 N, 5 Y, 6 Y, 7 N | 4 |
| Test | 2 N, 4 Y, 5 Y, 6 N, 8 Y, 9 N | 6 |
On the training cases the rules at 5 and at 7 each make one error and tie at 87.5%.
Tasks
Task 1 (4 marks)
Score the rules at 5 and at 7 on the four validation cases and choose one. State both accuracies.
Private: nothing you type here is sent or stored.
Task 2 (4 marks)
Run the chosen rule on the six test cases once. Give its accuracy, and the baseline accuracy.
Private: nothing you type here is sent or stored.
Task 3 (4 marks)
Fill the confusion matrix for the test and compute precision and recall.
Private: nothing you type here is sent or stored.
Task 4 (4 marks)
Write four lines of a report: the result against baseline, the sample size, what you would not claim, and what to do next.
Private: nothing you type here is sent or stored.
Rubric and model answer
Task 1: choose the rule (4 marks)
Model: the rule at 5 predicts pass for 5, 6 and 7 and fail for 3. It is right for 3, 5 and 6 and wrong for 7 (who failed): 3 of 4 = 75%. The rule at 7 predicts pass only for 7 (wrong) and fail for 3, 5 and 6, so it is right only for 3: 1 of 4 = 25%. Choose the rule at 5.
Task 2: test once and baseline (4 marks)
Model: rule at 5 predicts pass for 5, 6, 8, 9 and fail for 2, 4. Right: 2 N, 5 Y, 8 Y; wrong: 4 Y, 6 N, 9 N. Accuracy 3 ÷ 6 = 50%. Baseline always pass: 4, 5, 8 passed = 3 ÷ 6 = 50%.
Task 3: confusion matrix (4 marks)
Model: TP = 2 (5, 8), FP = 2 (6, 9), FN = 1 (4), TN = 1 (2). Precision 2 ÷ 4 = 50%; recall 2 ÷ 3 = 66.7%.
Task 4: honest report (4 marks)
Model: the rule gets 50% on six test cases, no better than the 50% baseline; with six cases one case moves the score by 16.7 points, so no real difference can be claimed either way; the rule should not be used to decide who receives support; collect more cases and try more features before rechecking.
Marks so far: 0 of 16