Describe your approach to creating a visualization for a dataset with missing or inconsistent values.

Instruction: Explain the steps you take from data preprocessing to the final visualization when dealing with incomplete datasets.

Context: This question tests the candidate's ability to handle and visualize imperfect data, assessing their skills in data cleaning, imputation, and their impact on the visualization outcome.

Updated

Official answer

Start with the question, data provenance and missingness definitions. Distinguish unknown, not applicable, not collected and actual zero; check inconsistent units, categories and duplicate identities separately from unusual but valid values.

Profile missingness by field, time and relevant group, using the expected population where available. Observed data alone generally cannot prove a missing-at-random assumption. Investigate collection mechanisms and state assumptions rather than selecting a label with certainty.

Do not impute automatically just to create a continuous-looking chart. Gaps or an explicit unknown category may be the most honest view. If an analytical model requires imputation, choose a justified method, fit it without leaking evaluation data, and examine sensitivity to alternatives.

Mean imputation can preserve the observed mean while reducing apparent variation and altering relationships. Mark imputed values or regions and report observed coverage. An arbitrary shaded band is not a valid confidence interval; uncertainty must come from a stated method that accounts for the relevant assumptions.

Keep a reproducible transformation log and compare raw, cleaned and imputed summaries. Test whether subgroup patterns change under reasonable choices, and explain what the visualization cannot establish because the data is incomplete.

Related Questions