Similar one I enjoyed in the Naive Bayes article from yesterday https://blog.floydhub.com/naive-bayes-for-machine-learning/ Multiple Choice: If you choose an answer to this question at random, what is the chance you will be correct? A) 25% B) 50% C) 60% D) 25%
Even more frustrating would be: Multiple Choice: If you choose an answer to this question at random, what is the chance you will be correct? A) 20% B) 40% C) 60% D) 20% E) None of the above
Which answer in this list is the correct answer to this question? (2017)
101–110 of 137 posts
Re: Which answer in this list is the correct answer to this question? (2017)
#102Earlier quoted context omitted.
I don't think there is any constraint that a single answer is true, otherwise the exercise wouldn't list "All of them" as a possibility.
I feel like it's implied by the question itself? "Which answer [singular] is the [definite article] correct answer" But you may be right. I detest word puzzles for exactly this type of ambiguity. Same goes for implication vs. equality. Why "should" 5 being true contradict 6 being correct? Just because 5 happens to be true doesn't necessarily mean it is "the" "correct" answer. The "real" answer depends on an interpret…
Re: Which answer in this list is the correct answer to this question? (2017)
#103Earlier quoted context omitted.
Even more frustrating would be: Multiple Choice: If you choose an answer to this question at random, what is the chance you will be correct? A) 20% B) 40% C) 60% D) 20% E) None of the above
Well, if you're forced to choose one, then you should minimize your error. So the answer is E), and as 19% is part of "None of the above", you would be only 1% off, much closer than any other answer...
Re: Which answer in this list is the correct answer to this question? (2017)
#104Similar one I enjoyed in the Naive Bayes article from yesterday https://blog.floydhub.com/naive-bayes-for-machine-learning/ Multiple Choice: If you choose an answer to this question at random, what is the chance you will be correct? A) 25% B) 50% C) 60% D) 25%
What's the correct answer?
Re: Which answer in this list is the correct answer to this question? (2017)
#105 import org.jacop.scala._
object Main extends App with jacop {
def forAll(l: Seq[BoolVar]) = l.foldLeft[BoolVar](true) { case (r, m) => r /\ m}
def forAny(l: Seq[BoolVar]) = l.foldLeft[BoolVar](false) { case (r, m) => r \/ m}
val v = List.tabulate(6)(i => new BoolVar(s"Answer ${i + 1}"))
v(0) #= forAll(v.drop(1))
v(1) #= ~forAny(v.drop(2))
v(2) #= forAll(v.take(2))
v(3) #= forAny(v.take(3))
v(4) #= ~forAny(v.take(4))
v(5) #= ~forAny(v.take(5))
satisfy(search(v, input_order, indomain_min))
print("Solution: " + v.filter(_.domain.contains(1)).map(_.id).mkString(" "))
}
Results in: Solution: Answer 5Re: Which answer in this list is the correct answer to this question? (2017)
#106Similar one I enjoyed in the Naive Bayes article from yesterday https://blog.floydhub.com/naive-bayes-for-machine-learning/ Multiple Choice: If you choose an answer to this question at random, what is the chance you will be correct? A) 25% B) 50% C) 60% D) 25%
P(A) = 0.25
P(B) = 0.25
P(C) = 0.25
P(D) = 0.25
The possible correct response sets, if multiple correct answers are possible: P({A,D}) + P({B}) + P({C}) = 1
We do know that the answer is only correct if the selected answer is in the set of correct responses: P(x) = P(A & {A,D}) + P(B & {B}) + P(C & {C}) + P(D & {A,D})
P(x|{A,D}) = 0.25
P(x|{B}) = 0.5
P(x|{C}) = 0.6
We can probably assume the response selection and establishing the set of correct responses are independent events, as they are being done by different people, and the person going second has no prior knowledge of the results from the first. P(x) = (P(A)+P(D)) * P({A,D}) + P(B) * P({B}) + P(C) * P({C})
P(x) = 0.5 * P({A,D}) + 0.25 * P({B}) + 0.25 * P({C})
Unraveling: P(x) = 0.25 * P({A,D}) + 0.5 * P({B}) + 0.6 * P({C})
P(x) = P({A,D})/4 + 1/4
P({B}) = 7/2 - 6 * P({A,D})
P({C}) = 5 * P({A,D}) - 5/2
1/2
That range doesn't overlap with the possible responses. So there's an incorrect assumption in there somewhere. Maybe the one about the question being fair. Backing up: P({A}) + P({B}) + P({C}) + P({D}) = 1
P(x) = P(A & {A}) + P(B & {B}) + P(C & {C}) + P(D & {D})
P(x|{A}) = 0.25
P(x|{B}) = 0.5
P(x|{C}) = 0.6
P(x|{D}) = 0.25
P(x) = P(A) * P({A}) + P(B) * P({B}) + P(C) * P({C}) + P(D) * P({D})
P(x) = 0.25 * P({A}) + 0.25 * P({B}) + 0.25 * P({C}) + 0.25 * P({D})
P(x) = 0.25 * P({A}) + 0.5 * P({B}) + 0.6 * P({C}) + 0.25 * P({D})
P(x) = 0.25
0
So the correct answer is 0.25, and the correct multiple choice response is one of either A or D. One's best response is based on knowledge of the psychology of the test-writer. It is not random. The person writing the question consciously chose one or the other, intentionally violating an assumption of the test-taker--that knowing the correct answer to a question would translate to being able to unambiguously select the correct multiple-choice response.Re: Which answer in this list is the correct answer to this question? (2017)
#107Earlier quoted context omitted.
A less clever solution, using the wonderful z3 import z3 answers = [z3.Bool(f"answer{i}") for i in range(1,7)] implications = [ z3.And(answers[1:]), # All of the below z3.Not(z3.Or(answers[2:])), # None of the below z3.And(answers[:2]), # All of the above z3.Or(answers[:3]), # Any of the above z3.Not(z3.Or(answers[:4])), # None of the above z3.Not(z3.Or(answers[:5]))] # None of the above constraints = [z3.Implies(ans…
Not enough constraints. You must (EDIT: should? see discussion below) also constrain that there is exactly one `answer{i}` which is true, and all the implications should be equalities (else, for example, 6 is a valid answer, even though that would imply 5 is true and thus contradict 6). It just so happens that the first result Z3 finds is the correct one. But if you exclude that result with an additional constraint,…
You can limit the number of true answers with "atMost" "atLeast" and "PbEq"
I mostly wanted to show off how cool z3 is (especially with python imho), the subtleties of the wording of the problem itself don't seem too important
Re: Which answer in this list is the correct answer to this question? (2017)
#108I feel the question is unnecessarily convoluted. To really answer the question, you have to recursively refer to the question itself. So to parse the question, I'm calling a function recursively without a stop condition. They could have just asked, which statement below is true. And for all intents and purposes the answer would have been the same.
Re: Which answer in this list is the correct answer to this question? (2017)
#109Here is a single python statement that solves the problem: print([ q for q in itertools.product((True, False), repeat=6) if q == ( all(q[1:]), # 1. All of the below. not any(q[2:]), # 2. None of the below. all(q[:2]), # 3. All of the above. any(q[:3]), # 4. One of the above. not any(q[:4]), # 5. None of the above. not any(q[:5]), # 6. None of the above. ) ]) https://gist.github.com/lovasoa/f2b4ed93e755bf4172583d28f20…
A less clever solution, using the wonderful z3 import z3 answers = [z3.Bool(f"answer{i}") for i in range(1,7)] implications = [ z3.And(answers[1:]), # All of the below z3.Not(z3.Or(answers[2:])), # None of the below z3.And(answers[:2]), # All of the above z3.Or(answers[:3]), # Any of the above z3.Not(z3.Or(answers[:4])), # None of the above z3.Not(z3.Or(answers[:5]))] # None of the above constraints = [z3.Implies(ans…
Re: Which answer in this list is the correct answer to this question? (2017)
#1101 can't be right because it both affirms and contradicts 2.
2 can't be right because it both denies and fulfils 4 (even if 'one' means 'one and only one', because we already know that 1 is false, and looking ahead we can see that 3 is also false).
3 affirms 1, which we already know to be false.
4 affirms one of 1-3, which we have determined are all false.
5 is correct, as demonstrated by our finding that 1-4 are all false.
6 is false; we would know this even if we hadn't already worked out that 5 was true, because 6 implies that 1-4 are all false, which implies that 5 is true.