Rank-Based Tests - Statistics Graduate Level
- Using the usual chi-square approximation, which result is correct at significance level ? Answer: The statistic is approximately with degrees of freedom, so the null hypothesis is not rejected When you encounter a Kruskal–Wallis question, your two main tasks are computing the test statistic correctly and identifying the right degrees of freedom for the chi-square approximation. The Kruskal–Wallis statistic is: Here, groups, each with , giving total observations. The rank sums are , , . Plugging in: So . The degrees of freedom equal . The chi-square critical value at with 2 df is . Since , you fail to reject the null hypothesis — confirming answer B. Answer A gets the right degrees of freedom but halves the statistic (a likely arithmetic error or use of a wrong formula). Answer C correctly computes the statistic but uses instead of , which is a classic degrees-of-freedom confusion — and then incorrectly concludes rejection. Answer D inflates the statistic to , which would cross the critical value, but this figure doesn't arise from the correct formula. As a study tip, always remember: Kruskal–Wallis degrees of freedom are (number of groups minus one), not . Mixing these up is the most common trap on this type of question.
- By what factor should the no-tie null variance be multiplied to obtain the standard tie-corrected variance? Answer: Whenever you encounter a Wilcoxon rank-sum test with ties, your central task is adjusting the null variance using a correction factor that accounts for tied groups. The standard no-tie null variance is , and the tie-corrected version multiplies this by a factor of the form , where each is the size of a tied group. Here, , one value occurs three times () and another occurs twice (). Compute the correction sum: The denominator is . The correction factor is therefore: This confirms B is correct. Choice A uses in the denominator instead of , which corresponds to no standard formula — a straightforward algebraic error. Choice C computes the numerator as 14 rather than 30; this would result from using (i.e., ) instead of , confusing the exponent. Choice D uses 35 in the numerator, which doesn't correspond to any standard calculation of the tied groups given. A reliable memory anchor: the tie correction involves cubed group sizes — — divided by . If you remember "cubes on top and bottom," you'll avoid the most common errors here.
- Which interpretation of the observed statistic is most defensible without assuming that the two distributions differ only by a location shift? Answer: The estimated probability that a randomly selected is less than a randomly selected , with half credit for ties, is Whenever you see a question about the Mann–Whitney statistic, anchor yourself to its core probabilistic interpretation: estimates (with ties split), not a location shift or a median difference, unless you explicitly impose a location-shift assumption. With and , the total number of pairs is . Dividing the observed statistic by the total pairs gives . This quantity estimates , which is the probability that a randomly drawn falls below a randomly drawn , with half-credit awarded when they tie. No distributional assumptions beyond independence are required for this interpretation — making A the most defensible choice. B is wrong on two levels: it claims to exclude ties entirely (which changes the estimand and isn't what the formula computes), and it misidentifies the denominator as times "pairs counted" rather than . C is a conceptual error. The ratio is a probability estimate, not a shift in original measurement units. Interpreting it as a median difference requires the location-shift model — precisely the assumption the question tells you not to make. D reverses the direction. Since , it is that tends to exceed , meaning is stochastically smaller, not larger. The estimated probability that would be . Strategy tip: Always check direction and denominator. On exam questions about Mann–Whitney, confirm who is being compared to whom and verify that you divide by , not a subset of pairs.
- What are the positive signed-rank sum and the two-sided statistic ? Answer: and , using midranks for the tied absolute value When applying the Wilcoxon signed-rank test, your first step is always to drop zero differences, then rank the remaining absolute values, using midranks for ties. Only after ranking do you separate positives from negatives. Here, discarding the zero leaves four differences: . Their absolute values are , which rank as follows: , then and tie for ranks 2 and 3, so each gets midrank , and . Now attach signs: the negative differences ( and ) carry ranks and , while the positive differences ( and ) carry ranks and . So and , giving . This confirms answer A. Answer B breaks the tie by awarding the higher integer rank to the positive difference — but ties must be averaged into midranks, not resolved by sign. Answer C makes the same integer-rank mistake and compounds it by giving both higher ranks to positive differences, inflating further. Answer D incorrectly retains the zero difference and assigns it rank 1, violating the fundamental rule that zeros are discarded before ranking. Your study tip: memorize the three rules in order — drop zeros, midrank ties, then sum by sign. Exam distractors almost always tempt you to skip one of these steps or apply them out of order.
- If the t test requires a total sample size of approximately , what total sample size would the Wilcoxon test require for comparable asymptotic power under this model? Answer: Approximately , because the required size is after rounding Whenever you see a question involving asymptotic relative efficiency (ARE), your first instinct should be to think carefully about what the efficiency ratio actually tells you — specifically, which test is in the numerator and which is in the denominator. The ARE of the Wilcoxon relative to the t-test is defined here as . This ratio tells you how many t-test observations are needed per Wilcoxon observation to achieve equivalent power. Since , the Wilcoxon actually requires more observations than the t-test under normality — it is the slightly less efficient procedure in this setting. To find the Wilcoxon sample size, you rearrange: . That confirms C is correct. Choice A flips the ratio, multiplying rather than dividing: . This would mean the Wilcoxon needs fewer observations, but that contradicts the fact that ARE < 1 implies the Wilcoxon is less efficient under normality. Choice B is tempting because both tests are valid under normality, but "valid" doesn't mean "identically powerful at the same sample size" — the ARE being less than 1 (even slightly) means a real, quantifiable difference exists asymptotically. Choice D invents a heuristic about "rank conversion losing observations" that has no grounding in ARE theory; the ~5% extra cost comes from the efficiency formula, not data loss. The key study tip: always track the direction of the ARE ratio. If , then . Writing it out algebraically before plugging in numbers will prevent the flip error that makes A so tempting.
- Using a two-sided exact Wilcoxon rank-sum test that doubles the smaller one-sided tail probability, what is the p-value? Answer: , because two allocations have rank sum at most , the one-sided probability is , and doubling gives Whenever you see an exact Wilcoxon rank-sum test, your first move should be to enumerate all equally likely rank allocations, identify the tail probabilities, then apply the two-sided rule carefully. With two samples of size 3 drawn from ranks 1–6, the total number of ways to assign 3 ranks to the first sample is , so each allocation has probability under . Now list the allocations with the smallest possible rank sums: gives , and gives . No other allocation produces a rank sum of 7 or below. That means exactly 2 allocations fall in the lower tail (), giving a one-sided tail probability of . For a two-sided test that doubles the smaller tail probability, the p-value is , confirming C is correct. Choice A is wrong because it counts only the single allocation strictly less than 7 (i.e., ), giving . The two-sided rule requires including the observed value itself in the tail, so must be counted too. Choice B correctly identifies 2 allocations and computes , but stops there — it forgets to double for the two-sided test, reporting the one-sided p-value instead. Choice D invents a count of 4 allocations by misapplying the "both tails" logic, conflating doubling the probability with doubling the count of allocations. Study tip: In exact nonparametric tests, always include the observed statistic in the tail count, then double that one-sided probability for a two-sided result — don't double the count of allocations.
- What does the Friedman test conclude using its usual chi-square approximation at significance level ? Answer: The statistic is with degrees of freedom, so the treatment effect is significant When you see a Friedman test question, focus on two things: the correct formula and the correct degrees of freedom. The Friedman statistic is: where is the number of blocks, is the number of treatments, and are the rank sums. Here, , , and the rank sums are , so . Plugging in: . The degrees of freedom equal . The critical value for with 2 df at is , and since , the treatment effect is significant — confirming B. Choice A gets the degrees of freedom right but reports a statistic of , which likely comes from an arithmetic error in computing . Choice C reports the correct statistic of but uses degrees of freedom instead of , leading to an incorrect non-significant conclusion. Choice D uses both the wrong statistic and wrong degrees of freedom. Study tip: Always remember the Friedman degrees of freedom are (treatments minus one), not and not . Confusing df with the number of blocks or forgetting to subtract 1 is the most common trap on this type of question.
- Which statement about the resulting test is most accurate? Answer: The test is exact under exchangeability implied by independence, because the permutations preserve the observed ties When you see a question about permutation tests and rank correlations, the key concept to anchor on is what makes a permutation test exact: the exchangeability of observations under the null hypothesis. Under independence, the joint distribution of satisfies exchangeability — meaning any permutation of the values across the fixed values is equally likely. This holds regardless of whether ties exist. When the researcher permutes the observed values (including their tied values), each permutation is equally probable under the null, so the resulting permutation distribution is exactly the correct null distribution. The observed Spearman statistic is compared against a distribution generated by the same data structure, ties included. This is precisely why D is correct: the test is exact under the exchangeability that independence guarantees, and the midrank-handling of ties is preserved consistently across every permutation. A contains a widespread misconception — ties don't invalidate a permutation test. Ties only cause problems for the asymptotic approximation (using the standard normal or -table), not for the permutation distribution itself, which is constructed empirically from the data. B is subtly wrong because exactness is a property of the procedure under the null hypothesis, not of the statistic equaling zero. A test being "exact when the statistic is zero" is incoherent — exactness refers to the Type I error rate, not the observed value. C incorrectly ties the validity of a nonparametric permutation test to a parametric distributional assumption. The permutation test requires no normality whatsoever. Study tip: On questions about nonparametric tests, always ask yourself: what does the null hypothesis guarantee? Exchangeability under independence is the engine that makes permutation tests exact — distributional assumptions are irrelevant.
- Which condition most directly justifies the usual exact null distribution for this test? Answer: The differences are independent and arise from a continuous distribution symmetric about zero When you see a question about the Wilcoxon signed-rank test's null distribution, you should immediately think about what mathematical properties make that specific distribution valid — not just what assumptions are "nice to have." The signed-rank test works by ranking the absolute differences and attaching the original signs. Under the null hypothesis, the exact null distribution is derived by assuming that every possible assignment of signs to the ranks is equally likely. This equal-likelihood property holds if and only if the differences are symmetric about zero: symmetry implies and that positive and negative differences of the same magnitude are equally probable. Additionally, independence ensures the joint distribution factors, and continuity eliminates ties (which would complicate the exact distribution). Together, these three properties — independence, continuity, and symmetry about zero — are precisely what B states, making it the direct justification. Choice A fails because median zero alone doesn't guarantee symmetry. A strongly asymmetric distribution can have median zero, but then positive and negative signs on equal-magnitude ranks won't be equally likely, invalidating the exact permutation argument. Choice C is a distractor that sounds like a classical paired-test assumption. Equal marginal variances are relevant for the paired *t*-test's validity, not for the signed-rank null distribution, which makes no variance assumptions. Choice D is wrong because normality of absolute differences is neither required nor sufficient. The signed-rank test is nonparametric precisely to avoid distributional shape assumptions like normality; unequal sign probabilities would directly violate symmetry. Your study tip: distinguish between assumptions needed for a test statistic's null distribution versus assumptions for its power or efficiency. Exam questions often conflate these — symmetry about zero is the load-bearing assumption for the signed-rank null distribution specifically.
- What is the Hodges–Lehmann estimate of the location shift? Answer: , obtained as the median of all six Walsh averages including the three self-pairs Whenever you see a question involving the Hodges–Lehmann estimator, remember its defining rule: compute all Walsh averages for every pair where , including the "self-pairs" where , then take the median of the full set. With observed differences , you form all six Walsh averages: - Self-pairs: , , - Cross-pairs: , , Sorting these six values: . The median of six values is the average of the 3rd and 4th: . So D is correct. Choice A is wrong because it discards the self-pairs, leaving only three cross-pair values whose median is — but the self-pairs are explicitly part of the estimator's definition. Choice B restricts computation to positive differences only, which has no basis in the procedure and ignores entirely. Choice C simply returns the sample median of the raw data (), which is a different estimator altogether — the Hodges–Lehmann estimator exists precisely because it has better robustness properties than the sample median. Your study tip: memorize that (not ) is the indexing convention. That single inequality is what forces you to include the self-pairs, giving you total Walsh averages — here .