这是indexloc提供的服务,不要输入任何密码
Skip to content

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

@ghost

Description

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions