Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
0 answers
48 views

Can K-means put most of the noise in the same cluster?

I am working on clustering text data (very short sentences) vectorized with tf-idf. The data are characterized by high sparseness and the presence of abundant noise (considered here as documents that ...
zurgo's user avatar
  • 11
2 votes
1 answer
59 views

Infer limits of unscaled values from their standardized values - Clustering

I am working on a clustering problem and I have some skewed variables. So, I log transform them and use them in clustering. However, instead of multivariate clustering, I do multiple univariate ...
The Great's user avatar
  • 3,342
2 votes
1 answer
116 views

Converting unsupervised to supervised problem - Overfitting - bad?

I am working on a customer segmentation using 5 features such as recency, frequency, monetary, tenure, unique_product_cnt etc. So, I did a RFM based segmentation where I used ...
The Great's user avatar
  • 3,342
1 vote
1 answer
377 views

standardization/normalization for 1D clustering?

I have two input variables revenue and age. Am trying to find different bins within that variables. For ex: I have ...
The Great's user avatar
  • 3,342
2 votes
1 answer
5k views

silhouette score vs Distortion score

I am working on segmenting my customers with clustering. My dataset size is 7315 rows and 30 features. So, as a beginner to clustering, I passed all my 29 features (excluding id column) to the cluster....
The Great's user avatar
  • 3,342
2 votes
1 answer
461 views

Meaningful to retrieve original value after standardization using clustering

I already referred these posts here and here. Currently, I am working on customer segmentation using their purchase data. So, my data has below info for each customer Based on the above linked posts ...
The Great's user avatar
  • 3,342
1 vote
1 answer
523 views

RFM Customer segmentation - Why Avg monetary value instead of total monetary value?

I am trying to segment our customers based on their purchase data. And I came to know about the RFM technique (Recency, Frequency and Monetary) through these posts here, here etc. Recency - How ...
The Great's user avatar
  • 3,342
0 votes
0 answers
84 views

How to save a Higher accurate K-means Model on a unlabelled data based on Any Performance Evaluation Metrics?

I am experimenting on Iris dataset. I am not using the label. I want to save my model based on any Performance Metrics. According to Performance Metrics which model have higher score I am choosing ...
Amartya's user avatar
  • 51
0 votes
0 answers
1k views

Using Silhouette Score to evaluate different clustering algorithm

I am trying to compare different clustering algorithms on a dataset and compare the model performance. Since the dataset is quite big (56 features), I applied PCA to reduce the number of features to ...
Joe's user avatar
  • 1
0 votes
1 answer
2k views

How to evaluate unsupervised Anomaly Detection using k-means

I'm trying out different anomaly detection models and would love to hear opinion on my idea from somebody experienced. My goal is to perform anomaly detection with different models and to give each ...
Kami's user avatar
  • 3
4 votes
1 answer
905 views

How to compare clustering results between "raw" and normalized data

I have a dataset and I would like to apply a clustering algorithm to find some groups. I do not have any label, so it is just wondering if I can find relevant clusters. If it may help, it is ...
rusiano's user avatar
  • 566
3 votes
1 answer
4k views

KMeans clustering - can inertia increase with number of clusters

I am doing kmeans clusters on sales data and i see that inertia increases for the initial increase in the number of clusters. Can you please explain why that happens? I am doing Batched Kmeans for the ...
maamli's user avatar
  • 85
1 vote
2 answers
464 views

Confused between K-Means and Hierarchical Clustering for 9 different categories

I am trying to classify 9 different species of elephants into clusters using unsupervised learning. I have the following data about them: Their height Eye Colour Sound they produce in decibel (dB) I ...
fitGirl321's user avatar
2 votes
1 answer
124 views

K means clustering breakup---galaxy spectrum data set

I have a spectrum data set (total 22000). Similar to an electronic wave data, two dimensional (Flux vs Wavelength). A typical set of wavelength plot looks like below Now I am doing kmeans on this ...
Ayan Mitra's user avatar
2 votes
0 answers
57 views

How can I cluster sequential data?

Suppose that I have a sequence of vectors $y_n \in \mathbb{R}^m$ for $n \in \{1, \dots, N\}$. My goal is to divide $y_n$ in $K$ clusters and want my clusters to satisfy the following conditions: Each ...
KRL's user avatar
  • 286
1 vote
1 answer
352 views

is k-means generalizable at any distance? [duplicate]

The classical version of k-means uses the Euclidean distance in the first step, and the arithmetic mean (the value center) in the second step. Is k-means generalizable to other distances and other ...
pedro colombino's user avatar
1 vote
0 answers
16 views

Prerequisites/Checks for performing clustering

What are the checks that should be done on our data before performing clustering? Like how to check whether the dataset contains clusters of equal size/density or the clusters present in the dataset ...
user9855045's user avatar
3 votes
0 answers
410 views

When to use K-Medoids instead of K-means

When it's better to use K-Medoids rather than K-Means? Can anybody give some examples of dataset for the same?
user9855045's user avatar
1 vote
1 answer
2k views

Limitations of K-Means Clustering [duplicate]

I was going through a document of Western Michigan University to understand the limitations of K-means clustering algorithms. Below is the link: https://cs.wmich.edu/alfuqaha/summer14/cs6530/lectures/...
user9855045's user avatar
1 vote
1 answer
477 views

What happens when $k=1$ in k-means? What's the optimized value of distance for $k=1$?

What is the optimized value of distance $V(x,c)$ when $k=1$ (number of clusters) in k-means? What is the centroid such that it is optimal? $$V(x,c) = \sum_j \sum_{x_i \rightarrow c_j} D(x_i,c_j)^2$$ ...
thenoirlatte's user avatar
3 votes
2 answers
4k views

What is the mathematical definition of the 'Elbow Method'?

In K-means algorithm, it is recommender to pick the optimal K, according to the Elbow Method. However all the tutorials explain the elbow method in these 4 steps: Run K-means for a range of K's ...
Dimgold's user avatar
  • 318
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 ...
ERB3's user avatar
  • 41
0 votes
1 answer
239 views

Why is k correlated with the mean and variance of the distance between centroids in k-means?

I've noticed that if I'm doing k-means clustering (in MATLAB) on basically any set of data (not randomness), the mean and variance in centroid linkage distance appears to always be approximately ...
Jonathan's user avatar
  • 111
0 votes
3 answers
450 views

How to identify or give a meaning to the cluster membership in a hierarchical clustering?

I know clustering is a type of unsupervised learning problem, however when Kmean clustering is used one can sort the membership based on the cluster centers. For example consider the cluster ...
user59419's user avatar
  • 281
1 vote
1 answer
3k views

K-means classifies 96% of my data in 1 cluster. Any suggestions to improve the results?

Problem: K-Means clustering shows 96% of my data belongs to one cluster. How can I improve my results or should I conclude that no cluster exists in my dataset. Dbscan clustering shows 1 cluster ...
sv_noname's user avatar
1 vote
1 answer
49 views

Using k-means to segment customers in the positive class

I have some labeled data (0=didn’t cancel, 1=canceled) that I am creating a model for in my marketing class. On top of predicting who is likely to cancel, I’d like to explore the possibility of ...
Insu Q's user avatar
  • 355
1 vote
2 answers
1k views

Running k-means clustering with k = 2 recursively on clusters greater than a certain size

Does it make sense to run k-means with k (number of clusters) of 2, and then for every cluster bigger than N, run k-means again with k = 2? We can then keep doing it until we have all clusters of size ...
akhetos's user avatar
  • 129
0 votes
1 answer
464 views

Can I use the Silhouette to measure quality of clusters in different dimensions?

Can I use the Silhouette to measure quality of clusters in different dimensions? For example, let's say we run kmeans for some $k$ using 6 features of the dataset. Mark the resulted silhouette as $...
sheldonzy's user avatar
  • 141
0 votes
2 answers
871 views

R - high dimension data using k means clustering [closed]

The dataset is 1000(observations) x 700(variables), After using pca to do dimension reduction, PC150 explained 85% Variance, so I use this (1000 x 150) data to do k means clustering. This code was ...
Rufus7's user avatar
  • 3
-1 votes
2 answers
66 views

Unsupervised Clustering

My research is about comparing K-means and DBSCAN, and Im using unsupervised learning method in clustering. Is it true that the number of cluster in K-means is also the same number as the unique ...
Richard Denver Ko's user avatar
1 vote
2 answers
12k views

In k-means clustering, why sum of squared errors (SSE) always decrease per iteration?

In k-means clustering, why sum of squared errors (SSE) always decrease per iteration? How can prove it by mathematical derivation of formulas? k : number of clusters m : number of examples $c_h$ : ...
RobinCruise's user avatar
2 votes
2 answers
486 views

How to include percentage variables in PCA + K-means when some values are undefined because the denominator is 0?

I'm trying to do customer segmentation by using PCA to reduce dimensionality and then feeding the resulting principal components into a K-means algo to get at the final segments. Some of my variables ...
Amazonian's user avatar
  • 1,554
1 vote
1 answer
2k views

Difference between Hartigan & Wong Algo to Lloyd's algorithm in K-means clustering

In the iterations of Hartigan and Wong Algo of K-Means clustering, If the centroid is updated in the last step, for each data point included, the within- cluster sum of squares for each data point if ...
Arpit Sisodia's user avatar
3 votes
2 answers
2k views

Kmeans - Does removing outliers on a dimension affect other dimensions clustering prediction?

I have a set with several features that I wish to cluster using Kmeans. If I remove a point that is an outlier on one dimenssion but not in the others will it affect the result? Outliers were found ...
Hohenheimsenberg's user avatar
1 vote
2 answers
48 views

is finding danger zones in a map considered as clustering problem?

if I have a data-set of places where accidents happened in certain city , is identifing danger zones in that city considered as clustering problem ? if for example I use KMeans , I would have to pass ...
Chemss-Eddine BenHassine's user avatar
2 votes
0 answers
114 views

Clustering data sitting close to corners of an N-dimensional parallelepiped

I am looking for a method of clustering data that are close to the corners of an $N$-dimensional parallelepiped (but I don't know the vectors spanning it). Is there a good method for finding ...
Christian's user avatar
3 votes
5 answers
2k views

An algorithm similar to (or based on) K-means that do not require the 'k' number of clusters

These days I'm using a lot (and discovering) nice ways to use k-means' clustering. For example, clustering word embeddings (word2vec vectors) to find synonyms or clustering doc vectors (doc2vec) to ...
denisb411's user avatar
  • 163
3 votes
1 answer
1k views

Which methods can help us to understand clustering model is good or bad?

In some clustering algorithm, ex: K-Means cluster, it is very sensitive with outliers, so we need to remove outliers before aplly ...
voxter's user avatar
  • 160
0 votes
0 answers
70 views

How can I use the results of clustering algorithms for classification

I'm doing a mobile customer segmentation and I was using K-means to cluster my data according to the various data points (location, time of use, duration used for etc). After reading a lot of posts in ...
hbabbar's user avatar
  • 101
1 vote
1 answer
1k views

Threshold for kmeans anomaly detection

I'm learning the kmeans to find out anomaly from the dataset. but I don't know how to set threshold. I tried by the putting mean of the centroid to point distance but it's not working, half my record ...
Newbie's user avatar
  • 141
1 vote
1 answer
318 views

What is the typical taxonomy for clustering methods?

What is the typical taxonomy for clustering methods? For example, for regression we can talk about: simple regression, multiple univariate regression, and multivariate regression. And then, we can ...
user avatar
5 votes
2 answers
23k views

How to assign new data to an existing clustering

I have the following case. Say I have a set of 100 celebrities and I form 4 clusters using k-means. Lets assume that these 4 clusters are music, sports, politics, movies. Now say if I want to ...
vidhya9's user avatar
  • 153
1 vote
0 answers
448 views

Cluster validation method for no cluster labels and differently sized clusters

I'm primarily a programmer and have little to no training in formal maths or statistics of any kind. I'm working on my dissertation (which foolishly is about clustering data), the process is ...
Malii's user avatar
  • 193
3 votes
2 answers
1k views

Using clustering for unsupervised classification (visualizing k-means cluster centers)

I know that the cluster centroid is the middle of a cluster. It's a vector containing one number for each variable, where each number is the mean of a variable for the observations in that cluster. I ...
Kuka's user avatar
  • 43
21 votes
4 answers
25k views

How to understand the drawbacks of Hierarchical Clustering?

Can someone explain the pros and cons of Hierarchical Clustering? Does Hierarchical Clustering have the same drawbacks as K means? What are the advantages of Hierarchical Clustering over K means? ...
GeorgeOfTheRF's user avatar
4 votes
1 answer
1k views

Incorporating new words in tfidf feature-vector for online clustering

I am building an Online news clustering system using Lucene and Mahout libraries in java. I intend to use vector space model and tfidf weights for Kmeans(or fuzzy/streamKmeans). My plan is : Cluster ...
aman2357's user avatar
5 votes
1 answer
3k views

K-means and maximum likelihood!

Is there any relation between k-means and the maximum-likelihood estimate in unsupervised learning? Any references would be appreciates!
Kevin's user avatar
  • 245
2 votes
1 answer
609 views

How to measure the similarity of k-means clustering using different datasets?

I run k-means clustering on my dataset (100 samples in total) and partition the data into k=5 clusters. Then I want to test how robust of the k-means can be; however, I haven't got more new data ...
Samo Jerom's user avatar
  • 1,759
1 vote
2 answers
270 views

A clustering and classification question

I'm trying to classify my set of data into two classes (introvert / extrovert). I was thinking of using a decision tree at first, but I don't have any potential known results in order to create my ...
Ahmed Tlili's user avatar
8 votes
2 answers
4k views

Why only the mean value is used in (K-means) clustering method?

In clustering methods such as K-means, the euclidean distance is the metric to use. As a result, we only calculate the mean values within each cluster. And then adjustments are made on the elements ...
lennon310's user avatar
  • 2,652