Lesson 12: Simulation Project
December 2, 2026
Review:
- Course evaluations
- Schedule:
- Exam 3 on Wed 9 Dec
- All-Purpose Make-up Exam (APME)
- 1p on Mon 14 Dec in HSB 111
- I will grade and post Exam 3 scores as fast as possible.
- You will decide whether or not to take the APME.
- If you take the APME, it will not harm your overall score. It can only improve it.
- If you don’t take the APME, your score will be set based on the Datacamp + 3 Exams.
- Bootstrapping
Presentation:
- Exam 3 Preparation – this will be the “take-home” portion of your exam:
- Begin with the Advanced Stock Market Simulation file (ASM)
- Make modifications to the ASM as follows:
- Currently, the ASM simulates a blended portfolio including both stocks and bonds
- Add one additional investment vehicle
- Perhaps you can use the one you worked on before Thanksgiving.
- Each student must sign up for an investment.
- One investment per student – first come, first serve.
- Incorporate the additional investment and use bootstrapping
- Your investment should have a reasonably lengthy history for the bootstrapping to work well
- Collect annual returns going as far back as possible.
- Minimum length is 10 years.
- Here’s a list of possibilities: Investments for Bootstrapping
- Modify the worksheet to add in this additional investment.
- You’ll need to be able to set the % allocation for stocks, bonds and your investment (e.g., 50%, 30%, 20%)
- The investment allocations must add to 100%
- The Beginning Balance and Annual Contribution must be utilized and remain functional.
- Retirement Goal must be editable in one cell so you can change the goal and rerun quickly.
- Probability of Retirement Goal must be calculated accurately and updated after each run
- Max, Min, Median, Mean, Standard Deviation must be functional in your modified sim
- The Ending Balances histogram must be functional
- Your “Launch” button must be functional
- Modify the Apps Script
- Your output column may change: let outputColumn = “K”;
- Your source value cell may change: let srcValue = “I41”;
- The launch button may need to be updated
- Test your updated ASM to be sure it’s incorporating your new investment vehicle using bootstrapping.
- Run a few scenarios
- Be sure the Probability of Retirement Goal is working correctly
- During Exam 3 you will be asked to run your simulation and estimate the probability of successfully reaching various goals. Be sure your spreadsheet is ready to go for the exam!
Activity:
- Sign up for your individual investment vehicle for bootstrapping
- Begin working on your ASM modifications – now’s the time to ask questions!