Week 15 · lesson

Finding Structure Without Target Labels

A dataset can contain useful structure even when no target label is attached to each row.

Suppose we record two measurements from twelve fictional machines:

  • average vibration;
  • average temperature.

No row says healthy, failing, type A, or type B. We only have measurements.

A clustering algorithm can group rows that are similar according to those measurements. That can help with exploration, compression, anomaly review, or forming new questions.

It does not automatically reveal the true kinds of machine.

Similarity must be defined

Most clustering methods need a way to measure how close two examples are. In a two-feature plot, Euclidean distance is one common choice.

That means the representation matters. If temperature spans 0–1000 while vibration spans 0–1, temperature may dominate the distance calculation unless we transform or scale the features.

Two machines may be physically similar but appear far apart because one feature uses large numeric units. Rescaling that feature can change the neighborhoods, which can change the clusters, without changing the machines themselves.

This is a powerful reminder: the algorithm operates on the representation we give it.

Clusters are evidence for a question, not labels from nature

A useful statement is:

Under these two features, this scaling, this distance measure, and k = 3, these observations formed three groups.

A weak statement is:

The algorithm discovered three types of machine.

The second sentence invents meaning that the algorithm never tested.

Before moving on

Name one reason you might cluster data even when you do not intend to treat clusters as permanent categories.

Experiment pipeline

From unlabeled observations to a bounded grouping claim

Follow one fixed result through expected and failure traces to a bounded system decision.

Input preparation

Unlabeled Observation Set

Hold twelve fictional machine observations fixed with no target category or correct cluster label.

SUPPLIED ROWS12 ROWS · 0 LABELS

Model configuration

Cluster Configuration

Hold k, starting centroids, distance rule, tie rule, and iteration cap fixed.

CONTROLK = 2 · A / L START

Evaluation

Duration Representation Run

Use run duration and vibration; duration dominates the distance pattern.

CLUSTER 1A B C D E F

Signal Representation Run

Use heat rise and vibration; low-signal and high-signal observations separate.

CLUSTER 1A B E F I J

Assignment Comparison

Compare every ID and identify membership changes caused only by representation.

CHANGED IDSC · D · I · J

Decision

Usefulness Decision

Retain one representation for one stated question without inventing natural types.

DECISION RULEQUESTION BEFORE CLUSTER
Read this concept flow as plain text
  1. Unlabeled Observation Set. Hold twelve fictional machine observations fixed with no target category or correct cluster label. SUPPLIED ROWS: 12 ROWS · 0 LABELS.
  2. Cluster Configuration. Hold k, starting centroids, distance rule, tie rule, and iteration cap fixed. CONTROL: K = 2 · A / L START.
  3. Duration Representation Run. Use run duration and vibration; duration dominates the distance pattern. CLUSTER 1: A B C D E F.
  4. Signal Representation Run. Use heat rise and vibration; low-signal and high-signal observations separate. CLUSTER 1: A B E F I J.
  5. Assignment Comparison. Compare every ID and identify membership changes caused only by representation. CHANGED IDS: C · D · I · J.
  6. Usefulness Decision. Retain one representation for one stated question without inventing natural types. DECISION RULE: QUESTION BEFORE CLUSTER.