Learning Objectives: Rank-Based Tests

2.3. Learning Objectives: Rank-Based Tests#

Here is what you should understand after this week

2.3.1. Concepts#

  • In statistical testing, a data sample is used to represent the population from which it is drawn

  • For small samples, outliers may render a sample unrepresentative

  • Replacing data with their ranks mitigates the effect of outliers on statistical tests

2.3.2. Python skills#

After this week you should be able to carry out, using scipy.stats:

  • Mann-Whitney or Wilcoxon Rank-Rum test (independent samples)

  • Wilcoxon sign-rank test (paired samples)

  • Spearman’s rank correlation including obtaining a \(p\)-value