CFA Level I · CFA Level I Exam · Introduction to Financial Data Science
A data scientist finds that 4% of the entries in the 'annual income' column of a client dataset are blank. The blanks appear unrelated to any other variable, and the remaining 96% of entries are complete. Which approach to the missing values is most appropriate if the analyst wants to keep all observations?
Replacing each blank with a representative value such as the column median is most appropriate. It keeps every observation and suits a small share of randomly missing entries. Deleting columns throws away information, and recoding income as a nominal category destroys its numerical meaning.
- ADelete every column in the dataset that contains a blank
- BReplace each blank with a value such as the column medianCorrect
- CConvert the income column into a nominal category named 'blank'
Explanation
Imputation with a central value such as the median retains all observations when few values are missing and the gaps look random. Deleting whole columns discards information and conflicts with the goal. Turning income into a nominal category loses its numerical content.
Did you get it right without looking?
One question tells you little. A timed set on Introduction to Financial Data Science shows your real accuracy, how long you take and where you lose marks.
More Introduction to Financial Data Science questions
- An analyst preparing unstructured text from analyst reports for natural language processing removes common words such as "the", "is" and "an…
- An analyst collects a dataset containing each firm's credit rating (AAA, AA, A, BBB), where the ratings have a clear ranking but the gaps be…
- An analyst receives a dataset in which each observation is a customer's credit rating recorded as AAA, AA, A, BBB, and so on. The analyst ne…
- An analyst trains a model on labeled data in which each borrower record includes a known outcome of default or no default. The model is then…
- A fund tests a model on a data set in which only 2% of transactions are fraudulent. The model classifies every transaction as legitimate and…
- An analyst wants to group thousands of retail borrowers into segments based on spending behavior, without any predefined labels for the grou…