# Euclidean distance between multivariate series

If A={(5,1),(2,3),(4,5)} and B={(4,3),(3,4),(2,3)} are two series, how is the euclidean distance between them calculated?

Would it be $\sqrt{(5-4)^2+(1-3)^2} + \sqrt{(2-3)^2+(3-4)^2} + \sqrt{(4-2)^2+(5-3)^2}$ ?

• Are you looking to find the pairwise Euclidean distances? en.wikipedia.org/wiki/Distance_matrix – ilanman Nov 29 '16 at 1:58
• I am looking for distance between the two series A and B – pooja p Dec 1 '16 at 18:30
• I'd also be interested in knowing what distance means between two series. The way you suggest, order matters. But should it? – ilanman Dec 1 '16 at 18:58
• What exactly is the geometric interpretation of a series? Perhaps a cluster of points? And you're looking for the distance between two clusters. – ilanman Dec 1 '16 at 19:41
• More like time series. For example, (5,1) would be the position at time t1, (2,3) would be the position at time t2 and so on. So yes, order matters in such a case. – pooja p Dec 1 '16 at 19:52