Google Cloud Professional Machine Learning Engineer — Question 59

While conducting an exploratory analysis of a dataset, you discover that categorical feature A has substantial predictive power, but it is sometimes missing. What should you do?

Answer options

Correct answer: D

Explanation

The correct answer is D because adding an additional class for missing values allows you to retain all available data and provides a clear indication of which entries were originally missing. Option A may lead to loss of valuable predictive information, while B and C do not account for the nature of the missing data and could introduce bias by imputation.