Computer Science · Theme A: Concepts of computer science
A4.2 — Data preprocessing
Computer Science · SL / HL · syllabus-mapped notes
CS_A4.2.1
The significance of data cleaning
How data quality drives model performance, plus cleaning, normalization and standardization.
Full note — freeThis card is HL only. You must be able to describe why data cleaning matters: preparing raw data so a model can learn from it reliably. Impact of data quality on model performance A model can only be as good as its data: errors, gaps and inconsistencies lead to inaccurate or biased predictions ("garbage in, garbage out"). Data-cleaning techniques : Handling outliers (values far outside the normal range that can distort learning). Removing or consolidating duplicate data so records are not double-counted. Identifying incorrect data (impossible or inconsistent values). Filtering irrelevant data that does not help the task. Transforming improperly formatted data into a consistent format. Missing data : handled by imputation (filling in an estimated value), deletion (removing the record) or predictive modelling (predicting the value from other data). Normalization and standardization as crucial preprocessing steps: Normalization rescales values into a fixed range (often 0 to 1). Standardization rescales values to have a mean of 0 and a standard deviation of 1. Both put features on a comparable scale so no single large-valued feature dominates the model.
CS_A4.2.2
The role of feature selection
Retaining the most informative attributes via filter, wrapper and embedded methods.
This card is HL only. You must be able to describe the role of feature selection : identifying and retaining the most informative attributes (features) of the data set and discarding the rest. Keeping only the most useful features reduces noise, speeds up training, and …
CS_A4.2.3
The importance of dimensionality reduction
Reducing variables and the curse of dimensionality (PCA and LDA are out of scope).
This card is HL only. You must be able to describe the importance of dimensionality reduction : reducing the number of variables (features) while preserving the relevant aspects of the data. The curse of dimensionality As the number of features grows, problems appear. Considerations may …
