Here are the steps to complete the homework:
1. Define the inputs:
- Number of sales reps (num_reps)
- Target sales amount per rep (distributed normally)
- Commission rate if meet target
- Commission rate if exceed target
- Standard deviation of sales amounts
2. Use NumPy to generate random sales amounts based on the inputs
- Generate random numbers based on normal distribution
- Multiply random numbers by target amounts
3. Calculate commissions
- Compare sales to targets
- Apply different commission rates below and above target
- Sum commissions
4. Run simulation multiple times (e.g. 10,000) to get distribution
- Record commissions from each run
- Calculate average