IDEAS home Printed from https://ideas.repec.org/a/cup/polals/v33y2025i3p266-273_7.html

Measuring Distances in High Dimensional Spaces

Author

Listed:
  • Green, Breanna
  • Hobbs, William
  • Avila, Sofia
  • Rodriguez, Pedro L.
  • Spirling, Arthur
  • Stewart, Brandon M.

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.

Suggested Citation

  • Green, Breanna & Hobbs, William & Avila, Sofia & Rodriguez, Pedro L. & Spirling, Arthur & Stewart, Brandon M., 2025. "Measuring Distances in High Dimensional Spaces," Political Analysis, Cambridge University Press, vol. 33(3), pages 266-273, July.
  • Handle: RePEc:cup:polals:v:33:y:2025:i:3:p:266-273_7
    as

    Download full text from publisher

    File URL: https://www.cambridge.org/core/product/identifier/S1047198724000226/type/journal_article
    File Function: link to article abstract page
    Download Restriction: no
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:cup:polals:v:33:y:2025:i:3:p:266-273_7. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Kirk Stebbing (email available below). General contact details of provider: https://www.cambridge.org/pan .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.