A coding theory/probability puzzleProbability of a deck of cards of 8 blue and 5 whiteWhat is the optimal...

An Undercover Army

Where is the fallacy here?

Sundering Titan and basic normal lands and snow lands

Can inspiration allow the Rogue to make a Sneak Attack?

Are small insurances worth it

ESPP--any reason not to go all in?

Is divide-by-zero a security vulnerability?

How did the Luna spacecraft collect samples of the moon and containerize them for return to Earth?

How did Haman know Moshe Rabeinu's Yahrzeit but not his Birthday?

Has a sovereign Communist government ever run, and conceded loss, on a fair election?

Does the US political system, in principle, allow for a no-party system?

Rationale to prefer local variables over instance variables?

Is "cogitate" an appropriate word for this?

What is better: yes / no radio, or simple checkbox?

Does running dd if=/dev/zero often can damage the drive?

What can I do if someone tampers with my SSH public key?

Can a space-faring robot still function over a billion years?

How to make sure I'm assertive enough in contact with subordinates?

Why do we call complex numbers “numbers” but we don’t consider 2 vectors numbers?

What is "desert glass" and what does it do to the PCs?

School performs periodic password audits. Is my password compromised?

Why is there an extra space when I type "ls" on the Desktop?

What is Tony Stark injecting into himself in Iron Man 3?

If nine coins are tossed, what is the probability that the number of heads is even?



A coding theory/probability puzzle


Probability of a deck of cards of 8 blue and 5 whiteWhat is the optimal strategy?Probability: Distinguishable vs IndistinguishableWhat is the probability that out of a deck of 16 cards that you will be dealt 2 cards with the same number?Probability question confusionMathematical puzzle - same probability of given card type for any numberUnderstanding Conditional Probability with Intersections of EventsChances of drawing a card of specific colorprobability of an event cards“Fair” random pick with different pool size













3












$begingroup$


I thought of the following problem and I am stuck in solving it.



Suppose there is a deck of 4 cards with 2 red and 2 blue. I pick 2 cards at random and choose 1 and show the other to my friend. With what probability can my friend find the color of my card if we have agreed on a good strategy in advance?



If my friend always guesses the color red, we only fail in this game if I get 2 blue cards. That happens with probability 1/4 and it is the best I can achieve in this case.



However, if the cards are numbered we can do even better, i.e. there is red card 1 and red card 2, blue card 1 and blue card 2. In this case, we can agree that my friend chooses the color of the card I gave him if the number is 1 and flips the color if it is 2. You can check that the only way we can fail is if I get both the red and the blue card of 1. (If I get both cards of the same color I show him the number 1 card. If I get two cards of different colors I show him the number 2 card and we win.) Since the probability of drawing two cards with the number 1 is 1/6, having numbers on the cards clearly helps.



My question is what happens when there are $N$ cards of $N$ colors ($N^2$ in total) and I draw $N$ cards, choose 1 and reveal $N-1$ cards to my friend (in a random order, i.e. the order cannot encode information). What is the strategy that maximizes our probability of winning? How does this differ if cards are numbered or if they are not?



I am interested both in optimal strategies for small $N$, or with asymptotic bounds for large $N$ in both the numbered and unnumbered cases. Could it be that the probability in the numbered case goes to 1 and the unnumbered case is small? This would be very unintuitive!










share|cite|improve this question









New contributor




puzzledguy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$












  • $begingroup$
    I like this question although it seems like a lot of work to solve it. Have you tried some strategies for general $N$?
    $endgroup$
    – Stan Tendijck
    18 hours ago






  • 2




    $begingroup$
    The probability of drawing both blue cards is $frac{1}{6}$, not $frac{1}{4}$
    $endgroup$
    – Daniel Mathias
    18 hours ago










  • $begingroup$
    Having the numbers does not help in your two card case. You win $frac 56$ both ways.
    $endgroup$
    – Ross Millikan
    16 hours ago
















3












$begingroup$


I thought of the following problem and I am stuck in solving it.



Suppose there is a deck of 4 cards with 2 red and 2 blue. I pick 2 cards at random and choose 1 and show the other to my friend. With what probability can my friend find the color of my card if we have agreed on a good strategy in advance?



If my friend always guesses the color red, we only fail in this game if I get 2 blue cards. That happens with probability 1/4 and it is the best I can achieve in this case.



However, if the cards are numbered we can do even better, i.e. there is red card 1 and red card 2, blue card 1 and blue card 2. In this case, we can agree that my friend chooses the color of the card I gave him if the number is 1 and flips the color if it is 2. You can check that the only way we can fail is if I get both the red and the blue card of 1. (If I get both cards of the same color I show him the number 1 card. If I get two cards of different colors I show him the number 2 card and we win.) Since the probability of drawing two cards with the number 1 is 1/6, having numbers on the cards clearly helps.



My question is what happens when there are $N$ cards of $N$ colors ($N^2$ in total) and I draw $N$ cards, choose 1 and reveal $N-1$ cards to my friend (in a random order, i.e. the order cannot encode information). What is the strategy that maximizes our probability of winning? How does this differ if cards are numbered or if they are not?



I am interested both in optimal strategies for small $N$, or with asymptotic bounds for large $N$ in both the numbered and unnumbered cases. Could it be that the probability in the numbered case goes to 1 and the unnumbered case is small? This would be very unintuitive!










share|cite|improve this question









New contributor




puzzledguy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$












  • $begingroup$
    I like this question although it seems like a lot of work to solve it. Have you tried some strategies for general $N$?
    $endgroup$
    – Stan Tendijck
    18 hours ago






  • 2




    $begingroup$
    The probability of drawing both blue cards is $frac{1}{6}$, not $frac{1}{4}$
    $endgroup$
    – Daniel Mathias
    18 hours ago










  • $begingroup$
    Having the numbers does not help in your two card case. You win $frac 56$ both ways.
    $endgroup$
    – Ross Millikan
    16 hours ago














3












3








3





$begingroup$


I thought of the following problem and I am stuck in solving it.



Suppose there is a deck of 4 cards with 2 red and 2 blue. I pick 2 cards at random and choose 1 and show the other to my friend. With what probability can my friend find the color of my card if we have agreed on a good strategy in advance?



If my friend always guesses the color red, we only fail in this game if I get 2 blue cards. That happens with probability 1/4 and it is the best I can achieve in this case.



However, if the cards are numbered we can do even better, i.e. there is red card 1 and red card 2, blue card 1 and blue card 2. In this case, we can agree that my friend chooses the color of the card I gave him if the number is 1 and flips the color if it is 2. You can check that the only way we can fail is if I get both the red and the blue card of 1. (If I get both cards of the same color I show him the number 1 card. If I get two cards of different colors I show him the number 2 card and we win.) Since the probability of drawing two cards with the number 1 is 1/6, having numbers on the cards clearly helps.



My question is what happens when there are $N$ cards of $N$ colors ($N^2$ in total) and I draw $N$ cards, choose 1 and reveal $N-1$ cards to my friend (in a random order, i.e. the order cannot encode information). What is the strategy that maximizes our probability of winning? How does this differ if cards are numbered or if they are not?



I am interested both in optimal strategies for small $N$, or with asymptotic bounds for large $N$ in both the numbered and unnumbered cases. Could it be that the probability in the numbered case goes to 1 and the unnumbered case is small? This would be very unintuitive!










share|cite|improve this question









New contributor




puzzledguy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$




I thought of the following problem and I am stuck in solving it.



Suppose there is a deck of 4 cards with 2 red and 2 blue. I pick 2 cards at random and choose 1 and show the other to my friend. With what probability can my friend find the color of my card if we have agreed on a good strategy in advance?



If my friend always guesses the color red, we only fail in this game if I get 2 blue cards. That happens with probability 1/4 and it is the best I can achieve in this case.



However, if the cards are numbered we can do even better, i.e. there is red card 1 and red card 2, blue card 1 and blue card 2. In this case, we can agree that my friend chooses the color of the card I gave him if the number is 1 and flips the color if it is 2. You can check that the only way we can fail is if I get both the red and the blue card of 1. (If I get both cards of the same color I show him the number 1 card. If I get two cards of different colors I show him the number 2 card and we win.) Since the probability of drawing two cards with the number 1 is 1/6, having numbers on the cards clearly helps.



My question is what happens when there are $N$ cards of $N$ colors ($N^2$ in total) and I draw $N$ cards, choose 1 and reveal $N-1$ cards to my friend (in a random order, i.e. the order cannot encode information). What is the strategy that maximizes our probability of winning? How does this differ if cards are numbered or if they are not?



I am interested both in optimal strategies for small $N$, or with asymptotic bounds for large $N$ in both the numbered and unnumbered cases. Could it be that the probability in the numbered case goes to 1 and the unnumbered case is small? This would be very unintuitive!







probability puzzle coding-theory






share|cite|improve this question









New contributor




puzzledguy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|cite|improve this question









New contributor




puzzledguy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|cite|improve this question




share|cite|improve this question








edited 18 hours ago







puzzledguy













New contributor




puzzledguy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 19 hours ago









puzzledguypuzzledguy

513




513




New contributor




puzzledguy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





puzzledguy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






puzzledguy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • $begingroup$
    I like this question although it seems like a lot of work to solve it. Have you tried some strategies for general $N$?
    $endgroup$
    – Stan Tendijck
    18 hours ago






  • 2




    $begingroup$
    The probability of drawing both blue cards is $frac{1}{6}$, not $frac{1}{4}$
    $endgroup$
    – Daniel Mathias
    18 hours ago










  • $begingroup$
    Having the numbers does not help in your two card case. You win $frac 56$ both ways.
    $endgroup$
    – Ross Millikan
    16 hours ago


















  • $begingroup$
    I like this question although it seems like a lot of work to solve it. Have you tried some strategies for general $N$?
    $endgroup$
    – Stan Tendijck
    18 hours ago






  • 2




    $begingroup$
    The probability of drawing both blue cards is $frac{1}{6}$, not $frac{1}{4}$
    $endgroup$
    – Daniel Mathias
    18 hours ago










  • $begingroup$
    Having the numbers does not help in your two card case. You win $frac 56$ both ways.
    $endgroup$
    – Ross Millikan
    16 hours ago
















$begingroup$
I like this question although it seems like a lot of work to solve it. Have you tried some strategies for general $N$?
$endgroup$
– Stan Tendijck
18 hours ago




$begingroup$
I like this question although it seems like a lot of work to solve it. Have you tried some strategies for general $N$?
$endgroup$
– Stan Tendijck
18 hours ago




2




2




$begingroup$
The probability of drawing both blue cards is $frac{1}{6}$, not $frac{1}{4}$
$endgroup$
– Daniel Mathias
18 hours ago




$begingroup$
The probability of drawing both blue cards is $frac{1}{6}$, not $frac{1}{4}$
$endgroup$
– Daniel Mathias
18 hours ago












$begingroup$
Having the numbers does not help in your two card case. You win $frac 56$ both ways.
$endgroup$
– Ross Millikan
16 hours ago




$begingroup$
Having the numbers does not help in your two card case. You win $frac 56$ both ways.
$endgroup$
– Ross Millikan
16 hours ago










0






active

oldest

votes











Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






puzzledguy is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3138907%2fa-coding-theory-probability-puzzle%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








puzzledguy is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















puzzledguy is a new contributor. Be nice, and check out our Code of Conduct.













puzzledguy is a new contributor. Be nice, and check out our Code of Conduct.












puzzledguy is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3138907%2fa-coding-theory-probability-puzzle%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Nidaros erkebispedøme

Birsay

Was Woodrow Wilson really a Liberal?Was World War I a war of liberals against authoritarians?Founding Fathers...