Home › Glossary › Data › Bucketing

Beginner · Data

Bucketing

Visual diagram · (in preparation) · Math · (in preparation) · Worked example · 3 difficulty levels.

TL;DR. Converting a continuous feature into discrete categories or 'bins' based on value ranges.

Technical Definition

Converting a continuous feature into discrete categories or 'bins' based on value ranges.

How it works

Bucketing, also known as binning, is a data preprocessing technique that transforms continuous numerical features into discrete categories. For example, age could be grouped into bins like 'child', 'teenager', 'adult', and 'senior', simplifying the data for certain models.

Related Concepts

  • Feature Engineering — The process of creating, selecting, and transforming input variables to improve a machine learning model's performance.
  • Data Preprocessing — Transforming raw data into a format suitable for model training.

Further Reading

  • Google ML Glossary