Skill 1.3.7

Clean data (for example, by detecting outliers, imputing missing data, deduplication)

Key Concepts

Detect outliers with z-scores, the interquartile range (IQR) rule or the Random Cut Forest algorithm; then remove, cap (winsorise) or keep them if they are real events such as fraud.

Impute missing values with the mean (symmetric data), median (skewed data), mode (categories), a constant with a missing-indicator flag, or a model. Deduplicate exact matches and near-duplicates (normalised keys, fuzzy matching such as Glue FindMatches) so the same example does not appear in both training and test sets.