The Horror Movie Shuffle

Lab 2E

Directions: Follow along with the slides and answer the questions in red font in your journal.

Playing with permutations

Initial thoughts…

Tally whoa … !

tally(gender ~ survival, data = slasher)
tally(survival ~ gender, data = slasher)

Examining differences

Do the shuffle!

tally(survival ~ gender, data = slasher)
tally(shuffle(survival) ~ gender, 
      data = slasher)

Let’s compare …

Detecting differences

Now what?

shuffles <- mutate(shuffles, 
            diff = ____ - ____)

Time to decide


On your own