ddubois
06-29-2005, 09:01 PM
Given a deck of size X, with Y red cards, and X-Y blue cards, if we were to pull cards off the top of the deck until we hit a blue card, what's the average number of cards we will pull? What's the probability that we will reveal Z red cards before we hit our first blue card?
I think the answer to the second question can be computed like:
Y/X * (Y-1)/(X-1) ... * (Y-Z)/(X-Z)
I assume this shortens to some simple factorial, maybe:
Y!/X! * (X-Z-1)!/(Y-Z-1)!
But the answer to the first question I don't have a clue how to do.
By the way, the typical scenario in practise for the game I'm playing would usually be around 30-45 cards in the deck, and somewhere between 4 and 10 blue cards.
PS: If you guessed this was Goblin Charbelcher math, you win the prize.
I think the answer to the second question can be computed like:
Y/X * (Y-1)/(X-1) ... * (Y-Z)/(X-Z)
I assume this shortens to some simple factorial, maybe:
Y!/X! * (X-Z-1)!/(Y-Z-1)!
But the answer to the first question I don't have a clue how to do.
By the way, the typical scenario in practise for the game I'm playing would usually be around 30-45 cards in the deck, and somewhere between 4 and 10 blue cards.
PS: If you guessed this was Goblin Charbelcher math, you win the prize.