Open
Description
I would like to propose a stochastic simulation tutorial that teaches using random variables generated from NumPy to simulate various situations and solve problems. The general outline for this tutorial is below.
- Primer on generating random variables in NumPy
- Birthday problem (https://en.wikipedia.org/wiki/Birthday_problem) – determine the probability of two students in an elementary class of 20 having the same birthday by repeatedly generating random collections of 20 birthdays and seeing how often there is a match
- Calculate a value for pi using random numbers
- Simulate pathogen infections using a simple SIR epidemiology model (https://en.wikipedia.org/wiki/Compartmental_models_in_epidemiology)
- Simulate radioactive decay to determine the amount of radioactive materials left after a given amount of time
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
rossbar commentedon May 29, 2023
These sound like great topics to me, though I suspect this is enough material to be split into multiple notebooks!
One important thing to keep in mind is how best to highlight the numpy-specific features within the problem, for example tutorial material should use the
random.Generator
interface. Aside from that, a hearty 👍 for these topic proposals!Added stochastic tutorial ipynb file
Added stochastic tutorial ipynb file