# Questions tagged [distance]

Measure of distance between distributions or variables, such as Euclidean distance between points in n-space.

672 questions
Filter by
Sorted by
Tagged with
19 views

### Range for Euclidean distance between two variables [closed]

I have two datasets A and B. I want to compare elements of those datasets to find "matches", i.e., elements from ...
18 views

### Decomposing Distance Matrix D for approximating Original Matrix A

Let's say we have a matrix $A \in R^{n \times d}$ where n is the number of elements and d is the dimension size. And we calculate the pairwise distances between each elements; say cosine for instance ...
13 views

### Sorting samples from distribution before calculating the distance [duplicate]

I have to evaluate different methods for distribution fitting. So, given an sample set A I get a fitting distribution B or I might get another sample set C that is much like A. Now I need to do a ...
• 73
18 views

• 1,682
77 views

### KNeighborsClassifier Score with a precomputed user defined distance matrix

I am trying to implement a KNN from SKLEARN using an user defined distance matrix. I want to know which n_neighbors is giving the minimum error for my dataset. So, to avoid long calculation for ...
10 views

### Distance formula from known reference coordinates X, Y, and Z to the centroid of measured coordinates xi, yi and zi using standard deviations

A device with 1932, 1cm-outer diameter (OD) oil-filled markers embedded in seven parallel flat plastic plates, with marker spacing of 25 mm × 25 mm in-plane and 55 mm through-plane is imaged in an MRI ...
• 1
50 views

### Why is it wrong to apply k-means to a distance matrix?

There are several threads discussing clustering analysis of a distance matrix and they dismiss use of the k-means algorithm. Here are two examples: Perform K-means (or its close kin) clustering with ...
• 474
Suppose I'm given many GMMs. All have $K$ components. My goal is to find a GMM with $K$ components that can best represent the given GMMs. It is like finding the center of many points but a point here ...
Suppose that I want to measure the distance between a discrete posterior distribution $p(x|Data)$ and each discrete prior distribution $p(x)$. When I have full analytical knowledge of both the ...