Questions tagged [clustering]
Cluster analysis is the task of partitioning data into subsets of objects according to their mutual "similarity," without using preexisting knowledge such as class labels. [Clustered-standard-errors and/or cluster-samples should be tagged as such; do NOT use the "clustering" tag for them.]
1,310 questions with no upvoted or accepted answers
12
votes
0
answers
776
views
What approaches use multiple eigenvectors in graph spectral clustering?
Background: In Newman's PNAS 2006 paper Modularity and community structure in networks, the first eigenvector splits the graph in two clusters, and then each cluster can be further divided by ...
10
votes
0
answers
3k
views
Cluster analysis vs Factor analysis as a means for "grouping" variables or cases
I've noticed responses that at face value seem to be in contradiction with each other.
For instance, here @peter-flom writes
Short answer: Cluster analysis is about grouping subjects (e.g.
...
9
votes
0
answers
167
views
Territories from observations
I have a number of animal observations, and want to deduce the number of territories (i.e. the number of individual animals) from this.
More formally, the problem can be stated as follows: Each ...
8
votes
1
answer
772
views
How to predict routes using clustering data
I've been working on a ship route prediction algorithm such that given the past and current trajectory of a ship I am able to estimate the future one. The trajectories are represented as a sequence of ...
7
votes
0
answers
4k
views
Time series clustering: Fourier transform and PCA
I have biological time series (9 years long) of the biomass of species which logically exhibit a seasonal pattern. I would like to cluster them into a few groups based on their typical seasonal ...
6
votes
1
answer
183
views
Regarding the size of training data for building classifier
When we build a classifier, like SVM or Naive Bayesian, are there any generic rules or theoretical derivations on the size of training data set? For example, to train a SVM-based classifier, what ...
5
votes
2
answers
2k
views
Compare clustering results with different attributes and number of clusters
I used K-means to cluster a large data set that has millions of samples. I tried to create the clusters with different sets of attributes, which, as a result, generated different optimal number of ...
5
votes
0
answers
9k
views
Correct number of components in GMM according to BIC and AIC plots
I have applied GMM(Gaussian Mixture Model) to my data set and I have plotted the resulting BIC(Bayesian Information Criterion) and AIC(Akaike Information Criterion) for different number of components. ...
5
votes
0
answers
1k
views
Interpreting Silhouette plot
Can someone help me interpret this silhouette plot?
The things that come up on my mind are:
Some clusters are very small
Orange cluster is very big
Pink, dark green and light green clusters are ...
5
votes
0
answers
2k
views
Is K-Medoids really better at dealing with outliers than K-Means? (with example showing the contrary)
K-Medoids and K-Means are two popular methods of partitional clustering. The consensus is that K-Medoids is better at clustering data when there are outliers (source). This is because it chooses data ...
5
votes
1
answer
230
views
Unsupervised clustering with "unclassified" items
I have data (some behavioral features, measured on some scales) on people. I want to cluster people based on these features. This is an unsupervised scenario, as I have no prior knowledge on the ...
5
votes
0
answers
323
views
Detecting statistically significant clustering of continuous values
I'm working with biological sequence data where each position in the sequence has an associated continuous value. I'm ignoring the sequence content so the data is very similar to a time series with ...
5
votes
0
answers
6k
views
Using Davies-Bouldin index in clustering
I am clustering data using k-medoid. I used Davies–Bouldin index for $2$ to $n-1$ clusters. Here $n = 100$ (using smaller test case). I find minimal value of the index for 98 clusters. But the overall ...
5
votes
0
answers
170
views
In which case does FCM membership converge to 1/K?
I have tested the fuzzy C-means (FCM) algorithm using the R function fanny from the cluster package and I have wrote my own FCM ...
4
votes
0
answers
926
views
Python Implemenatation of SPSS's Two-Step Clustering
I want to perform a clustering on data with ~40 binary features. I was recommended the two-step approach by Chiu et al.. They basically use a BIRCH variant to determine pre-clusters and then perform ...
4
votes
0
answers
702
views
Clustering text embeddings: TF-IDF + BERT Sentence Embeddings
I am trying to cluster a few thousand forum posts that are similar in content to Stackoverfow.
So far, I have tried two main approaches to represent the posts:
TF-IDF
Sentence embedding based on BERT....
4
votes
0
answers
739
views
Can clustering with Gaussian mixture models be done based on cosine similarity?
Apologies if this has already been answered; I found some similar posts (here and here) but don't feel they answered the specific question I have. Please feel free to correct any misunderstandings in ...
4
votes
1
answer
1k
views
Unsupervised soft clustering methods
I have a D-dimensional dataset composed of exactly two clusters (this is known) for which I have no labels; the clusters can potentially be wildly imbalanced.
I'm after a soft (or fuzzy) clustering ...
4
votes
2
answers
8k
views
Missing data in k-means cluster model
I'm working on clustering email addresses using K-means based on their value to and engagement with the company (metrics such as % of emails opened, # of web browsing sessions, etc). I would like to ...
4
votes
1
answer
144
views
A graph-based clustering problem
I have a graph in which each node is associated with a time stamp. I have around 15-20 nodes associated with each time stamp.
The edges are not weighted & there cannot be an edge between nodes ...
4
votes
1
answer
4k
views
How to determine the best batch-size value for Mini Batch K-means algorithm?
I am working on a project where I apply k-means on severals datasets. These datasets may include up to several billion points. I would like to use mini batch k-means to save time. However, the mini ...
4
votes
0
answers
146
views
What is the probability of forming a cluster of the size M given N random points?
Suppose we generate a sample of uniformly distributed numbers of the size $N$ in the range $[0, 1]$: $x \sim U[0, 1]$. We consider that if the difference between any 2 numbers is smaller than some ...
4
votes
1
answer
80
views
Gradual clustering in deterministic manner
We have 128-dimensional vectors representing people's identities where the euclidean metric defines the similarity between them.
Ours solution requires them to be clustered and then annotated (assign ...
4
votes
0
answers
222
views
Clustering Markov Chains
Assume I have a finite set of elements
$$A={X_0,X_1,...,X_{n_1}}$$
where every element is itself a finite Markov sequence (i.e. $S_{i+1} \sim P(S_i)$)
$$X_i={S_0,S_1,...,S_{n_2}}$$
Suppose I also ...
4
votes
0
answers
2k
views
Pearson's Correlation Coefficient as a clustering criterion: why should it be close to -1?
Let's say we have a dataset $x = (x_1, x_2, ..., x_n)$ where each data point is assigned to one of $m$ clusters.
Let $D = \{d_{ij}\}$ be the $n\times n$ distance matrix where $d_{ij} = d(x_1, x_j)$.
...
4
votes
0
answers
1k
views
Why does Kernel K-means work better than spectral clustering in this case?
I want to cluster a dataset using spectral clustering. Assuming $X$ is $d \times n$ data matrix as $n$ is the number of data samples. I construct a directed Adjacency matrix $W, n \times n$ in which ...
4
votes
0
answers
405
views
Bag of Features / Visual Words + Locality Sensitive Hashing
PREMISE:
I'm really new to Computer Vision/Image Processing and Machine Learning (luckily, I'm more expert on Information retrieval), so please be kind with this filthy peasant! :D
MY APPLICATION:
...
4
votes
0
answers
132
views
Topology of Confidence Intervals
I hope this is the right site to post this.
The example I have in my mind is a GLMM model, where we infer random effects, and a random effect caterpillar plot (with confidence intervals):
Now, ...
4
votes
0
answers
5k
views
A high cophenetic correlation coefficient but dendrogram seems bad
I have 2 results for the same dataset. One is hierarchical clustering using Ward's method and I got 0.75 cophenetic correlation coefficient. The second is average method and I got 0.91 cophenetic ...
4
votes
1
answer
940
views
Interpreting silhouette coefficient for clara function in R
I am trying to do clustering on a distance matrix which contains numeric data. But I am not sure how to decide upon the number of clusters or value k for clara function in R. But after running it with ...
4
votes
0
answers
6k
views
Elbow method or the Silhouette to determine number of clusters
I would like to know what is the better way to determine the number of clusters - elbow method, or the silhouette?
I've used elbow method, increasing number of clusters while the total distance ...
4
votes
0
answers
2k
views
Checking the assumptions of K-means clustering
I want to do a k-means clustering on a dataset containing 22 numerical variables between 0 and 100 and 75 observations using R. I read this post
How to understand the drawbacks of K-means on k-means ...
4
votes
0
answers
412
views
watershedding vs mean shift clustering
I'm working on a clustering problem, and I was trying to understand the difference between the watershed algorithm and mean shift clustering. It seems that these algorithms are popular for image ...
4
votes
1
answer
267
views
Stability of Time Series Hierarchical Clustering
We have a dataset with six time points and three biological replicates each. Therefore, we have a vector of 18 measurements for each feature, and used hierarchical clustering with Euclidean distance ...
4
votes
1
answer
323
views
Clustering Consumer data with over 100 variables and 50000 rows each
I am tasked with performing a clustering exercise for a consumer survey dataset with the hopes of finding distinct consumer segments.
In the past, I've done it using a variety of techniques- ...
4
votes
0
answers
4k
views
Use of Hidden Markov Models for Clustering
I would like to ask whether Hidden Markov Models can be used for clustering and if so, in what cases.
I have found somewhere, references like this but practically I haven't found a way to do this. Is ...
4
votes
1
answer
213
views
Spatial cluster analysis
Let's say I have a structure like this :
This is a spatial region with measurement of plant population in each site. Black and red represent two regions with different intensities.The question is ...
4
votes
0
answers
535
views
Maximam r distance for Ripley's K-function
I am using R's package spatstat to study the locational pattern of conflict events in Africa (around 8.000 points) using point pattern analysis techniques.
I was able to obtain the plot of $g(r)$, ...
4
votes
1
answer
76
views
Which groups of results is the closest to a central point?
I'm building an application where a specific location is chosen, multiple services are polled to return results for that specific location and shown on a map.
I have the results from the different ...
4
votes
0
answers
194
views
Which variables are driving correlations within groups
I'm running an analysis on a few data sets that each typically have 100-200 cases measured across 120-160 variables - something similar to looking at gene expressions. Each variable is a non-centered ...
4
votes
0
answers
511
views
Cluster on high dimensional categorical data (Images with keywords)
We're looking for clues to perform a Cluster Analysis in a DB with +400K images which have keywords associated to them.
Each image could have from 1 to 30 keywords.
Total keywords count is +35K.
...
4
votes
0
answers
351
views
What are pitfalls of bootstrapping on random sample of master data?
Will I obtain seriously biased results if I use bootstrapping on a subsample of a larger dataset?
Rather than drawing 100 bootstrap samples from a dataset of 50 million + records, which could hog ...
4
votes
0
answers
321
views
Category selection for text classification
It is said that to achieve a good result (many different metrics) for text classification, it is not always a business of selecting the algorithm/classifier. Sometimes, it is even more important to ...
4
votes
1
answer
3k
views
Is dimensional reduction using Autoencoders possible with a small sample size?
I have a data set that is not too big but high dimensional, let say 10000 dimensional. I want to use an autoencoder to extract relevant features (clusters) in the data. Usually when I have seen ...
3
votes
0
answers
95
views
Clustering and grouping of rhythmic data (acrophases)
I am looking for suggestions towards a clustering method for rhythmic/oscillation data.
We performed cosinor regression (sin(2*pi*time/period)+cos(2*pi*time/period))...
3
votes
0
answers
43
views
Test for comparative deviation from a random distribution between two clusterings
I have a question related to clustering comparison and biostatistics.
I performed 2 clusterings (let's call them A and B) on a large gene set, so for each gene I have 2 cluster attributions. each ...
3
votes
0
answers
56
views
Cluster Algorithm for multidimensional data
My goal is to cluster data (20000 samples with a range from 0.0 to 1.0, and 14 dimensions/features). Since I don't know the number of clusters, I tried using MeanShift and DBSCAN.
My problem with ...
3
votes
1
answer
343
views
Does the Membership Matrix of Fuzzy C-Means Clustering contain probabilities or degrees of membership?
I recently heard a lecture on Fuzzy C-Means Clustering that stated that the Membership Matrix contains probabilities that particular data points are members of particular clusters. I was confused by ...
3
votes
0
answers
156
views
Is there an MDS/embedding algorithm that is more suitable to the goal of clustering a graph
I am testing ideas on clustering a particular graph. After testing a set of graph clustering/community detection algorithms I thought about mapping the graph to a vector space and using vector space ...
3
votes
0
answers
188
views
Clustering large set of images
I've got some big datasets of images (a few million each), and I would like to cluster them according to images' visual similarities. I've extracted a feature vector for each image; the space of ...