AWS Certified Machine Learning – Specialty — Question 34

A Data Scientist is developing a machine learning model to predict future patient outcomes based on information collected about each patient and their treatment plans. The model should output a continuous value as its prediction. The data available includes labeled outcomes for a set of 4,000 patients. The study was conducted on a group of individuals over the age of 65 who have a particular disease that is known to worsen with age.
Initial models have performed poorly. While reviewing the underlying data, the Data Scientist notices that, out of 4,000 patient observations, there are 450 where the patient age has been input as 0. The other features for these observations appear normal compared to the rest of the sample population
How should the Data Scientist correct this issue?

Answer options

Correct answer: B

Explanation

The best approach is to replace the age value of 0 with the mean or median age from the dataset (Option B), as this maintains the integrity of the dataset while providing a reasonable estimate for the missing values. Dropping records (Option A) would reduce the dataset size unnecessarily, and eliminating the age feature (Option C) ignores potentially valuable information. Option D, using k-means clustering, is not suitable for addressing this specific input error.