Concepts / Data Compression

Data Compression

The defining feature is not that the data is empty of information. It is that the input observations arrive without target values.

  • Programming

When Answers Are Missing

Imagine receiving a dataset containing observations but no column that states the correct answer for each observation. You cannot train by comparing predictions with supplied target values, but the dataset can still reveal useful structure. Unsupervised learning investigates input data without target values and can produce useful transformations of that data.

Key point

The defining feature is not that the data is empty of information. It is that the input observations arrive without target values.

Input observationswith target valuesInput observationswithout target valuesTarget valuesprovidedTarget valuesabsentpaired with
What does an unsupervised method receive, and what is absent compared with supervised learning?

From Many Measurements to Fewer

A dataset may record many measurements for every observation. One useful transformation is to seek a representation with fewer dimensions. This smaller representation can make the data easier to visualize or store. In this sense, data compression is one practical purpose of finding useful transformations in unsupervised learning.

Input observationsmany measurementsSmallerrepresentationfewer dimensionsUseful investigationvisualization or storagetransformsupports
How does a large or high-dimensional input representation become a smaller representation that remains useful for investigation?

Two Different Unsupervised Questions

Dimensionality reduction and clustering are both well-known categories of unsupervised learning, but they answer different questions. Dimensionality reduction asks how to represent observations with fewer dimensions. Clustering asks which observations appear to belong together.

Input observationsmany measurementsFewer dimensionssmaller representationInput observationsno target valuesGroupssimilar observationsrepresent withorganize into
What changes when unsupervised learning reduces the number of features compared with when it groups similar examples?
CategoryMain questionResult sought
Dimensionality reductionCan the observations be represented with fewer dimensions?A representation with fewer dimensions
ClusteringWhich observations appear to belong together?Groups of similar data points

Both categories begin with input data that has no target values, but their analytical goals differ.

A Compression Decision

Worked example

Choosing the Relevant Unsupervised Task

An analyst has observations containing many measurements. The analyst wants a smaller representation that is easier to visualize or store, but does not have target values.

  1. 1
    Identify the available data

    The dataset contains input observations, but no target values. That places the task in the setting of unsupervised learning.

  2. 2
    Identify the requested change

    The goal is a representation with fewer dimensions, not a set of groups of similar observations.

  3. 3
    Select the category

    Because the goal is a smaller representation, the task belongs to dimensionality reduction.

  4. 4
    Connect the purpose

    The smaller representation can support visualization or storage, which are practical purposes of unsupervised learning.

Result

This is an unsupervised dimensionality-reduction task used for data compression and easier visualization or storage.

The key reasoning step is to separate the input condition from the task goal. The absence of target values identifies the broader learning setting. The requested outcome then distinguishes compression-oriented dimensionality reduction from clustering.

Uses Before Supervised Learning

Unsupervised learning can be useful before attempting a supervised-learning problem because it helps analysts investigate the dataset first. A learner can help with visualization, compression, and denoising, and can help analysts understand correlations among measurements. These activities can reveal useful properties of the input data before target-based learning is attempted.

  • Visualization: create a representation that makes the data easier to view.
  • Compression: seek a smaller representation of the input data.
  • Denoising: support the removal of noise from the data.
  • Understanding correlations: examine relationships among measurements.

Common Classification Mistakes

  • Common mistake

    Treating unsupervised learning as learning with no input data.

    What it looks like

    Assuming that an unsupervised method receives neither observations nor targets.

    Why it fails

    Unsupervised learning begins with input data. What is absent is the target value for each observation.

    Do this instead

    Describe the setting as input observations without target values.

  • Common mistake

    Using dimensionality reduction and clustering as if they had the same goal.

    What it looks like

    Calling the discovery of groups a request for fewer dimensions.

    Why it fails

    Dimensionality reduction seeks a representation with fewer dimensions, while clustering seeks groups among data points.

    Do this instead

    Ask whether the desired result is a smaller representation or groups of similar observations.

  • Common mistake

    Defining compression only as grouping observations.

    What it looks like

    Choosing clustering because the dataset should become easier to manage.

    Why it fails

    Grouping observations is the intuition behind clustering. Compression is associated with seeking a smaller representation.

    Do this instead

    For a smaller representation, connect the task to dimensionality reduction and compression.

  • Common mistake

    Waiting until after supervised learning to investigate the dataset.

    What it looks like

    Ignoring visualization, denoising, or correlations until a target-based problem has already been attempted.

    Why it fails

    Unsupervised learning can support investigation before attempting a supervised-learning problem.

    Do this instead

    Consider whether an unsupervised transformation could clarify the input data first.

Practice Check

EASY

A dataset contains observations with many measurements and no target values. An analyst wants to discover which observations appear to belong together. Is this primarily dimensionality reduction or clustering? Explain why.

Hints
  • Start by identifying whether target values are present.
  • Then focus on whether the requested result is fewer dimensions or groups of observations.

What do you think happens?

Which category best matches the practice task?

  • Dimensionality reduction

  • Clustering

Reveal answer
Answer:

Clustering

The task asks which observations appear to belong together. Grouping data points according to similarity is the intuition behind clustering.

Key Takeaways

  1. 1
    Unsupervised learning finds useful transformations of input data without target values.
  2. 2
    Data compression can be approached as seeking a smaller representation of observations.
  3. 3
    Dimensionality reduction seeks fewer dimensions, while clustering seeks groups among data points.
  4. 4
    Unsupervised learning can support visualization, compression, denoising, and understanding correlations.
  5. 5
    These uses make unsupervised learning a practical way to investigate data before attempting a supervised-learning problem.

At a glance

  • Unsupervised learning works with input observations but no target values.
  • Compression is a practical purpose of transforming data into a smaller representation.
  • Dimensionality reduction and clustering are different unsupervised-learning categories.
  • Unsupervised analysis can support visualization, denoising, and understanding correlations before supervised learning.

Related concepts

More concepts starting with D