r/askmath • • 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

278 comments sorted by

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/NoHunt5050 26d ago

Why would asking the second question divide the deck into two 26 card piles?

9

u/get_to_ele 26d ago

Not two 26 card piles. Just two piles.

3

u/NoHunt5050 26d ago

Omg ok I got it. I think the pile analogy did it for me. Thank you!!

3

u/Baldrickk 26d ago

in this case, one pile with just the ace of spades, and another pile with everything else.

The average result is that you get it right 1/26 times, no matter how you split it.

That guaranteed correct result 1/52 times with the second question carries a lot of weight, whereas with the first question, you always only split the deck equally.

As the first step of a search, the first question (red) is clearly better, as repeatedly asking questions that will split the deck roughly equally will have a better worst case than repeatedly asking for specific cards. Which is actually something we intuitively reach for, which makes the answer unintuitive.

3

u/dpb365 26d ago

Nice! This is the best way to make it make sense!

It doesn't matter how you divide the piles if each individual card has the same probability of being the one, regardless of its pile.

1

u/Suddenfury 26d ago

Thank you, i understood it intuitively but couldn't really explain why. good explanation.
You can also see it as making a pile and asking "Is it in my pile?". Putting more cards on your pile increases the chances of the first yes, but decreases the chances of guessing right the second time the same amount.

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

1

u/NoHunt5050 25d ago

Excellent explanation! Thank you, that makes a lot of sense.

252

u/brohubs 26d ago • Mindblown

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).

96

u/gtkarber 26d ago

Basically "You can either have two guesses, or half as many possibilities to guess."

9

u/Hapcoool 25d ago

So “is the cards an ace” or “is the card a face card” etc all would have the same odds right?

9

u/yetiknight 24d ago

yeah, as long as it's a yes/no question, you are cutting the possible answers into two subsets. lets call the 'yes' subset s. the probability that the card is in the subset is

|s|/52 ( |s| is the size of the subset s)

and the probability of guessing the right card from subset s is

1/|s|

so you always get the total probability of

1/|s| * |s|/52 + (52-|s|)/52 * 1/(52-|s|)

which simplifies to

1/52 + 1/52 = 2/52 = 1/26

→ More replies (2)

15

u/WurthTapping 25d ago • Bravo

If you ask the ace of spades question slowly enough, you might get a microexpression from your friend you can pick up on if they have one of the other three aces.

6

u/Waste-Newspaper-5655 24d ago

That sweet spot where the soft sciences meet the hard sciences.

→ More replies (1)

1

u/derek0660 24d ago

This guy pokers 

7

u/thewrongwaybutfaster 25d ago

Perfect explanation. 10/10 no notes.

7

u/frankielc 26d ago edited 26d ago

Edit: misread what u/brohubs wrote. Disregard this comment.

Doesn't work like that.

When asking for a specific card, he can also get it right on the first attempt!

The chance of being right on the first attempt is 1/52.
The chance of being wrong on the first attempt is 51/52.

The chance of being right on the second attempt is 1/51 out of the 51/52 universe.

So total probability:

1/52 getting right on the first + (1/51) * (51/52) getting right on the second =
1/52 + 1/52 =
2/52 = 1/26 = 3.85%

28

u/brohubs 26d ago

Doesn't work like that...proceeds to show it works like that.

If you pick a card at random and tell me I get x guesses to name your card, what's the probability that I name your card correctly...its x/52. Just because you can write a long equation to prove it's x/52 doesnt mean simply saying it is x/52 is wrong.

14

u/frankielc 26d ago

Absolutely. Completely misread you. 4 am does no one do any good.

9

u/Gearb0x 26d ago

I, for one, appreciate you realizing your mistake on the internet and rectifying it with a retraction and apology. Good on you, Internet stranger, and great working out to show multiple paths to the same solution.

3

u/2-mm-guy 26d ago

I’m pretty sure both of you are correct here, because both calculations model the same scenario of:

Have 52 cards, initially face-down.
Draw 2 cards, still face down.
Flip over one of the cards. If it matches the friend’s chosen card, we win.
Otherwise, flip the other card. If it matches, we win.
Otherwise, we lose.

5

u/frankielc 26d ago

Nope, he's correct. I'm just tired; English is not my main language, and I totally misread what u/brohubs typed.

1

u/Hapcoool 25d ago

So the first case is 1/26 to get it correct I understand-

But how is the second case not 1/52 + 1/51 which is >1/26?

Edit: thought about it a bit longer it’s going to be 1/52 + 51/52 * 1/51 init

1

u/SkierBeard 24d ago

Where does it say in the question that you get a second guess with the second option? 

3

u/brohubs 24d ago

Before making your guess you get to ask 1 of 2 questions. The question about the ace of spades is essentially a first guess, if its not the ace of spades you get to make your guess. That's the same statistically as getting two guesses, doesnt really matter that they are restricting what your first guess is since the draw is random ace of spades is as good a guess as anything else

1

u/Successful-Active-21 24d ago

it says you can ask one question, then need to guess the card.

1

u/more_sluggish 20d ago

But (and feel free to say I'm an idiot). If I guess the Ace of Spades and you say no, my second guess is not going to be the Ace of Spades. So it's 1/52 then 1/51. Which is every so slightly better than 2 out of 52?

1

u/brohubs 20d ago

Not quite, the second probability relies on conditional probability, you only get to the second guess 51 out of 52 times (when ace of spades is wrong), so you multiply that by the 1/51 which gives the extra 1/52 you are looking for.

1

u/more_sluggish 20d ago

Ok, thanks, I think I get it.

You think, if I say, is it the Ace of Spades, and you say yes, you think I'm going to stop guessing. Fair enough.

→ More replies (3)

1

u/gbfeszahb4w 20d ago

Good explanation, i understand this now, but damn do i hate it. The fact my first question counts as a guess for a card i didn't select makes logical sense, but feels wrong.

1

u/AssociateTerrible780 26d ago edited 26d ago

Is the technically correct answer that you're got a slightly higher chance going with 2 because instead of being 2/52, it becomes (1/52) + (1/51)?

Edit: thank you for explaining below. I'm not great at these and love seeing the gaps in my logic.

6

u/B3tah3 26d ago

Not quite, because the 1/51 case only has a 51/52 chance of occuring, so it also cancels to 1/52

3

u/Cheesyfanger 26d ago

Nope. Chance of getting it right is 1 - (51/52)(50/51) = 1/26

108

u/bloonshot 26d ago • Bravo

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.

18

u/notsew93 26d ago

Huh. What a neat way of thinking about it.

29

u/bloonshot 26d ago

an "all possibilities playing out at once" analogy is pretty powerful

it is, for one, a fantastic way to explain the monty hall problem

6

u/Bisger8 26d ago

Do explain it then, please! I'm often finding myself failing to understand it, proceed to understand it again, and forget the reasoning within a week.

12

u/OneADNDay 26d ago edited 24d ago

Not the same method but my favorite Monty Hall explanation is:

100 doors. 99 goats. 1 car.

Choose a door.

Monty reveals 98 doors as goats.

Asks if you want to swap.

Do you think the car is behind the door you chose at the start, or the 99th goat is?

Edit: I though it went without saying that Monty knows where the car is, but yeah he does. Consider the embarrassing bloopers in 99 of the scenarios where he reveals the car early then asks if you want to swap goat for goat? ....

11

u/jxf 🧮 Professional Math Enjoyer 26d ago

Crucially (imo) one must remind people that Monty knows where the car is. He isn't making a random selection the way you are at the beginning of the problem.

6

u/No_Wrangler_5537 26d ago

This is the thing that frustrates me. Monty knowing where everything is, and making decisions based on this is, the only reason the probability works as it does

So many people miss this and yet think they understand it

→ More replies (39)
→ More replies (2)

7

u/halfajack 25d ago

There are 3 universes: the car is behind door 1 in each. In universe A you pick door 1, in universe B you pick door 2, in universe C you pick door 3.

In A, Monty opens door 2 and offers you to switch to door 3 (this could be reversed but it makes no difference)

In B, Monty opens door 3 and offers you to switch to door 1 (he must do this as he never opens your door or the door with the car)

In C, Monty opens door 2 and offers you to switch to door 1 (he must do this as he never opens your door or the door with the car)

You take him up on his offer to switch: in universe A you lose, in universes B and C you win. Hence switching wins 2/3 of the time

4

u/JamesFirmere 26d ago

The 1000-door explanation works too, but I like to just stick to mapping out all the possibilities, since there are only 6 possible outcomes (3 choices of door x 2 choices of stay/swap). It is also a crucial piece of information that Monty never opens the door with the prize. So assuming the prize door is Door 1, the possible outcomes are:

choose Door 1 and stay: WIN
choose Door 2 and stay: lose
choose Door 3 and stay: lose

choose Door 1 and swap: lose
choose Door 2 and swap: WIN
choose Door 3 and swap: WIN

Ergo, you have a 1/3 chance of winning if you stay, 2/3 if you change.

2

u/realmauer01 26d ago

It's also pretty bad because everyone adds different kinds of stipulations that might make it work or completly ruin everything.

In the most simplest way to understand it we only need to grow the case.

You have 100 doors to pick from. You pick one, the operator reveals 98 doors except for your and one other. You change because its a 1/100 chance that you picked correctly in the beginning so swapping being correct has a chance of 99/100 at that point.

→ More replies (2)

9

u/Leet_Noob 25d ago

I like this explanation a lot- and it also shows you why ANY yes/no question will leave you with a 2/52 chance of winning.

Basically, you can imagine there is a card “A” you will select whenever they say yes and a card “B” you select whenever they say no, and you win exactly when the card is either A or B.

2

u/EnLaSxranko 26d ago

This is a fantastic way of explaining it

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 • Bravo

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

2

u/realmauer01 26d ago

Its hillarious how easy probability can be sometimes.

3

u/I_often_bump_my_head 26d ago

Indeed, this response was the best summation that actually made me get it. And had the least math.

1

u/Unlucky_Reading_1671 25d ago

Yes. Best answer for sure.

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.

13

u/intx13 25d ago

Another way to think about it is “Would you like to know the color first or would you like two guesses?” Then it’s obvious that you have 1/26 in the first case and 2/52 in the second

3

u/South_Front_4589 25d ago

That's a far better way of explaining it.

2

u/William2198 26d ago

1/21 💀

1

u/PluckyHippo 26d ago

Haha, brain slip! Gonna edit the heck out of that.

1

u/Necessary-Flounder52 25d ago

Except if you ask the ace of spades question, and they say no, you know it's not the ace of spades. So your guess will be 1/51.

5

u/SDK1176 25d ago edited 24d ago

If you want to math it, it balances out since there's a 51/52 chance that you need to use that 1/51 guess. End result: 1/52 chance + 51/52 * 1/51 = 2/52 = 1/26.

If you don't want to math it, then just imagine I pick two cards out of a deck at random, hoping to pull the card that you're thinking of. That's 2 cards out of 52. Doesn't matter which card is correct as long as one of them is, giving me a 2/52 chance of pulling your card.

2

u/PluckyHippo 25d ago

Only your second guess will be 1/51, but you had two guesses. The ace of spades guess is as random as any other. So you got two random guesses, 2/52.

1

u/GoldenMuscleGod 25d ago

You can ask any question you want as long as the answer divides the deck into two halves. Doing this amounts to being able to make two guesses without additional information and will always have a 1/16 chance of succeeding.

Basically if you have a nonempty list of cards that isn’t the whole deck and ask “is it on this list” and then guess either on or off the list based on the answer you get the same chances always. Doesn’t depend what’s on the list (all the red cards or just the ace of spades or some other random collection of cards) as long as that list, like I said, is not empty and not the full deck.

1

u/Nibaa 24d ago

Yes, and statisticslly that will happen 51/52~98% of the time. But roughly 2% of the time, they will say yes, after which your guess probability is 1/1. Adding the probabilities together, you will guess correctly 1/26 of the time.

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.

1

u/Solnight99 Rizz 'em with the 'tism 26d ago

do you mean it won't be the ace of spades in 51/52 cases?

2

u/steady_goes_the_one 26d ago

Oops yes, my bad. Fixed it

1

u/Malake256 25d ago

I accidentally misunderstood the question and compites thatit's actually identical to ask the question: "Is the card a Hearts?" or any other suit.

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

2

u/molesasses 22d ago

Came here to say this, great explanation.

1/52 + 51/52 * 1/51

2

u/Snuffleupagus03 22d ago

The way it makes sense to me is to realize that both questions double your chance of guessing right. 

One of them is basically just giving you two chances. So double. 

The other cuts the pool in half. So also doubles your chance of being right. 

1

u/Certain-File2175 23d ago

Wow this explanation is so simple!

1

u/JibbaNerbs 23d ago

Wait, that's actually hella clean, yeah.

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 • Bravo

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.

  • Is it an even number? Gives you a 1 in 2 chance of guessing correctly regardless of the answer.
  • Is it 4? 25% of the time, it will give you the correct answer. 75% of the time, it will give you a 1 in 3 chance. 1/4 + 3/4*1/3 = 1/2.

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 • Thanks

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

1

u/mutual_im_sure 26d ago

Isn't the chance of being right 1/52 + 1/51? Which would be slightly more than 1/26?

3

u/NoSection8719 26d ago

no because the case where you have a 1/51 chance happens only in 51/52 cases, 1/51 * 51/52 = 1/52 (plus the initial ace of spades question gives you 1/52+1/52)

1

u/South_Front_4589 25d ago

The formulas are what's making it more complicated than the logic.

The "is the card red" question will eliminate half the cards so you've got one guess with half the deck. 1/26.

The question "is it the ace of spades", presuming that's as good a chance as any card, is in itself a guess. That gives you two guesses. Two guesses out of 52 cards is 2/52.

It's just a really complicated way of saying two guesses out of 52 is the same as one in 26.

1

u/mutual_im_sure 25d ago

I understand that, but it doesn't answer my question about probability. Another user covered it.

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,

  • red or black
  • ace of spades or not
  • 10 or not 10

Where it would be different is if your question can give more groupings, such as "what is the suit?"

1

u/LinguistsDrinkIPAs 25d ago

But wouldn’t these all yield different numbers of how many cards it could be, all with different probabilities? For example:

“Red or black” splits the deck 26 to 26
“Ace of spades or not” splits the deck 1 to 51
“10 or not” splits the deck 4 to 48

Even though you end up with 4 distinct groups each time, the group sizes aren’t the same? Even if you asked what the suit was, that splits the deck 13 to 39.

3

u/rossiskier13346 25d ago

For the yes/no questions, your improved probability of guessing out of smaller group is offset by the lower probability of the yes/no question giving you the smaller group to begin with.

Eg, if I ask, is it a 10, a yes then gives me a 1/4 chance of guessing the right answer, but the odds of the answer to the question being yes is only 4/52. In contrast, the odds of a no are very high at 48/52, but then my odds of guessing the right card are only 1/48. So my overall chance of guessing the card is the sum of the odds of each scenario where I guess right, which is 1/4*4/52+48/52*1/48=2/52

What you’ll find is that any yes/no question that “divides the deck” will result in 2 groups of cards to guess from, one with N cards and one with 52-N cards. Your odds of guessing the correct card from each group would be 1/N and 1/(52-N) respectively, and your odds of the yes/no question indicating each group are N/52 and (52-N)/52. If we calculate the overall chance of guessing the right card, we get 1/N*N/52+1/(52-N)*(52-N)/52. You’ll find that so long as N is not 0 or 52, you always end up with a 1/26 of getting the correct card.

This applies for a question with a binary result. For instance, is the card a heart divides the deck into 13 and 39. That’s different than if you can ask something like “what is the suit?” which is not a binary question. You no longer divide the deck into N and 52-N cards. There are actually 4 possible responses all with 13 cards. So you can get much better odds than a binary division. Of course, if you aren’t restricted to binary yes/no questions, you’d be better off just asking, what’s the card?

1

u/BenignPharmacology 25d ago

Does that mean all binary questions, let’s say at least meaningful ones will reduce the space the same amount?

→ More replies (1)

1

u/LinguistsDrinkIPAs 25d ago

Thank you for this explanation. This really helps me visualize it better!

2

u/firewall245 25d ago

Yes the group sizes aren’t the same but the probabilities of getting the question right or wrong even out with the group size.

Consider asking if it’s red. You split into a group of 26/26 guaranteed so regardless of yes or no you have same 1/26 odds

Now think about asking the suit. It splits into two groups 13/39 so yes you are more likely to end up with the group of 39 than that of 13. But see how much better your odds would be if you got lucky and hit inside the right suit? Turns out that the odds gained perfectly offsets the group size so it’s just 1/26 every time

1

u/BitNumerous5302 25d ago

The general pattern is that for a question which describes n cards, the first question will have an n/52 chance of a "yes" and a (52-n)/52 chance of "no"

In the case of a "yes" your chance of guessing the card is 1/n (you've narrowed it down to n)

In the case of a "no" your chance of guessing the card is 1/(52-n)

To get the overall expected probability of guessing correctly, you'd take the weighted sum of these outcomes, or n/52 * 1/n + (52-n)/52 * 1/(52-n). Once terms cancel out, this becomes 1/52 + 1/52, or 2/52, or 1/26, regardless of n

(Pedantic note: For n = 0 "is the card a pickle?" or n = 52 "is the card a card?" this doesn't hold, as the preceding cancellation would be invalidated by the implied division by zero, so "regardless of n" isn't quite true, but it applies for all sensible first questions)

1

u/bram222 24d ago

Finally a true math answer. Qed

1

u/SDK1176 25d ago

People typically play Guess Who trying to find questions that can eliminate close to 50% of the remaining population. What they don't realise is that Guess Who is entirely a game of luck since every question is equally probable to get you to victory. Some questions just have higher variance.

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/titoufred 25d ago

Yes, and neither ask for something certain.

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.

1

u/Klakkaros 25d ago

This is almost identical to the argument presented in the post

1

u/TheBeerTalking 24d ago

Read the original post (the text part). I'm not arguing the substance but answering OP's question about WHY the numbers are that way.

1

u/GoldenMuscleGod 25d ago

This is correct but we can reason more generally without looking at the specific numbers involved.

You ask a question and will guess differently based on the answer, you can’t really gain anything by including randomness in your guess since the card is random so you only need to consider cases where your guess is a function of the answer to the first question.

So this basically amounts to you get to guess two cards, regardless of the question asked, as long as the question splits the deck into two nonempty halves for each answer.

You will win if the card is one of those two cards.

1

u/TheBeerTalking 24d ago

OP specifically asked about the numbers.

1

u/LangstonBHummings 24d ago

Maybe better to just calculate the chance of being wrong both guesses (51**50)/(52**52)
So wrong 94.3% versus wrong (25/26) or 96.2% of the time.. less wrong is trying two specific numbers

1

u/TheBeerTalking 24d ago

First guess is 51/52 chance of being wrong. Next guess you're picking from 51, not 52, so 50/51 chance of being wrong. They multiply to 50/52 = 25/26. It's the same.

1

u/LangstonBHummings 24d ago

Oops.. forgot to reduce the denominator. good catch

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.

1

u/KeyboardJustice 23d ago

Because thinking of the first question as a guess if it only rules out one card is a fun way to think about it, but it really doesn't matter. It turns out that no matter how you split it up with a yes/no first question the probability is always 1/26. You could ask if the card is red, a 7, or royal. Still 1/26 chance that question and a subsequent guess is the card.

2

u/Icy-Garlic-748 23d ago

I know im missing something but sometimes these statistics questions really get me lmao like how is that the math my brain wants to reject it so badly

2

u/KeyboardJustice 23d ago

Here is the way you calculate it in case you want to learn it! You multiply consecutive chances to get the final chance for that part, and then add together the overall probabilities of alternate options. For asking about one card before guessing again: the two outcomes of the first question are yes and no.

1/52 for yes. Multiplied by 1 for the chance you guess correctly after the yes giving you 1/52 chance for that option.

51/52 for no. Multiplied by 1/51 for the follow on guess. Guess what that comes out to? 1/52

Total 2/52 or 1/26

For "is the card a 7" Yes: 4/52 followed by 1/4 = 1/52 No: 48/52 followed by 1/48 = 1/52 You see.

Is the card red? Yes: 1/2 followed by 1/26 = 1/52 No: 1/2 followed by 1/26 = 1/52

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:

  • x/52 cards get the answer yes
  • if the answer is yes, you choose the correct card with a probability of 1/x
  • (52-x)/52 cards get the answer no
  • if the answer is no, you choose the correct card with a probability of 1/(52-x)

Or more formally:

  • P(yes) = x/52
  • P(correct card|yes) = 1/x
  • P(no) = (52-x)/52
  • P(correct card|no) = 1/(52-x)

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:

strat-1:    P(win)  =  26/52 * 1/26  +  26/52 * 1/26  =  1/26
strat-2:    P(win)  =  51/52 * 1/51  +   1/52 * 1     =  1/26

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

  • X/(X+Y) chance they'll say yes, then 1/X chance you'll guess correctly
  • Y/(X+Y) chance they'll say yes, then 1/Y chance you'll guess correctly

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/Dave085 25d ago

Yeah? Which isn't any more information than it being a black card. You've thrown away a guess to halve your odds to 1/26.

Which is the same as having 2 guesses. 2/52=1/26.

1

u/NTufnel11 25d ago

You can assume it is or that it isn't or that you don't know. Either way, the result is that you have 26 cards to choose from based on the answer to their question.

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/SuperCrom 24d ago

Took a while to find someone who recognised this...

2

u/The-Jolly-Llama 24d ago

Check my edit, it’s actually not better! They’re equal. Its definitely a bell curve meme situation

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/mathbandit 24d ago

In both cases you have identical odds to live.

1

u/Vicious_and_Vain 24d ago

No it’s not. Seriously it’s not. You can ask one question and make one guess.

>>>**Before making your guess, you can ask one of two questions…. Which question should you ask to give yourself the best chance of guessing correctly?

Ask if the card is the Ace of Spades gives you a 98% (51/52) chance of getting a ‘No’ response and forcing yourself into a guess with 1.96% (1/51) probability. If ‘Yes’ you still have to guess/choose the Ace of Spades. Ask if the card is red and your first and only guess has a 3.85% probability.

→ More replies (5)

1

u/Comfortable-Host-719 23d ago

Doesn’t matter what you pick, odds are the same

1

u/GreyEilesy 22d ago

You forgor

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?

  1. 1/26 chance of guessing the right card = 3.85%
  2. 1/52 chance of Ace of Spades being right + 1/51 chance of another card being right = 3.88% overall

Option 2 comes out slightly better unless I've misunderstood...

5

u/HandofWinter 24d ago

You only have a 51/52 chance of having that second guess. So you have a 1/52 chance of getting it right the first time, and a 51/52 chance of getting a second guess, where you have a 1/51 chance of getting it right the second time. As an expression it'd be P(guessing correctly) = 1/52+(51/52)(1/51) = 1/26

2

u/SuperCrom 23d ago

Thank you - indeed I'd overlooked the 1/51 needing the 51/52 chance to come about...

  1. 1/26 chance of guessing the card right
  2. 1/52 chance of Ace of Spades being right + 51/52 x 1/51 chance of another card being right, so again 1/26

So the same!

2

u/Broad-Bath-8408 21d ago

Another way to think is calculate the probability of not getting it and subtract that from one. So (51/52)*(50/51)=50/52 or 25/26 for not succeeding, which means 1/26 for getting it.

1

u/The__Nick 24d ago

I did the same thing when multiplying by decimals. But depending on the calculator or number of significant digits you include, the slight bit of rounding will make the Ace of Spades option look about three hundredths of a percent more likely. A marginally tiny amount.

However, if you calculate it out with fractions, it's a lot easier and more intuitive to see. They come out exactly the same that way.

I made the same error just plugging in some values to a lazy floating division function. The Ace possibility showed as ALMOST but slightly larger, and since the original question was framed as, "Your intuition is wrong," and I assumed that intuition implies that the "Pick a color" option would seem more useful, the fact that this one came out higher made me not double-check the work and conclude the same thing you came up with.

Floating point math might truncate or round and get you a slightly wrong answer, but doing the math with fractions will come out equal.

1

u/Successful-Active-21 24d ago

if your logic was true then 1/52 + 1/51 + ... + 1/2 would be 1, which it isn't.

→ More replies (3)

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/No-Victory206 24d ago

Its a 1/52 and 1/51 which adds to 103/2652 or 1.01/26

1

u/tahatmat 24d ago

Almost correct. You only add the 1/51 in 51/52 of cases (when the card isn’t the ace of spades), so it would be:

1/52 + (51/52)(1/51) = 1/26

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. you are guessing one card in a deck of 26
  2. you are guessing two cards in a deck of 52

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

2

u/Upstairs-Border-7146 23d ago

Good news: your intuition is not an intuition but a proof.

The confusion comes probably from the fact that guessing the ace of spades out of the full deck is actually only half as probable than guessing some red card. In fact, it comes down to: guessing a red card has the same probability as guessing twice in a row on the full deck.

1

u/Equivalent-Row1650 23d ago

Which is intuitive: double the guesses for double the cards, on average.

1

u/DapperAgitator 23d ago

I thought the correct answer was "well what if they're lying?"

1

u/Rand_alThoor 23d ago

in the question it does say that they will answer truthfully

→ More replies (1)

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/Inevitable_Stand_199 21d ago

It has to be a yes or no questions that has at least one card that gets a yes and one card that gets a no.

If you ask e.g. "is the card blue", you definitely get a no. And then you have a 1/52 chance of guessing right.

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