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
.
This exercise is part of the course
Bayesian Data Analysis in Python
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Assign first 10 and 100 tosses to separate variables
tosses_first_10 = ____
tosses_first_100 = ____