1. Learn
  2. /
  3. Courses
  4. /
  5. Foundations of Inference in R

Exercise

Two-sided critical region

For the discrimination data, the question at hand is whether or not women were promoted less often than men. However, there are often scenarios where the research question centers around a difference without directionality.

For example, you might be interested in whether the rate of promotion for men and women is different. In that case, a difference in proportions of -0.29 is just as "extreme" as a difference of positive 0.29.

If you had seen that women were promoted more often, what would the other side of the distribution of permuted differences look like? That is, what are the smallest (negative) values of the distribution of permuted differences?

Instructions

100 XP

Using the permuted differences, disc_perm, find the quantile values such that:

  • 1% of the permuted differences are below the value (0.01 quantile)
  • 5% of the permuted differences are below the value (0.05 quantile)
  • 10% of the permuted differences are below the value (0.1 quantile)