Probability with combinatrics and distribution (big question)

In summary, permutation and combination are two different ways of arranging and selecting objects in probability, with permutation considering order and combination not considering order. The probability of an event can be calculated by dividing the number of favorable outcomes by the total number of possible outcomes, using the formula P(E) = n(E)/n(S). The binomial distribution is a probability distribution used for trials with only two possible outcomes and is calculated by multiplying the number of trials by the probability of success. Expected value in probability with combinatorics is the average value expected in a series of trials, calculated by multiplying each possible outcome by its probability and adding them together.
  • #1
hb2325
20
0
Q. The digital security code needed to open a safe in a bank is 7835. A thief tries to open the safe by entering a randomly chosen sequence of 4 digits ( each digit is independent and equally likely to be any number from 0 to 9 )

A. Find the probability that the thief enters the correct code.

B. Find P that the thief gets first or 2nd digit right (or both)

C. Thief carries on entering digits till he gets it right, forgets which sequences he entered so all sequences are equally likely and successive attempts are independent. Let Y be the number of attempts till he enters the correct code. Name the distribution of Y and find P ( y>= 200)

D. Suppose thief knows that the code is composed of digits 2,5,7,8, he enteres them in random orders.

i) find P of thief entering right code.
ii) Find p of entering exactly 2 of 4 digits in correct position.
Attempt at Ansers :

A: Probability of entering correct code = (1/10)^4 = 1/10,000

B: P of getting first digit right = 1/10, second = 1/10 so first or 2nd = 2/10 or 1/5, getting both right = 1/10*1/10 = 1/100 so, B = 20/100 + 1/100 = 21/100

C: I'm not sure what to call this distribution. Not uniform, binomial, exponential? Geometric I think but I can't explain why, I kind of don't understand exponential/geometric distributions.

P(y>=200) erm I'm stumped. I know in a geometric is p x=k is q^k-1 * p where q is probability of first trial failing but I don't know how to go from x=k to x>k or x<k.Very confused and any input would be appreciated, thank you.D i) Correct code = 1/4! = 1/24
ii) Exactly 2 in correct order = ( 1/4 * 1/3 ) * 2, because you can arrange any 2 numbers in 2 ways. = 1/6.
 
Last edited:
Physics news on Phys.org
  • #2
A,B,D look correct.
C. it is the geometric distribution. To find P(y>=200), you have to find 1 - F(199), where F is the cdf of the geometric distribution.
 
  • #3
I think B is incorrect. The 1/10 of guesses that are right for the first digit include those that are also right for the second digit. Same for second digit right including first digit correct case. Thus, both right is double counted if you just add these. Further, the 1/10 probability includes cases of all digits correct, etc.

What I would say, based on this, is that the probability of getting at least one of the first two digits correct is .1 + .1 - .01 = .19. This includes the possibility of getting more than two correct. If you want to exclude those, you need more adjustments.
 
  • #4
Note, for C, your definition that prior sequences are forgotten, so the same might be chosen twice, makes this a problem 'sampling with replacement'. The key difference, is 'with replacement', after 10,000 tries, it is still possible the key has not been found (and some wrong keys will have been found multiple times). 'Without replacement', it is certain that you have the key in 10,000 tries.

So p(y>=200) is simply 1-.9999^199
 
  • #5
I think D)ii) is also incorrect. Consider that there are 6 choices for which two digits are in the correct positions. For each of these, the 'correct digits' must be placed in the correct positions (one choice), and the incorrect digits must be placed incorrectly (also one choice - the other way is correct). Thus of the 24 permutations, 6 are correct in exactly two positions. Thus p=1/4, not 1/6.
 
  • #6
PAllen thanks for taking the time to look at this I really appreciate it.

For B so If I subtract the probability of getting both of the first two correct from the addition of first or second, that's it but it's still double counting three and four? What would be the further adjustments if you could please help me with them?

For D)ii) Ok what you say makes sense and after writing the 4 numbers down in sequences of 2 I can see that you are correct, but I don't understand still how even though we are looking at permutations since order matters, why do I have to take combinations of the 2 numbers :S.

Thanks again.

For C
 
  • #7
hb2325 said:
PAllen thanks for taking the time to look at this I really appreciate it.

For B so If I subtract the probability of getting both of the first two correct from the addition of first or second, that's it but it's still double counting three and four? What would be the further adjustments if you could please help me with them?

For D)ii) Ok what you say makes sense and after writing the 4 numbers down in sequences of 2 I can see that you are correct, but I don't understand still how even though we are looking at permutations since order matters, why do I have to take combinations of the 2 numbers :S.

Thanks again.


For C

To correct B to a precise answer is actually easy. Just: .19 *.9 *.9

As for better explaining D)ii, I will have to punt. I actually thought quite a bit how to explain it, and couldn't come up with anything better than what I wrote. Hopefully, someone else might help with an explanation, or just continue thinking about it and playing around with similar problems.
 

1. What is the difference between permutation and combination in probability?

Permutation refers to the arrangement or order of a set of objects, while combination refers to the selection of objects without considering the order. In other words, permutation takes into account the order of the objects, while combination does not.

2. How do you calculate the probability of an event using combinatorics?

The probability of an event can be calculated by dividing the number of favorable outcomes by the total number of possible outcomes. In combinatorics, this can be done by using the formula P(E) = n(E)/n(S), where n(E) is the number of ways the event can occur and n(S) is the total number of outcomes.

3. What is the binomial distribution and when is it used?

The binomial distribution is a probability distribution that describes the number of successful outcomes in a series of independent trials. It is used when there are only two possible outcomes for each trial, and the trials are independent from each other.

4. How do you calculate the mean of a binomial distribution?

The mean of a binomial distribution can be calculated by multiplying the number of trials by the probability of success in each trial. In other words, the mean is equal to n * p, where n is the number of trials and p is the probability of success.

5. Can you explain the concept of expected value in probability with combinatorics?

The expected value in probability with combinatorics is the average value that we expect to get in a series of trials. It is calculated by multiplying each possible outcome by its probability and then adding all the products together. This gives us an idea of what to expect in the long run, even though individual outcomes may vary in the short term.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
14
Views
2K
  • Precalculus Mathematics Homework Help
Replies
19
Views
1K
  • Precalculus Mathematics Homework Help
Replies
7
Views
777
  • Precalculus Mathematics Homework Help
Replies
16
Views
2K
  • Precalculus Mathematics Homework Help
Replies
2
Views
1K
  • Precalculus Mathematics Homework Help
Replies
19
Views
2K
  • Precalculus Mathematics Homework Help
Replies
2
Views
1K
  • Precalculus Mathematics Homework Help
Replies
4
Views
3K
  • Precalculus Mathematics Homework Help
Replies
2
Views
720
  • Precalculus Mathematics Homework Help
Replies
12
Views
2K
Back
Top