c15 · E1

Practise: Judging a Model Honestly

c15.E1.1E1 · numeric

A model is fitted on 40 rows and makes 2 errors on them. Before fitting, 50 further rows were held out, and on those rows the model makes 9 errors. Report the optimism, meaning the test error minus the training error, to three decimal places.

c15.E1.2E1 · numeric

A dataset has 20 rows arranged in four folds of five rows each. On the four held-out folds the model makes 1, 3, 0 and 2 errors, in that order. Compute the cross-validated error, to three decimal places.

c15.E1.3E1 · numeric

You hold 100 rows. A single validation split fits the model on 70 rows and scores it on 30. Five-fold cross-validation fits each of its five models on four folds. How many more rows does each five-fold model train on than the single-split model?

c15.E1.4E1 · numeric

A model that uses a leaking column is right on 94 percent of 200 rows. A model that drops the column is right on 71 percent of the same rows. How many more rows does the leaky model get right?

c15.E1.5E1 · numeric

The five reaction times 3, 5, 5, 8 and 9 have mean 6. A bootstrap resample draws 3, 3, 5, 8 and 9. Give the mean of the resample, to one decimal place. Does it have to equal 6?

c15.E1.6E1 · numeric

A spam filter catches 11 of 14 spam emails. Under the null hypothesis, each email is caught independently with probability . Using the upper tail, compute the p-value to four decimal places.

c15.E1.7E1 · numeric

A model makes 8 errors on 40 patients overall. In ward C it sees 10 patients and makes 5 errors. Give the ratio of the ward error rate to the overall error rate, to one decimal place.

c15.E1.8E1 · numeric

Five bootstrap replicates of a mean are 4.2, 4.8, 5.0, 5.4 and 5.6. Compute their standard deviation with divisor , to three decimal places.

Other tiers

E2 Derive · E3 Open

Every hint opened, solution viewed and answer checked is recorded in this browser only. See Progress to export or delete it.