Coin #1 comes up heads 75% of the time, and coin #2 only comes up heads 25% of the time. We grab one coin at random, flip it 10 times, and get 6 Heads. What’s the probability that the coin we grabbed is coin #1?
: possible model (I have the 75% coin)
: data (6 Heads out of 10 flips)
: prior weight on model (how likely I think it is I got the 75% coin)
: likelihood of data under (chance of getting 6 H with 10 flips with the 75% coin)
: posterior weight on (combined probability of getting 75% coin and then getting 6 H out of 10 flips)
: total sum of posterior weights (the sum of the last thing over all possible coins)
: (chance of getting 75% coin)
: (chance of getting 6 H with 10 flips with the 75% coin)
: posterior weight on (combined probability of getting 75% coin and then getting 6 H out of 10 flips)
: (same thing but with the other coin)
: total sum of posterior weights (the sum of posterior weights over all possible coins)