Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong result for Q15:"Max Dice Roll" #3

Open
LoicH opened this issue Aug 7, 2020 · 0 comments
Open

Wrong result for Q15:"Max Dice Roll" #3

LoicH opened this issue Aug 7, 2020 · 0 comments

Comments

@LoicH
Copy link

LoicH commented Aug 7, 2020

Hi @adijo, I believe that in your PDF, the solution for question 15 "Max Dice Roll" is not the expected answer.

You write the formula for P(max{X1, ..., Xn} <= r) but we don't want the probability that the largest number rolled is less than (or equal to) r. We want the probability that the largest number rolled is equal to r.

So the expected result is P(max{X1, ..., Xn} = r) which changes the formula:

P(max{X1, ..., Xn} = r) = r^n/6^n - (r-1)^n/6^n
(from here)

You can verify that the PDF formula does not give the wanted result:

  • for n=1 and r=2: "What is the probability that I roll a 2?" We know it's 1/6 but the formula gives 2/6.
  • for r=6: "What is the probability that the largest number rolled is 6?". The formula gives a probability of 1, which means that whatever the number of rolls, we will get a 6! That would be nice!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant