Assuming we are talking standard playing cards, you are looking for the probability of having drawn the second copy of whatever was subbed in; say, the second ace of spades that replaced the ace of hearts.
Isn’t @am77494 looking for just the probability the card will be black or red, given the tampered case?
If this is the case and we’re only interested in the probability based on the first card, this should be a lot simpler. In the unaltered case the probability of drawing a black card is 26/52 or 0.5. In the altered case, the probability of drawing a black card is 27/52 or 0.5192.
However, having drawn a black card, there’s no way to tell if the deck had been tampered with. Wasn’t that what you were after?
If you have 52 cards, 25 are red, 27 are black, nothing else identifying about them other than color, you won’t know that it’s been tampered with until you draw the 27th black card. So you’re really asking for the odds that the nth draw exposes the 27th black card, unless I’m missing something.
I don’t know how to set up the calculations, but my guess is that whatever they are, they would have to be run twice. Since you’re asking about probability, rather than a definitive answer, a comparison would have to be made to the deck that hasn’t been tampered. Drawing just a few cards wouldn’t prove the non-tampered deck is fair, and there would, presumably, be some probability higher than zero that it might be tampered, even though it would turn out at the end that it wasn’t.
What you are looking for is P(T|R,B), the probability that the deck has been tampered with, given that you have drawn R red cards and B black cards. And we’re only looking at tampering by swapping one red card for a black, yes?
In Bayes’ theorem, which is usually used for conditional probabilities, we need P(T), which we don’t have. I’m trying to think of a way to find this probability using a simulation, but I’m having a hard time coming up with one.
I know you said it’s a topic for a different post, but this experiment, without replacement, would not be relevant to any natural phenomenon, except one with a finite set of predetermined outcomes you were drawing from without replacement.
We may not be able to tell which red card was removed until the end, but the black card now has a dup in the tampered deck. If you find that dup (e.g. see two ace of spades), then you know the deck was tampered with. Theoretically that could happen with the first two cards you flip over.
This is, indirectly, the right answer. (I mean indirectly in that he wasn’t literally asking for the odds that the nth draw exposes the 27th black card.)
Think about it this way, OP. Say you draw 25 red cards and 26 black. This has a probability of 50% if the deck is fair. If the deck has been tampered with the probability is 26%. Neither of those are small enough to give you statistical power to make a valid guess as to whether the deck is fair or not. You’d have to repeat the process over and over with the same deck and look at the distributions over time, but if you could do that you could also just draw one more card.
And if you try to make a determination after having drawn fewer cards, it’s even worse.
@naita - not disagreeing with you. Digressing here, But say I have 30 cards in a deck, each card represents a year, a black card represents a warm year and a red card represents a cold year.
30 years, or 30 cards, represents climate.
For example sakes, a non global warmed deck will have equal black and red cards (not strictly true but lets assume) and a global warmed deck will have 16 blacks and 14 reds.
The contention was that as each card is drawn (a year passes), you cannot tell by this data alone, if the deck is global warming deck or not. Not trying to deny global warming (please). And I completely understand the other data supporting global warming.
Yeah, it seems as both the deck question and the climate analogy work better with replacement than with discarding.
Have a deck of 50 cards, 25 red, 25 black. You always have a 50% chance of drawing one or the other.
If you replace one, so you have 24 red, 26 black, you have a 48/52% chance respectively. At that point, a valid question can be asked as to how many cards do you need to draw to start seeing statistical significance that indicates a high probability of unequal decks.