Exam with $12$ yes/no questions (half yes, half no) and $8$ correct needed to pass, is it better to answer randomly or answer exactly 6 times yes?

In an exam with $12$ yes/no questions with $8$ correct needed to pass, is it better to answer randomly or answer exactly $6$ times yes and 6 times no, given that the answer 'yes' is correct for exactly $6$ questions?

I have calculated the probability of passing by guessing randomly and it is

$$\sum_{k=8}^{12} {{12}\choose{k}}0.5^k0.5^{n-k}=0.194$$

Now given that the answer 'yes' is right exactly $6$ times, is it better to guess 'yes' and 'no' $6$ times each?

My idea is that it can be modelled by drawing balls without replacement. The balls we draw are the correct answers to the questions.

Looking at the first question, we still know that there are $6$ yes and no's that are correct. The chance that a yes is right is $\frac{6}{12}$ and the chance that a no is right is also $\frac{6}{12}$.

Of course the probability in the next question depends on what the first right answer was. If yes was right, yes will be right with a probability of $5/11$ and a no is right with the chance $6/11$. If no was right, the probabilities would change places.

Now that we have to make the choice $12$ times and make the distinction which one was right, we get $2^{12}$ paths total. We cannot know what the correct answers to the previous questions were. So we are drawing $12$ balls at once, but from what urn? It cannot contain $24$ balls with $12$ yes and $12$ no's. Is this model even correct?

Is there a more elegant way to approach that?

I am asking for hints, not solutions, as I'm feeling stuck. Thank you.


Edit: After giving @David K's answer more thought, I noticed that the question can be described by the hypergeometric distribution, which yields the desired result.


Solution 1:

We are given the fact that there are $12$ questions, that $6$ have the correct answer "yes" and $6$ have the correct answer "no."

There are $\binom{12}{6} = 924$ different sequences of $6$ "yes" answers and $6$ "no" answers. If we know nothing that will give us a better chance of answering any question correctly than sheer luck, the most reasonable assumption is that every possible sequence of answers is equally likely, that is, each one has $\frac{1}{924}$ chance to occur.

So guess "yes" $6$ times and "no" $6$ times. I do not care how you do that: you may guess "yes" for the first $6$, or flip a coin and answer "yes" for heads and "no" for tails until you have used up either the $6$ "yeses" or the $6$ "noes" and the rest of your answers are forced, or you can put $6$ balls labeled "yes" and $6$ labeled "no" in an urn, draw them one at a time, and answer the questions in that sequence.

No matter what you do, you end up with some sequence of "yes" $6$ times and "no" $6$ times. You get $12$ correct if and only if the sequence of correct answers is exactly the same as your sequence. That probability is $\frac{1}{924}.$

There is no way for you to get $11$ correct. You get $10$ correct if and only if the correct answers are "yes" on $5$ of your "yes" answers and "no" on your other "yes" answers. The number of ways this can happen is the number of ways to choose $5$ correct answers from your $6$ "yes" answers, times the number of ways to choose $5$ correct answers from your $6$ "no" answers: $\binom 65 \times \binom 65 = 36.$

There is no way for you to get $9$ correct. You get $8$ correct if and only if the correct answers are "yes" on $4$ of your "yes" answers and "no" on your other "yes" answers. The number of ways this can happen is the number of ways to choose $4$ correct answers from your $6$ "yes" answers, times the number of ways to choose $4$ correct answers from your $6$ "no" answers: $\binom 64 \times \binom 64 = 225.$

In any other case you fail. So the chance to pass is $$ \frac{1 + 36 + 225}{924} = \frac{131}{462} \approx 0.283550, $$ which is much better than the chance of passing if you simply toss a coin for each individual question but not nearly as good as getting $4$ or more heads in $6$ coin tosses.


Just to check, we can compute the chance of failing in the same way: $6$ answers correct ($3$ "yes" and $3$ "no"), $4$ answers correct, $2$ correct, $0$ correct. This probability comes to $$ \frac{\binom 63^2 + \binom 62^2 + \binom 61^2 + 1}{924} = \frac{400 + 225 + 36 + 1}{924} = \frac{331}{462} \approx 0.716450, $$ which is the value needed to confirm the answer above.

Solution 2:

In terms of balls and urns: Maybe it helps to think about it as follows:

You have a red urn and a blue urn, and you have $6$ red balls and $6$ blue balls. You randomly put $6$ of the twelve balls in the red urn, and the other $6$ in the blue urn. Now: what it the chance that at least $8$ balls are in the 'right' (i.e. same colored) urn?

Well, to get $8$ correct, you either need to get all $6$ red balls in the red urn ($1$ possibility), or $5$ red ones and $1$ blue in the red urn (${6 \choose 5} \cdot {6 \choose 1} = 6 \cdot 6 = 36$ possibilities), or $4$ red ones and $2$ blue ones (${6 \choose 4} \cdot {6 \choose 2} = 15 \cdot 15 = 225$ possibilities). This is out of a total of ${12 \choose 6} = 924$ possibilities, and so the probability is $\frac{1+36+225}{924}$

NOTE: Thanks to @DavidK for pointing out my initial answer was wrong! Everyone please upvote his answer!

Solution 3:

Try the following approach.

First, assume that the answerer puts "yes" for the first six and "no" for the last six. Since the order of his answers clearly cannot change his probability of passing, this is an okay assumption.

Note that if there are $x$ questions correct on the first half of the test, there are $x$ questions correct on the second half as well (think about why). So it's sufficient to get the probability that $4$ of the first $6$ answers are yes.

Now, try to calculate the probability that a randomly ordered row of $12$ balls -- $6$ "yes" balls and $6$ "no" balls -- has $4$ "yes" balls among the first $6$ balls in the row.

Solution 4:

A quick way to find the correct answer, which IMHO also gives insight into why this works better than 12 independent coin flips:

  • Let $X =$ no. of correct answers if you randomly guess exactly 6 Yes and 6 No.

  • As others have observed, $X \in \{0, 2, 4, 6, 8, 10, 12\}$.

  • $P(X=6) = {{6 \choose 3}{6 \choose 3} \over {12 \choose 6}} = {400 \over 924} \approx 0.4329$.

  • By symmetry, $P(X \ge 8) = {1 - P(X=6) \over 2} = {262 \over 924} \approx 0.2835$.

IMHO, this is ultimately why this method works so much better than 12 independent coin flips. If the passing grade were 7 correct answers, flipping 12 independent coins would have been better:

  • Let $Y =$ no. of correct answers if you flip 12 independent coins.

  • $P(Y = 6) = {12 \choose 6} ({1\over 2})^{12} \approx 0.2256.$

  • By symmetry, $P(Y \ge 7) = {1 - P(Y = 6) \over 2} \approx 0.3872.$

  • Meanwhile, of course $P(X \ge 7) = P(X \ge 8) \approx 0.2835$.

However, the passing grade is 8 correct answers, and you have invented a method which is guaranteed not to have 7 correct answers thereby eliminating the (useless-to-you) 7 correct answers situation.


Bonus: if the passing grade is 7 correct answers, then the correct strategy is to actually randomly answer 5 (or 7) of them as Yes!

  • Let $Z =$ no. of correct answers if you randomly guess 5 Yes and 7 No. (Math is same if you guess 7 Yes and 5 No.)

  • The only possible values are $Z \in \{1, 3, 5, 7, 9, 11\}$

  • By symmetry, $P(Z \ge 7) = {1 \over 2} > P(Y \ge 7) \approx 0.3872 > P(X \ge 7 ) \approx 0.2835$.

I bet this observation generalizes: i.e., if the passing grade is odd, guess 5 (or 7) as Yes, and if the passing grade is even, guess 6 as Yes. What a way to game an exam!