Skip to content

Week 06 - October 21

Class Description

This week we explore probability and randomness through simulation and computation. You'll see how probability theory provides predictions that can be verified through repeated trials, and how object-oriented programming makes complex simulations elegant and maintainable.

Key Connection: Probability theory makes mathematical predictions → Simulations test those predictions through code → Testing validates implementations → Data persistence enables reproducibility.

Key Learning Objectives: - Apply probability theory through Monte Carlo simulation - Build classes that represent probability distributions and random experiments - Use JSON for data persistence - Write comprehensive tests for object-oriented code using pytest - Compare theoretical probabilities to empirical results

Before Class

Videos to Watch Before Class

CS 5002 - Module 6: Probability

Alternative CS 5002 videos:

CS 5001 - Object-Oriented Programming (Continued)

CS 5001 - File I/O and Data Persistence

Additional Resources (External)