Post Reply 
[VA] SRC #012a - Then and Now: Probability
10-09-2022, 01:29 AM
Post: #7
RE: [VA] SRC #012a - Then and Now: Probability
.
Hi, C.Ret,

(10-08-2022 04:57 PM)C.Ret Wrote:  My program finds that on a triangle of R=5 rows, the probability that the man is on the last row after S=4 steps is P ~ 0.07961. Is this a correct value?

Well, in my OP I said:
    "If desired, you can check the correctness of your code by running the simpler R = 5 rows, S = 4 steps case, which should return a probability P = 23/288"
As 23/288 evaluates to 0.079861... then yes, your result is correct, except that you omitted the 8, a simple typo.

Quote:EDIT:
I upgraded my code to avoid rounding errors as much as possible. Now I find P = 1656 / 20736 for R=5 and S=4 [...]

But 1656/20736 immediately simplifies to 23/288, which is the correct result, as stated in my OP. Why would you give your result as a fraction not reduced to its lowest terms ? Smile

Thanks for your interest and regards.
V.

  
All My Articles & other Materials here:  Valentin Albillo's HP Collection
 
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [VA] SRC #012a - Then and Now: Probability - Valentin Albillo - 10-09-2022 01:29 AM



User(s) browsing this thread: 9 Guest(s)