Linked Questions

0 votes
1 answer
3k views

Hierarchical clustering with categorical variables - what distance/similarity to use in R? [duplicate]

I have only categorical variables in my database. What distance/similarity to use? I´m using the function simil() (library(proxy) in R.
Jéssica Caldato's user avatar
81 votes
4 answers
94k views

F1/Dice-Score vs IoU

I was confused about the differences between the F1 score, Dice score and IoU (intersection over union). By now I found out that F1 and Dice mean the same thing (right?) and IoU has a very similar ...
pietz's user avatar
  • 913
57 votes
2 answers
120k views

Choosing the right linkage method for hierarchical clustering

I am performing hierarchical clustering on data I've gathered and processed from the reddit data dump on Google BigQuery. My process is the following: Get the latest 1000 posts in /r/politics ...
Kevbot's user avatar
  • 671
55 votes
2 answers
44k views

Hierarchical clustering with mixed type data - what distance/similarity to use?

In my dataset we have both continuous and naturally discrete variables. I want to know whether we can do hierarchical clustering using both type of variables. And if yes, what distance measure is ...
Beta's user avatar
  • 6,466
28 votes
4 answers
12k views

With categorical data, can there be clusters without the variables being related?

When trying to explain cluster analyses, it is common for people to misunderstand the process as being related to whether the variables are correlated. One way to get people past that confusion is a ...
gung - Reinstate Monica's user avatar
27 votes
2 answers
31k views

Similarity Coefficients for binary data: Why choose Jaccard over Russell and Rao?

From Encyclopedia of Statistical Sciences I understand that given $p$ dichotomous (binary: 1=present; 0=absent) attributes (variables), we can form a contingency table for any two objects i and j of a ...
wflynny's user avatar
  • 465
9 votes
3 answers
6k views

Understanding $\chi^{2}$ and Cramér's $V$ results

I have two groups of buyers, A and B, and I want to test whether the difference between the percentage of them who would buy a ...
DroppingOff's user avatar
6 votes
1 answer
33k views

Hierarchical or TwoStep cluster analysis for binary data?

(This question is an edited version of a question I previously posted which one user recommended would benefit from more focus). I have 2000 questionnaires from respondents which ask 33 different ...
user27768's user avatar
8 votes
2 answers
15k views

Accuracy vs Jaccard for multiclass problem

TL;DR For a multiclass problem, is Jaccard score the same as accuracy? Update March 29, 2019 The wrong implementation in scikit-learn is now fixed with pull request #13151. Hooray! P.S. The lesson ...
Drop's user avatar
  • 83
9 votes
1 answer
10k views

Was it as valid to perform k-means on a distance matrix as on data matrix (text mining data)?

(This post is a repost of a question I posted yesterday (now deleted), but I've tried to scale back volume of words and simplify what I'm asking) I'm hoping to get some help interpreting a kmeans ...
Doug Fir's user avatar
  • 1,588
5 votes
3 answers
7k views

Distance metric for all categorical data

I have categorical data in the form of Y/N of 23 attributes and containing 200+ records. I need to compute the distance between the attributes with their class label. Which metric can be used?
user857418's user avatar
10 votes
0 answers
11k views

Properties of Levenshtein, N-Gram, cosine and Jaccard distance coefficients - in sentence matching

Let's say I have two strings: string A: 'I went to the cafeteria and bought a sandwich.' string B: 'I heard the cafeteria is serving roast-beef sandwiches today'. ...
matsuo_basho's user avatar
4 votes
0 answers
12k views

K-Means Clustering with Dummy Variables

I want to use k-means to cluster my data. I have broken one column into 4 dummy variables and I have normalized all of the data to mean=0 and sd=1. Will k-means work with these dummy variables? I ...
Adam12344's user avatar
  • 527
3 votes
1 answer
5k views

NMDS from Jaccard and Bray-Curtis identical. Is that a bad thing?

The dataset is ecological (species abundance), where I am calculating distances between 51 sampling sites, based on abundances of 3200 species. The species abundance values go up to 2700, and the rest ...
willnotburn's user avatar
6 votes
1 answer
1k views

How to distance and to MDS-plot objects according their complex shape

Suppose I have four basal forms of signal (blue, purple, red, green). I also have created transition forms between each other. If you carefully look on the picture below, you can see that for example ...
Ladislav Naďo's user avatar

15 30 50 per page