ISW 9. "Distance and Similarity Measures: A Comparative Study"
ISW 9
Topic: "Distance and Similarity Measures: A Comparative Study"
Week: 9. Number of hours: 7. Types and methods of training: Problem-oriented methods: solving practical problems to develop logic and professional thinking.
Purpose: to develop the ability to choose distance and similarity measures appropriate for the data type and the problem.
Tasks:
1. Build a comparison table of measures: Euclidean, Manhattan, Chebyshev, Minkowski, cosine, Jaccard, Hamming, Mahalanobis, edit (Levenshtein) distance, dynamic time warping – formula, data type, properties, examples.
2. Problem: choose and justify a measure for (a) customer profiles with mixed attributes (Gower distance), (b) texts, (c) shopping baskets, (d) time series of sales, (e) DNA strings.
3. Experimentally show how the choice of metric changes the result of hierarchical clustering on one dataset.
4. Explain the "curse of dimensionality" and its effect on distance-based methods.
Submission format: comparison table, justified choices, experiment results (4–5 pages).
Self-check questions:
1. When is the Mahalanobis distance preferable?
2. What is the Gower distance used for?
3. How does high dimensionality affect distances?
Evaluation criteria: complete and correct performance of the tasks – 40%; analysis of results and justification of conclusions – 30%; quality of the report – 15%; timely submission and defence – 15%.
Used literature [2, 5, 6]
