Challenge
Uppgift
Swipe to start coding
Let's assume that we want to conduct an experiment to determine the probability that a person has more than 3 cats, let's consider that we have asked 1000 people (they can answer yes or no). Follow the algorithm:
- Import
binom
object. - Calculate the probability that more than
200
people answeredyes
to your question among1000
that were interviewed. The probability of receiving a positive answer is0.3
or30%
.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 4. Kapitel 5