Questions tagged [ranks]

Ranks are ordinal numbers of the quantitative data values sorted ascendingly or descendingly. Various methods to assign ranks to equal values (ties) exist. Transform of values to ranks is often done in nonparametric data analysis. (Not to confuse with [ranking] task..) (See related: [order-statistics])

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Statistical test on correlation rank lists under multiple conditions

So for some background, I have a dataset where I have generated correlations of a variable of interest to all other variables of interest (~20 other variables, spearman's correlation tests, visual ...
0
votes
0answers
12 views

Is a partial rank correlation good practice?

Pearson product-moment correlations take the raw data into account while Spearman's rank-order takes the ranks into account. Is it good practice to rank-order one axis and allow the other axis to be ...
1
vote
1answer
256 views

How to Analyze Rank Data

Suppose I have 3 columns and n rows. Each row represents a school and the columns represent variables of interest and have ordinal ranks (1,2,3,4....n; 1 being the best and n being the worst). ...
0
votes
0answers
46 views

Find population characteristics from survey proportions

I want to launch surveys on very specific binary questions with low "Yes" answer rate, for example Do you have a Ferrari ?, Did you buy a Chanel bag ? I'm able to do that on at least 20 ...
1
vote
0answers
21 views

Why does the formula of Somers' D remove number of Y ties in this formula?

I am researching how to calculate Somers' D in python for a discrete dependent variable and continuous independent variable, I found this answer on stack overflow: https://stackoverflow.com/questions/...
0
votes
1answer
51 views

Is it valid to use rank data with a general linear model?

I have electrophysiological data in the form of skin resistance in fish. I wish to explore if there is any variation in resistance based on the location on the body where the skin is taken from. In ...
0
votes
1answer
149 views

how to evaluate consistency of rankings for n columns

Suppose I have n columns in a matrix (example below has n= 4). Is there a test I can check that the rankings over columns are ...
1
vote
0answers
17 views

Bootstrap for nonlinear regression and ranked explanatory variable

I've been wondering how the bootstrap method works in the case of nonlinear regression models where the order of the x-axis (suppose just 1 explanatory variable) matters. In the case of univariate ...
1
vote
1answer
35 views

Is there an algorithm with linear time complexity to calculate the rank sum statistic?

Definition 1: For a real array $x = (x_1, \dots, x_n)$, denote the rank of $x_i$ in $(x_1,\dots, x_n)$ by the following: $$ r_{i}=\sum_{j=1}^{n} I_{\left(x_{j} \leq x_{i}\right)}, \quad 1 \leq i \leq ...
0
votes
0answers
8 views

Analysing a product ranking over time: where to start?

Context: I have a ranking (top 10) of products for sequential periods, stretching to 3 years. This gives me a total of about 150 top 10 lists, in which the products are a subset of the total set of ...
0
votes
0answers
10 views

Determine if a distribution of ranks is significantly skewed towards low values

I have N vectors of varying length. The values are samples of ranks that have been normalized to be between zero and one. I would like to determine the M vectors (M < N), for which the distribution ...
0
votes
3answers
38 views

How can I rank values that are not normally distributed?

I have one metric value changing between 0 and 1 for 650 observations. When I analyze frequency distribution I see that the values are right skewed. I need to classify values as high/medium/low. I ...
1
vote
0answers
17 views

How should I visually represent these preference rankings?

I'm trying to visually represent the following rankings in a clear and intuitive way, but am unsure of how to best do that. Here's the data: There are 4 outcomes: A1, A2, B1, B2 The letters are the ...
1
vote
0answers
9 views

Is it possible to calculate spearman rank correlation between three generations?

In my analysis I determine the intergenerational transmission of social status. In the literature it is common to use OLS regressions for this purpose. In addition to these regressions, I also ...
0
votes
1answer
24 views

Ranks from a sample written as a function

Can sample rank be defined as a function of a sample? Suppose $X_1, X_2, \dots X_n \sim F$ where $F$ is defined on space $\mathcal{X}$. Consider the order statistics $X_{(1)}, X_{(2)}, \dots, X_{(n)}...
0
votes
2answers
33 views

Ranking theory for rainfall station

I have 10 rainfall stations. Each station has a rain day, no-rain day, and NA value, all in percentages. How can I rank these stations based on the condition that the best station is station that ...
1
vote
0answers
18 views

When is it appropriate to use rank outcome instead of raw outcome values?

thanks in advance for advice. When is it appropriate to use the rank of your outcome variable instead of its raw values in regression? I have been sent a manuscript to review by a colleague. The ...
0
votes
0answers
17 views

Regression with multiple independent samples and rank dependent variable

I am trying to estimate parameters of a regression function, where: Independent Variables are continuous (and I might have up to 7 IVs) Dependent Variable is rank The twist is that the sample is ...
1
vote
1answer
49 views

Perform signed rank test where there are duplicates in data?

How do you perform a rank test when there are duplicates in the data? that is, we have a dataset with numbers $1,1,1,1,3,3,3,3,4,4,4,4.$ and another dataset also with duplicates.... Is the sum of ...
15
votes
2answers
3k views

Why is the Mann–Whitney U test significant when the medians are equal?

I've received a results from a Mann-Whitney rank test that I don't understand. The median of the 2 populations is identical (6.9). The uppper and lower quantiles of each population are: 6.64 & 7....
1
vote
0answers
26 views

Do rank transformations induce dependence?

I am interested in an explanation of whether rank-transforming continuous variables induces dependence in model errors that violates the typical i.i.d assumption of generalized linear models. Suppose ...
2
votes
0answers
34 views

Clustering with ranking data [duplicate]

I'm just trying to get some practice with implementing some Machine Learning algorithms with a variety of data. I'm just getting started so I'm pretty new to the whole process and would appreciate any ...
0
votes
0answers
30 views

how to apply correction for ties in Conover squared Ranks Test

I am writing code for Conover Squared rank test in Python but I am unable to find right formula to make corrections for ties in order to calculate the p value. I understand the average of the tied ...
1
vote
1answer
26 views

Regression with ranked and truncated dependent variable

I'm struggling to find a model that will best fit this data. The dependent variable is the ranking of a observation based on how many votes it received based of a list of choices (number of votes is ...
0
votes
1answer
130 views

Rank-ordered logit model: question

I have a dataset in which each individual ranks four attributes of a product. This task (with the same attributes) is repeated three times under different conditions. The product is still the same, so ...
0
votes
0answers
21 views

Regression for continuous response and ordinal predictors ranked relative to each other

I would like to predict the value of a continuous response variable $y$ from some predictor variables $x_1, ..., x_n$ which are all ordinal insofar as their numerical values in my observations are ...
2
votes
2answers
183 views

Can I use multiple regression on a ranked response variable as a significance test for multiple covariates?

This blog post illustrates the relationship between inference tests on groups (t-test, ANOVA, etc.) and equivalent linear models. It also claims that for reasonable sample size, regression of a ranked ...
8
votes
2answers
896 views

Equivalence of Mann-Whitney U-test and t-test on ranks

What does it mean when people say that a t-test performed on ranked data is equivalent to a Mann-Whitney U-test? Does that mean they just test the same hypothesis/are useful in the same situations or ...
0
votes
1answer
228 views

Variance of rank of means

Consider an $n\times m$ matrix of scores obtained by measuring $n$ items $m$ times. Items are assumed independent with unique variances. The sample mean of each row is calculated and the resulting ...
5
votes
1answer
627 views

Rank versus Box-Cox transformation

I'm attempting to assess the relationship between two quantitative variables, but the DV is highly skewed (and so are the residuals). I work among biologists who tend to favor non-parametric ...
6
votes
2answers
4k views

Algorithm and R code for dealing with ties in Wilcoxon rank-sum test

I think one of the algorithms used to handle ties for the Wilcoxon rank-sum test (a.k.a., Mann-Whitney U test) is Streitberg / Rohmel. I could not find a good source which explains the algorithm / ...
5
votes
1answer
301 views

Mathematical function that maps a vector to an ordered version of that vector

Given a vector $x \in \mathbb{R}^n$, I would like to refer to a vector $x'$ that contains the components of $x$ ordered in ascending order. I would like to define the function $f(x)$ that maps $x$ to $...
9
votes
1answer
29k 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?
8
votes
1answer
1k views

Are parametric tests on rank transformed data equivalent to non-parametric test on raw data?

Many non-parametric tests are identical to their parametric equivalent on ranked data. At least, that's what I learned from this blog post on Friedman's test and skimming this 1981 article.. This ...
6
votes
3answers
2k views

Weighted Kendall tau rank correlation coefficient

I need to use a measure to compare two rankings: Consider the ground truth as 1,2,3,4,5,6. Let two rankings be R1 and ...
6
votes
1answer
133 views

Correlation between an observation and its rank in a random sample

Suppose $X_1,X_2,\ldots,X_n$ are i.i.d random variables with an absolutely continuous distribution. We say the observation $X_i$ has rank $R_i$ if $$X_i=X_{(R_i)}\quad,\,i=1,2,\ldots,n,$$ where $X_{(...
8
votes
1answer
760 views

Rank and z-transform instead of Wilcoxon?

Andrew Gelman in a recent post in his blog suggests using a rank, transforming the rank to a z-score, and then using parametric tests and tools instead of performing non-parametric tests. I never ...
8
votes
2answers
7k views

Do we need to worry about outliers when using rank-based tests?

Apologies if this is a very basic question. If we have data that are not normally distributed (e.g. skewed, Shapiro-Wilk test is significant) and we resort to rank-based methods (e.g. Wilcoxon Signed ...
17
votes
4answers
29k views

What is tied data in the context of a rank correlation coefficient?

I am not in statistics field. I have seen the word "tied data" while reading about Rank Correlation Coefficients. What is tied data? What is an example of tied data?
3
votes
3answers
65 views

Statistical test if one sample is placed higher in rank

I have a rank array, say from 0 to 100 (0 being the smallest and 100 being the largest). If my data contains 89, 91, 94, and 98, I can say my data is significantly high in the rank. In other words, my ...
6
votes
1answer
2k views

Regression methods for predicting rank

Is there a canonical regression approach for predicting the ranks of a response? I'd like to fit a regression to a dataset where the response is highly non-normal with very large outliers. There are ...
1
vote
0answers
27 views

Identify difficult parameter to measure [closed]

I am using different tools to measure x on some objects. The tools were tested on a small set of objects for which the true x is known. And so the predicted values were found to not be accurate for ...
0
votes
0answers
18 views

Consistency test

I have data that consists of 7 characteristics for each participant. There are about 170 participants. The test was repeated in some time and the same 7 characteristics were acquired. I need to find ...
2
votes
0answers
58 views

Statistical test for changes in ranks

I am investigating changes in rankings of schools. For example, in year $t$ school X may have been in the 17th percentile (poor performer) but in year $t+1$ it may have improved to be in the 94th ...
1
vote
0answers
24 views

Rank error metric for time series

Suppose I have a collection of MAE across multiple time series (say, 10), and 3 models. However, MAE cannot be compared across time series. I compare the errors in this way: assign ranks to models, ...
0
votes
1answer
9 views

Correlation of entrance rank to subsequent performance

As part of my M Tech Thesis, I have to find the correlation between the Rank in Engineering Entrance Test and performance in 1st Year Engineering in terms of GPA i.e. Gross Performance Average. Can ...
4
votes
2answers
135 views

Is ratio of ranks a well-studied statistic?

I have two lists of recommendations: that is, two different algorithms have assigned ranks to the same list of objects. I would like to know if they're similar. I specifically care more about ...
2
votes
1answer
65 views

Cars: Price vs Rank

Okay so long story short, I have a list of 184 cars with a bunch of info for each of them in Excel. I want to be able to compare the price of the cars to the rank of them so that I can essentially ...
4
votes
0answers
393 views

What model contains Wilcoxon's rank sum test?

As Frank Harrel mentions in the answer to Logistic regression and Wilcoxon test, Wilcoxon's rank sum test (aka Mann-Whithey test) is contained in the proportional odds logistic regression, which would ...