Removed duplicated word in README.md (#2)
This commit is contained in:
parent
6cfeead498
commit
481a586769
@ -23,7 +23,7 @@ Next, create an `experiment` function in `prob_calculator.py` (not inside the `H
|
||||
|
||||
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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user