fix(curriculum): fitting an instruction text to fcc document (#46866)
* fix: fitting an instruction text to fcc document * Update curriculum/challenges/english/07-scientific-computing-with-python/scientific-computing-with-python-projects/probability-calculator.md Co-authored-by: Sem Bauke <semboot699@gmail.com> Co-authored-by: Sem Bauke <semboot699@gmail.com>pull/46871/head
parent
f283e93987
commit
6b1d2e374f
|
@ -37,7 +37,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 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, if you want to determine the probability of getting at least two red balls and one green ball when you draw five balls from a hat containing six black, four red, and three green. To do this, you will perform `N` experiments, count how many times `M` you get at least two red balls and one green ball, and estimate the probability as `M/N`. Each experiment consists of starting with a hat containing the specified balls, drawing several balls, and checking if you got the balls you 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