To compare proportions in two independent groups, one can use, for example, Pearson's chi-squared test. However, if the data originate from matched pairs, we must use methods that account for the dependence within the pairs.