CommencerCommencer gratuitement

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.

Cet exercice fait partie du cours

Introduction to Statistics in Python

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

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

print(prob_3)
Modifier et exécuter le code