Skip to main content

Dont roll more

Source: Taken from the book "Heard on The Street" (Problem 4.2 in Revised 9th Edition) by Timothy Falcon Crack. Saw a very similar problem in the placement test of a hedge fund coming to campus. (Cannot disclose the name. Policy signed :P)

Problem: I will roll a single die not more than three times. You can stop me immediately after the first roll, or immediately after the second, or you can wait for the third. I will pay you the same number of dollars as there are dots on the single upturned face on my last roll (roll number three unless you stop me sooner). What is your playing strategy?

Update(06/02/10):
Solution: Posted by Vivek Kumar Jha (Elec IITB 3rd yr B.Tech) in comments!! Generalized solution by Aman !!

Comments

  1. Basically we need to work backwards.... if you were given single throw then u dont have ny choice n expected outcome is 3.5 . Now for two rolls you can prove that quitting after 1st roll iff outcome is more than 3 for which expected value is 4.25(5/2 + 3.5/2).Now for three throws expected outcome is maximized (5.5/3 + 4.25*2/3 = 4.67) if you choose any value greater than 4 in first throw and greater than 3 in 2nd case.

    ReplyDelete
  2. @viki (vivek).. nice solution
    Try generalising it for N throws.. :)

    ReplyDelete
  3. For 4 throws, if we look for a 5,6 in the first throw and subsequently as before, we get the expected value as 4.94.
    Since this is still less than 5,in case of 5 throws, we look for 5,6 again in the first throw, and proceeding as before get the expected value to be 5.13 (> 5).

    Hence for all N>5, the optimum strategy should be to : Look out for 6 for N-5 throws; 5,6 for next 3 throws and 4,5,6 for the 2nd last throw.

    One more interesting observation that I made was that the series of Expectations converges to 5.5 as N-> infinity.

    @Pratik and viki : can any one of you generalise it for a hypothetical die with values from 1 to M?

    ReplyDelete
  4. A small correction : The expectations converge to 6 (as is seen directly).

    ReplyDelete
  5. Posting the mathematical proof: for N throws (writing Aman's solution with explanation)

    Expected return from the last throw = 3.5

    So, in the last throw, if the output is > 3.5, stop.. else check the last throw.
    So, expected value from the second last throw = 3/6*5 + 3/6*3.5 = 4.25

    Continuing the same way in the third last throw, expected value = 2/6*5.5 + 4/6*4.25 = 5.5/3 + 8.5/3 = 14/3= 4.66

    Expected value in the fourth last throw = 2/6*5.5 + 4/6*4.66 = (5.5+9.32)/3 = 4.94

    Expected value in the fifth last throw = 2/6*5.5 + 4/6*4.94 = 5.13

    The optimum strategy should be to : Look out for 6 for N-5 throws; 5,6 for next 3 throws and 4,5,6 for the 2nd last throw.

    And of course for N->infinity, expected value turns out to be infinity. :)

    Thanx a lot for the solution Aman.

    As far as the mathematical formula for a hypothetical die with values 1 to M is concerned..
    It get messy with cases concerning whether M is divisible by 2 and 3 and 8 or not.
    Assuming M = 6k

    Expectation from first throw = (M+1)/2

    Expectation from second throw = 1/2*((M+2+2M)/4) + 1/2*(M+1)/2 = 5M/8 + 1/2

    Expectation from third throw = .. and so on..

    Result would be analogous. Thanx a lot for your solution.

    ReplyDelete

Post a Comment

Popular posts from this blog

Asking a girl out

This is not a puzzle. So, for those of you who follow this puzzle blog, please bear with me for just one post. Interesting Math in this article though :P

Most of my friends already read an article that I wrote more than an year back - "Speak Up"


Here, inspired by the movie, The Beautiful Mind, I give a mathematical analysis of asking a girl out. Nice time it is. Feb 10. No plans for Feb 14 and I am sure this article makes me look even more geekier and all the more reason for me to believe that I will be alone, yet again. But what the hell, lets do it!

Note: This is not an independent analysis. There are many "mathematics sites" which does "similar" analysis.

@Consultants, correct me if I am wrong in my estimates. :P

Why is there a need to be selective?

From the age of 15, I guess there are approximately 3,600 girls I have liked (On average days, I don't see new girls. But going outside, I like about 30 girls. Saying that I go out once every week right …

Consecutive Heads

Let's say A keep tossing a fair coin, until he get 2 consecutive heads, define X to be the number of tosses for this process; B keep tossing another fair coin, until he get 3 consecutive heads, define Y to be the number of the tosses for this process.

1) Calculate P{X>Y}
2) What's the expected value of X
3) What's the expected value of Y

This is probably the hardest puzzle I have ever put on my blog. Hence, I will post its solution in the post directly rather than on comment.

Solution:
1)
(Solved by me finally after 13 months :))

Make a state diagram. Let the state be (a,b) where a is the number of consecutive heads streak "A" is on currently and b is the number of consecutive heads streak "B" is on currently.

So, (0,3) (1,3) are final accepted states and (2,0) (2,1) (2,2) (2,3) are failure states. If you get tails, your contribution to the state reaches to "0"

f(State) = P(X>Y | "State" configuration initially)

f(0,0) = 1/4[f(…

Fraction Brainteaser

Source:
Sent to me by Gaurav Sinha

Problem:
Siddhant writes a Maths test and correctly answers 5 out of 6 Arithmetic questions and 20 out of 28 Geometry questions. In total, Siddhant scores 25 out of 34. 

Vaibhav writes another Maths test and correctly answers 20 out of 25 Arithmetic questions and 6 out of 9 Geometry questions. in total, Vaibhav scores 26 out of 34.

Note that
a) Vaibhav scores more than Siddhant
b) Siddhant score better than Vaibhav in both individual topics - 5/6 > 20/25 and 20/28 > 6/9

How is it possible?