Jump to content

Test problem


gwnn

Recommended Posts

The professor says to his students: "next week we will certainly have an exam. it can be on any weekday, but nobody will know in advance on which."

 

Now students start wondering...

 

"Friday is obviously impossible, because Thursday night it will become the only possibility, so all of us will know"

 

...

 

"Thursday is impossible, because Friday's impossible and thus on Wednesday we'd know"

 

et cetera

 

"We can't have a test! WTF"

Link to comment
Share on other sites

This dilemma has been studied extensively in the context of non-blinded randomized clinical trials with serial recruitment. The problem is this:

 

Suppose you can afford to recruit 100 test patients, and ideally 50 would be allocated to the treatment group and 50 to the control group, each having a 50/50 chance. Now if the first, say, 92 recruits accidentally are allocated as 50 in one group and 42 in the other, then you already know that all the 8 remaining will go to the 42 group. So you will be recruiting some under a 50/50 condition and others under a 100/0 condition, which causes some potential bias.

 

The theoretically optimal solution is to accept some compromise, i.e. the allocation will be somewhere between 50/50 and binomial, while the probabilities for the last recruit may be slightly off 50/50. (If feasible, one could also, for example, recruit the subjects as pairs and allocate each pair 1/1 randomly).

 

Your case is simpler because it is given that there will be exactly one test. There must be an, in some sense, optimal solution which assigns decreasing probabilities to the five days.

Link to comment
Share on other sites

This dilemma has been studied extensively in the context of non-blinded randomized clinical trials with serial recruitment. The problem is this:

 

Suppose you can afford to recruit 100 test patients, and ideally 50 would be allocated to the treatment group and 50 to the control group, each having a 50/50 chance. Now if the first, say, 92 recruits accidentally are allocated as 50 in one group and 42 in the other, then you already know that all the 8 remaining will go to the 42 group. So you will be recruiting some under a 50/50 condition and others under a 100/0 condition, which causes some potential bias.

 

The theoretically optimal solution is to accept some compromise, i.e. the allocation will be somewhere between 50/50 and binomial, while the probabilities for the last recruit may be slightly off 50/50. (If feasible, one could also, for example, recruit the subjects as pairs and allocate each pair 1/1 randomly).

 

Your case is simpler because it is given that there will be exactly one test. There must be an, in some sense, optimal solution which assigns decreasing probabilities to the five days.

Sometimes I wonder if you are serious, or just messing with us. :)

Link to comment
Share on other sites

This dilemma has been studied extensively in the context of non-blinded randomized clinical trials with serial recruitment. The problem is this:

 

Suppose you can afford to recruit 100 test patients, and ideally 50 would be allocated to the treatment group and 50 to the control group, each having a 50/50 chance. Now if the first, say, 92 recruits accidentally are allocated as 50 in one group and 42 in the other, then you already know that all the 8 remaining will go to the 42 group. So you will be recruiting some under a 50/50 condition and others under a 100/0 condition, which causes some potential bias.

 

The theoretically optimal solution is to accept some compromise, i.e. the allocation will be somewhere between 50/50 and binomial, while the probabilities for the last recruit may be slightly off 50/50. (If feasible, one could also, for example, recruit the subjects as pairs and allocate each pair 1/1 randomly).

 

Your case is simpler because it is given that there will be exactly one test. There must be an, in some sense, optimal solution which assigns decreasing probabilities to the five days.

Sometimes I wonder if you are serious, or just messing with us. ;)

You do this as a double blinded assignment. You have 50 "chips" that are for the study, and 50 that are for the placebo. You let the participants (essentially) draw out a chip. The person allowing the "drawing" doesn't know the result, the chip is taken the pharmacy, where the medicine or the placebo is given. After 100 people have choosen, the pharmacy knows which is which, but not the clinician.

 

That isn't exactly the right way, but you never let the person analyzing the effectiveness of the treatment "assign" the people to the groups. If you do, there is a chance of bias in the assignment.

 

As for the exam issue, everyone has to show up on monday, prepared, because that might be the day. Etc, etc...so put the exam off to Friday to have a full class of prepared students every day of the week. What's the problem. :)

Link to comment
Share on other sites

The approximate solution is (probabilities for each day):

monday: 0.2582701

tuesday: 0.2259959

wednesday: 0.1934004

thursday: 0.1611666

friday: 0.1611670

csabaproblem.negsurprise = function (cond.p) { 
   p = c(cond.p,1)*c(1,cumprod(1-cond.p))
   return(sum(p*(c(cond.p,1))))
}
cond.p.opt=nlminb(rep(0.25,4),csabaproblem.negsurprise,lower=rep(0.00001,4),upper=rep(0.99999,4))$par
p.opt = c(cond.p.opt,1)*c(1,cumprod(1-cond.p.opt))

Link to comment
Share on other sites

The approximate solution is (probabilities for each day):

monday: 0.2582701

tuesday: 0.2259959

wednesday: 0.1934004

thursday: 0.1611666

friday: 0.1611670

csabaproblem.negsurprise = function (cond.p) { 
   p = c(cond.p,1)*c(1,cumprod(1-cond.p))
   return(sum(p*(c(cond.p,1))))
}
cond.p.opt=nlminb(rep(0.25,4),csabaproblem.negsurprise,lower=rep(0.00001,4),upper=rep(0.99999,4))$par
p.opt = c(cond.p.opt,1)*c(1,cumprod(1-cond.p.opt))

Ok, now I am certain you are just messing with us.

Link to comment
Share on other sites

I should probably elaborate:

 

cond.p in my code are the probabilities of the test taking place on the individual days, from the viewpoint of the evening before. For example, cond.p[friday] must be 1.

 

The negsurprise is cond.p for the day when the test actually takes place. For example if cond.p[wednesday] is 0.4 and the test takes place on wednesday, the negsurprise is 0.4.

 

My script minimizes the expected value of the negsurprise, i.e. sum(p*cond.p).

Link to comment
Share on other sites

I've seen this paradox before. I'm sure it's discussed plenty on wiki.

 

I much prefer this simpler one. The statement "I am lying" can only be true if it's false.

Is that really a paradox? It is simply an untrue statement. "I am an elephant" is not a paradox.

Link to comment
Share on other sites

I've seen this paradox before.  I'm sure it's discussed plenty on wiki.

 

I much prefer this simpler one.  The statement "I am lying" can only be true if it's false.

Is that really a paradox? It is simply an untrue statement. "I am an elephant" is not a paradox.

It's not simply an untrue statement.

 

It can only be false if it's true.

 

The same is not true for your statement.

Link to comment
Share on other sites

Strictly speaking, there will always be a chance that the students will know on the night before. What about the solution 0.249 - 0.249 - 0.249 - 0.249 - 0.004? The problem with that one is not that there's a 0.004 chance that the students will know that the test takes place on Friday. The problem is that there's a 0.253 chance that they will know with 0.984 confidence that it takes place on Thursday.

 

One has to forget about the dichotomous certain/uncertain distinction, and treat information as a quantitative thing.

Link to comment
Share on other sites

It's only a paradox because people look for a deterministic solution to an obvious mixed-strategy problem. Kinda like "which symbol is optimal in the stone-paper-scissors game".

 

Strictly speaking, there will always be a chance that the students will know on the night before. What about the solution 0.249 - 0.249 - 0.249 - 0.249 - 0.004? The problem with that one is not that there's a 0.004 chance that the students will know that the test takes place on Friday. The problem is that there's a 0.253 chance that they will know with 0.984 confidence that it takes place on Thursday.

 

One has to forget about the dichotomous certain/uncertain distinction, and treat information as a quantitative thing.

i love it when you talk like that

Link to comment
Share on other sites

The approximate solution is (probabilities for each day):

monday: 0.2582701

tuesday: 0.2259959

wednesday: 0.1934004

thursday: 0.1611666

friday: 0.1611670

csabaproblem.negsurprise = function (cond.p) { 
   p = c(cond.p,1)*c(1,cumprod(1-cond.p))
   return(sum(p*(c(cond.p,1))))
}
cond.p.opt=nlminb(rep(0.25,4),csabaproblem.negsurprise,lower=rep(0.00001,4),upper=rep(0.99999,4))$par
p.opt = c(cond.p.opt,1)*c(1,cumprod(1-cond.p.opt))

I want to make sure that I understand that nature of your "solution":

 

You are solving for the probability density function that minimizes the chance that a student can accurately guess which day the test will occur.

Link to comment
Share on other sites

You are solving for the probability density function that minimizes the chance that a student can accurately guess which day the test will occur.

Uhm ... yes, something like that. The density function that minimizes the expected value of p.cond(testday=x), where x is the day on which the test actually takes place, and by p.cond I mean the probabilities assigned the evening before. (This corresponds to your phrasing if "accurately guess" means flipping a weighted coin and have it right. If it means "getting prepared for the test as soon as the probability exceeds 50%", it's a different matter).

 

Alternatively, one could minimize the expected value of the "information-theoretical" object function log(p.cond(testday=x)) but that leads to meaningless results, not sure why.

Link to comment
Share on other sites

The professor says to his students: "next week we will certainly have an exam. it can be on any weekday, but nobody will know in advance on which."

 

Now students start wondering...

 

"Friday is obviously impossible, because Thursday night it will become the only possibility, so all of us will know"

 

...

 

"Thursday is impossible, because Friday's impossible and thus on Wednesday we'd know"

 

et cetera

 

"We can't have a test! WTF"

Nah, it's easy.

 

On Monday, the students take a practice exam.

On Tuesday, there is a 20% chance that the teacher gives them the real exam.

On Wednesday, if they didn't take the test on Tuesday, there is a 25% chance that the teacher gives them the real exam.

On Thursday, if they didn't take the text on Tuesday or Wednesday, there is a 33% chance that the teacher gives them the real exam.

On Friday, if they didn't take the test on Tuesday, Wednesday, or Thursday, there is a 50% chance that they take the real exam, and a 50% chance that the professor declares that the 'practice' exam they took on Monday was in fact the real exam, and here are their grades.

 

That should maximize surprise and guarantee that nobody will know in advance on which day the real exam will be given.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...