Aan de slagGa gratis aan de slag

Calculating binomial probabilities

Just as in the last exercise, assume that Amir wins 30% of deals. He wants to get an idea of how likely he is to close a certain number of deals each week. In this exercise, you'll calculate what the chances are of him closing different numbers of deals using the binomial distribution.

binom is imported from scipy.stats.

Deze oefening maakt deel uit van de cursus

Introduction to Statistics in Python

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Probability of closing 3 out of 3 deals
prob_3 = ____

print(prob_3)
Code bewerken en uitvoeren