Probability of Opening a Pushbutton Lock

In summary: I'll show you one possibility. Instead of 10 tries, let's imagine it's 2 tries.There is ##{1 \over 252}## chance I get it on my first go and ##{251 \over 252} \cdot {1 \over 251}## chance I get it on the second go. Does that makes sense? See if you can take this idea further.In summary, if a person has forgotten their password, there is a 4% chance of not being able to open the box with just two tries.
  • #1
noreturn2
25
0

Homework Statement


A password has numbers 0-9 in it. The password is 5 digits, repeats are not allowed, and order doesn't matter (I just have to have the correct 5 digit buttons depressed).

A. If I guess at the password, what is the probability that the box will open?

B. If I have completely forgotten the password, what is the probability that it will take less than 10 tries to get it open?

Show your work and/or explain your process.

Homework Equations


Combination

The Attempt at a Solution


10C5 = 252
1/252 = .003 The chances of guessing the code (This seems to low how the order doesn't matter of the numbers as long as they are pushed right)

(1/252)+(1/251)+(1/250)...(1/1/242) =.04% (Also seems to low)

I thought maybe I need to do 5x10/252 because order doesn't matter and there 5 digits and 10 numbers to choose from.
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
noreturn2 said:

The Attempt at a Solution


10C5 = 252
I don't see how you get that. Forget trying to use formulae, just think of it this way: how may ways can you fill the first position? Having done that, how many ways can you fill the second position? Keep going and what do you get?
 
  • #3
phinds said:
I don't see how you get that. Forget trying to use formulae, just think of it this way: how may ways can you fill the first position? Having done that, how many ways can you fill the second position? Keep going and what do you get?
10 Digits chose 5
10!/(5!(10-5)!)= 252

I thought of it as 10*9*8*7*6=30240
5^10=9765625 ways to choose numbers ( this doesn't account for repeats not being allowed)
 
  • #4
noreturn2 said:

Homework Statement


A password has numbers 0-9 in it. The password is 5 digits, repeats are not allowed, and order doesn't matter (I just have to have the correct 5 digit buttons depressed).

A. If I guess at the password, what is the probability that the box will open?

B. If I have completely forgotten the password, what is the probability that it will take less than 10 tries to get it open?

Show your work and/or explain your process.

Homework Equations


Combination

The Attempt at a Solution


10C5 = 252
1/252 = .003 The chances of guessing the code (This seems to low how the order doesn't matter of the numbers as long as they are pushed right)

(1/252)+(1/251)+(1/250)...(1/1/242) =.04% (Also seems to low)

I thought maybe I need to do 5x10/252 because order doesn't matter and there 5 digits and 10 numbers to choose from.

It's a funny sort of lock if the order doesn't matter! Yes, 10C5 is correct.

Your method for part b) is not correct. Imagine there were only two options and you had two choices. You would definitely get it right it two attempts. But not with your method of calculation.
 
  • #5
Would it just be 10/252 then? Then is part A right?
 
  • #6
noreturn2 said:
Would it just be 10/252 then? Then is part A right?

Yes, part A is right. You have to rethink part B. 10/252 is an approximation, but not exact. Although, less than 10 attempts means only 9 attempts in my book!
 
  • #7
noreturn2 said:
I thought of it as 10*9*8*7*6=30240
Yeah, that's what I was getting but I see now that that is the answer to a different question than the one asked.
 
  • #8
PeroK said:
Yes, part A is right. You have to rethink part B. 10/252 is an approximation, but not exact. Although, less than 10 attempts means only 9 attempts in my book!

Could do a geometric series right. So:
1/252+1/251+1/250 +1/249... 1/242

Just don't know hwo to set it up using that formula
a(a-r^n)/1-r
n=10
r=?
 
  • #9
noreturn2 said:
Could do a geometric series right. So:
1/252+1/251+1/250 +1/249... 1/242

Just don't know hwo to set it up using that formula
a(a-r^n)/1-r
n=10
r=?

Okay, a big hint. What about the probability of not guessing it in 9 attempts?
 
  • #10
251/252 is not guessing the right number

250/251 would be not guessing the 2nd time (since we have one less guess made)
 
  • #11
noreturn2 said:
251/252 is not guessing the right number

250/251 would be not guessing the 2nd time (since we have one less guess made)

Good, so keep going from there.
 
  • #12
PeroK said:
Good, so keep going from there.

How can I set this up with the formula?
 
  • #13
noreturn2 said:
How can I set this up with the formula?
Keep going a little further.

What do you do with 251/251, 250/251, 249/250, etc. ?

By the way, 1/252 ≈ 0.00397 .
 
  • Like
Likes PeroK
  • #14
SammyS said:
Keep going a little further.

What do you do with 251/251, 250/251, 249/250, etc. ?

By the way, 1/252 ≈ 0.00397 .

In your case you would be subtracting them, which would be arthemtic.
 
  • #15
noreturn2 said:
How can I set this up with the formula?

I'll show you one possibility. Instead of 10 tries, let's imagine it's 2 tries.

There is ##{1 \over 252}## chance I get it on my first go and ##{251 \over 252} \cdot {1 \over 251}## chance I get it on the second go. Does that makes sense? See if you can take this idea further.
 
  • #16
noreturn2 said:
In your case you would be subtracting them, which would be arthemtic.

We're all giving you ideas, but if you note we are leaving some thinking to you!
 
  • #17
noreturn2 said:
In your case you would be subtracting them, which would be arthemtic.
No, don't subtract them as a group.
 
  • #18
verty said:
I'll show you one possibility. Instead of 10 tries, let's imagine it's 2 tries.

There is ##{1 \over 252}## chance I get it on my first go and ##{251 \over 252} \cdot {1 \over 251}## chance I get it on the second go. Does that makes sense? See if you can take this idea further.

Alright I remember this!

So :
1: 1/252
2: 1/252 * 251/252
3: 1/252 * 251/252 * 250/251
4: 1/252 * 251/252 * 250/251 * 249/250...

Geometric:
(1/252)/(1-(1/252)) = still get .003 tho :(
 
  • #19
noreturn2 said:
Alright I remember this!

So :
1: 1/252
2: 1/252 * 251/252
3: 1/252 * 251/252 * 250/251
4: 1/252 * 251/252 * 250/251 * 249/250...

Geometric:
(1/252)/(1-(1/252)) = still get .003 tho :(

Some of the time, I get it right on the first go. This is a frequency of ##{1 \over 252}##. Some of the time I don't, and some of that time I get it on my second go. That is a frequency of ##{251 \over 252} \cdot {1 \over 251}##. I can't explain this any better. I hope it helps but otherwise I'm sorry I couldn't be more helpful.
 
  • #20
noreturn2 said:
Alright I remember this!

So :
1: 1/252
2: 1/252 * 251/252
3: 1/252 * 251/252 * 250/251
4: 1/252 * 251/252 * 250/251 * 249/250...

Geometric:
(1/252)/(1-(1/252)) = still get .003 tho :(

Your computations are wrong. Let the events be ##S_n=## succeed on draw ##n## and ##F_n = ## fail on draw ##n##.
$$\begin{array}{ll} P(S_1) = \frac{1}{252}, &P(F_1) = \frac{251}{252} \\
P(S_2|F_1) = \frac{1}{251}, & P(F_2|F_1) = \frac{250}{251}\\
P(S_3|F_1 \cap F_2) = \frac{1}{250},&P(F_3|F_1 \cap F_2) = \frac{249}{250} \\
\vdots & \vdots
\end{array}$$ Thus,
$$P(F_1 \cap F_2) = \frac{251}{252} \cdot \frac{250}{251} = \frac{250}{252}.$$
Similarly, ##P(F_1 \cap F_2 \cap F_3) = 249/252, ## etc.
 

1. What is the probability of successfully opening a pushbutton lock on the first try?

The probability of successfully opening a pushbutton lock on the first try depends on the specific lock and the number of buttons on the lock. If there are only a few buttons, the probability is higher. However, if there are many buttons, the probability decreases.

2. Does the order of button presses affect the probability of opening a pushbutton lock?

Yes, the order of button presses can affect the probability of opening a pushbutton lock. For example, if the lock requires a specific sequence of button presses, not following the correct order decreases the chances of successfully opening the lock.

3. How does the complexity of the pushbutton lock affect the probability of opening it?

The complexity of the pushbutton lock can greatly affect the probability of opening it. As the lock becomes more complex, with more buttons and/or a specific sequence of button presses, the probability of successfully opening it decreases.

4. Are there any strategies or techniques that can increase the probability of opening a pushbutton lock?

Yes, there are strategies and techniques that can increase the probability of opening a pushbutton lock. Some common techniques include trying common codes (such as 1234 or 0000), looking for patterns in the buttons, and using trial and error by pressing different combinations of buttons.

5. Can the probability of opening a pushbutton lock be calculated?

The probability of opening a pushbutton lock can be estimated, but it cannot be calculated with certainty. This is because there are many variable factors, such as the specific lock, the number of buttons, and the complexity of the lock. The probability can also be affected by human error, as pressing the wrong button or forgetting the correct sequence can decrease the chances of successfully opening the lock.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
2
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
738
  • Programming and Computer Science
Replies
1
Views
1K
  • Precalculus Mathematics Homework Help
Replies
9
Views
3K
  • Precalculus Mathematics Homework Help
Replies
29
Views
2K
  • Precalculus Mathematics Homework Help
Replies
6
Views
1K
  • Precalculus Mathematics Homework Help
2
Replies
59
Views
4K
  • Precalculus Mathematics Homework Help
Replies
6
Views
3K
  • Set Theory, Logic, Probability, Statistics
Replies
7
Views
338
  • Precalculus Mathematics Homework Help
Replies
12
Views
7K
Back
Top