Notes

Continuity

When you squeeze high-dimensional data down into 2 or 3 dimensions, you want nearby points to stay nearby in a sensible way. Continuity is a way to check that the low-dimensional map does not invent new neighbors that were not actually close in the original data.

What continuity measures

In dimensionality reduction, continuity evaluates how well the embedding preserves the original data's local structure from the high-dimensional space into the lower-dimensional one. It focuses on points that become neighbors after projection. If two customers look close on a 2D visualization but were far apart in the original feature space, continuity drops. A high continuity score means the low-dimensional representation respects the original neighborhood relationships instead of creating misleading shortcuts.

How it works intuitively

Think of it as a “false-neighbor penalty.” For each point, you compare its k nearest neighbors in the original space with its k nearest neighbors in the embedding:

  • If the embedding pulls in points that were not truly nearby before, continuity penalizes that.
  • The farther away those imported neighbors were in the original ranking, the larger the penalty.
  • The score is usually normalized so that values closer to 1 mean better preservation.
Why it matters in practice

This matters when using t-SNE, UMAP, PCA, or other embedding methods for customer segmentation, document maps, or anomaly visualization. Poor continuity can make clusters look meaningful when they are really projection artifacts. It is commonly considered alongside trustworthiness, which checks the opposite direction: whether original neighbors remain neighbors after projection. In tools such as scikit-learn, you will directly encounter trustworthiness as a built-in metric, while continuity is frequently implemented in research code or custom evaluation pipelines to complete the picture.

Continuity is a dimensionality reduction evaluation metric that measures how well points that are neighbors in the low-dimensional embedding were also neighbors in the original high-dimensional space. High continuity means the embedding avoids introducing false neighborhood relationships. This matters because misleading new local structure can distort interpretation, clustering, and downstream analysis even when the visualization or compressed representation appears coherent.

Imagine shrinking a detailed road map into a simple sketch. A good sketch should keep nearby towns nearby, without suddenly placing two neighboring places on opposite sides of the page. That idea is continuity.

In AI, especially when data is compressed into fewer dimensions so people or systems can visualize it, continuity asks: if two items were close together in the original data, do they stay close in the simplified version? It matters because the reduced picture should still feel true to the original relationships. If continuity is poor, the map becomes misleading, and patterns that look meaningful may just be distortions caused by the simplification.