Embryos are transferred, and each has the same chance of implanting, on its own. You will list every outcome with exact fractions, and find some chances. The model is made up for learning.
The idea. For embryos, there are outcomes. Each embryo either implants (1) or does not (0). The chance of an outcome is the product of the chances of its parts.
Your tasks.
outcomes. It gives a dictionary: for each number of embryos that implant, the chance of that number.at_least. It gives the chance that k or more embryos implant.expected. It gives the expected number that implant.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…