Exercise

Hey, is this coin fair?

In the last two exercises, you have examined the get_heads_prob() function to discover how the model estimates the probability of tossing heads and how it updates its estimate as more data comes in.

Now, let's get down to some serious stuff: would you like to play coin flipping against your friend? She is willing to play, as long as you use her special lucky coin. The tosses variable contains a list of 1000 results of tossing her coin. Will you play?

In this exercise, you will be doing some plotting with the seaborn package again, which has been imported for you as sns.

Instructions 1/4

undefined XP
    1
    2
    3
    4
  • Assign the first 10 and the first 100 tosses to the variables tosses_first_10 and tosses_first_100, respectively.