Practice: Fitting Without a Formula
Question
Direct application
Observations are recorded at
Enter the value. It is checked against the answer and the precision this task asks for.
2 hints available, least help first.
Hint 1: Retrieval cue
The three closest observations to
Hint 2: Next step
Average their responses with equal weight.
Prediction
A
Enter the value. It is checked against the answer and the precision this task asks for.
1 hint available, least help first.
Hint 1: Retrieval cue
For a training observation, which observation is its own nearest neighbour?
Method selection
A
| Training RSS | Leave-one-out MSE | |
|---|---|---|
| 1 | ||
| 3 | ||
| 4 | ||
| 9 | ||
| 15 |
Which value of
Error diagnosis
Observations sit at
Interpretation
A Gaussian kernel fit reports, at one query point, an estimate of
Transfer · Evaluation
A service predicts a user's rating of an item by averaging the ratings of the twenty most similar users. For items with many ratings the predictions are good. For newly listed items, rated by only a handful of users, every prediction comes out close to the same middling value, and the service reports these with the same confidence as the rest. Which account identifies the mechanism?
Construction · Evaluation · Explanation
A laboratory has 200 calibration readings relating an instrument's raw output to a known concentration, covering concentrations from 5 to 90 units. The relationship is monotone and smooth but matches no formula anyone has proposed. A colleague fits a
Write an assessment. Address all of the following.
- The fitted value. Describe how a prediction is produced at a query concentration, for both
-nearest neighbours and a kernel fit, and say what the kernel reports that the nearest-neighbour version does not. - The colleague's selection. State what
does to the training error and why that criterion produced this answer. Say what the resulting curve would do if the 200 readings were collected again. - Choosing
properly. Give the criterion you would use, and say what shape you expect the resulting curve of error against to have and why. - The ends of the range. Say what happens to the fit near 5 and near 90 units, whether collecting more readings between 5 and 90 would fix it, and why.
- The reading at 120 units. Say what the fitted curve will return there and what should be reported instead.
Write your answer, then compare it with the worked solution.
3 hints available, least help first.
Hint 1: Retrieval cue
For part 2, ask which observation is nearest to a training observation.
Hint 2: Concept cue
For part 4, ask on which side of the lowest query point its neighbours can possibly lie.
Hint 3: Strategy cue
For part 5, work out which observations the neighbourhood contains for a query far above every reading, and then for one further still.
Compare with the worked solution
Comparing does not record a result. Judging your own written answer cannot show that you can do this without help.
1. The fitted value. For
A complete answer does each of these:
- computes local average
- relates smoothing to error
- selects parameter by holdout
- identifies boundary degradation
- states parametric tradeoff
Session complete
Every question in this set has been through once. What you can do now depends on how it went — practising again is worth more than moving on if any of it was uncertain.
Practice data
Your practice record is stored in this browser only. Clearing it removes every answer and every scheduled review, and cannot be undone.