Removed duplicated word in README.md (#2)

This commit is contained in:
ngschaider 2020-10-13 15:29:14 +02:00 committed by GitHub
parent 6cfeead498
commit 481a586769
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ Next, create an `experiment` function in `prob_calculator.py` (not inside the `H
The `experiment` function should return a probability. The `experiment` function should return a probability.
For example, let's say that you want to determine the probability of getting at least 2 red balls and 1 green ball when you draw 5 balls from from a hat containing 6 black, 4 red, and 3 green. To do this, we perform `N` experiments, count how many times `M` we get at least 2 red balls and 1 green ball, and estimate the probability as `M/N`. Each experiment consists of starting with a hat containing the specified balls, drawing a number of balls, and checking if we got the balls we were attempting to draw. For example, let's say that you want to determine the probability of getting at least 2 red balls and 1 green ball when you draw 5 balls from a hat containing 6 black, 4 red, and 3 green. To do this, we perform `N` experiments, count how many times `M` we get at least 2 red balls and 1 green ball, and estimate the probability as `M/N`. Each experiment consists of starting with a hat containing the specified balls, drawing a number of balls, and checking if we got the balls we were attempting to draw.
Here is how you would call the `experiment` function based on the example above with 2000 experiments: Here is how you would call the `experiment` function based on the example above with 2000 experiments: