I do not now how to count the number of possibilities. Perhaps you can help.
I have 12 sided dice. The sides are colored. 4 yellow 3 blue 2 green 1 red 1 black 1 white
If I roll 2 dice there are 16 possible combinations of two yellow sides showing out of a possible 144 combinations.
If I add dice, how do I count the number of possible yy combinations?
To complicate matters, the black dice are sometimes wild. When they are, then I want to count the number of yellow and black.
If I have two dice, then I want to count the possible combinations of yy, yb, by, and bb. I can make a simple table and observe the number of instances. In this case, there are 25 possible combinations out of 144 possibilities.
When I have more than 2 dice how many yy combinations are possible given x dice? And if I add the black dice how many yy, by, yb, bb combinations are possible given x dice?
Is there a formula that I can use to count the various combinations? Tables become impractical when there are more than 2 dice. I am unable to find formulas that help in counting the number of specific combinations our of the total number of combinations. In most examples, the identification of subset# out of total# seems to be done manually.
In the cases you've described, you just multiply the possibilities. Just as you got $16=4\cdot4$ YY combinations, with $3$ dice you would have $64=4\cdot4\cdot4$ YYY combinations. Similarly with four dice, there would be $4^4$ ways of getting all yellow.
For different colors of dice, you again multiply the possibilities. For blue and yellow, three are $3\cdot4$ possibilities, and for yellow and blue there are $4\cdot3$ possibilities. Usually, we would only do one multiplication and double the result.
When you have many dice, it would be very arduous to list all the possibilities. There's a short cut using binomial coefficients, which I gather you are unfamiliar with. There's a ton of stuff about it on the web.