IAI Actuarial Core Principles · Risk Modelling and Survival Analysis · Elementary principles of machine learning
When building a predictive model for insurance data, which action best reduces the risk of data leakage?
Fit scaling and feature-selection steps using only the training data, then apply them unchanged to the test data. This keeps the test set independent so that performance estimates are not contaminated by information the model should not have seen.
- AStandardising variables using the mean and standard deviation of the whole dataset before splitting into training and test sets
- BFitting scaling and feature-selection steps only on the training data and then applying them to the test dataCorrect
- CUsing the test set repeatedly to tune hyperparameters until performance is maximised
- DIncluding a variable that is recorded only after the claim has been settled
- Increasing the number of predictors until training error reaches zero
Explanation
Leakage occurs when information from outside the training data influences the model. Fitting preprocessing only on training data and then applying it to the test data keeps the test set independent. The other options either use test information or use variables unavailable at prediction time.
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…
- 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…
- In principal components analysis (PCA) of a standardised data set with 5 variables, the eigenvalues of the correlation matrix are 2.5, 1.3, …