Probability distribution pin code guessing

Max.Planck
Messages
128
Reaction score
0

Homework Statement


What is the distribution of stochastic variable X = "the number of attempts needed to find the correct last digit of a pin code"


Homework Equations





The Attempt at a Solution


I thought it was like this:
P(X=1) = 1/10
P(X=2) = 9/10*1/9
P(X=3) = 9/10*8/9*1/7
...
...
P(X=10) = 9/10*8/9*7/8*6/7*5/6*4/5*3/4*2/3*1/2*1

Thank you!
 
Physics news on Phys.org


Max.Planck said:

Homework Statement


What is the distribution of stochastic variable X = "the number of attempts needed to find the correct last digit of a pin code"


Homework Equations





The Attempt at a Solution


I thought it was like this:
P(X=1) = 1/10
P(X=2) = 9/10*1/9
P(X=3) = 9/10*8/9*1/7
...
...
P(X=10) = 9/10*8/9*7/8*6/7*5/6*4/5*3/4*2/3*1/2*1

Thank you!

Looks good.

RGV
 


Ray Vickson said:
Looks good.

RGV

Thanks. Is it possible to capture P(X=x) in a formula?
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top