Related Experiment Video
Updated: Sep 3, 2025

A Visual Guide to Sorting Electrophysiological Recordings Using 'SpikeSorter'
Published on: February 10, 2017
How the Outliers Influence the Quality of Clustering?
Agnieszka Nowak-Brzezińska1, Igor Gaibei1
1Institute of Computer Science, Faculty of Science and Technology, University of Silesia, Bankowa 12, 40-007 Katowice, Poland.
Removing outliers significantly improves clustering quality. This study compares Agglomerative Hierarchical Clustering (AHC) and K-Means algorithms, finding that data with fewer outliers yields better cluster validity using Davies-Bouldin and Dunn indexes.
Area of Science:
- Data Science
- Machine Learning
- Cluster Analysis
Background:
- Clustering algorithms like Agglomerative Hierarchical Clustering (AHC) and K-Means are sensitive to data.
- Outliers can negatively impact the performance and efficiency of clustering algorithms.
- Assessing cluster quality requires robust validity indexes such as Davies-Bouldin and Dunn.
Purpose of the Study:
- To evaluate the impact of outliers on the performance of AHC and K-Means clustering algorithms.
- To compare the effectiveness of outlier detection algorithms (LOF, COF) in enhancing cluster quality.
- To determine if cluster quality improves after outlier removal.
Main Methods:
- Implemented and compared AHC and K-Means clustering algorithms.
- Utilized Local Outlier Factor (LOF) and Connectivity-based Outlier Factor (COF) for outlier detection.
- Removed varying percentages (1%, 5%, 10%) of detected outliers from real datasets.
- Assessed clustering quality using Davies-Bouldin and Dunn validity indexes.
Main Results:
- Outlier removal generally led to improved cluster validity scores across both algorithms.
- The degree of improvement varied depending on the dataset and the percentage of outliers removed.
- LOF and COF algorithms showed effectiveness in identifying outliers that impacted clustering performance.
- AHC and K-Means performance metrics showed enhancement after outlier exclusion.
Conclusions:
- The presence of outliers negatively affects the quality of clusters generated by AHC and K-Means.
- Proactive outlier detection and removal can significantly enhance the performance and reliability of clustering results.
- The choice of outlier detection method and the percentage of removal are critical factors for optimizing cluster analysis.
Related Concept Videos
Outliers and Influential Points
What Are Outliers?
The z score is used to find outliers or unusual values. It should be noted that any values beyond -2 and +2 are...
Quantifying and Rejecting Outliers: The Grubbs Test
Detection of Gross Error: The Q Test
Modified Boxplots
However, the box plot does not tell the reader about outliers - values that lie far from the center of the data. We can modify the standard box and whisker plot to identify the outliers and visualize the actual spread of the data in a sample.
Initially, we calculate the adjusted...
Regression Toward the Mean

