Measuring Distances in High Dimensional Spaces

Abstract Analysts often seek to compare representations in high-dimensional space, e.g., embedding vectors of the same word across groups. We show that the distance measures calculated in such cases can exhibit considerable statistical bias, that stems from uncertainty in the estimation of the elements of those vectors. This problem applies to Euclidean distance, cosine similarity, and other similar measures. After illustrating the severity of this problem for text-as-data applications, we provide and validate a bias correction for the squared Euclidean distance. This same correction also substantially reduces bias in ordinary Euclidean distance and cosine similarity estimates, but corrections for these measures are not quite unbiased and are (non-intuitively) bimodal when distances are close to zero. The estimators require obtaining the variance of the latent positions. We (will) implement the estimator in free software, and we offer recommendations for related work.

Authors

Institutions

Publication Details

Journal
Political Analysis
Published
2025-01-22
DOI
https://doi.org/10.1017/pan.2024.22
Citations
1
Primary Topic
Data-Driven Disease Surveillance
Type
article
Field-Weighted Citation Impact
1.35
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Measuring Distances in High Dimensional Spaces

Arthur Spirling, Sandra Avila, Breanna Green, Will Hobbs et al.
1 citations
Political Analysis
Data-Driven Disease Surveillance
1.35
article

Measuring Distances in High Dimensional Spaces

Arthur Spirling, Sandra Avila, Breanna Green, Will Hobbs, Pedro Luis González Rodríguez, Brandon Stewart
article en
1 citations

Abstract

Abstract Analysts often seek to compare representations in high-dimensional space, e.g., embedding vectors of the same word across groups. We show that the distance measures calculated in such cases can exhibit considerable statistical bias, that stems from uncertainty in the estimation of the elements of those vectors. This problem applies to Euclidean distance, cosine similarity, and other similar measures. After illustrating the severity of this problem for text-as-data applications, we provide and validate a bias correction for the squared Euclidean distance. This same correction also substantially reduces bias in ordinary Euclidean distance and cosine similarity estimates, but corrections for these measures are not quite unbiased and are (non-intuitively) bimodal when distances are close to zero. The estimators require obtaining the variance of the latent positions. We (will) implement the estimator in free software, and we offer recommendations for related work.

Political AnalysisVol. 33(3)
Princeton University (US), Cornell University (US), Institute of Advanced Studies in Administration (VE)
Openalex Percentile: Top 24%
Data-Driven Disease Surveillance
1.35
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Measuring Distances in High Dimensional Spaces — Arthur Spirling, Sandra Avila, et al. · Political Analysis (2025) | TGRS Research Map | TGRS