A4.2 Data preprocessing (HL) - IB Diploma Class 12 Computer Science Notes, Diagrams and Solved Questions

Getting data ready for machine learning: cleaning incorrect, duplicate, irrelevant and missing data, dealing with outliers, min-max and z-score scaling, feature selection, and reducing dimensions with the idea of PCA.

In this chapter

  • Why clean data: incorrect values, duplicates and irrelevant fields
  • Missing data: deletion or mean, median and mode imputation
  • Detecting outliers with the 1.5 × IQR rule and deciding what to do
  • Min-max normalization and z-score standardization, with an outlier slider
  • Feature selection by filter, wrapper and embedded methods
  • The curse of dimensionality in numbers
  • The idea of principal component analysis
  • Iteration 3: ordering the steps, how scaling changes nearest neighbours, a wrapper search by hand