6 tasks · 12 pts max · no time limit
Scenario
Active user ā has mean rating . Three neighbours:
| Neighbour | Similarity | Deviation |
|---|---|---|
| U1 | 0.80 | +1.5 |
| U2 | 0.40 | −2.0 |
| U3 | −0.60 | −1.0 |
Prediction formula: , where .
A model produced the following predictions on five held-out ratings:
| Item | Predicted | Actual |
|---|---|---|
| i1 | 4.0 | 3.5 |
| i2 | 2.5 | 4.0 |
| i3 | 3.0 | 3.0 |
| i4 | 5.0 | 3.5 |
| i5 | 2.0 | 3.0 |
Two users' rating vectors across 4 items: A = [2, 0, 3, 1] and B = [1, 2, 2, 0].
Task 1: Using all three neighbours, compute the weighted deviation sum Σ w(a,i)(rᵢⱼ − r̅ᵢ).
Choose one
Or enter your answer (±2% tolerance)
Task 2: Compute the normalising factor g = 1 / Σ|w(a,i)| (round to 3 decimal places).
Choose one
Or enter your answer (±2% tolerance)
Task 3: Compute the predicted rating pred(a, j) (round to 3 decimal places).
Choose one
Or enter your answer (±2% tolerance)
Task 4: Calculate the MAE (Mean Absolute Error) for the five predictions in Part B.
Choose one
Or enter your answer (±2% tolerance)
Task 5: Calculate the MSE (Mean Squared Error) for the five predictions in Part B.
Choose one
Or enter your answer (±2% tolerance)
Task 6: Compute the cosine similarity sim(A, B) between A = [2, 0, 3, 1] and B = [1, 2, 2, 0] (round to 3 decimal places).
Choose one
Or enter your answer (±2% tolerance)