Probability of guessing a number correctly in x guesses?

  • Thread starter Thread starter moonman239
  • Start date Start date
  • Tags Tags
    Probability
AI Thread Summary
The discussion revolves around calculating the probability of Bob guessing a number correctly within a set number of attempts, given he receives feedback on whether his guesses are too high or too low. It emphasizes that Bob's guessing strategy significantly affects his chances, particularly if he employs a methodical approach like bisection, which optimizes his guesses. However, Bob prefers to guess randomly, which complicates the probability calculations. The conversation highlights the importance of understanding the changing probability based on Bob's guesses and the feedback provided by Amy. Ultimately, the thread seeks clarity on the probability of guessing correctly within 6 and 30 attempts under these conditions.
moonman239
Messages
276
Reaction score
0

Homework Statement


Suppose that Amy tells Bob to guess the number she's thinking of. This number can be anywhere between 1 and 100. Amy allows Bob as many guesses as he needs. Each time Bob randomly guesses the number, Amy tells him whether his guess is too low, too high, or correct.

Given that information, what is the probability that:

1) it will take Bob at most 6 guesses
2) it will take Bob at most 30 guesses

Homework Equations


The Attempt at a Solution



Well, this is not really a solution, but let me tell you what I know about the problem so as to help someone give me a solution: The probability of guessing the number correctly changes, because Bob will always change his guess based on Amy's clues. For example, if Bob guesses 36, and Amy tells him that guess is "too high," Bob then knows that Amy's number is somewhere between 1 and 35. Then the probability of guessing the number correctly is 1/34.
 
Last edited:
Physics news on Phys.org
The best thing Bob can do is "bisect". That is, guess "50" to start with then, being told "too high" or "too low", guess the middle of the remaining segment of numbers. The crucial point is that 27= 128> 100. Think about what the tells you.
 
HallsofIvy said:
The best thing Bob can do is "bisect". That is, guess "50" to start with then, being told "too high" or "too low", guess the middle of the remaining segment of numbers. The crucial point is that 27= 128> 100. Think about what the tells you.

Bob doesn't want to "bisect," he likes randomly guessing the number.
 
moonman239 said:
Bob doesn't want to "bisect," he likes randomly guessing the number.

But you said Bob uses the "too high" or "too low" clues, so it is safe to assume he isn't guessing randomly. He is using information he learns. If he actually guesses randomly each time it might take 100 or even more guesses. Think again about the hint Halls gave you.
 
The problem says, "Each time Bob randomly guesses the number, Amy tells him whether his guess is too low, too high, or correct." Randomly guesses.

So assume that Bob guesses totally randomly bounded by his understanding of the solution space (the minimum and maximum it could be), and that Amy has chosen a border case number like 1. Amy chooses 1. Bob unluckily guesses a number N1 between 1..100. Amy probably says "too high." Bob guesses a new number N2 between 1..N1.
 
Adam D said:
The problem says, "Each time Bob randomly guesses the number, Amy tells him whether his guess is too low, too high, or correct." Randomly guesses.

So assume that Bob guesses totally randomly bounded by his understanding of the solution space (the minimum and maximum it could be), and that Amy has chosen a border case number like 1. Amy chooses 1. Bob unluckily guesses a number N1 between 1..100. Amy probably says "too high." Bob guesses a new number N2 between 1..N1.

Yes, thank you. Sorry for bumping a month-old thread. Will somebody please answer my question?
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Essentially I just have this problem that I'm stuck on, on a sheet about complex numbers: Show that, for ##|r|<1,## $$1+r\cos(x)+r^2\cos(2x)+r^3\cos(3x)...=\frac{1-r\cos(x)}{1-2r\cos(x)+r^2}$$ My first thought was to express it as a geometric series, where the real part of the sum of the series would be the series you see above: $$1+re^{ix}+r^2e^{2ix}+r^3e^{3ix}...$$ The sum of this series is just: $$\frac{(re^{ix})^n-1}{re^{ix} - 1}$$ I'm having some trouble trying to figure out what to...
Back
Top