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

Slight mistake in 'A Concrete Introduction to Probability' #137

Open
glchapman opened this issue Nov 27, 2024 · 0 comments
Open

Slight mistake in 'A Concrete Introduction to Probability' #137

glchapman opened this issue Nov 27, 2024 · 0 comments

Comments

@glchapman
Copy link

In the section 'Predicates as events' the function is_prime is defined, but the examples use prime which was previously defined as a set the primes up to 13. This means the probabilities shown for the 20 sided die are incorrect. For example:

P(prime, die(20))

0.3

The correct probability is 0.4:

>>> len({2,3,5,7,11,13,17,19})/20
0.4

Thanks for posting all these notebooks!

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