Say I have the following situation. I have two weighted coins:
Coin 1: In the past I've seen this coin flipped 10 times, 8 of which it came up heads. So I can model the probability of $n$ heads out of $N$ coin tosses with a beta-binomial distribution with beta parameters (8, 2).
Coin 2: This one I've seen flipped 15 times, 4 of which came up heads. So again this could be a beta-binomial with beta parameters (4, 11).
Now say I $N$ times randomly choose from a bag of coins that contains 5 coins, 3/5 are of type 1 and 2/5 are of type 2. Each time I flip the coin and put it back. How do I model the probability of getting n heads out of $N$ tosses?
At first I naively though it would be $(3/5)P(n|\text{coin 1})+(2/5)P(n|\text{coin 2})$ but that would be if only one coin were chosen and flipped $N$ times, not if a new coin is chosen between each flip.
I guess what I need is to have a binomial model with a prior that takes into account the uncertainty of which coin is being flipped, some weighted combination of the two beta distributions. How does one go about this and is it computationally tractable?