Charta is on Google Play: practise on the go. Get the app

Set out the aims, stages and examples of data preparation and wrangling

CFA® Level II · Quantitative Methods · Big Data Projects · L2.QM.7.b

The idea

Preparation (cleansing) fixes errors: incompleteness (missing values), invalidity (values outside a meaningful range), inaccuracy (values that are not a true measure), inconsistency (data conflicting with other data), non-uniformity (different formats) and duplication. Wrangling transforms the cleaned data: extraction, aggregation, filtration, selection and conversion of data types. Outliers can be trimmed, removing extreme observations, or winsorised, replacing them with the values at chosen percentiles so none is lost. Scaling puts features on comparable scales: normalisation, (X − min) ÷ (max − min), maps to 0 to 1 but is sensitive to outliers; standardisation, (X − mean) ÷ standard deviation, centres on zero. The two scaling formulas are easy to mix up.

Formulas

Normalisation

normalised X = (X − min) ÷ (max − min)

X
the value being scaled
min, max
the smallest and largest value in the data

Scales to the range 0 to 1. One outlier squeezes all the other values together.

Standardisation

standardised X = (X − mean) ÷ standard deviation

X
the value being scaled
mean
the average of the data
standard deviation
the sample standard deviation

Gives a mean of zero and a standard deviation of one. Less distorted by an outlier than normalisation.

In the app: 4 practice questions on this outcome, a narrated walkthrough with diagrams, spaced review that brings it back before you forget it.

Take the free diagnostic →

More in Big Data Projects