Get startedGet started for free

Simulating sales deals

Assume that Amir usually works on 3 deals per week, and overall, he wins 30% of deals he works on. Each deal has a binary outcome: it's either lost, or won, so you can model his sales deals with a binomial distribution. In this exercise, you'll help Amir simulate a year's worth of his deals so he can better understand his performance.

numpy is imported as np.

This exercise is part of the course

Introduction to Statistics in Python

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Import binom from scipy.stats
____

# Set random seed to 10
____
Edit and Run Code