In this repo i have tried to explain how to calculate Euclidean Distance,manhattan distance, and Finally Calculating the Dissimilarity Matrix/Distance Matrix using python.
- Scipy.spatial for calculating the distance matrix and Euclidean,manhattan distance.
- Pandas for creating the dataframes.
- numpy for creating arrays/lists to store data.
the distance between two points (x1 , y1) and (x2 , y2) is d = √[(x2 – x1)^2 + (y2 – y1)^2]
The Manhattan Distance between two points (X1, Y1) and (X2, Y2) is given by d = |X1 – X2| + |Y1 – Y2|.