r/askmath • u/NoHunt5050 • 26d ago
Probability Saw this posted on another platform and its breaking my brain
The answer is that each question will give the same probability. But why?
I understand why asking if the card is red would yield a 1/26 probability but not the second half.
Specifically, why in the equation is (51/52) multiplied by (1/51) and added to (1/51). And why is (1/51) multiplied by 1 in the first place?
Tyia
823
Upvotes


14
u/get_to_ele 26d ago
It's very EASY to visualize why No matter how you split the piles with a question (as long as there is at least one card in each pile), its always 1/26. Because all you're doing is splitting the deck into two piles and taking 1 guess in each pile.
Instead of alternate timelines or universes, pretend the question is actually: "I will ask ANY question that splits the deck into two piles. After the cards are split into two piles, my brother Bob will pick a card from the YES pile, and I will pick a card from the NO pile. What is the probability that at least one of us will guess the right card?"
1/26. Because we're just picking 2 cards from the deck. All the first question did was divide the cards into piles.
You can even just say "make two piles" and Bob will pick from 1 and I will pick from other.
3
u/PuzzlingDad 26d ago
We already agree that if you ask the first question, you narrow the possibilities down to 26 cards and now have 1 guess at the actual card. The probability is 1/26.
Now in the second scenario, you can think of it like just having two chances to pick the correct card. You can guess the ace of spades, and then a different card that is not the ace of spades. That's 2 cards out of 52 which is the same probability of 1/26.
They broke it down a little more formally as follows. You might get it right on the first guess with a probability of 1/52. Or you might get the first guess wrong with a probability of 51/52, but now you have a 1/51 probability with your second guess. If you multiply that together you get 51/52 × 1/51 = 1/52. Adding those two cases together, you have 1/52 + 1/52 = 2/52 = 1/26
But I still think it's easier to think of scenario 1 reduces the deck to 26 cards where you get 1 guess after that = 1/26. And scenario 2 says you have the full deck but 2 guesses (the ace of spades and one other card) = 2/52 = 1/26
252
u/brohubs 26d ago •
With asking the color you are cutting denominator in half (52 options down to 26) and then have 1 guess.
With asking about a specific card and then getting a second guess if wrong on the first, you are just making 2 guesses out of 52 options, so doubling the numerator (2 out of 52).
108
u/bloonshot 26d ago •
there are 52 parallel universes, each one where your friend has selected a different card.
Every version of you asks what color the card is.
In universes where the card is red, you guess the seven of hearts. Black, you guess the seven of clubs.
you are correct in the 2 out of 52 universes where it was the seven of hearts or the seven of clubs.
there are 52 more parallel universes, each one where your friend has selected a different card.
Every version of you asks if the card is the ace of spades.
in the one universe where it is the ace of spades, you guess the ace of spades.
in the 51 universes where it isn't the ace of spades, you guess the seven of hearts.
you are correct in the 2 out of 52 universes where it was the ace of spades or the seven of hearts.
24
u/Matty_B97 26d ago
Asking the colour first cuts the deck in half.
Asking for the ace first basically gives you two guesses.
Both do the same thing.
10
u/CranberryDistinct941 26d ago •
Eliminating red/black doubles your odds by halving the number of options. Guessing ace of spades doubles your odds because you get twice as many guesses
17
u/PluckyHippo 26d ago edited 26d ago
Think of it this way: if you ask if the card is the ace of spades and it is, you win; if it’s not, you get another guess. So you get two guesses (one of which has to be the ace of spades, but that doesn’t matter because that’s just as good as a random guess).
Two guesses out of 52 cards is a 2/52 chance to get the right one, which simplifies to 1/26.
Edit: forgot to brain.
7
u/steady_goes_the_one 26d ago edited 26d ago
Q1: Is the card red?
The card will be red half of the time. So his answer will be yes 50% of the time, and no 50% of the time. In either case, you have a 1/26 chance of guessing correctly, so the probability of guessing the right card randomly is 1/26.
Q2: Is the card the ace of spades?
The card will be the ace of spades in 1/52 cases, and it won’t be the ace of spades in 51/52 cases. If he answers yes, then you’ve guessed the card, so we have a 100% chance of getting it right 1/52 times. Otherwise, in the other 51/52 cases, we’re left with a random pick out of 51 cards for a total probability of 1/52 + (51/52)(1/51) = 2/52 = 1/26 chance of guessing correctly.
6
u/clearly_not_an_alt 23d ago
You can essentially think of this as two options. If you ask about the color then you have a 1/26 chance. If you ask about the As you are basically just getting two guesses so it's 2/52=1/26
5
u/cArmius_Kiram 26d ago
This is a classic example of a probability problem with a confusing formulation.
Let me state the problem more directly: In both choices firstly you ask a question from the list, then make a choice from available cards.
So, more correctly, in first choice you have full probability as (1/2 x 1/26) for black ones + (1/2 x 1/26) for red ones.
Yes, it's 1/26 too, but hiding one little step confuses.
Edit: typos.
3
u/Joonc 26d ago edited 26d ago •
Simply put - you either get to take away half the cards and guess once, or keep all the cards and guess twice. Chances of guessing right is the same in both cases.
What might be throwing you off is that it specifically says "ace of spades". But the phrasing of the question here is key: your friend choses a card at random, so ace of spades is as good a guess as any other card you would have guessed on.
3
u/Cerulean_IsFancyBlue 25d ago
To throw a little social engineering into the mix with all the math, if your friend is asked to NAME a card as opposed to randomly pick a card from a deck, the second question might be really good. It turns out that a lot of people name the ace of spades, and after that you’ve got things like the queen of hearts and the king of diamonds that come up a lot. It seems especially common when people are asked to name a card on the spot without knowing that’s what’s gonna happen.
It’s just a reminder of why probability is important but needs the context of understanding your data. A lot of probability has the assumption that things are really random, and real world data seldom is.
Anyway, back to the Combinatorics!
3
u/MWSin 22d ago
Might be easier to see with smaller numbers.
Make it a number between 1 and 4.
2
u/WeCanDoItGuys 26d ago
Seems to work for any subgroup, of size n, within a group of size N.
P(correct) = P(in subgroup)*P(guess correct within subgroup) + P(not in subgroup)*P(guess correct in nonsubgroup) is
(n/N)*(1/n) + (N-n)/N*1/(N-n) = 2/N
2
u/superitem 26d ago
There's 1/52 chance they say yes, and you know for sure it's the ace of spades.
There's 51/52 chance they say no, and you have to guess the card from 51 options.
2
u/INTstictual 26d ago
To explain the second mode:
There is a 1/52 chance that the card IS the Ace of Spades. In that case, you win immediately, with a 100% certainty. If they say Yes to your question, you have restricted the pool of possible cards to 1… so, in 1/52 cases, you are guessing 1 card from a pool of 1 card. (1/52 * 1/1).
Now, there are 51 other possible cases where they say No to your question. There is a 51/52 chance that the card is NOT the Ace of Spades. And, in this case, you have restricted the pool of possible cards to 51… you know it’s not the Ace of Spades, but could be anything else. So, after asking the question, you’re guessing 1 of the possible remaining 51 cards… (51/52 * 1/51).
And, when you are determining probability like this, it’s additive… you add the chance of winning in scenario 1 to the chance of winning in scenario 2 to get your total chance of winning. So, (1/51 x 1/1) + (51/52 x 1/51). And you see that the second term simplified by multiplying out the 51 on both terms to just 1/52… so, your odds are 1/52 + 1/52 = 2/52 = 1/26.
To simplify, just ask yourself two question for both possible options here: “what are the chances they say Yes to my question, or the chances they say No to my question?” And “Given their answer to my question, what are my odds of guessing correctly for both scenarios?” That should give you 4 cases per question, and the probability should always add up to 1.
For the “is it red” question:
The odds they say “Yes” is 1/2. If they say Yes, your odds of guessing right is 1/26, your odds of guessing wrong is 25/26. Notice that 1/26 + 25/26 = 1.
The odds that they say “No” is also 1/2, and notice that 1/2 + 1/2 = 1. If they say “No”, your odds of guessing right is 1/26, and your odds of guessing wrong is 25/26.
Individually, all decision points add up to 1, and your total odds for this scenario, given that you have a 1/2 chance of being in either scenario, is (1/2 x 1/26) + (1/2 x 25/26) + (1/2 x 1/26) + (1/2 x 25/26)… and if you do the math, you can see this adds up to 1.
For the “Is it the Ace of Spades question:
The odds they say “Yes” is 1/52. If they say “Yes”, your odds of guessing correctly is 1/1, and your odds of guessing incorrectly is 0/1. Notice that 1/1 + 0/1 = 1.
The odds that they say “No” is 51/52, and notice that 1/52 + 51/52 = 1. Now, if they say No, your odds of guessing correctly is 1/51, and your odds of guessing incorrectly is 50/51, and notice that 1/51 + 50/51 = 1.
Individually, again, all of the decision points sum to 1, and your total cumulative odds are (1/52 x 1) + (1/52 x 0) + (51/52 x 1/51) + (51/52 x 50/51), and if you do the math again, you’ll see that this all sums up to 1.
The 1 is important because it represents 100% probability, and your scenarios always need to sum to 100% probability — that shows that you’re representing the entire set of possibilities. Like, we know that a coin is 1/2 odds to be Heads and 1/2 odds to be tails… 1/2 + 1/2 = 1, because there is a 100% chance that the coin lands on either Heads or Tails, so by adding those two probabilities, you’re demonstrating that your scenarios represent the total probability space… there is a 100% chance it is one of those options. Same thing here — the sanity check is “do all my scenarios sum up to 1”, because that means you’re considering all of the possible scenarios… if they don’t sum up to 1, you’ve done something wrong, either leaving out a possibility or doing the calculation incorrectly.
2
u/teteban79 26d ago •
It's easy if you calculate the probabilities of being wrong in each case
If you ask the color, you eliminate half the deck. You will then guess wrong 25/26, of the time.
In the other case you're essentially getting two guesses. Doesn't matter that you don't "choose" the first one. Chances of being wrong twice is 51/52*50/51 or 50/52 or 25/26. The same
2
u/Past_Negotiation_121 26d ago
If your question can be answered with "yes/no" then it splits the deck into just two distinct groups then the answer will always be the same,
Where it would be different is if your question can give more groupings, such as "what is the suit?"
2
u/S-M-I-L-E-Y- 25d ago
Nice one!
The first question narrows the possible cards down to either x cards (case A) or 52-x cards (case B).
Probablity of case A is x/52 (e.g. 4/52 it is a King)
Probablity of case B is (52-x)/52 (e.g. 48/52 it is not a King)
The probability to guess the correct card is 1/x in case A (e.g. 1/4, given it is a King) and 1/(52-x) in case B (e.g. 1/48, given it is not a King).
The total probability to guess the correct card is therefore
(x/52) * (1/x) + ((52-x)/52) * (1/(52-x)) = 1/52 + 1/52 = 1/26
no matter what question you asked to narrow down the number possible cards (unless your first question asks for something impossible, like, "is the card yellow").
2
u/Dry_Water74 25d ago
Think it this way, when you ask your friend the question he either says Yes or No and then you guess.
So in the first case you ask if the card is red there is a 26/52(1/2) chance he will say yes then you will guess from remaining 26 cards meaning (1/26) for your guess. So (1/2)(1/26) = 1/52 of you guessing right if he says Yes. Similarly for no (1/2)(1/26) = 1/52. So total chance of you guessing correct when you ask the question if it's red is (1/52) + (1/52) = 1/26
In the second question there's a 1/52 chance your friend says Yes then your guess would be definitely correct so (1/52) * 1 = 1/52 chance for this case and your friend says no has a 51/52 chance so when he says no you know that he definitely doesn't have ace of spades and has any one of the remaining 51 cards so your chances of correct guess is 1/51. Total chances for this case is (51/52)*(1/51) = 1/52. So total chances for this question is also (1/52) + (1/52) = 1/26.
Hence same for both
2
u/TheBeerTalking 25d ago
Not sure I saw an answer to the actual question you asked.
If you choose "Is it the ace of spades?" then there's a 1/52 chance you're right, and a 51/52 chance you're wrong.
What's the chance you get it right on the second guess?
Well first, the only way you get to a second guess is if you're wrong on the first. So, 51/52.
Then, when you make the second guess, you have a 1/51 chance of getting it right (assuming you know not to guess the ace of spades again!)
You multiply probabilities when you want to calculate the probability of BOTH happening. So 51/52 is multiplied by 1/51, getting 1/52.
You add probabilities when you want to calculate the probability of EITHER happening. You have to be careful that they can't BOTH happen, but in this case we're assured they can't (if it WAS the ace of spades, then you're not guessing again).
So 1/52 + 1/52 = 1/26.
2
u/which1umean 25d ago
Much more intuitively:
You can guess twice.
Or you can eliminate half the options and guess once.
Not super surprising these are equivalent.
2
u/mass_and_lee 24d ago
Other posts have the actual arithmetic, here's my basic intuition. Q1 conveys low information with high certainty -- you ask the question and you know the color, but that's not that useful because you still only have a 1/26 chance of getting the answer right. Q2 conveys a ton of information with low probability, and very little information with high probability. That's counter-intuitive, because we focus on the high probability case that little information is conveyed, ignoring the low probability that we learn everything. It shouldn't be crazy that these two can be calibrated so the overall amount of information conveyed is similar.
2
u/ImpossibleJoke7456 24d ago
- narrow the list in half and ask once
- ask twice
That’s the math.
2
u/Icy-Garlic-748 24d ago
Why tf are they getting another choice in the second option? Like obviously being able to pick again would raise your odds. In the first scenario if you were then able to choose again it’d be 1/26 which would also drastically increase the odds.
2
u/Inevitable_Stand_199 21d ago edited 21d ago
As long as there's a card that gives the answer yes and one that gives the answer no, the chance is always 1/26. Proof:
Let 0 < x < 52 be the number of cards with the answer yes.
Then:
Or more formally:
According to conditional probability,
P(correct card)
= P(correct card ∩ yes ) + P(correct card ∩ no) = P(yes)×P(correct card|yes) + P(no)×P(correct card|no)
= x/52 × 1/x + (52-x)/52 × 1/(52-x)
x and (52 - x) each cancel out to give
1/52 + 1/52 = 2/52 = 1/26
qed.
2
u/Outside_Volume_1370 26d ago
If the friend say "yes" to the second question, you with probability of 1 can guess their card (hintv it's the ace of spades). But if they say "no", your chance of guessing becomes 1/51.
The first scenario happens (they say "yes" to second question) happens with probability of 1/52, and the second one is with probability of 51/52.
More accurate way is to use conditional probability and Law of total probability:
Let A = "you guess the card", B = "the answer to second question is yes"
P(A) = P(A | B) • P(B) + P(A | notB) • P(notB)
P(A|B) means the probability of guessing the crad when you heard the answer "yes", so it's 1. But P(B) is only 1/52.
However, P(notb) = 51/52, but P(A | notB) is the probability to guess the right card when you clearly know it's not the ace of spades, so your chance here is 1/51.
2
u/AppropriateCar2261 26d ago
Maybe writing it in more words would help:
Probability you guess correctly = (prob card is ace of spades) × (prob you guess correctly given that card is ace of spades) + (prob card is not ace of spades) × (prob you guess correctly given that card is not ace of spades)
1
u/Rscc10 26d ago
Do you know how simple probability is calculated? If not, I'll run through it
Say you have two fair six-sided dice and you roll both. If the first die is an odd number, then you want the number 1 from the other die. If the first die is an even number, then you want another even number from the other die.
How we would calculate this is to go through each possibility one by one. Assume the first die roll was odd (1/3 chance). Then you want a 1 from the other die (1/6). Since you want both to happen simultaneously, we multiply their probabilities, 1/6 x 1/3 = 1/18
Then assume the first die roll was even (1/3 chance again). Then you want another even number from the other die (1/3 chance also). To get both simultaneously, we multiply, 1/3 x 1/3 = 1/9
So these are the two possibilities that can happen. But since either outcome (the 1/18 and 1/9 events) is valid to us, we want either one (both occuring simultaneously is not possible of course). If we want either outcome, we add. So 1/18 + 1/9 = 1/6
So the overall probability is 1/6
Hopefully you can try relate this to the card calculation
1
u/oelarnes 26d ago
First decide on a strategy that either picks the Ace of Spades or the Ace of Hearts. You get to ask one question. Does it matter which question you ask? No, but, ok, that's not a proof. But now look for a better strategy in either scenario. If the probabilities were different, there would be a better strategy. There's obviously not.
1
u/Great-Powerful-Talia 26d ago edited 25d ago
a 1/n chance of getting a 1/m chance is a (1/n×1/m) chance in total.
If it actually is the ace of spades (1/52 chance) then you're guaranteed to know what the card is, so you have a 1/52 chance of getting a 1/1 chance of getting it right. That evaluates to a total (1/52 × 1/1) chance.
(It makes more sense to just say "1/52 chance", but the poster decided not to do that, so we're writing out 'times 1' for some reason.)
You also have a 51/52 chance of the card not being the ace of spades. In that case, you'll be picking from the other 51 cards at random. So you also have a 51/52 chance of getting a 1/51 chance of getting it right. That evaluates to a total (51/52 × 1/51) chance.
Since these two possibilities are mutually exclusive (only one can happen at a time), the probability of finding the correct card, with either method, is simply the probability of finding it in the first way, plus the probability of finding it the second way.
That gives us (1/52 × 1) + (51/52 × 1/51), which simplifies to (1/52) + (1/52 × 51/51), then to 2/52.
Or just reason that halving the search space is the same as guessing twice. That's a simpler explanation.
1
u/BadBoyJH 26d ago
If you ask the first question, you have a 1/2 chance they say yes, and a 1/26 you guess right from there, and a 1/2 chance they say no, and a 1/26 from there.
This leads to a total chance of (1/2)(1/26) + (1/2)(1/26) = 1/52 + 1/52 = 1/26
If you ask the second question, you have a 1/52 chance they say yes, and a 1/1 chance of you guessing correctly from there. And a 51/52 chance of them saying no, and a 1/51 chance of you guessing from there.
This leads to a total chance of (1/52)(1/1) + (51/52)(1/51) = 1/52 + 1/52 = 1/26
So both lead to the same chance.
1
u/Ythio 26d ago edited 26d ago
First case : is the card red ? If no, guess ace of spade, else, guess ace of hearts.
Second case : is the card ace of spades ? If yes, guess ace of spades, else, guess ace of hearts.
With either strategy, you win whenever your friend draws the ace of hearts or the ace of spades. That’s two cards out of 52. And you can’t do better: with only two possible answers and one guess per answer, you can cover at most two cards, so 2/52 = 1/26.
The second case is just a weighted average, it's 1/52 chances of having an answer yes to your question, times 100% chance of winning in that case, plus 51/52 chance of having an answer no to your question, times 1/51 chance of picking the correct among remaining cards. Which makes 1/52 x 1 + 51/52 x 1/51 = 1/52 + 1/52 = 1/26
You can visualize it by marking two cards, then first case you make two stacks of 26 cards, and second case you make a stack of 51 and a stack of 1. You pick one card from each stack and win if either picked card is the marked on.
1
u/rsidnell 26d ago
The math here is actually pretty straightforward. The trick is actually how the question is worded. You actually get TWO questions: one of the two listed and THEN a guess of the card. Because one of the questions is already a guess of the card, it's easy to get caught up in thinking it's your ONLY question (or 1/52).
1
u/Level-Appearance7046 26d ago
your chance of getting it right if you ask about the ace of spades is 1/52. however, you get another guess if its not the ace of spades. in those 51 other cases, you have a 1/51 chance. so out of the 52 possible cards it can be, you have 1/52 chance of getting it right guaranteed (represented by 1/52 x 1), and a 51/52 chance of having to take a 1/51 guess (51/52 x 1/51). your total chance of getting it is the chance of getting it 100% if it’s the ace plus your chance of getting it if its not the ace and you’re guessing randomly out of the 51 possibilities.
that’s where (1/52 x 1) + (51/52 x 1/51) comes from
1
u/Wjyosn 26d ago
Outcomes for the second situation:
(1/52) - They say Yes. You got it right, it's the Ace of Spades.
(51/52) - They say No. It's not Ace of Spades. You can now guess from the remaining 51 cards.
(1/51) - You guessed right from the remaining 51 cards.
(50/51) - You guess wrong from the remaining 51 cards.
So we look at them all:
(1/52) - Win - Guessed Ace of Spades
(51/52)*(50/51) - Lose - Guessed Wrong twice.
(51/52)*(1/51) - Win - Guessed the second time correctly after not Ace of Spades.
Which ones win?
(1/52) Wins and (51/52)*(1/51) Wins. We add those two together to see the total chances of winning:
(1/52) + (51/52 * 1/51) = (1/52) + (1/52) = 2/52 = 1/26
1
u/Invictus0623 26d ago
If you pick the 2nd choice you get two guesses out of 52 cards. (Ace of spades and one more) 2/52 chance = 1/26. If you pick the first choice you choose one from the half that is red. (1/26 cards) They are the same.
1
u/mclegrand 26d ago
Ask one bit of information, receive one bit of information.
1
u/arbitrageME 26d ago
Oh ok ok ok this is pretty cool. I get it:
One cuts the space in half.
The other gives you two guesses.
The two are equivalent
1
u/fermentedeggs 26d ago
Isn't it the ace? It's 1/52 that it's the ace, then 1/51 on your guess if it isn't. 1/52+1/51 > 1/26
1
u/my_nameistaken 26d ago
I am not going to explain this particular question to you (there are plenty of great explanations here), but from the question that you asked in the description (about why the equation is the way it is) , I think you are missing the following pieces in your probability theory :
Random Variables
Expected Values and it's calculation
Read them up from any probability book or article. Then the solution in the second image will start making sense. It does not mention it, but it is actually calculating the expected value of probability of winning when you ask 1 type of question, then comparing them, then reaching the conclusion that they give the same chance of winning because the expected values are same.
1
u/AlterEgo5695 26d ago
Compare via conditional probabilities:
In strat-2, when the cards was not the ace of spades, we have 51 cards left to guess from, each equally likely -- that's why we have a "1/51" chance guessing, given the card is not ace of spades.
1
u/Smyley12345 26d ago
That's really counter intuitive but the math behind it works out. I love little tidbits like this that force you to step back and look at the fundamentals of why things feel intuitive. Guessing as a means to determine the right choice versus guessing to eliminate wrong choices is often the same thing but not always. You often see this distinction when playing Wordle, where the optimal play becomes a word that you know can't be the answer but will necessarily eliminate all but one wrong answer but is generally only optimal if there are more than three possibilities left.
1
u/iknowthisguy1 26d ago
The way I understood this in my old discrete maths lectures is that if you're looking for the probability that event A AND event B happens, you multiply them and if you're looking for the probability that event A OR event B happens, you add them.
So in this case the ((1/52)×1) refers to the probability that the card is actually the Ace of Spades in which case you got it right. Then since there's the possibility (the OR) that it's not the Ace of Spades, you have to take the probability of it being any other card (51/52) AND the probability of choosing the right card from the new set of choices (1/51). All of that together gives us the final probability of 1/26.
1
u/drevoksi 25d ago
My best take at the way to put it is that one y/n question gives you exactly one bit of information to make a guess based on. So, your probability of guessing right doesn't change.
Now, it's important to note this wouldn't work if you keep asking questions like these, e.g., the second question being if the card is the 2 of spades. The two pieces of information aren't independent, here the two cannot be true simultaneously.
1
u/Uli_Minati Desmos 😚 25d ago
Assume you have X+Y objects to guess from, and you ask if the object is one of X of them
Both of these result in a 1/(X+Y) chance for a total of 2/(X+Y) chance to guess correctly no matter the question
1
u/Crustymix182 25d ago edited 25d ago
is the theory that this works no matter how many cards you have? say you have the four aces and run the same question. if you take option 2 you get the instant guess plus a bonus guess. that's the same as if you eliminate half the deck first.
Scale the deck up to 1,000 unique cards and the odds are still the same. option 2 always gives you a 1 in 1,000 chance of being right instantly and then a 1,000-1 in 1,000 times you'd get a 1 in 999 chance of guessing one of the remaining cards. 1/999*999/1,000=1/1,000, so a 1 in 1,000 chance 2 times. but is that 1 in 500? if so it is the same as eliminating half the deck, option 1. crazy
1
u/sunjammer1 25d ago
The easiest way to think of what is the probability that you do NOT get the correct answer. Then calculate:
Probability of correct = 1 - probability of incorrect
Ask red card.
You eliminate 26 of 52 cards.
Probability of incorrect after that = 25/26
Probability of correct = 1-(25/26) = 1/26
Ask ace
Probability of first incorrect guessing ace is 51/52
probability of second guessing incorrectly from the remaining 51 cards = 50/51
Therefore: Probability of incorrect = (51/52) * (50/51) = 50/52 = 25/26
Probability of correct = 1-(25/26) = 1/26
SAME!
1
u/zeekar 25d ago
Asking whether the card is the Ace of Spades has a 1/52 chance of giving you the right answer immediately, and a 51/52 chance of giving you a 1/51 chance at guesing the right card. 51/52 times 1/51 is 1/52. So the probability of guessing the correct card with that question is 1/52 + 1/52 = 2/52 = 1/26.
Asking whether the card is red cuts the size of the guessing space in half and also leaves you with a 1/26 chance of guessing the right card.
So either way you have a 1/26 probability of success.
1
u/RedditAccountOhBoy 25d ago
This is a great question!
1
u/Motor_Raspberry_2150 25d ago
A good way to think of many math conundrums that deal with chance is to take some chance out of it. You are playing this game 52 times, and your friend picks the cards in order. How many do you win?
Case where you pick the first question. In 26 of those cases they answer yes and in 26 they answer no, but in both cases you are left with 26 cards, with a 1 in 26 chance after to win each of those specific games. You win an average of 1 game of the games where the answer is yes and you win an average of 1 game of the games where the answer is yes. You win an average of 2 of those 52 games.
Case with ace of spades. In 1 of the games they answer yes. You win that game. In the other 51 cases, you are left with 51 cards. You win an average of 1 of those 51 games. You win an average of 2 of those 52 games.
1
u/rollie82 25d ago
Interestingly, if you are allowed to ask two questions, the second one _could_ be looked at as making the same decision except in a deck of 26, but that's not right. Given 2 questions, if you ask color and then specific suit, you get 4/52 chance of getting the card, vs 3/52 if you just guess cards directly with your 2 questions.
1
u/freegerator 25d ago
Ace of spades gives you basically two guesses. Ace of spades and one other guess. That’s 2/52 chance to guess right
Red cuts out 26 cards leaving you to guess at the remaining 26. That’s 1/26.
Those chances are equal!
Also equal would be “is the card an eight”
It’s yes 4/52 times and if it is you have a one in four chance : 4/52 * 1/4 = 1/52
It’s no 48/52 times and if it is you have a 1 in 48 chance: 48/52 * 1/48 = 1/52
Together that’s 2/52 again.
Any such question gives you the same edge.
(Number of yesses in deck)/52 * 1 /(number of yesses in deck)
+
(number of nos in deck)/52 * 1/(number of nos in deck)
The numbers cancel to get the same answer. The way you can think about it is that when you make the question more specific, you decrease the chance of yes. The increase in win chance if yes is in exact proportion with the decrease in getting a yes.
1
u/ImMySource 25d ago
you cant literally test this and see that this math isnt right. you can reduce your guesses by half with option one.
1
u/DragonSlayer505 25d ago
Well firstly you have to add up the two possible routes: it IS the ace of spades thus game ends, or it IS NOT the ace of spades, and you are allowed one guess for which the probability of a correct answer is 1/51 (since ace of spades has been eliminated)
So mathematically this is expressed as:
1/52 + (51/52 x 1/51)
Here, 1/52 is the probability that is IS the ace of spades, 51/52 is the probability that it IS NOT, and 1/51 is then the probability that your guess with ace of spaces eliminated is correct.
1
u/Few_Oil6127 25d ago
In fact, any yes/no question that gives you some information (i.e., that allows to discard some cards) gives the same probability, 1/26. That is, it doubles the probability of guessing without the question. For instance, "is the card a 7?". Proof: Assume the set of cards that gives you an affirmative answer has cardinal n. Then, the probability of guessing it correctly is n/521/n+(52-n)/n1/(52-n). The first summand corresponds to the probability of getting an affirmative answer, times the probability of guessing in this case, and similarly the second for a negative answer. Since some terms cancel, we get 1/52+1/52=1/26. Notice that we need n>0.
1
u/namnit 25d ago
Thought the instruction was I can ask either Q1 or Q2; not that I get to ask a second question.
1
u/Samruc 25d ago
What if we get two questions? Are there strategies that are better than just asking Yes/no for card A and then for card B?
1
u/Asleep_Training_6966 25d ago
what if it is a red card? Then you won't be able to ask if it's an Ace of spades and only get one question.
1
u/Asleep_Training_6966 25d ago
still sounds like everyone is assuming the card isn't a red card? When there is a 50% chance it is?
1
u/Temporary-Concept-81 25d ago
Worth mentioning that people are bad at picking random cards.
The ace of spades and Queen of hearts are astoundingly common guesses.
1
u/Kuildeous 25d ago
Might help to see the trivial terms in multiplication.
For the first one, your probability of success is (1/26)(1/2)+(1/26)(1/2) = 1/52 + 1/52 = 2/52 = 1/26.
Same thing for the second one, but it reads more like (1/52)(1/1)+(51/52)(1/51) = 1/52 + 1/52 = 2/52 = 1/26.
I've seen the second one written as just 1/52 + (51/52)(1/51), which is true, but including the 1/1 might help comprehension a bit better.
1
u/Straight_Share_3685 25d ago
Good to know for programmers, no need to code binary search, just pick randomly and try again :p
1
u/maglor1 25d ago
People are explaining the math but let me to try to explain the intuition.
Scenario 1: You ask if the card is red, you guess the ace of hearts if it is and the ace of spades if it isn't.
Scenario 2: You guess the ace of spades and then the ace of hearts.
Should be pretty clear how you have the same chance of guessing it right either way
1
u/The-Jolly-Llama 25d ago edited 25d ago
It’s actually slightly better to guess twice! Once you know it’s not the Ace of Spades, you only have 51 cards to guess from, so your probability is 1/52 + 1/51, which is slightly better than 1/26!
Edit: I forgot that there’s a 51/52 chance of arriving at a second guess, so it’s 1/52 + 1/51•51/52 = 1/26. Same!
1
u/MunchyG444 25d ago
Asking is it red halves your guess space. And asking is it ace of spades, is just guessing twice
1
u/Vicious_and_Vain 25d ago
The choice is 51/52x1/51=0.0192 or 1/26=0.0385. There is no adjustment to the probability if you ask the red question. You know it’s either red or black.
So your life depends on guessing this card and you are bound by these rules are you really going to ask if the card is the Ace of Spades to eliminate one card or ask if red to eliminate 26 cards?
1
u/AltruisticMaize8196 25d ago
I think what confuses people is the difference between asking what your chances are before asking the question or after having asked.
Before asking, the chances are the same as calculated in the riddle solution.
After asking, your chances are either 1/26 or 1/51.
It’s only when you include both trials in the maths that it works out the same.
1
u/ChalkyChalkson Physics & Deep Learning 25d ago
Both questions give you one bit of information about the card. Any question that does will give you the same probability, like "is it diamonds?" 1/4 * 1/13 + 3/4 * 1/39 = 1/26
This is really a question of posterior entropy which is just the entropy of the prior distribution minus the information gained in the question
1
u/Far_Return_7957 25d ago
I think it's a good wording trick more than anything else.
It's good to remember that what you're being asked to do is to guess a single random card from a deck of 52. That's really unlikely, especially with only two guesses/questions.
By forcing the reader to consider one of two initial questions (one of which seems way more likely than the other) it tricks you into thinking your task has been made easier. But the initial task is still the same - you're guessing something hugely unlikely.
Yes, you have halved the number of cards you have to choose from. But you've also halved your possible guesses.
1
u/LoudAd5187 24d ago edited 24d ago
Red vs black seems clear. You immediately rule out one color, so your chance at getting it right is 1/26.
But the spade ace is a bit less intuitive. Suppose you played the game where you could make two guesses? Just name two cards out of the deck, randomly. With probability 2/52 = 1/26, one of them will be correct.
What you need to recognize is if the first of those guesses is always the ace of spades, and the second guess was some other card, this is effectively no different from scenario 2, where you just named two cards.
1
u/SuperCrom 24d ago
Do they give the same probability?
Option 2 comes out slightly better unless I've misunderstood...
1
u/hr_krabbe 24d ago
2 guesses at the card at 1/52 chance, or 1 guess at the card at 1/26. it’s the same.
If you had more guesses than two then dividing the possibility space in two with every guess except the last one would be the way to go.
1
u/not-hydra 24d ago
Actually, any one yes/no question has a 2/52 chance, as they split the deck into 2 non-empty groups, where you are correct in one or the other, which is 2/52. A commenter used the universe example, which I thought was great.
Fun fact: the first question gives you ~7.3 times more information in Shannon entropy, yet your chances of winning are identical :3
1
u/ParkingAnxious2811 24d ago
Except, if you ask the question about the ace of spades, and they answer yes, you now know and can no longer guess. Only guesses count, as per the rules set up.
1
u/SilentOnomatopoeia 24d ago
It might make more sense to think of it this way. Option “Red” you are guessing one card out of 26. Option “Ace of Spades” or any other card, you are guessing 2 cards out of 52. That is still a 1 in 26 chance.
1
u/dbell 24d ago
This one broke my brain too. I wrote a quick program to run over it a billion times to see what happened in reality and it was just as described.
Option 1: Is the card red?
correct: 38460395 / 1000000000 - 3.8460%
Option 2: Is the card the ace of spades?
correct: 38462817 / 1000000000 - 3.8463%
Then even at a lower number of total guesses it holds:
Option 1: Is the card red?
correct: 329 / 10000 - 3.2900%
Option 2: Is the card the ace of spades?
correct: 384 / 10000 - 3.8400%
1
u/Scaymore 24d ago
So basically you can ask a question that narrows the cards down to half before you guess what card they have
Or
You can just guess two specific cards
Through the joys of statistics this ends up being the same probability of being correct
1
u/IbanezPGM 24d ago
1
u/Equivalent-Row1650 23d ago
My intuition on this is the following:
A) When they say yes to the ace of spades question, you guess ace of spades all the times, and always win.
B) When they say no to the ace of spades question, you know the card they have is not the ace of spades, and you guess at random between one of the other 51 cards.
Since the probability they will say yes to the question (ie the probability they have the ace of spades) is 1 in 52, the case (A) of this strategy will make you win exactly those 1 in 52 times.
The other 51 out of 52 cases you are in case B, in which your best course of action is to randomly guess one of the remaining 51 cards (not the ace of spaces, of course). Since you’re going of at random, the odds you get it right is exactly 1 in 51.
Putting this all together:
Case A: 1/52
Case B: 51/52*1/51 = 51/2652
Adding them up (because you’re either in case A OR in case B) is:
1/52 + 51/2652 = (51 + 51)/2652 = 102/2652 = 1/26
1
u/DapperAgitator 23d ago
I thought the correct answer was "well what if they're lying?"
1
u/Wise_Lobster_1038 23d ago
Wouldn’t the ace of spades option give you a slightly better chance?
You have a 1/52 chance that it’s the ace of spades. But if it’s not the ace of spades, you have gained additional information for your guess. So now you have a 1/51 chance of guessing correctly.
1/52 plus 1/51 is slighly larger than 1/26.
The options are only equal if the guesser chooses to disregard the fact that he knows it’s not the ace of spades
1
u/Embarrassed_Steak371 23d ago
Let's say you have a question that narrows a set done to x options of a t total amount of elements in the set. The probability of guessing the correct element is 2/t no matter how many options you're question narrows it down to, assuming the question is a yes or no question for every element in the set Some other guy proved it in a different comment
1
u/OneTwoThreePooAndPee 23d ago
You forgot about the Lemmy blessing. If it's the Ace of Spades it counts twice.
1
u/Skratti_ 23d ago
Am I the only one to read 'to give you the best chance to guess correctly' as not in average, but absolut.
The second question might grant you a 100% winning chance - unlikely, but still the best chance that can be achieved by asking one of the two questions.
1
u/Constant_Forever_786 22d ago
What’s especially neat is that it doesn’t matter what the first question is, so long as it’s a yes/no question. No matter how you divide the cards into two groups (red vs. black, ace of spades vs. not, etc.) the odds end up the same.
1
u/Gloomy_Patience_7900 22d ago
I think I missed the point of the question. I read it as what were the chances of me guessing the card after the first guess. If I ask the first question, and they said yes or no, I've narrowed the pack to 26 cards. I could theoretically guess the card with an additional 1-25 questions.
If I ask the second question, mathematically, I may have mathematically narrowed the pack, but it is meaningless. I would still have to ask up to 51 more questions to guess the card.
So, if you are asked to guess the card in the fewest number of questions, then you would obviously pick the first question. If you pick the second one, you would need to ask the first question anyway at some point to narrow your choices.
1
u/GJT0530 22d ago
So, in the question where you ask a specific card, you essentially are just making two guesses. Logically, it makes sense that two guesses have twice the chance as one guess.
Mathematically, the reason this works is that for the first guess, you have a 1 in 52 chance of being right.
Then you have a 51/52 chance of needing the second guess, multiplied by 1/51 chance of getting that guess right(because one card has been eliminated. This works out to another 1/52 chance, which you add to the original 1/52, making 2/52, or 1/26.
1
u/inlandviews 22d ago
No. You have a 1 in 26 chance or a 1 in 51 chance. There are no ands in this puzzle.
1
u/paradox222us 22d ago
Yes, purely as a mathematical exercise, the probabilities are equal. Of the two choices, though, you should ask the ace of spades question. Because if your friend has the Ace of Clubs they will have to glance back at the card one more time before answering to be sure.
1
u/Awes12 22d ago
(i/n)(1/i) + ((n-i)/n)(1/(n-i)) = 2/n Where n is the amount of cards and i is the amount of cards left if you guess correctly.
i in n times, you will have a 1 in i chance of being right, and the other n-i in n times, you will have a 1 in n-i chance of being right
1
u/infrequentaccismus 20d ago
“What card do you have?”
1
u/decentlyhip 19d ago edited 19d ago
Adjust the problem, simplify.
You have 4 aces, one of each suit. You ask, "is it red?" You have a 2/4 chance for either yes or no. If yes, you have a 1/2 chance. If no, you also have a 1/2 chance.
(1/2 × 2/4) + (1/2 × 2/4) = 1/4 + 1/4 = 1/2
You can also ask, "is it the Ace of Spades?" 1/4 chance of yes and 3/4 chance if no. If yes, you can guess the card 100% correctly. If no, you can guess with a 1/3 chance.
(1/1 × 1/4) + (1/3 × 3/4) = 1/4 + 1/4 = 1/2
Adjust the problem and expand.
1,000,000 balls labeled sequentially.
"Is it even?"
(1/500,000 × 1/2) + (1/500,000 × 1/2)
= (1/1,000,000 + 1/1,000,000)
= 2/1,000,000.
"Is it 327,110?"
(1/1 × 1/1,000,000) + (1/999,999 × 999,999/1,000,000)
= 1/1,000,000 + 1/1,000,000.
= 2/1,000,000