Probability distribution pin code guessing

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 3K views
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!
 
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?