MulaiMulai sekarang secara gratis

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.

Latihan ini adalah bagian dari kursus

Introduction to Statistics in Python

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Import binom from scipy.stats
____

# Set random seed to 10
____
Edit dan Jalankan Kode