Skip to main content

Questions tagged [ties]

Ties refer to equal values observed in the data. When multiple, ties can pose a problem for some methods of data analysis.

Filter by
Sorted by
Tagged with
15 votes
1 answer
10k views

Is there an alternative to the Kolmogorov-Smirnov test for tied data with correction?

I've got a bunch of data from two samples (control and treated), each containing several thousand values which are to undergo significance testing in R. Theoretically, the values should be continuous, ...
AnjaM's user avatar
  • 275
21 votes
4 answers
13k views

Survival analysis: continuous vs discrete time

I am confused about how to decide whether to treat time as continuous or discrete in survival analysis. Specifically, I want to use survival analysis to identify child- and household-level variables ...
smm's user avatar
  • 211
20 votes
2 answers
49k views

"Ties should not be present" in one-sample Kolmgorov-Smirnov test in R

I am going to use the Kolmogorov-Smirnov test to test normality of MYDATA in R. This is an example of what I do ks.test(MYDATA,"pnorm",mean(MYDATA),sd(MYDATA)) ...
unes's user avatar
  • 201
5 votes
1 answer
9k views

Kolmogorov-Smirnov vs Mann-Whitney U When There Are Ties

I have a dataset consisting of rank data, some 100 cases and 2 groups. (The 2 groups contain about 1/3 and 2/3 of the cases.) I would like to test whether the two groups differ with respect to median ...
Joel W.'s user avatar
  • 3,427
24 votes
4 answers
47k views

Dealing with ties, weights and voting in kNN

I am programming a kNN algorithm and would like to know the following: Tie-breaks: What happens if there is no clear winner in the majority voting? E.g. all k nearest neighbors are from different ...
Fletcher Duran's user avatar
13 votes
1 answer
41k views

How does ties.method argument of R's rank function work?

I am using rank(a, ties.method="max") to rank a. But I am not quite sure what does ties.method="max" do. Can you please help?
Joy's user avatar
  • 141
9 votes
2 answers
25k views

ks.test and ks.boot - exact p-values and ties

I am confused by the behaviour of ks.test (package stat) a) in the presence of ties and b) if one-sided while doing a two-sample test. Documentation: "Exact p-values are not available for the two-...
Hermann Norpois's user avatar
4 votes
1 answer
1k views

Nelson-Aalen estimator and interval censoring/tied events

I just noticed that the Nelson-Aalen estimate of the cumulative hazard changes depends on the existence of tied events. As a toy example, consider a study with 3 patients. The patients die on day 1, 5,...
mogron's user avatar
  • 898
3 votes
1 answer
3k views

Mann-Whitney test with ties

I have two data sets with PDFs roughly like this: $$ p(x) = \left\{ \begin{array}{lr} .75 & x = 0\\ \text{Lomax}(x) & x > 0 \end{array} \right. $$ i.e. it's ...
Xodarap's user avatar
  • 2,608
3 votes
1 answer
1k views

Stochastic gradient descent for neural networks with tied weights

For the neural network depicted below, I want to calculate the Error with respect to $w_{tied}$, which we get if we tie the weights $w_1$ and $w_4$ together. Tying the weights together would help to ...
Pugl's user avatar
  • 1,521
2 votes
2 answers
7k views

ties in Wilcoxon t test in R

I have a paired data with a small sample size of 19 subjects who gave different scores at time 1 ($T_1$) and time 2 ($T_2$). I'd like to conduct a Wilcoxon test using R, because my data are not normal....
Lara's user avatar
  • 21
2 votes
1 answer
2k views

Use of Mann-Whitney w/ Ties

I am tracking the results of a test between a control group and 1 variant group. Each group contains (an unequal quantity of) users whose order count we're now tracking. The histogram is heavily ...
ahobbs's user avatar
  • 23
2 votes
1 answer
6k views

Ties in a two-sample Kolmgorov-Smirnov test

This question is somehow connected to this one. I am performing a two-sample KS test in R and I think I have not fully understood the issue of the ties. Reading the help: ...
Nemesi's user avatar
  • 235
0 votes
1 answer
5k views

What happen if KNN has k=1 and there are 2 nearest classes with the same distance

What happen if KNN has k=1 and there are 2 nearest classes with the same distance? as fare as I know, If k is even number and have equal classes number it will random class for the answer. But what ...
S.Xu's user avatar
  • 9