1. Learn
  2. /
  3. Courses
  4. /
  5. Hypothesis Testing in R

Connected

Exercise

Generating & calculating

The infer pipeline for hypothesis testing requires four steps to calculate the null distribution: specify, hypothesize, generate, and calculate.

Let's continue the pipeline you began in the previous coding exercise. We'll get a set of differences in proportions that are distributed as though the null hypothesis, that the proportion of late shipments is the same across freight cost groups, is true.

late_shipments is available; dplyr, infer, and ggplot2 are loaded.

Instructions 1/3

undefined XP
    1
    2
    3
  • Extend the infer pipeline to generate two thousand permutation replicates. (Note this will take a few seconds to complete.)