COMP3260Data Science Foundations

Overview

A cleaned dataset is not yet an analysis-ready dataset. Values may be on incompatible scales, categorical variables must be encoded, individual records may need aggregating into meaningful summaries, and sometimes the right variable does not exist yet and must be engineered from the ones that do.

This unit covers each of these transformations and the judgements that go with them — which scaling method is appropriate, whether to use one-hot or ordinal encoding, and how to construct a feature that actually captures what you intend.

Learning outcomes

By the end of this unit you will be able to

  • Normalise and standardise numeric features appropriately.
  • Encode categorical variables using suitable techniques.
  • Aggregate and group data to produce summaries.
  • Engineer new features that capture domain-relevant information.
  • Document transformation choices and their rationale.

Lesson sequence

Key concepts

Normalisation
Rescaling values onto a fixed range, typically [0, 1], so that features measured on different scales contribute comparably.
Standardisation
Transforming values to have mean zero and standard deviation one, preserving the shape of the distribution.
One-hot encoding
Representing a categorical variable as a set of binary columns, one per category.
Feature engineering
Creating new variables from existing ones in order to expose patterns more clearly to analysis.

Assessment alignment

Prepares Assignment 2 and the capstone

The transformation decisions you make in Assignment 2 (Data Cleaning and Preparation) are assessed on justification as well as implementation. The capstone requires the same discipline applied end to end.

👤