IAI Actuarial Core Principles · Risk Modelling and Survival Analysis · Elementary principles of machine learning
A data scientist at a Mumbai insurer standardises all predictors using the mean and standard deviation of the full dataset, then splits the data into training and test sets and reports test accuracy. What is the main problem with this procedure?
The problem is data leakage. Scaling with the mean and standard deviation of the whole dataset lets test-set information influence training, so the reported test performance may be overstated. Scaling parameters should come from training data only.
- AInformation from the test set leaks into training, so test performance may be overstatedCorrect
- BStandardisation should never be applied before fitting a model
- CThe test set is too small to be useful after standardisation
- DStandardising makes the training error larger than the test error
- Standardisation causes underfitting, so accuracy is understated
Explanation
Using statistics computed from the full dataset lets information about the test observations influence the training inputs. This is data leakage, and the test result is no longer a clean estimate of performance on new data. Scaling parameters should be derived from the training set only and then applied to the test set.
Did you get it right without looking?
One question tells you little. A timed set on Elementary principles of machine learning shows your real accuracy, how long you take and where you lose marks.
More Elementary principles of machine learning questions
- A data scientist fits a very flexible model to a claims dataset. It achieves a very low error on the training data but a much higher error o…
- A analyst applies K-means clustering to policyholder data containing annual premium (in rupees, values in the lakhs) and age (in years, valu…
- Which statement about the K-means algorithm is correct?
- In 5-fold cross-validation on 500 observations used to compare two regularised regression models, which statement is correct?
- A model fitted to a training set gives a very low training error but a much higher error on a separate test set. Which is the most likely ex…
- A binary classifier for predicting policy lapse is tested on 200 policies. It gives 40 true positives, 20 false positives, 10 false negative…