Probability of guessing a number correctly in x guesses?

  • Thread starter moonman239
  • Start date
  • Tags
    Probability
In summary, the probability of Bob guessing the number correctly is 1/34 if he guesses randomly, and 1/2 if he guesses bisectively.
  • #1
moonman239
282
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
  • #2
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.
 
  • #3
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.
 
  • #4
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.
 
  • #5
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.
 
  • #6
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?
 

1. What is the probability of guessing a number correctly in one guess?

The probability of guessing a number correctly in one guess is 1 out of the total possible numbers. For example, if you are guessing a number between 1 and 10, the probability would be 1 out of 10, or 10%.

2. How does the number of guesses affect the probability of guessing correctly?

The more guesses you have, the higher the probability of guessing the number correctly. This is because with each guess, you eliminate more possibilities and increase your chances of getting the correct answer.

3. Is the probability of guessing a number correctly the same for all numbers?

No, the probability of guessing a number correctly depends on the range of numbers you are guessing from. For example, if you are guessing a number between 1 and 10, the probability would be different from guessing a number between 1 and 100.

4. Can the probability of guessing a number correctly be higher than 100%?

No, the probability of guessing a number correctly can never be higher than 100%. This would mean that you have more than a 100% chance of getting the correct answer, which is not possible.

5. How can you calculate the exact probability of guessing a number correctly in x guesses?

The exact probability of guessing a number correctly in x guesses can be calculated using the formula (1/n)^x, where n is the range of numbers you are guessing from. For example, if you are guessing a number between 1 and 10 in 3 guesses, the probability would be (1/10)^3 = 0.001 or 0.1%.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
29
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
5
Views
2K
  • Precalculus Mathematics Homework Help
Replies
1
Views
849
  • Precalculus Mathematics Homework Help
Replies
19
Views
2K
  • Programming and Computer Science
Replies
8
Views
1K
  • Quantum Physics
Replies
16
Views
2K
  • Quantum Interpretations and Foundations
2
Replies
37
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
7
Views
327
  • Precalculus Mathematics Homework Help
Replies
8
Views
1K
  • Special and General Relativity
Replies
24
Views
2K
Back
Top